Lines Matching refs:bit_pos

233 		    uint8_t bit_pos,  in wlan_iecap_set()  argument
243 byte_cnt = bit_pos / 8; in wlan_iecap_set()
245 bit_pos = bit_pos % 8; in wlan_iecap_set()
246 fit_bits = 8 - bit_pos; in wlan_iecap_set()
247 fit_bits = (tot_bits > fit_bits) ? 8 - bit_pos : tot_bits; in wlan_iecap_set()
249 while ((bit_pos + tot_bits) > 8) { in wlan_iecap_set()
251 QDF_SET_BITS(iecap[byte_cnt], bit_pos, fit_bits, value); in wlan_iecap_set()
253 bit_pos = bit_pos + fit_bits; in wlan_iecap_set()
254 if (bit_pos == 8) { in wlan_iecap_set()
255 bit_pos = 0; in wlan_iecap_set()
259 fit_bits = 8 - bit_pos; in wlan_iecap_set()
260 fit_bits = (tot_bits > fit_bits) ? 8 - bit_pos : tot_bits; in wlan_iecap_set()
263 if ((bit_pos + tot_bits) <= 8) { in wlan_iecap_set()
266 QDF_SET_BITS(iecap[byte_cnt], bit_pos, fit_bits, shift_value); in wlan_iecap_set()
271 uint8_t bit_pos, in wlan_iecap_get() argument
281 byte_cnt = bit_pos / 8; in wlan_iecap_get()
284 bit_pos = bit_pos % 8; in wlan_iecap_get()
285 fit_bits = 8 - bit_pos; in wlan_iecap_get()
286 fit_bits = (tot_bits > fit_bits) ? 8 - bit_pos : tot_bits; in wlan_iecap_get()
288 while ((tot_bits + bit_pos) > 8) { in wlan_iecap_get()
289 val |= QDF_GET_BITS(temp_val, bit_pos, fit_bits) << cur_bit_pos; in wlan_iecap_get()
291 bit_pos = bit_pos + fit_bits; in wlan_iecap_get()
292 if (bit_pos == 8) { in wlan_iecap_get()
293 bit_pos = 0; in wlan_iecap_get()
299 fit_bits = 8 - bit_pos; in wlan_iecap_get()
300 fit_bits = (tot_bits > fit_bits) ? 8 - bit_pos : tot_bits; in wlan_iecap_get()
303 if ((bit_pos + tot_bits) <= 8) in wlan_iecap_get()
304 val |= QDF_GET_BITS(temp_val, bit_pos, fit_bits) << cur_bit_pos; in wlan_iecap_get()