Lines Matching refs:pages_list
347 u64 pages_list[PAGELIST_ENTRIES_PER_PAGE]; in optee_fill_pages_list() member
371 pages_data->pages_list[n++] = optee_page; in optee_fill_pages_list()
397 u64 *pages_list; in optee_shm_register() local
407 pages_list = optee_allocate_pages_list(num_pages); in optee_shm_register()
408 if (!pages_list) in optee_shm_register()
417 optee_fill_pages_list(pages_list, pages, num_pages, in optee_shm_register()
429 msg_arg->params->u.tmem.buf_ptr = virt_to_phys(pages_list) | in optee_shm_register()
438 optee_free_pages_list(pages_list, num_pages); in optee_shm_register()
631 u64 *pages_list; in handle_rpc_func_cmd_shm_alloc() local
640 pages_list = optee_allocate_pages_list(page_num); in handle_rpc_func_cmd_shm_alloc()
641 if (!pages_list) { in handle_rpc_func_cmd_shm_alloc()
646 call_ctx->pages_list = pages_list; in handle_rpc_func_cmd_shm_alloc()
655 arg->params[0].u.tmem.buf_ptr = virt_to_phys(pages_list) | in handle_rpc_func_cmd_shm_alloc()
661 optee_fill_pages_list(pages_list, pages, page_num, in handle_rpc_func_cmd_shm_alloc()
678 if (call_ctx->pages_list) { in free_pages_list()
679 optee_free_pages_list(call_ctx->pages_list, in free_pages_list()
681 call_ctx->pages_list = NULL; in free_pages_list()