Home
last modified time | relevance | path

Searched refs:pgnr (Results 1 – 16 of 16) sorted by relevance

/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/hmm/
Dhmm_bo.c59 unsigned int pgnr) in __bo_init() argument
65 if (pgnr == 0) { in __bo_init()
80 bo->pgnr = pgnr; in __bo_init()
81 bo->end = bo->start + pgnr_to_size(pgnr); in __bo_init()
89 struct rb_node *node, unsigned int pgnr) in __bo_search_and_remove_from_free_rbtree() argument
94 if (this->pgnr == pgnr || in __bo_search_and_remove_from_free_rbtree()
95 (this->pgnr > pgnr && !this->node.rb_left)) { in __bo_search_and_remove_from_free_rbtree()
98 if (this->pgnr < pgnr) { in __bo_search_and_remove_from_free_rbtree()
102 this->node.rb_right, pgnr); in __bo_search_and_remove_from_free_rbtree()
105 this->node.rb_left, pgnr); in __bo_search_and_remove_from_free_rbtree()
[all …]
Dhmm_reserved_pool.c77 repool_info->index < repool_info->pgnr && in free_pages_to_reserved_pool()
103 pool_info->pgnr = 0; in hmm_reserved_pool_setup()
116 unsigned int pgnr = pool_size; in hmm_reserved_pool_init() local
133 pgnr = pool_size; in hmm_reserved_pool_init()
138 while (pgnr) { in hmm_reserved_pool_init()
140 while (blk_pgnr > pgnr) { in hmm_reserved_pool_init()
175 repool_info->pgnr += blk_pgnr; in hmm_reserved_pool_init()
177 pgnr -= blk_pgnr; in hmm_reserved_pool_init()
190 repool_info->pgnr); in hmm_reserved_pool_init()
198 unsigned int pgnr; in hmm_reserved_pool_exit() local
[all …]
Dhmm_dynamic_pool.c55 dypool_info->pgnr--; in get_pages_from_dynamic_pool()
94 if (dypool_info->pgnr >= dypool_info->pool_size) { in free_pages_to_dynamic_pool()
135 dypool_info->pgnr++; in free_pages_to_dynamic_pool()
164 dypool_info->pgnr = 0; in hmm_dynamic_pool_init()
Dhmm.c78 hmm_bo_type_string[bo->type], bo->pgnr); in bo_show()
80 total[bo->type] += bo->pgnr; in bo_show()
130 pinfo->index, pinfo->pgnr); in reserved_pool_show()
153 pinfo->pgnr, pinfo->pool_size); in dynamic_pool_show()
228 unsigned int pgnr; in hmm_alloc() local
243 pgnr = size_to_pgnr_ceil(bytes); in hmm_alloc()
246 bo = hmm_bo_alloc(&bo_device, pgnr); in hmm_alloc()
266 hmm_mem_stat.tol_cnt += pgnr; in hmm_alloc()
303 hmm_mem_stat.tol_cnt -= bo->pgnr; in hmm_free()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/mmu/
Disp_mmu.c318 phys_addr_t phys, unsigned int pgnr) in mmu_map() argument
347 end = start + (pgnr << ISP_PAGE_OFFSET); in mmu_map()
449 unsigned int pgnr) in mmu_unmap() argument
464 end = start + (pgnr << ISP_PAGE_OFFSET); in mmu_unmap()
477 unsigned int pgnr; in free_mmu_map() local
482 pgnr = (end - start) >> ISP_PAGE_OFFSET; in free_mmu_map()
483 mmu_unmap(mmu, start, pgnr); in free_mmu_map()
487 phys_addr_t phys, unsigned int pgnr) in isp_mmu_map() argument
489 return mmu_map(mmu, isp_virt, phys, pgnr); in isp_mmu_map()
493 unsigned int pgnr) in isp_mmu_unmap() argument
[all …]
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/include/mmu/
Disp_mmu.h62 #define pgnr_to_size(pgnr) ((pgnr) << ISP_PAGE_OFFSET) argument
149 phys_addr_t phys, unsigned int pgnr);
152 unsigned int pgnr);
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/include/hmm/
Dhmm_bo.h107 unsigned int pgnr; member
149 unsigned int pgnr; member
163 unsigned int pgnr);
246 struct hmm_page_object **page_obj, int *pgnr);
Dhmm_pool.h81 unsigned int pgnr; member
105 unsigned int pgnr; member
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Datomisp_acc.c339 int pgnr; in atomisp_acc_map() local
356 pgnr = DIV_ROUND_UP(map->length, PAGE_SIZE); in atomisp_acc_map()
357 if (pgnr < ((PAGE_ALIGN(map->length)) >> PAGE_SHIFT)) { in atomisp_acc_map()
361 } else if (pgnr > ((PAGE_ALIGN(map->length)) >> PAGE_SHIFT)) { in atomisp_acc_map()
Dia_css_frame_public.h338 unsigned int pgnr);
Datomisp_fops.c1041 ia_css_ptr isp_virt, u32 host_virt, u32 pgnr) in do_isp_mm_remap() argument
1045 while (pgnr) { in do_isp_mm_remap()
1055 pgnr--; in do_isp_mm_remap()
1066 u32 pgnr; in frame_mmap() local
1075 atomisp_get_frame_pgnr(isp, frame, &pgnr); in frame_mmap()
1077 if (do_isp_mm_remap(isp, vma, isp_virt, host_virt, pgnr)) in frame_mmap()
Datomisp_ioctl.c1259 u32 pgnr; in atomisp_qbuf() local
1301 pgnr = (length + (PAGE_SIZE - 1)) >> PAGE_SHIFT; in atomisp_qbuf()
1314 0, pgnr); in atomisp_qbuf()
/kernel/linux/linux-5.10/drivers/xen/
Dgntdev.c294 unsigned int pgnr = (addr - map->pages_vm_start) >> PAGE_SHIFT; in find_grant_ptes() local
299 BUG_ON(pgnr >= map->count); in find_grant_ptes()
302 gnttab_set_map_op(&map->map_ops[pgnr], pte_maddr, flags, in find_grant_ptes()
303 map->grants[pgnr].ref, in find_grant_ptes()
304 map->grants[pgnr].domid); in find_grant_ptes()
305 gnttab_set_unmap_op(&map->unmap_ops[pgnr], pte_maddr, flags, in find_grant_ptes()
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/runtime/frame/src/
Dframe.c158 unsigned int pgnr) in ia_css_frame_map() argument
172 if (pgnr < ((PAGE_ALIGN(me->data_bytes)) >> PAGE_SHIFT)) { in ia_css_frame_map()
177 } else if (pgnr > ((PAGE_ALIGN(me->data_bytes)) >> PAGE_SHIFT)) { in ia_css_frame_map()
/kernel/linux/linux-5.10/net/sunrpc/
Dxdr.c991 unsigned int pgnr; in xdr_set_page_base() local
1006 pgnr = base >> PAGE_SHIFT; in xdr_set_page_base()
1007 xdr->page_ptr = &xdr->buf->pages[pgnr]; in xdr_set_page_base()
/kernel/linux/linux-5.10/drivers/net/ethernet/xircom/
Dxirc2ps_cs.c307 #define SelectPage(pgnr) outb((pgnr), ioaddr + XIRCREG_PR) argument