Lines Matching refs:wptr
355 * Get the current wptr from the hardware (VI+).
360 u32 wptr;
364 wptr = *ring->wptr_cpu_addr >> 2;
366 wptr = RREG32(mmSDMA0_GFX_RB_WPTR + sdma_offsets[ring->me]) >> 2;
369 return wptr;
377 * Write the wptr back to the hardware (VI+).
386 WRITE_ONCE(*wb, ring->wptr << 2);
387 WDOORBELL32(ring->doorbell_index, ring->wptr << 2);
391 WRITE_ONCE(*wb, ring->wptr << 2);
393 WREG32(mmSDMA0_GFX_RB_WPTR + sdma_offsets[ring->me], ring->wptr << 2);
428 sdma_v3_0_ring_insert_nop(ring, (2 - lower_32_bits(ring->wptr)) & 7);
675 ring->wptr = 0;
703 /* setup the wptr shadow polling */
712 /*wptr polling is not enogh fast, directly clean the wptr register */