Lines Matching refs:wptr
2640 WREG32(R600_CP_RB_WPTR, ring->wptr);
2744 ring->wptr = 0;
2745 WREG32(CP_RB_WPTR, ring->wptr);
3372 next_rptr = ring->wptr + 3 + 4;
3378 next_rptr = ring->wptr + 5 + 4;
3462 * increments the rptr. When the rptr catches up with the wptr, all the
3611 /* set rptr, wptr to 0 */
3723 /* set rptr, wptr to 0 */
4039 u32 wptr, tmp;
4042 wptr = le32_to_cpu(rdev->wb.wb[R600_WB_IH_WPTR_OFFSET/4]);
4044 wptr = RREG32(IH_RB_WPTR);
4046 if (wptr & RB_OVERFLOW) {
4047 wptr &= ~RB_OVERFLOW;
4049 * from the last not overwritten vector (wptr + 16). Hopefully
4053 wptr, rdev->ih.rptr, (wptr + 16) & rdev->ih.ptr_mask);
4054 rdev->ih.rptr = (wptr + 16) & rdev->ih.ptr_mask;
4059 return (wptr & rdev->ih.ptr_mask);
4094 u32 wptr;
4109 wptr = r600_get_ih_wptr(rdev);
4117 DRM_DEBUG("r600_irq_process start: rptr %d, wptr %d\n", rptr, wptr);
4119 /* Order reading of wptr vs. reading of IH ring data */
4125 while (rptr != wptr) {
4126 /* wptr/rptr are in bytes! */
4319 /* wptr/rptr are in bytes! */
4333 /* make sure wptr hasn't changed while processing */
4334 wptr = r600_get_ih_wptr(rdev);
4335 if (wptr != rptr)