Lines Matching defs:rptr
52 ih->rptr = 0;
61 /* add 8 bytes for the rptr/wptr shadows and
124 /* add 8 bytes for the rptr/wptr shadows and
162 if (wptr != READ_ONCE(ih->rptr)) {
167 wptr, ih->rptr);
196 ih->rptr == amdgpu_ih_get_wptr(adev, ih), timeout);
220 DRM_DEBUG("%s: rptr %d, wptr %d\n", __func__, ih->rptr, wptr);
225 while (ih->rptr != wptr && --count) {
227 ih->rptr &= ih->ptr_mask;
235 if (wptr != ih->rptr)
248 * Decodes the interrupt vector at the current rptr
256 /* wptr/rptr are in bytes! */
257 u32 ring_index = ih->rptr >> 2;
283 /* wptr/rptr are in bytes! */
284 ih->rptr += 32;
287 uint64_t amdgpu_ih_decode_iv_ts_helper(struct amdgpu_ih_ring *ih, u32 rptr,
294 rptr += iv_size * offset;
295 ring_index = (rptr & ih->ptr_mask) >> 2;