Lines Matching refs:ndw
104 * @ndw: number of dwords to allocate in the ring buffer
106 * Allocate @ndw dwords in the ring buffer (all asics).
109 int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw)
114 if (ndw > (ring->ring_size / 4))
119 ndw = (ndw + ring->align_mask) & ~ring->align_mask;
120 while (ndw > (ring->ring_free_dw - 1)) {
122 if (ndw < ring->ring_free_dw) {
129 ring->count_dw = ndw;
139 * @ndw: number of dwords to allocate in the ring buffer
141 * Lock the ring and allocate @ndw dwords in the ring buffer
145 int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw)
150 r = radeon_ring_alloc(rdev, ring, ndw);