Lines Matching refs:available
70 u16 available; in brcmf_commonring_write_available() local
75 available = commonring->depth - commonring->w_ptr + in brcmf_commonring_write_available()
78 available = commonring->r_ptr - commonring->w_ptr; in brcmf_commonring_write_available()
80 if (available > 1) { in brcmf_commonring_write_available()
83 if (available > commonring->depth / 8) { in brcmf_commonring_write_available()
111 u16 available; in brcmf_commonring_reserve_for_write() local
116 available = commonring->depth - commonring->w_ptr + in brcmf_commonring_reserve_for_write()
119 available = commonring->r_ptr - commonring->w_ptr; in brcmf_commonring_reserve_for_write()
121 if (available > 1) { in brcmf_commonring_reserve_for_write()
147 u16 available; in brcmf_commonring_reserve_for_write_multiple() local
152 available = commonring->depth - commonring->w_ptr + in brcmf_commonring_reserve_for_write_multiple()
155 available = commonring->r_ptr - commonring->w_ptr; in brcmf_commonring_reserve_for_write_multiple()
157 if (available > 1) { in brcmf_commonring_reserve_for_write_multiple()
160 *alloced = min_t(u16, n_items, available - 1); in brcmf_commonring_reserve_for_write_multiple()