Lines Matching refs:len_remain
119 u32 len_remain, rx_len; in ath6kl_bmi_read() local
138 len_remain = len; in ath6kl_bmi_read()
140 while (len_remain) { in ath6kl_bmi_read()
141 rx_len = (len_remain < ar->bmi.max_data_size) ? in ath6kl_bmi_read()
142 len_remain : ar->bmi.max_data_size; in ath6kl_bmi_read()
163 memcpy(&buf[len - len_remain], ar->bmi.cmd_buf, rx_len); in ath6kl_bmi_read()
164 len_remain -= rx_len; addr += rx_len; in ath6kl_bmi_read()
175 u32 len_remain, tx_len; in ath6kl_bmi_write() local
198 len_remain = len; in ath6kl_bmi_write()
199 while (len_remain) { in ath6kl_bmi_write()
200 src = &buf[len - len_remain]; in ath6kl_bmi_write()
202 if (len_remain < (ar->bmi.max_data_size - header)) { in ath6kl_bmi_write()
203 if (len_remain & 3) { in ath6kl_bmi_write()
205 len_remain = len_remain + in ath6kl_bmi_write()
206 (4 - (len_remain & 3)); in ath6kl_bmi_write()
207 memcpy(aligned_buf, src, len_remain); in ath6kl_bmi_write()
210 tx_len = len_remain; in ath6kl_bmi_write()
231 len_remain -= tx_len; addr += tx_len; in ath6kl_bmi_write()
408 u32 len_remain, tx_len; in ath6kl_bmi_lz_data() local
427 len_remain = len; in ath6kl_bmi_lz_data()
428 while (len_remain) { in ath6kl_bmi_lz_data()
429 tx_len = (len_remain < (ar->bmi.max_data_size - header)) ? in ath6kl_bmi_lz_data()
430 len_remain : (ar->bmi.max_data_size - header); in ath6kl_bmi_lz_data()
437 memcpy(&(ar->bmi.cmd_buf[offset]), &buf[len - len_remain], in ath6kl_bmi_lz_data()
448 len_remain -= tx_len; in ath6kl_bmi_lz_data()