Lines Matching refs:num_pages
456 void optee_fill_pages_list(u64 *dst, struct page **pages, int num_pages, in optee_fill_pages_list() argument
501 if (!--num_pages) in optee_fill_pages_list()
552 static int check_mem_type(unsigned long start, size_t num_pages) in check_mem_type() argument
559 start + num_pages * PAGE_SIZE); in check_mem_type()
566 struct page **pages, size_t num_pages, in optee_shm_register() argument
575 if (!num_pages) in optee_shm_register()
578 rc = check_mem_type(start, num_pages); in optee_shm_register()
582 pages_list = optee_allocate_pages_list(num_pages); in optee_shm_register()
592 optee_fill_pages_list(pages_list, pages, num_pages, in optee_shm_register()
613 optee_free_pages_list(pages_list, num_pages); in optee_shm_register()
641 struct page **pages, size_t num_pages, in optee_shm_register_supp() argument
648 return check_mem_type(start, num_pages); in optee_shm_register_supp()