Lines Matching refs:dr
295 static inline void *vio_dring_cur(struct vio_dring_state *dr) in vio_dring_cur() argument
297 return dr->base + (dr->entry_size * dr->prod); in vio_dring_cur()
300 static inline void *vio_dring_entry(struct vio_dring_state *dr, in vio_dring_entry() argument
303 return dr->base + (dr->entry_size * index); in vio_dring_entry()
306 static inline u32 vio_dring_avail(struct vio_dring_state *dr, in vio_dring_avail() argument
309 return (dr->pending - in vio_dring_avail()
310 ((dr->prod - dr->cons) & (ring_size - 1)) - 1); in vio_dring_avail()
313 static inline u32 vio_dring_next(struct vio_dring_state *dr, u32 index) in vio_dring_next() argument
315 if (++index == dr->num_entries) in vio_dring_next()
320 static inline u32 vio_dring_prev(struct vio_dring_state *dr, u32 index) in vio_dring_prev() argument
323 return dr->num_entries - 1; in vio_dring_prev()