Lines Matching refs:wptr
123 /* set rptr, wptr to 0 */
241 /* set rptr, wptr to 0 */
325 * vega10_ih_get_wptr - get the IH ring buffer wptr
328 * @ih: IH ring buffer to fetch wptr
330 * Get the IH ring buffer wptr from either the register
333 * Returns the value of the wptr.
338 u32 wptr, tmp;
345 * update wptr and return.
347 wptr = le32_to_cpu(*ih->wptr_cpu);
349 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
356 wptr = RREG32_NO_KIQ(ih_regs->ih_rb_wptr);
357 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
360 wptr = REG_SET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW, 0);
363 * from the last not overwritten vector (wptr + 32). Hopefully
366 tmp = (wptr + 32) & ih->ptr_mask;
369 wptr, ih->rptr, tmp);
383 return (wptr & ih->ptr_mask);