Lines Matching refs:memref

246 	    params[0].memref.size != TEE_PARAM0_SIZE_MIN)  in entry_ck_slot_list()
249 if (out->memref.size < out_size) { in entry_ck_slot_list()
250 out->memref.size = out_size; in entry_ck_slot_list()
252 if (out->memref.buffer) in entry_ck_slot_list()
258 for (token_id = 0, id = out->memref.buffer; token_id < TOKEN_COUNT; in entry_ck_slot_list()
262 out->memref.size = out_size; in entry_ck_slot_list()
321 if (ptypes != exp_pt || out->memref.size != sizeof(info)) in entry_ck_slot_info()
324 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_slot_info()
340 out->memref.size = sizeof(info); in entry_ck_slot_info()
341 TEE_MemMove(out->memref.buffer, &info, out->memref.size); in entry_ck_slot_info()
375 if (ptypes != exp_pt || out->memref.size != sizeof(info)) in entry_ck_token_info()
378 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_token_info()
408 TEE_MemMove(out->memref.buffer, &info, sizeof(info)); in entry_ck_token_info()
445 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_token_mecha_ids()
458 count = out->memref.size / sizeof(*array); in entry_ck_token_mecha_ids()
461 if (out->memref.size < count * sizeof(*array)) { in entry_ck_token_mecha_ids()
463 out->memref.size = count * sizeof(*array); in entry_ck_token_mecha_ids()
464 if (out->memref.buffer) in entry_ck_token_mecha_ids()
475 out->memref.size = count * sizeof(*array); in entry_ck_token_mecha_ids()
476 TEE_MemMove(out->memref.buffer, array, out->memref.size); in entry_ck_token_mecha_ids()
498 if (ptypes != exp_pt || out->memref.size != sizeof(info)) in entry_ck_token_mecha_info()
501 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_token_mecha_info()
526 TEE_MemMove(out->memref.buffer, &info, sizeof(info)); in entry_ck_token_mecha_info()
604 out->memref.size != sizeof(session->handle)) in entry_ck_open_session()
607 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_open_session()
666 TEE_MemMove(out->memref.buffer, &session->handle, in entry_ck_open_session()
711 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_close_session()
743 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_close_all_sessions()
781 if (!client || ptypes != exp_pt || out->memref.size != sizeof(info)) in entry_ck_session_info()
784 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_session_info()
798 TEE_MemMove(out->memref.buffer, &info, sizeof(info)); in entry_ck_session_info()
826 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_token_initialize()
1048 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_init_pin()
1211 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_set_pin()
1358 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_login()
1465 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_logout()
1496 params[0].memref.buffer = seed; in seed_rng_pool()
1497 params[0].memref.size = (uint32_t)length; in seed_rng_pool()
1533 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_seed_random()
1542 if (in->memref.size && !in->memref.buffer) in entry_ck_seed_random()
1545 if (!in->memref.size) in entry_ck_seed_random()
1548 res = seed_rng_pool(in->memref.buffer, in->memref.size); in entry_ck_seed_random()
1577 serialargs_init(&ctrlargs, ctrl->memref.buffer, ctrl->memref.size); in entry_ck_generate_random()
1586 if (out->memref.size && !out->memref.buffer) in entry_ck_generate_random()
1589 if (!out->memref.size) in entry_ck_generate_random()
1592 buffer_size = MIN(out->memref.size, RNG_CHUNK_SIZE); in entry_ck_generate_random()
1597 data = out->memref.buffer; in entry_ck_generate_random()
1598 left = out->memref.size; in entry_ck_generate_random()