Lines Matching refs:offset
118 u32 offset; in ath6kl_bmi_read() local
143 offset = 0; in ath6kl_bmi_read()
144 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_read()
145 offset += sizeof(cid); in ath6kl_bmi_read()
146 memcpy(&(ar->bmi.cmd_buf[offset]), &addr, sizeof(addr)); in ath6kl_bmi_read()
147 offset += sizeof(addr); in ath6kl_bmi_read()
148 memcpy(&(ar->bmi.cmd_buf[offset]), &rx_len, sizeof(rx_len)); in ath6kl_bmi_read()
149 offset += sizeof(len); in ath6kl_bmi_read()
151 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_read()
174 u32 offset; in ath6kl_bmi_write() local
215 offset = 0; in ath6kl_bmi_write()
216 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_write()
217 offset += sizeof(cid); in ath6kl_bmi_write()
218 memcpy(&(ar->bmi.cmd_buf[offset]), &addr, sizeof(addr)); in ath6kl_bmi_write()
219 offset += sizeof(addr); in ath6kl_bmi_write()
220 memcpy(&(ar->bmi.cmd_buf[offset]), &tx_len, sizeof(tx_len)); in ath6kl_bmi_write()
221 offset += sizeof(tx_len); in ath6kl_bmi_write()
222 memcpy(&(ar->bmi.cmd_buf[offset]), src, tx_len); in ath6kl_bmi_write()
223 offset += tx_len; in ath6kl_bmi_write()
225 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_write()
241 u32 offset; in ath6kl_bmi_execute() local
259 offset = 0; in ath6kl_bmi_execute()
260 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_execute()
261 offset += sizeof(cid); in ath6kl_bmi_execute()
262 memcpy(&(ar->bmi.cmd_buf[offset]), &addr, sizeof(addr)); in ath6kl_bmi_execute()
263 offset += sizeof(addr); in ath6kl_bmi_execute()
264 memcpy(&(ar->bmi.cmd_buf[offset]), param, sizeof(*param)); in ath6kl_bmi_execute()
265 offset += sizeof(*param); in ath6kl_bmi_execute()
267 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_execute()
288 u32 offset; in ath6kl_bmi_set_app_start() local
305 offset = 0; in ath6kl_bmi_set_app_start()
306 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_set_app_start()
307 offset += sizeof(cid); in ath6kl_bmi_set_app_start()
308 memcpy(&(ar->bmi.cmd_buf[offset]), &addr, sizeof(addr)); in ath6kl_bmi_set_app_start()
309 offset += sizeof(addr); in ath6kl_bmi_set_app_start()
311 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_set_app_start()
324 u32 offset; in ath6kl_bmi_reg_read() local
341 offset = 0; in ath6kl_bmi_reg_read()
342 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_reg_read()
343 offset += sizeof(cid); in ath6kl_bmi_reg_read()
344 memcpy(&(ar->bmi.cmd_buf[offset]), &addr, sizeof(addr)); in ath6kl_bmi_reg_read()
345 offset += sizeof(addr); in ath6kl_bmi_reg_read()
347 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_reg_read()
367 u32 offset; in ath6kl_bmi_reg_write() local
386 offset = 0; in ath6kl_bmi_reg_write()
387 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_reg_write()
388 offset += sizeof(cid); in ath6kl_bmi_reg_write()
389 memcpy(&(ar->bmi.cmd_buf[offset]), &addr, sizeof(addr)); in ath6kl_bmi_reg_write()
390 offset += sizeof(addr); in ath6kl_bmi_reg_write()
391 memcpy(&(ar->bmi.cmd_buf[offset]), ¶m, sizeof(param)); in ath6kl_bmi_reg_write()
392 offset += sizeof(param); in ath6kl_bmi_reg_write()
394 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_reg_write()
407 u32 offset; in ath6kl_bmi_lz_data() local
432 offset = 0; in ath6kl_bmi_lz_data()
433 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_lz_data()
434 offset += sizeof(cid); in ath6kl_bmi_lz_data()
435 memcpy(&(ar->bmi.cmd_buf[offset]), &tx_len, sizeof(tx_len)); in ath6kl_bmi_lz_data()
436 offset += sizeof(tx_len); in ath6kl_bmi_lz_data()
437 memcpy(&(ar->bmi.cmd_buf[offset]), &buf[len - len_remain], in ath6kl_bmi_lz_data()
439 offset += tx_len; in ath6kl_bmi_lz_data()
441 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_lz_data()
458 u32 offset; in ath6kl_bmi_lz_stream_start() local
477 offset = 0; in ath6kl_bmi_lz_stream_start()
478 memcpy(&(ar->bmi.cmd_buf[offset]), &cid, sizeof(cid)); in ath6kl_bmi_lz_stream_start()
479 offset += sizeof(cid); in ath6kl_bmi_lz_stream_start()
480 memcpy(&(ar->bmi.cmd_buf[offset]), &addr, sizeof(addr)); in ath6kl_bmi_lz_stream_start()
481 offset += sizeof(addr); in ath6kl_bmi_lz_stream_start()
483 ret = ath6kl_hif_bmi_write(ar, ar->bmi.cmd_buf, offset); in ath6kl_bmi_lz_stream_start()