| /linux/drivers/gpu/drm/radeon/ |
| H A D | ni_dma.c | 319 unsigned ndw; in cayman_dma_vm_copy_pages() local 322 ndw = count * 2; in cayman_dma_vm_copy_pages() 323 if (ndw > 0xFFFFE) in cayman_dma_vm_copy_pages() 324 ndw = 0xFFFFE; in cayman_dma_vm_copy_pages() 327 0, 0, ndw); in cayman_dma_vm_copy_pages() 333 pe += ndw * 4; in cayman_dma_vm_copy_pages() 334 src += ndw * 4; in cayman_dma_vm_copy_pages() 335 count -= ndw / 2; in cayman_dma_vm_copy_pages() 359 unsigned ndw; in cayman_dma_vm_write_pages() local 362 ndw = count * 2; in cayman_dma_vm_write_pages() [all …]
|
| H A D | si_dma.c | 111 unsigned ndw; in si_dma_vm_write_pages() local 114 ndw = count * 2; in si_dma_vm_write_pages() 115 if (ndw > 0xFFFFE) in si_dma_vm_write_pages() 116 ndw = 0xFFFFE; in si_dma_vm_write_pages() 119 ib->ptr[ib->length_dw++] = DMA_PACKET(DMA_PACKET_WRITE, 0, 0, 0, ndw); in si_dma_vm_write_pages() 122 for (; ndw > 0; ndw -= 2, --count, pe += 8) { in si_dma_vm_write_pages() 158 unsigned ndw; in si_dma_vm_set_pages() local 161 ndw = count * 2; in si_dma_vm_set_pages() 162 if (ndw > 0xFFFFE) in si_dma_vm_set_pages() 163 ndw = 0xFFFFE; in si_dma_vm_set_pages() [all …]
|
| H A D | cik_sdma.c | 847 unsigned ndw; in cik_sdma_vm_write_pages() local 850 ndw = count * 2; in cik_sdma_vm_write_pages() 851 if (ndw > 0xFFFFE) in cik_sdma_vm_write_pages() 852 ndw = 0xFFFFE; in cik_sdma_vm_write_pages() 859 ib->ptr[ib->length_dw++] = ndw; in cik_sdma_vm_write_pages() 860 for (; ndw > 0; ndw -= 2, --count, pe += 8) { in cik_sdma_vm_write_pages() 896 unsigned ndw; in cik_sdma_vm_set_pages() local 899 ndw = count; in cik_sdma_vm_set_pages() 900 if (ndw > 0x7FFFF) in cik_sdma_vm_set_pages() 901 ndw = 0x7FFFF; in cik_sdma_vm_set_pages() [all …]
|
| H A D | radeon_vm.c | 644 unsigned count = 0, pt_idx, ndw; in radeon_vm_update_page_directory() local 649 ndw = 64; in radeon_vm_update_page_directory() 652 ndw += vm->max_pde_used * 6; in radeon_vm_update_page_directory() 655 if (ndw > 0xfffff) in radeon_vm_update_page_directory() 658 r = radeon_ib_get(rdev, R600_RING_TYPE_DMA_INDEX, &ib, NULL, ndw * 4); in radeon_vm_update_page_directory() 702 WARN_ON(ib.length_dw > ndw); in radeon_vm_update_page_directory() 914 unsigned nptes, ncmds, ndw; in radeon_vm_bo_update() local 970 ndw = 64; in radeon_vm_bo_update() 975 ndw += ncmds * 7; in radeon_vm_bo_update() 979 ndw += ncmds * 4; in radeon_vm_bo_update() [all …]
|
| H A D | r100.c | 914 unsigned ndw; in r100_copy_blit() local 926 ndw = 64 + (10 * num_loops); in r100_copy_blit() 927 r = radeon_ring_lock(rdev, ring, ndw); in r100_copy_blit() 929 DRM_ERROR("radeon: moving bo (%d) asking for %u dw.\n", r, ndw); in r100_copy_blit()
|
| /linux/drivers/gpu/drm/amd/amdgpu/ |
| H A D | amdgpu_gmc.c | 782 unsigned int ndw; in amdgpu_gmc_flush_gpu_tlb_pasid() local 816 ndw = kiq->pmf->invalidate_tlbs_size + 8; in amdgpu_gmc_flush_gpu_tlb_pasid() 819 ndw += kiq->pmf->invalidate_tlbs_size; in amdgpu_gmc_flush_gpu_tlb_pasid() 822 ndw += kiq->pmf->invalidate_tlbs_size; in amdgpu_gmc_flush_gpu_tlb_pasid() 825 r = amdgpu_ring_alloc(ring, ndw); in amdgpu_gmc_flush_gpu_tlb_pasid()
|
| H A D | sdma_v7_0.c | 1093 unsigned ndw = count * 2; in sdma_v7_0_vm_write_pte() local 1099 ib->ptr[ib->length_dw++] = ndw - 1; in sdma_v7_0_vm_write_pte() 1100 for (; ndw > 0; ndw -= 2) { in sdma_v7_0_vm_write_pte()
|
| H A D | sdma_v6_0.c | 1075 unsigned ndw = count * 2; in sdma_v6_0_vm_write_pte() local 1081 ib->ptr[ib->length_dw++] = ndw - 1; in sdma_v6_0_vm_write_pte() 1082 for (; ndw > 0; ndw -= 2) { in sdma_v6_0_vm_write_pte()
|
| H A D | sdma_v7_1.c | 1081 unsigned ndw = count * 2; in sdma_v7_1_vm_write_pte() local 1087 ib->ptr[ib->length_dw++] = ndw - 1; in sdma_v7_1_vm_write_pte() 1088 for (; ndw > 0; ndw -= 2) { in sdma_v7_1_vm_write_pte()
|
| H A D | sdma_v5_0.c | 1185 unsigned ndw = count * 2; in sdma_v5_0_vm_write_pte() local 1191 ib->ptr[ib->length_dw++] = ndw - 1; in sdma_v5_0_vm_write_pte() 1192 for (; ndw > 0; ndw -= 2) { in sdma_v5_0_vm_write_pte()
|
| H A D | sdma_v5_2.c | 1084 unsigned ndw = count * 2; in sdma_v5_2_vm_write_pte() local 1090 ib->ptr[ib->length_dw++] = ndw - 1; in sdma_v5_2_vm_write_pte() 1091 for (; ndw > 0; ndw -= 2) { in sdma_v5_2_vm_write_pte()
|
| H A D | sdma_v4_4_2.c | 1211 unsigned ndw = count * 2; in sdma_v4_4_2_vm_write_pte() local 1217 ib->ptr[ib->length_dw++] = ndw - 1; in sdma_v4_4_2_vm_write_pte() 1218 for (; ndw > 0; ndw -= 2) { in sdma_v4_4_2_vm_write_pte()
|