Lines Matching refs:num_pages
494 void optee_fill_pages_list(u64 *dst, struct page **pages, int num_pages, in optee_fill_pages_list() argument
539 if (!--num_pages) in optee_fill_pages_list()
591 static int check_mem_type(unsigned long start, size_t num_pages) in check_mem_type() argument
605 start + num_pages * PAGE_SIZE); in check_mem_type()
612 struct page **pages, size_t num_pages, in optee_shm_register() argument
621 if (!num_pages) in optee_shm_register()
624 rc = check_mem_type(start, num_pages); in optee_shm_register()
628 pages_list = optee_allocate_pages_list(num_pages); in optee_shm_register()
638 optee_fill_pages_list(pages_list, pages, num_pages, in optee_shm_register()
659 optee_free_pages_list(pages_list, num_pages); in optee_shm_register()
687 struct page **pages, size_t num_pages, in optee_shm_register_supp() argument
694 return check_mem_type(start, num_pages); in optee_shm_register_supp()