Home
last modified time | relevance | path

Searched refs:AMDGPU_GPU_PAGE_SIZE (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.12.1/drivers/gpu/drm/amd/amdgpu/
Damdgpu_gart.h35 #define AMDGPU_GPU_PAGE_SIZE 4096 macro
36 #define AMDGPU_GPU_PAGE_MASK (AMDGPU_GPU_PAGE_SIZE - 1)
40 #define AMDGPU_GPU_PAGES_IN_CPU_PAGE (PAGE_SIZE / AMDGPU_GPU_PAGE_SIZE)
Damdgpu_gart.c316 t = offset / AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_unbind()
326 page_base += AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_unbind()
358 t = offset / AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_map()
364 page_base += AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_map()
433 if (PAGE_SIZE < AMDGPU_GPU_PAGE_SIZE) { in amdgpu_gart_init()
442 adev->gart.num_gpu_pages = adev->gmc.gart_size / AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_init()
Damdgpu_benchmark.c177 r = amdgpu_benchmark_move(adev, i * AMDGPU_GPU_PAGE_SIZE, in amdgpu_benchmark()
190 r = amdgpu_benchmark_move(adev, i * AMDGPU_GPU_PAGE_SIZE, in amdgpu_benchmark()
203 r = amdgpu_benchmark_move(adev, i * AMDGPU_GPU_PAGE_SIZE, in amdgpu_benchmark()
Damdgpu_sa.c53 r = amdgpu_bo_create_kernel(adev, size, AMDGPU_GPU_PAGE_SIZE, domain, in amdgpu_sa_bo_manager_init()
Damdgpu_object.h238 return bo->tbo.base.size / AMDGPU_GPU_PAGE_SIZE; in amdgpu_bo_ngpu_pages()
243 return (bo->tbo.page_alignment << PAGE_SHIFT) / AMDGPU_GPU_PAGE_SIZE; in amdgpu_bo_gpu_page_alignment()
Damdgpu_vm.c1014 (last - start + 1) * AMDGPU_GPU_PAGE_SIZE, &cursor); in amdgpu_vm_update_range()
1063 amdgpu_res_next(&cursor, num_entries * AMDGPU_GPU_PAGE_SIZE); in amdgpu_vm_update_range()
1737 saddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_map()
1738 eaddr = saddr + (size - 1) / AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_map()
1806 saddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_replace_map()
1807 eaddr = saddr + (size - 1) / AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_replace_map()
1841 saddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_unmap()
1900 saddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_clear_mappings()
1901 eaddr = saddr + (size - 1) / AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_clear_mappings()
2810 addr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_handle_fault()
Damdgpu_vce.c458 r = amdgpu_ib_get(ring->adev, NULL, AMDGPU_GPU_PAGE_SIZE * 2, in amdgpu_vce_get_create_msg()
673 (mapping->last + 1) * AMDGPU_GPU_PAGE_SIZE) { in amdgpu_vce_cs_reloc()
679 addr -= mapping->start * AMDGPU_GPU_PAGE_SIZE; in amdgpu_vce_cs_reloc()
Damdgpu_vm_pt.c448 bp.byte_align = AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_pt_create()
899 incr = (uint64_t)AMDGPU_GPU_PAGE_SIZE << shift; in amdgpu_vm_ptes_update()
Damdgpu_vcn.c600 r = amdgpu_ib_get(adev, NULL, AMDGPU_GPU_PAGE_SIZE * 2, in amdgpu_vcn_dec_get_create_msg()
635 r = amdgpu_ib_get(adev, NULL, AMDGPU_GPU_PAGE_SIZE * 2, in amdgpu_vcn_dec_get_destroy_msg()
990 r = amdgpu_ib_get(adev, NULL, (128 << 10) + AMDGPU_GPU_PAGE_SIZE, in amdgpu_vcn_enc_ring_test_ib()
Damdgpu_kms.c891 vm_size = adev->vm_manager.max_pfn * AMDGPU_GPU_PAGE_SIZE; in amdgpu_info_ioctl()
907 dev_info->virtual_address_alignment = max_t(u32, PAGE_SIZE, AMDGPU_GPU_PAGE_SIZE); in amdgpu_info_ioctl()
908 dev_info->pte_fragment_size = (1 << adev->vm_manager.fragment_size) * AMDGPU_GPU_PAGE_SIZE; in amdgpu_info_ioctl()
909 dev_info->gart_page_size = max_t(u32, PAGE_SIZE, AMDGPU_GPU_PAGE_SIZE); in amdgpu_info_ioctl()
Damdgpu_cs.c1046 (m->last + 1) * AMDGPU_GPU_PAGE_SIZE) { in amdgpu_cs_patch_ibs()
1056 kptr += va_start - (m->start * AMDGPU_GPU_PAGE_SIZE); in amdgpu_cs_patch_ibs()
1791 addr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_cs_find_mapping()
Damdgpu_virt.c387 AMDGPU_GPU_PAGE_SIZE); in amdgpu_virt_ras_reserve_bps()
391 AMDGPU_GPU_PAGE_SIZE, in amdgpu_virt_ras_reserve_bps()
Damdgpu_uvd.c928 end = end * AMDGPU_GPU_PAGE_SIZE + start; in amdgpu_uvd_cs_pass2()
930 addr -= mapping->start * AMDGPU_GPU_PAGE_SIZE; in amdgpu_uvd_cs_pass2()
Damdgpu_gem.c738 vm_size = adev->vm_manager.max_pfn * AMDGPU_GPU_PAGE_SIZE; in amdgpu_gem_va_ioctl()
Dvcn_v4_0.c1772 start = map->start * AMDGPU_GPU_PAGE_SIZE; in vcn_v4_0_dec_msg()
1773 end = (map->last + 1) * AMDGPU_GPU_PAGE_SIZE; in vcn_v4_0_dec_msg()
Dgfx_v6_0.c2068 tmp = (order_base_2(AMDGPU_GPU_PAGE_SIZE/8) << 8) | rb_bufsz; in gfx_v6_0_cp_gfx_resume()
2157 tmp = (order_base_2(AMDGPU_GPU_PAGE_SIZE/8) << 8) | rb_bufsz; in gfx_v6_0_cp_compute_resume()
2177 tmp = (order_base_2(AMDGPU_GPU_PAGE_SIZE/8) << 8) | rb_bufsz; in gfx_v6_0_cp_compute_resume()
Dvcn_v3_0.c1849 start = map->start * AMDGPU_GPU_PAGE_SIZE; in vcn_v3_0_dec_msg()
1850 end = (map->last + 1) * AMDGPU_GPU_PAGE_SIZE; in vcn_v3_0_dec_msg()
Dmes_v12_0.c1060 ((order_base_2(AMDGPU_GPU_PAGE_SIZE / 4) - 1) << 8)); in mes_v12_0_mqd_init()
Dmes_v11_0.c1094 ((order_base_2(AMDGPU_GPU_PAGE_SIZE / 4) - 1) << 8)); in mes_v11_0_mqd_init()
Damdgpu_ras.c2501 .size = AMDGPU_GPU_PAGE_SIZE, in amdgpu_ras_badpages_read()
4809 ret = amdgpu_vram_mgr_reserve_range(mgr, start, AMDGPU_GPU_PAGE_SIZE); in amdgpu_ras_reserve_page()
Dvcn_v1_0.c2032 mapping = amdgpu_vm_bo_lookup_mapping(vm, addr/AMDGPU_GPU_PAGE_SIZE); in vcn_v1_0_validate_bo()
Dgfx_v7_0.c2551 tmp = (order_base_2(AMDGPU_GPU_PAGE_SIZE/8) << 8) | rb_bufsz; in gfx_v7_0_cp_gfx_resume()
2861 (order_base_2(AMDGPU_GPU_PAGE_SIZE/8) << 8); in gfx_v7_0_mqd_init()
Damdgpu_ttm.c220 AMDGPU_GPU_PAGE_SIZE; in amdgpu_ttm_map_buffer()
Damdgpu_psp.c3912 AMDGPU_GPU_PAGE_SIZE, in amdgpu_psp_vbflash_read()
Damdgpu_device.c1333 return amdgpu_bo_create_kernel(adev, AMDGPU_GPU_PAGE_SIZE, PAGE_SIZE, in amdgpu_device_mem_scratch_init()

12