Home
last modified time | relevance | path

Searched refs:ndw (Results 1 – 6 of 6) sorted by relevance

/drivers/gpu/drm/radeon/
Dradeon_ring.c396 int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw) in radeon_ring_alloc() argument
401 if (ndw > (ring->ring_size / 4)) in radeon_ring_alloc()
412 ndw = (ndw + ring->align_mask) & ~ring->align_mask; in radeon_ring_alloc()
413 while (ndw > (ring->ring_free_dw - 1)) { in radeon_ring_alloc()
415 if (ndw < ring->ring_free_dw) { in radeon_ring_alloc()
422 ring->count_dw = ndw; in radeon_ring_alloc()
438 int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw) in radeon_ring_lock() argument
443 r = radeon_ring_alloc(rdev, ring, ndw); in radeon_ring_lock()
Dni.c2340 unsigned ndw; in cayman_vm_set_page() local
2344 ndw = 1 + count * 2; in cayman_vm_set_page()
2345 if (ndw > 0x3FFF) in cayman_vm_set_page()
2346 ndw = 0x3FFF; in cayman_vm_set_page()
2348 ib->ptr[ib->length_dw++] = PACKET3(PACKET3_ME_WRITE, ndw); in cayman_vm_set_page()
2351 for (; ndw > 1; ndw -= 2, --count, pe += 8) { in cayman_vm_set_page()
2370 ndw = count * 2; in cayman_vm_set_page()
2371 if (ndw > 0xFFFFE) in cayman_vm_set_page()
2372 ndw = 0xFFFFE; in cayman_vm_set_page()
2375 ib->ptr[ib->length_dw++] = DMA_PACKET(DMA_PACKET_WRITE, 0, 0, ndw); in cayman_vm_set_page()
[all …]
Dradeon_gart.c1088 unsigned nptes, npdes, ndw; in radeon_vm_bo_update_pte() local
1135 ndw = 64; in radeon_vm_bo_update_pte()
1139 ndw += (nptes >> 11) * 4; in radeon_vm_bo_update_pte()
1143 ndw += (nptes >> RADEON_VM_BLOCK_SIZE) * 4; in radeon_vm_bo_update_pte()
1146 ndw += nptes * 2; in radeon_vm_bo_update_pte()
1149 ndw += (npdes >> 11) * 4; in radeon_vm_bo_update_pte()
1152 ndw += npdes * 2; in radeon_vm_bo_update_pte()
1155 if (ndw > 0xfffff) in radeon_vm_bo_update_pte()
1158 r = radeon_ib_get(rdev, ridx, &ib, NULL, ndw * 4); in radeon_vm_bo_update_pte()
Dsi.c4130 unsigned ndw; in si_vm_set_page() local
4134 ndw = 2 + count * 2; in si_vm_set_page()
4135 if (ndw > 0x3FFE) in si_vm_set_page()
4136 ndw = 0x3FFE; in si_vm_set_page()
4138 ib->ptr[ib->length_dw++] = PACKET3(PACKET3_WRITE_DATA, ndw); in si_vm_set_page()
4143 for (; ndw > 2; ndw -= 2, --count, pe += 8) { in si_vm_set_page()
4162 ndw = count * 2; in si_vm_set_page()
4163 if (ndw > 0xFFFFE) in si_vm_set_page()
4164 ndw = 0xFFFFE; in si_vm_set_page()
4167 ib->ptr[ib->length_dw++] = DMA_PACKET(DMA_PACKET_WRITE, 0, 0, 0, ndw); in si_vm_set_page()
[all …]
Dr100.c893 unsigned ndw; in r100_copy_blit() local
905 ndw = 64 + (10 * num_loops); in r100_copy_blit()
906 r = radeon_ring_lock(rdev, ring, ndw); in r100_copy_blit()
908 DRM_ERROR("radeon: moving bo (%d) asking for %u dw.\n", r, ndw); in r100_copy_blit()
Dradeon.h806 int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw);
807 int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *cp, unsigned ndw);