/drivers/staging/media/atomisp/pci/hmm/ |
D | hmm_bo.c | 59 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 …]
|
D | hmm_reserved_pool.c | 77 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 …]
|
D | hmm.c | 78 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()
|
D | hmm_dynamic_pool.c | 55 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()
|
/drivers/staging/media/atomisp/pci/mmu/ |
D | isp_mmu.c | 318 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 …]
|
/drivers/staging/media/atomisp/include/mmu/ |
D | isp_mmu.h | 62 #define pgnr_to_size(pgnr) ((pgnr) << ISP_PAGE_OFFSET) argument 149 phys_addr_t phys, unsigned int pgnr); 152 unsigned int pgnr);
|
/drivers/staging/media/atomisp/include/hmm/ |
D | hmm_bo.h | 107 unsigned int pgnr; member 149 unsigned int pgnr; member 163 unsigned int pgnr); 246 struct hmm_page_object **page_obj, int *pgnr);
|
D | hmm_pool.h | 81 unsigned int pgnr; member 105 unsigned int pgnr; member
|
/drivers/staging/media/atomisp/pci/ |
D | atomisp_acc.c | 339 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()
|
D | atomisp_fops.c | 1041 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()
|
D | ia_css_frame_public.h | 338 unsigned int pgnr);
|
D | atomisp_ioctl.c | 1260 u32 pgnr; in atomisp_qbuf() local 1302 pgnr = (length + (PAGE_SIZE - 1)) >> PAGE_SHIFT; in atomisp_qbuf() 1315 0, pgnr); in atomisp_qbuf()
|
/drivers/xen/ |
D | gntdev.c | 294 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()
|
/drivers/staging/media/atomisp/pci/runtime/frame/src/ |
D | frame.c | 158 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()
|
/drivers/net/ethernet/xircom/ |
D | xirc2ps_cs.c | 307 #define SelectPage(pgnr) outb((pgnr), ioaddr + XIRCREG_PR) argument
|