Home
last modified time | relevance | path

Searched refs:pgoff (Results 1 – 22 of 22) sorted by relevance

/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/thirdparty/
Dmali_kbase_mmap.c254 const unsigned long len, const unsigned long pgoff, in kbase_context_get_unmapped_area() argument
298 …if ((PFN_DOWN(BASE_MEM_COOKIE_BASE) <= pgoff) && (PFN_DOWN(BASE_MEM_FIRST_FREE_ADDRESS) > pgoff)) { in kbase_context_get_unmapped_area()
299 int cookie = pgoff - PFN_DOWN(BASE_MEM_COOKIE_BASE); in kbase_context_get_unmapped_area()
334 return current->mm->get_unmapped_area(kctx->filp, addr, len, pgoff, flags); in kbase_context_get_unmapped_area()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/thirdparty/
Dmali_kbase_mmap.c239 const unsigned long pgoff, const unsigned long flags) in kbase_context_get_unmapped_area() argument
302 if ((PFN_DOWN(BASE_MEM_COOKIE_BASE) <= pgoff) && in kbase_context_get_unmapped_area()
303 (PFN_DOWN(BASE_MEM_FIRST_FREE_ADDRESS) > pgoff)) { in kbase_context_get_unmapped_area()
304 int cookie = pgoff - PFN_DOWN(BASE_MEM_COOKIE_BASE); in kbase_context_get_unmapped_area()
346 kctx->filp, addr, len, pgoff, flags); in kbase_context_get_unmapped_area()
/device/soc/rockchip/common/sdk_linux/drivers/gpu/drm/
Ddrm_file.c965 static unsigned long drm_addr_inflate(unsigned long addr, unsigned long len, unsigned long pgoff, u… in drm_addr_inflate() argument
972 offset = (pgoff << PAGE_SHIFT) & (huge_size - 1); in drm_addr_inflate()
1031 …m_get_unmapped_area(struct file *file, unsigned long uaddr, unsigned long len, unsigned long pgoff, in drm_get_unmapped_area() argument
1051 node = drm_vma_offset_lookup_locked(mgr, pgoff, 1); in drm_get_unmapped_area()
1053 pgoff -= node->vm_node.start; in drm_get_unmapped_area()
1057 addr = current->mm->get_unmapped_area(file, uaddr, len, pgoff, flags); in drm_get_unmapped_area()
1083 inflated_addr = drm_addr_inflate(addr, len, pgoff, flags, HPAGE_PMD_SIZE); in drm_get_unmapped_area()
1086 inflated_addr = drm_addr_inflate(inflated_addr, len, pgoff, flags, HPAGE_PUD_SIZE); in drm_get_unmapped_area()
1091 …m_get_unmapped_area(struct file *file, unsigned long uaddr, unsigned long len, unsigned long pgoff, in drm_get_unmapped_area() argument
1094 return current->mm->get_unmapped_area(file, uaddr, len, pgoff, flags); in drm_get_unmapped_area()
/device/soc/hisilicon/hi3751v350/sdk_linux/source/common/drv/mmz/
Ddrv_mmz_userdev.c429 const unsigned long pgoff = 0; in ioctl_mmb_user_remap_get_virt_addr() local
455 addr = do_mmap_pgoff(file, addr, len, prot, flags, pgoff); in ioctl_mmb_user_remap_get_virt_addr()
457 addr = do_mmap(file, addr, len, prot, flags, pgoff, &round_up_len, NULL); in ioctl_mmb_user_remap_get_virt_addr()
459 addr = do_mmap_pgoff(file, addr, len, prot, flags, pgoff, &round_up_len, NULL); in ioctl_mmb_user_remap_get_virt_addr()
461 addr = do_mmap_pgoff(file, addr, len, prot, flags, pgoff, &round_up_len); in ioctl_mmb_user_remap_get_virt_addr()
470 len, prot, flags, pgoff, addr); in ioctl_mmb_user_remap_get_virt_addr()
/device/soc/rockchip/common/sdk_linux/include/drm/
Ddrm_file.h402 …m_get_unmapped_area(struct file *file, unsigned long uaddr, unsigned long len, unsigned long pgoff,
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/
Ddma-buf.c1331 int dma_buf_mmap(struct dma_buf *dmabuf, struct vm_area_struct *vma, unsigned long pgoff) in dma_buf_mmap() argument
1346 if (pgoff + vma_pages(vma) < pgoff) { in dma_buf_mmap()
1351 if ((pgoff + vma_pages(vma)) > (dmabuf->size >> PAGE_SHIFT)) { in dma_buf_mmap()
1359 vma->vm_pgoff = pgoff; in dma_buf_mmap()
/device/soc/rockchip/common/sdk_linux/drivers/dma-buf/heaps/
Dcma_heap.c165 if (vmf->pgoff > buffer->pagecount) { in cma_heap_vm_fault()
169 vmf->page = buffer->pages[vmf->pgoff]; in cma_heap_vm_fault()
/device/soc/hisilicon/hi3516dv300/sdk_linux/drv/osal/linux/mmz/
Dmmz_userdev.c338 unsigned long addr, len, prot, flags, pgoff; in ioctl_mmb_user_remap() local
390 pgoff = p->phys_addr; in ioctl_mmb_user_remap()
391 addr = vm_mmap(file, addr, len, prot, flags, pgoff); in ioctl_mmb_user_remap()
397 len, prot, flags, pgoff, addr); in ioctl_mmb_user_remap()
/device/soc/rockchip/common/sdk_linux/include/linux/
Dmm.h545 pgoff_t pgoff; /* Logical page offset based on vma */ member
2559 …int __vma_adjust(struct vm_area_struct *vma, unsigned long start, unsigned long end, pgoff_t pgoff,
2561 …e int vma_adjust(struct vm_area_struct *vma, unsigned long start, unsigned long end, pgoff_t pgoff, in vma_adjust() argument
2564 return __vma_adjust(vma, start, end, pgoff, insert, NULL); in vma_adjust()
2575 …ea_struct *copy_vma(struct vm_area_struct **, unsigned long addr, unsigned long len, pgoff_t pgoff,
2614 unsigned long pgoff, struct list_head *uf);
2616 … unsigned long flags, unsigned long pgoff, unsigned long *populate, struct list_head *uf);
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/
Dmali_kbase.h165 const unsigned long len, const unsigned long pgoff,
Dmali_kbase_core_linux.c2146 const unsigned long pgoff, in kbase_get_unmapped_area() argument
2157 return kbase_context_get_unmapped_area(kctx, addr, len, pgoff, flags); in kbase_get_unmapped_area()
Dmali_kbase_mem_linux.c2477 fault_pgoff = map_start_pgoff + (vmf->pgoff - vma->vm_pgoff);
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/
Dmali_kbase.h165 const unsigned long pgoff, const unsigned long flags);
Dmali_kbase_core_linux.c2169 const unsigned long pgoff, const unsigned long flags) in kbase_get_unmapped_area() argument
2178 return kbase_context_get_unmapped_area(kctx, addr, len, pgoff, flags); in kbase_get_unmapped_area()
Dmali_kbase_mem_linux.c2445 fault_pgoff = map_start_pgoff + (vmf->pgoff - vma->vm_pgoff);
/device/soc/rockchip/common/kernel/drivers/gpu/arm/midgard/
Dmali_kbase_core_linux.c2158 const unsigned long pgoff, const unsigned long flags) in kbase_get_unmapped_area() argument
2203 if ((PFN_DOWN(BASE_MEM_COOKIE_BASE) <= pgoff) && in kbase_get_unmapped_area()
2204 (PFN_DOWN(BASE_MEM_FIRST_FREE_ADDRESS) > pgoff)) { in kbase_get_unmapped_area()
2205 int cookie = pgoff - PFN_DOWN(BASE_MEM_COOKIE_BASE); in kbase_get_unmapped_area()
2220 return current->mm->get_unmapped_area(filp, addr, len, pgoff, in kbase_get_unmapped_area()
Dmali_kbase_mem_linux.c1672 rel_pgoff = vmf->pgoff - map->region->start_pfn;
/device/soc/rockchip/common/vendor/drivers/gpu/arm/midgard/
Dmali_kbase_core_linux.c2052 const unsigned long pgoff, const unsigned long flags) in kbase_get_unmapped_area() argument
2095 …if ((PFN_DOWN(BASE_MEM_COOKIE_BASE) <= pgoff) && (PFN_DOWN(BASE_MEM_FIRST_FREE_ADDRESS) > pgoff)) { in kbase_get_unmapped_area()
2096 int cookie = pgoff - PFN_DOWN(BASE_MEM_COOKIE_BASE); in kbase_get_unmapped_area()
2109 return current->mm->get_unmapped_area(filp, addr, len, pgoff, flags); in kbase_get_unmapped_area()
Dmali_kbase_mem_linux.c1676 rel_pgoff = vmf->pgoff - map->region->start_pfn;
/device/soc/rockchip/common/sdk_linux/ipc/
Dshm.c638 unsigned long pgoff, unsigned long flags) in shm_get_unmapped_area() argument
642 return sfd->file->f_op->get_unmapped_area(sfd->file, addr, len, pgoff, flags); in shm_get_unmapped_area()
/device/soc/allwinner/t507/patches/kernel/linux-5.10/
Dkernel.patch614 + if (vmf->pgoff > buffer->pagecount)
617 + vmf->page = buffer->pages[vmf->pgoff];
/device/board/hihope/dayu210/kernel/kernel_patch/linux-5.10/dayu210_patch/
Dkernel.patch5646 + if (vmf->pgoff > buffer->pagecount)
5649 + vmf->page = buffer->pages[vmf->pgoff];