Lines Matching defs:ndw
102 * @ndw: number of dwords to allocate in the ring buffer
104 * Allocate @ndw dwords in the ring buffer (all asics).
107 int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw)
112 if (ndw > (ring->ring_size / 4))
117 ndw = (ndw + ring->align_mask) & ~ring->align_mask;
118 while (ndw > (ring->ring_free_dw - 1)) {
120 if (ndw < ring->ring_free_dw) {
127 ring->count_dw = ndw;
137 * @ndw: number of dwords to allocate in the ring buffer
139 * Lock the ring and allocate @ndw dwords in the ring buffer
143 int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw)
148 r = radeon_ring_alloc(rdev, ring, ndw);