Lines Matching refs:wptr
42 * host is currently reading, and a wptr (write pointer)
46 * wptr. When there is an interrupt, the host then starts
84 /* set rptr, wptr to 0 */
141 /* set rptr, wptr to 0 */
181 * tonga_ih_get_wptr - get the IH ring buffer wptr
184 * @ih: IH ring buffer to fetch wptr
186 * Get the IH ring buffer wptr from either the register
190 * Returns the value of the wptr.
195 u32 wptr, tmp;
197 wptr = le32_to_cpu(*ih->wptr_cpu);
199 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
203 wptr = RREG32(mmIH_RB_WPTR);
205 if (!REG_GET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW))
208 wptr = REG_SET_FIELD(wptr, IH_RB_WPTR, RB_OVERFLOW, 0);
211 * from the last not overwritten vector (wptr + 16). Hopefully
216 wptr, ih->rptr, (wptr + 16) & ih->ptr_mask);
217 ih->rptr = (wptr + 16) & ih->ptr_mask;
229 return (wptr & ih->ptr_mask);
246 /* wptr/rptr are in bytes! */
262 /* wptr/rptr are in bytes! */