Home
last modified time | relevance | path

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

/linux/drivers/gpu/drm/amd/amdgpu/
A Damdgpu_gart.c244 t = offset / AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_unbind()
254 page_base += AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_unbind()
295 t = offset / AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_map()
301 page_base += AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_map()
371 if (PAGE_SIZE < AMDGPU_GPU_PAGE_SIZE) { in amdgpu_gart_init()
380 adev->gart.num_gpu_pages = adev->gmc.gart_size / AMDGPU_GPU_PAGE_SIZE; in amdgpu_gart_init()
A 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)
A Damdgpu_benchmark.c201 amdgpu_benchmark_move(adev, i * AMDGPU_GPU_PAGE_SIZE, in amdgpu_benchmark()
208 amdgpu_benchmark_move(adev, i * AMDGPU_GPU_PAGE_SIZE, in amdgpu_benchmark()
215 amdgpu_benchmark_move(adev, i * AMDGPU_GPU_PAGE_SIZE, in amdgpu_benchmark()
A Damdgpu_object.h197 return bo->tbo.base.size / AMDGPU_GPU_PAGE_SIZE; in amdgpu_bo_ngpu_pages()
202 return (bo->tbo.page_alignment << PAGE_SHIFT) / AMDGPU_GPU_PAGE_SIZE; in amdgpu_bo_gpu_page_alignment()
A Damdgpu_vm.c933 bp.byte_align = AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_pt_create()
1618 incr = (uint64_t)AMDGPU_GPU_PAGE_SIZE << shift; in amdgpu_vm_update_ptes()
1758 (last - start + 1) * AMDGPU_GPU_PAGE_SIZE, &cursor); in amdgpu_vm_bo_update_mapping()
2355 saddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_map()
2356 eaddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_map()
2432 saddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_replace_map()
2433 eaddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_replace_map()
2467 saddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_unmap()
2522 saddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_clear_mappings()
2523 eaddr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_vm_bo_clear_mappings()
[all …]
A Damdgpu_test.c49 AMDGPU_GPU_PAGE_SIZE; in amdgpu_do_test_moves()
A Damdgpu_vce.c460 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()
A Damdgpu_vcn.c596 r = amdgpu_ib_get(adev, NULL, AMDGPU_GPU_PAGE_SIZE * 2, in amdgpu_vcn_dec_get_create_msg()
631 r = amdgpu_ib_get(adev, NULL, AMDGPU_GPU_PAGE_SIZE * 2, in amdgpu_vcn_dec_get_destroy_msg()
914 r = amdgpu_ib_get(adev, NULL, (128 << 10) + AMDGPU_GPU_PAGE_SIZE, in amdgpu_vcn_enc_ring_test_ib()
A Damdgpu_kms.c838 vm_size = adev->vm_manager.max_pfn * AMDGPU_GPU_PAGE_SIZE; in amdgpu_info_ioctl()
854 dev_info->virtual_address_alignment = max_t(u32, PAGE_SIZE, AMDGPU_GPU_PAGE_SIZE); in amdgpu_info_ioctl()
855 dev_info->pte_fragment_size = (1 << adev->vm_manager.fragment_size) * AMDGPU_GPU_PAGE_SIZE; in amdgpu_info_ioctl()
856 dev_info->gart_page_size = max_t(u32, PAGE_SIZE, AMDGPU_GPU_PAGE_SIZE); in amdgpu_info_ioctl()
A Damdgpu_ib.c311 AMDGPU_GPU_PAGE_SIZE, in amdgpu_ib_pool_init()
A Damdgpu_cs.c761 (m->last + 1) * AMDGPU_GPU_PAGE_SIZE) { in amdgpu_cs_vm_handling()
772 offset = m->start * AMDGPU_GPU_PAGE_SIZE; in amdgpu_cs_vm_handling()
1690 addr /= AMDGPU_GPU_PAGE_SIZE; in amdgpu_cs_find_mapping()
A Damdgpu_uvd.c923 end = end * AMDGPU_GPU_PAGE_SIZE + start; in amdgpu_uvd_cs_pass2()
925 addr -= mapping->start * AMDGPU_GPU_PAGE_SIZE; in amdgpu_uvd_cs_pass2()
A Damdgpu_virt.c377 AMDGPU_GPU_PAGE_SIZE, in amdgpu_virt_ras_reserve_bps()
A Damdgpu_ttm.c220 AMDGPU_GPU_PAGE_SIZE; in amdgpu_ttm_map_buffer()
309 AMDGPU_GPU_PAGE_SIZE); in amdgpu_ttm_copy_mem_to_mem()
A Damdgpu_gem.c702 vm_size = adev->vm_manager.max_pfn * AMDGPU_GPU_PAGE_SIZE; in amdgpu_gem_va_ioctl()
A Damdgpu_ras.c1804 .size = AMDGPU_GPU_PAGE_SIZE, in amdgpu_ras_badpages_read()
1912 AMDGPU_GPU_PAGE_SIZE); in amdgpu_ras_add_bad_pages()
A Dmes_v10_1.c665 ((order_base_2(AMDGPU_GPU_PAGE_SIZE / 4) - 1) << 8)); in mes_v10_1_mqd_init()
A Dgfx_v6_0.c2107 tmp = (order_base_2(AMDGPU_GPU_PAGE_SIZE/8) << 8) | rb_bufsz; in gfx_v6_0_cp_gfx_resume()
2196 tmp = (order_base_2(AMDGPU_GPU_PAGE_SIZE/8) << 8) | rb_bufsz; in gfx_v6_0_cp_compute_resume()
2216 tmp = (order_base_2(AMDGPU_GPU_PAGE_SIZE/8) << 8) | rb_bufsz; in gfx_v6_0_cp_compute_resume()
A Dvcn_v3_0.c1841 start = map->start * AMDGPU_GPU_PAGE_SIZE; in vcn_v3_0_dec_msg()
1842 end = (map->last + 1) * AMDGPU_GPU_PAGE_SIZE; in vcn_v3_0_dec_msg()
A Dgfx_v7_0.c2622 tmp = (order_base_2(AMDGPU_GPU_PAGE_SIZE/8) << 8) | rb_bufsz; in gfx_v7_0_cp_gfx_resume()
2970 (order_base_2(AMDGPU_GPU_PAGE_SIZE/8) << 8); in gfx_v7_0_mqd_init()
A Damdgpu_device.c925 return amdgpu_bo_create_kernel(adev, AMDGPU_GPU_PAGE_SIZE, in amdgpu_device_vram_scratch_init()
A Dgfx_v8_0.c4509 ((order_base_2(AMDGPU_GPU_PAGE_SIZE / 4) - 1) << 8)); in gfx_v8_0_mqd_init()
A Dgfx_v9_0.c3561 ((order_base_2(AMDGPU_GPU_PAGE_SIZE / 4) - 1) << 8)); in gfx_v9_0_mqd_init()
A Dgfx_v10_0.c6920 ((order_base_2(AMDGPU_GPU_PAGE_SIZE / 4) - 1) << 8)); in gfx_v10_0_compute_mqd_init()

Completed in 120 milliseconds