Lines Matching defs:ndw
108 * @ndw: number of dwords to allocate in the ring buffer
110 * Allocate @ndw dwords in the ring buffer (all asics).
113 int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw)
118 if (ndw > (ring->ring_size / 4))
123 ndw = (ndw + ring->align_mask) & ~ring->align_mask;
124 while (ndw > (ring->ring_free_dw - 1)) {
126 if (ndw < ring->ring_free_dw) {
133 ring->count_dw = ndw;
143 * @ndw: number of dwords to allocate in the ring buffer
145 * Lock the ring and allocate @ndw dwords in the ring buffer
149 int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw)
154 r = radeon_ring_alloc(rdev, ring, ndw);