Searched refs:cmd_count (Results 1 – 2 of 2) sorted by relevance
83 uint16_t cmd_count; member169 uint16_t block_count = s->cmd_count; in rpmb_dev_data_write()295 assert(s->cmd_count > 0); in rpmb_dev_process_cmd()307 sub_req = rpmb_get_u16(s->cmd[s->cmd_count - 1].req_resp); in rpmb_dev_process_cmd()311 req_resp, sub_req, s->cmd_count); in rpmb_dev_process_cmd()315 assert(s->cmd_count > 1); in rpmb_dev_process_cmd()316 s->cmd_count--; in rpmb_dev_process_cmd()320 if (rpmb_mac(s->header.key, s->cmd, s->cmd_count, &mac) != 0) { in rpmb_dev_process_cmd()325 mac = s->cmd[s->cmd_count - 1].key_mac; in rpmb_dev_process_cmd()330 if (memcmp(&mac, s->cmd[s->cmd_count - 1].key_mac.byte, sizeof(mac))) { in rpmb_dev_process_cmd()[all …]
250 uint16_t cmd_count = payload_size / MMC_BLOCK_SIZE; in send_virt_rpmb_req() local255 rc = write(rpmb_fd, &cmd_count, sizeof(cmd_count)); in send_virt_rpmb_req()