Lines Matching refs:wptr
132 /* set rptr, wptr to 0 */
250 /* set rptr, wptr to 0 */
375 * vega20_ih_get_wptr - get the IH ring buffer wptr
380 * Get the IH ring buffer wptr from either the register
383 * Returns the value of the wptr.
388 u32 wptr, tmp;
395 * update wptr and return.
397 wptr = le32_to_cpu(*ih->wptr_cpu);
399 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
406 wptr = RREG32_NO_KIQ(ih_regs->ih_rb_wptr);
407 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
410 wptr = REG_SET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW, 0);
413 * from the last not overwritten vector (wptr + 32). Hopefully
416 tmp = (wptr + 32) & ih->ptr_mask;
419 wptr, ih->rptr, tmp);
433 return (wptr & ih->ptr_mask);