Lines Matching defs:ndw
103 * @ndw: number of dwords to allocate in the ring buffer
105 * Allocate @ndw dwords in the ring buffer (all asics).
108 int radeon_ring_alloc(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw)
113 if (ndw > (ring->ring_size / 4))
118 ndw = (ndw + ring->align_mask) & ~ring->align_mask;
119 while (ndw > (ring->ring_free_dw - 1)) {
121 if (ndw < ring->ring_free_dw) {
128 ring->count_dw = ndw;
138 * @ndw: number of dwords to allocate in the ring buffer
140 * Lock the ring and allocate @ndw dwords in the ring buffer
144 int radeon_ring_lock(struct radeon_device *rdev, struct radeon_ring *ring, unsigned ndw)
149 r = radeon_ring_alloc(rdev, ring, ndw);