Home
last modified time | relevance | path

Searched refs:res_count (Results 1 – 5 of 5) sorted by relevance

/trusty/user/app/storage/rpmb_dev/
Dmain.c66 ret = recv_until(conn_sock, &s->res_count, sizeof(s->res_count)); in handle_conn()
75 if (s->res_count > MAX_PACKET_COUNT) { in handle_conn()
77 s->res_count); in handle_conn()
80 if (s->res_count <= 0) { in handle_conn()
82 s->res_count); in handle_conn()
114 size_t resp_size = sizeof(s->res[0]) * s->res_count; in handle_conn()
Drpmb_dev.c236 block_count = s->res_count; in rpmb_dev_data_read()
304 assert(s->res_count > 0); in rpmb_dev_process_cmd()
354 block_count = s->res_count; in rpmb_dev_process_cmd()
393 if (!cmd->multi_packet_res && s->res_count != 1) { in rpmb_dev_process_cmd()
397 req_resp, s->res_count); in rpmb_dev_process_cmd()
425 for (int i = 0; i < s->res_count; i++) { in rpmb_dev_process_cmd()
433 rpmb_mac(s->header.key, s->res, s->res_count, in rpmb_dev_process_cmd()
434 &s->res[s->res_count - 1].key_mac); in rpmb_dev_process_cmd()
Drpmb_dev.h40 uint16_t res_count; member
/trusty/user/app/storage/test/storage_host_test/
Dstorageproxy_shim.c164 rpmb_state.res_count = read_buf_size / sizeof(struct rpmb_packet); in rpmb_send()
165 assert(rpmb_state.res_count <= MAX_PACKET_COUNT); in rpmb_send()
/trusty/user/app/storage/
Drpmb.c154 int res_count, in rpmb_check_response() argument
160 for (i = 0; i < res_count; i++) { in rpmb_check_response()
178 if (i == res_count - 1 && mac && in rpmb_check_response()