Home
last modified time | relevance | path

Searched refs:agpmem (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/gpu/drm/
Ddrm_memory.c63 struct drm_agp_mem *agpmem; in agp_remap() local
74 list_for_each_entry(agpmem, &dev->agp->memory, head) in agp_remap()
75 if (agpmem->bound <= offset in agp_remap()
76 && (agpmem->bound + (agpmem->pages << PAGE_SHIFT)) >= in agp_remap()
79 if (&agpmem->head == &dev->agp->memory) in agp_remap()
92 phys_page_map = (agpmem->memory->pages + (offset - agpmem->bound) / PAGE_SIZE); in agp_remap()
Ddrm_vm.c141 struct drm_agp_mem *agpmem; in drm_vm_fault() local
154 list_for_each_entry(agpmem, &dev->agp->memory, head) { in drm_vm_fault()
155 if (agpmem->bound <= baddr && in drm_vm_fault()
156 agpmem->bound + agpmem->pages * PAGE_SIZE > baddr) in drm_vm_fault()
160 if (&agpmem->head == &dev->agp->memory) in drm_vm_fault()
166 offset = (baddr - agpmem->bound) >> PAGE_SHIFT; in drm_vm_fault()
167 page = agpmem->memory->pages[offset]; in drm_vm_fault()
174 agpmem->memory->pages[offset], in drm_vm_fault()