Searched refs:rpmb_fd (Results 1 – 1 of 1) sorted by relevance
/system/core/trusty/storage/proxy/ |
D | rpmb.c | 99 static int rpmb_fd = -1; variable 246 static int send_virt_rpmb_req(int rpmb_fd, void* read_buf, size_t read_size, const void* payload, in send_virt_rpmb_req() argument 251 rc = write(rpmb_fd, &res_count, sizeof(res_count)); in send_virt_rpmb_req() 255 rc = write(rpmb_fd, &cmd_count, sizeof(cmd_count)); in send_virt_rpmb_req() 259 rc = write(rpmb_fd, payload, payload_size); in send_virt_rpmb_req() 263 rc = read(rpmb_fd, read_buf, read_size); in send_virt_rpmb_req() 303 rc = send_mmc_rpmb_req(rpmb_fd, req); in rpmb_send() 309 rc = send_ufs_rpmb_req(rpmb_fd, req); in rpmb_send() 317 rc = send_virt_rpmb_req(rpmb_fd, read_buf, req->read_size, req->payload, payload_size); in rpmb_send() 363 rpmb_fd = rc; in rpmb_open() [all …]
|