Lines Matching refs:txlen
263 u32 txlen; in ath10k_bmi_write_memory() local
275 txlen = min(length, BMI_MAX_DATA_SIZE - hdrlen); in ath10k_bmi_write_memory()
278 memcpy(cmd.write_mem.payload, buffer, txlen); in ath10k_bmi_write_memory()
279 txlen = roundup(txlen, 4); in ath10k_bmi_write_memory()
283 cmd.write_mem.len = __cpu_to_le32(txlen); in ath10k_bmi_write_memory()
285 ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, hdrlen + txlen, in ath10k_bmi_write_memory()
294 txlen = min(txlen, length); in ath10k_bmi_write_memory()
296 address += txlen; in ath10k_bmi_write_memory()
297 buffer += txlen; in ath10k_bmi_write_memory()
298 length -= txlen; in ath10k_bmi_write_memory()
347 u32 txlen; in ath10k_bmi_lz_data_large() local
365 txlen = min(length, BMI_MAX_LARGE_DATA_SIZE - hdrlen); in ath10k_bmi_lz_data_large()
367 WARN_ON_ONCE(txlen & 3); in ath10k_bmi_lz_data_large()
370 cmd->lz_data.len = __cpu_to_le32(txlen); in ath10k_bmi_lz_data_large()
371 memcpy(cmd->lz_data.payload, buffer, txlen); in ath10k_bmi_lz_data_large()
373 ret = ath10k_hif_exchange_bmi_msg(ar, cmd, hdrlen + txlen, in ath10k_bmi_lz_data_large()
381 buffer += txlen; in ath10k_bmi_lz_data_large()
382 length -= txlen; in ath10k_bmi_lz_data_large()
394 u32 txlen; in ath10k_bmi_lz_data() local
406 txlen = min(length, BMI_MAX_DATA_SIZE - hdrlen); in ath10k_bmi_lz_data()
408 WARN_ON_ONCE(txlen & 3); in ath10k_bmi_lz_data()
411 cmd.lz_data.len = __cpu_to_le32(txlen); in ath10k_bmi_lz_data()
412 memcpy(cmd.lz_data.payload, buffer, txlen); in ath10k_bmi_lz_data()
414 ret = ath10k_hif_exchange_bmi_msg(ar, &cmd, hdrlen + txlen, in ath10k_bmi_lz_data()
421 buffer += txlen; in ath10k_bmi_lz_data()
422 length -= txlen; in ath10k_bmi_lz_data()