Lines Matching refs:num_pages
460 void optee_fill_pages_list(u64 *dst, struct page **pages, int num_pages, in optee_fill_pages_list() argument
505 if (!--num_pages) in optee_fill_pages_list()
557 static int check_mem_type(unsigned long start, size_t num_pages) in check_mem_type() argument
571 start + num_pages * PAGE_SIZE); in check_mem_type()
578 struct page **pages, size_t num_pages, in optee_shm_register() argument
587 if (!num_pages) in optee_shm_register()
590 rc = check_mem_type(start, num_pages); in optee_shm_register()
594 pages_list = optee_allocate_pages_list(num_pages); in optee_shm_register()
604 optee_fill_pages_list(pages_list, pages, num_pages, in optee_shm_register()
625 optee_free_pages_list(pages_list, num_pages); in optee_shm_register()
653 struct page **pages, size_t num_pages, in optee_shm_register_supp() argument
660 return check_mem_type(start, num_pages); in optee_shm_register_supp()