Home
last modified time | relevance | path

Searched refs:write_counter (Results 1 – 4 of 4) sorted by relevance

/trusty/user/app/storage/
Drpmb.c49 uint32_t write_counter; member
158 uint32_t write_counter) { in rpmb_check_response() argument
191 if (write_counter && in rpmb_check_response()
192 write_counter != rpmb_get_u32(res[i].write_counter)) { in rpmb_check_response()
194 cmd_str, rpmb_get_u32(res[i].write_counter), write_counter); in rpmb_check_response()
230 rpmb_dprint_u32(" write_counter ", res.write_counter); in rpmb_program_key()
240 uint32_t* write_counter) { in rpmb_read_counter() argument
262 rpmb_dprint_u32(" write_counter ", res.write_counter); in rpmb_read_counter()
271 if (write_counter) in rpmb_read_counter()
272 *write_counter = rpmb_get_u32(res.write_counter); in rpmb_read_counter()
[all …]
Drpmb_protocol.h55 struct rpmb_u32 write_counter; member
/trusty/user/app/storage/rpmb_dev/
Drpmb_dev.c137 s->res[0].write_counter = rpmb_u32(s->header.write_counter); in rpmb_dev_get_counter()
145 uint32_t write_counter; in rpmb_dev_data_write() local
157 if (s->header.write_counter == MAX_WRITE_COUNTER) { in rpmb_dev_data_write()
164 write_counter = rpmb_get_u32(s->cmd[0].write_counter); in rpmb_dev_data_write()
165 if (s->header.write_counter != write_counter) { in rpmb_dev_data_write()
169 write_counter, s->header.write_counter); in rpmb_dev_data_write()
190 s->header.write_counter++; in rpmb_dev_data_write()
207 ret = write(s->data_fd, &s->header.write_counter, in rpmb_dev_data_write()
208 sizeof(s->header.write_counter)); in rpmb_dev_data_write()
209 if (ret != sizeof(s->header.write_counter)) { in rpmb_dev_data_write()
[all …]
Drpmb_dev.h25 uint32_t write_counter; member