Lines Matching refs:r_ptr
41 commonring->r_ptr = 0; in brcmf_commonring_config()
74 if (commonring->r_ptr <= commonring->w_ptr) in brcmf_commonring_write_available()
76 commonring->r_ptr; in brcmf_commonring_write_available()
78 available = commonring->r_ptr - commonring->w_ptr; in brcmf_commonring_write_available()
115 if (commonring->r_ptr <= commonring->w_ptr) in brcmf_commonring_reserve_for_write()
117 commonring->r_ptr; in brcmf_commonring_reserve_for_write()
119 available = commonring->r_ptr - commonring->w_ptr; in brcmf_commonring_reserve_for_write()
151 if (commonring->r_ptr <= commonring->w_ptr) in brcmf_commonring_reserve_for_write_multiple()
153 commonring->r_ptr; in brcmf_commonring_reserve_for_write_multiple()
155 available = commonring->r_ptr - commonring->w_ptr; in brcmf_commonring_reserve_for_write_multiple()
219 *n_items = (commonring->w_ptr >= commonring->r_ptr) ? in brcmf_commonring_get_read_ptr()
220 (commonring->w_ptr - commonring->r_ptr) : in brcmf_commonring_get_read_ptr()
221 (commonring->depth - commonring->r_ptr); in brcmf_commonring_get_read_ptr()
227 (commonring->r_ptr * commonring->item_len); in brcmf_commonring_get_read_ptr()
234 commonring->r_ptr += n_items; in brcmf_commonring_read_complete()
235 if (commonring->r_ptr == commonring->depth) in brcmf_commonring_read_complete()
236 commonring->r_ptr = 0; in brcmf_commonring_read_complete()