/linux-6.3-rc2/drivers/gpu/drm/radeon/ |
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() 324 ndw = 0xFFFFE; 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() 359 unsigned ndw; in cayman_dma_vm_write_pages() local 364 ndw = 0xFFFFE; in cayman_dma_vm_write_pages() 371 for (; ndw > 0; ndw -= 2, --count, pe += 8) { in cayman_dma_vm_write_pages() 407 unsigned ndw; in cayman_dma_vm_set_pages() local 412 ndw = 0xFFFFE; in cayman_dma_vm_set_pages() [all …]
|
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() 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() 180 pe += ndw * 4; in si_dma_vm_set_pages() [all …]
|
A D | radeon_ring.c | 107 int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw) in radeon_ring_alloc() argument 112 if (ndw > (ring->ring_size / 4)) in radeon_ring_alloc() 117 ndw = (ndw + ring->align_mask) & ~ring->align_mask; in radeon_ring_alloc() 118 while (ndw > (ring->ring_free_dw - 1)) { in radeon_ring_alloc() 120 if (ndw < ring->ring_free_dw) { in radeon_ring_alloc() 127 ring->count_dw = ndw; in radeon_ring_alloc() 143 int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw) in radeon_ring_lock() argument 148 r = radeon_ring_alloc(rdev, ring, ndw); in radeon_ring_lock()
|
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() 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() 920 pe += ndw * 8; in cik_sdma_vm_set_pages() [all …]
|
A D | radeon_vm.c | 652 ndw = 64; in radeon_vm_update_page_directory() 655 ndw += vm->max_pde_used * 6; in radeon_vm_update_page_directory() 658 if (ndw > 0xfffff) in radeon_vm_update_page_directory() 917 unsigned nptes, ncmds, ndw; in radeon_vm_bo_update() local 973 ndw = 64; in radeon_vm_bo_update() 978 ndw += ncmds * 7; in radeon_vm_bo_update() 982 ndw += ncmds * 4; in radeon_vm_bo_update() 985 ndw += nptes * 2; in radeon_vm_bo_update() 989 ndw += ncmds * 10; in radeon_vm_bo_update() 992 ndw += 2 * 10; in radeon_vm_bo_update() [all …]
|
A D | r100.c | 912 unsigned ndw; in r100_copy_blit() local 924 ndw = 64 + (10 * num_loops); in r100_copy_blit() 925 r = radeon_ring_lock(rdev, ring, ndw); in r100_copy_blit() 927 DRM_ERROR("radeon: moving bo (%d) asking for %u dw.\n", r, ndw); in r100_copy_blit()
|
A D | radeon.h | 1016 int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw); 1017 int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw);
|
/linux-6.3-rc2/drivers/gpu/drm/amd/amdgpu/ |
A D | amdgpu_vm_sdma.c | 58 unsigned int ndw; in amdgpu_vm_sdma_alloc_job() local 62 ndw = AMDGPU_VM_SDMA_MIN_NUM_DW; in amdgpu_vm_sdma_alloc_job() 64 ndw += count * 2; in amdgpu_vm_sdma_alloc_job() 65 ndw = min(ndw, AMDGPU_VM_SDMA_MAX_NUM_DW); in amdgpu_vm_sdma_alloc_job() 68 ndw * 4, pool, &p->job); in amdgpu_vm_sdma_alloc_job() 72 p->num_dw_left = ndw; in amdgpu_vm_sdma_alloc_job() 233 unsigned int i, ndw, nptes; in amdgpu_vm_sdma_update() local 252 ndw = p->num_dw_left; in amdgpu_vm_sdma_update() 255 if (ndw < 32) { in amdgpu_vm_sdma_update() 280 ndw -= 7; in amdgpu_vm_sdma_update() [all …]
|
A D | si_dma.c | 342 unsigned ndw = count * 2; in si_dma_vm_write_pte() local 344 ib->ptr[ib->length_dw++] = DMA_PACKET(DMA_PACKET_WRITE, 0, 0, 0, ndw); in si_dma_vm_write_pte() 347 for (; ndw > 0; ndw -= 2) { in si_dma_vm_write_pte() 372 unsigned ndw; in si_dma_vm_set_pte_pde() local 375 ndw = count * 2; in si_dma_vm_set_pte_pde() 376 if (ndw > 0xFFFFE) in si_dma_vm_set_pte_pde() 377 ndw = 0xFFFFE; in si_dma_vm_set_pte_pde() 385 ib->ptr[ib->length_dw++] = DMA_PTE_PDE_PACKET(ndw); in si_dma_vm_set_pte_pde() 394 pe += ndw * 4; in si_dma_vm_set_pte_pde() 395 addr += (ndw / 2) * incr; in si_dma_vm_set_pte_pde() [all …]
|
A D | amdgpu_ring.c | 61 int amdgpu_ring_alloc(struct amdgpu_ring *ring, unsigned ndw) in amdgpu_ring_alloc() argument 65 ndw = (ndw + ring->funcs->align_mask) & ~ring->funcs->align_mask; in amdgpu_ring_alloc() 70 if (WARN_ON_ONCE(ndw > ring->max_dw)) in amdgpu_ring_alloc() 73 ring->count_dw = ndw; in amdgpu_ring_alloc()
|
A D | sdma_v2_4.c | 690 unsigned ndw = count * 2; in sdma_v2_4_vm_write_pte() local 696 ib->ptr[ib->length_dw++] = ndw; in sdma_v2_4_vm_write_pte() 697 for (; ndw > 0; ndw -= 2) { in sdma_v2_4_vm_write_pte()
|
A D | cik_sdma.c | 753 unsigned ndw = count * 2; in cik_sdma_vm_write_pte() local 759 ib->ptr[ib->length_dw++] = ndw; in cik_sdma_vm_write_pte() 760 for (; ndw > 0; ndw -= 2) { in cik_sdma_vm_write_pte()
|
A D | sdma_v3_0.c | 961 unsigned ndw = count * 2; in sdma_v3_0_vm_write_pte() local 967 ib->ptr[ib->length_dw++] = ndw; in sdma_v3_0_vm_write_pte() 968 for (; ndw > 0; ndw -= 2) { in sdma_v3_0_vm_write_pte()
|
A D | sdma_v6_0.c | 1073 unsigned ndw = count * 2; in sdma_v6_0_vm_write_pte() local 1079 ib->ptr[ib->length_dw++] = ndw - 1; in sdma_v6_0_vm_write_pte() 1080 for (; ndw > 0; ndw -= 2) { in sdma_v6_0_vm_write_pte()
|
A D | mes_v10_1.c | 93 int ndw = size / 4; in mes_v10_1_submit_pkt_and_poll_completion() local 104 if (amdgpu_ring_alloc(ring, ndw)) { in mes_v10_1_submit_pkt_and_poll_completion() 113 amdgpu_ring_write_multiple(ring, pkt, ndw); in mes_v10_1_submit_pkt_and_poll_completion()
|
A D | sdma_v5_2.c | 1031 unsigned ndw = count * 2; in sdma_v5_2_vm_write_pte() local 1037 ib->ptr[ib->length_dw++] = ndw - 1; in sdma_v5_2_vm_write_pte() 1038 for (; ndw > 0; ndw -= 2) { in sdma_v5_2_vm_write_pte()
|
A D | sdma_v5_0.c | 1196 unsigned ndw = count * 2; in sdma_v5_0_vm_write_pte() local 1202 ib->ptr[ib->length_dw++] = ndw - 1; in sdma_v5_0_vm_write_pte() 1203 for (; ndw > 0; ndw -= 2) { in sdma_v5_0_vm_write_pte()
|
A D | mes_v11_0.c | 96 int ndw = size / 4; in mes_v11_0_submit_pkt_and_poll_completion() local 114 if (amdgpu_ring_alloc(ring, ndw)) { in mes_v11_0_submit_pkt_and_poll_completion() 123 amdgpu_ring_write_multiple(ring, pkt, ndw); in mes_v11_0_submit_pkt_and_poll_completion()
|
A D | gmc_v9_0.c | 932 unsigned int ndw = kiq->pmf->invalidate_tlbs_size + 8; in gmc_v9_0_flush_gpu_tlb_pasid() local 935 ndw += kiq->pmf->invalidate_tlbs_size; in gmc_v9_0_flush_gpu_tlb_pasid() 939 amdgpu_ring_alloc(ring, ndw); in gmc_v9_0_flush_gpu_tlb_pasid()
|
A D | amdgpu_ring.h | 320 int amdgpu_ring_alloc(struct amdgpu_ring *ring, unsigned ndw);
|
A D | sdma_v4_0.c | 1582 unsigned ndw = count * 2; in sdma_v4_0_vm_write_pte() local 1588 ib->ptr[ib->length_dw++] = ndw - 1; in sdma_v4_0_vm_write_pte() 1589 for (; ndw > 0; ndw -= 2) { in sdma_v4_0_vm_write_pte()
|
/linux-6.3-rc2/drivers/crypto/aspeed/ |
A D | aspeed-acry.c | 256 int nbits, ndw; in aspeed_acry_rsa_ctx_copy() local 276 ndw = DIV_ROUND_UP(nbytes, BYTES_PER_DWORD); in aspeed_acry_rsa_ctx_copy() 282 for (j = ndw; j > 0; j--) { in aspeed_acry_rsa_ctx_copy()
|
/linux-6.3-rc2/kernel/rcu/ |
A D | tree_nocb.h | 1027 int ndw; in do_nocb_deferred_wakeup_common() local 1035 ndw = rdp_gp->nocb_defer_wakeup; in do_nocb_deferred_wakeup_common() 1036 ret = __wake_nocb_gp(rdp_gp, rdp, ndw == RCU_NOCB_WAKE_FORCE, flags); in do_nocb_deferred_wakeup_common()
|