Lines Matching full:length
71 ath10k_warn(ar, "invalid get_target_info response length (%d)\n", in ath10k_bmi_get_target_info()
118 /* Step 1b: Read the version length */ in ath10k_bmi_get_target_info_sdio()
130 /* Step 2: Check the target info length */ in ath10k_bmi_get_target_info_sdio()
154 u32 address, void *buffer, u32 length) in ath10k_bmi_read_memory() argument
162 ath10k_dbg(ar, ATH10K_DBG_BMI, "bmi read address 0x%x length %d\n", in ath10k_bmi_read_memory()
163 address, length); in ath10k_bmi_read_memory()
170 while (length) { in ath10k_bmi_read_memory()
171 rxlen = min_t(u32, length, BMI_MAX_DATA_SIZE); in ath10k_bmi_read_memory()
188 length -= rxlen; in ath10k_bmi_read_memory()
259 u32 address, const void *buffer, u32 length) in ath10k_bmi_write_memory() argument
266 ath10k_dbg(ar, ATH10K_DBG_BMI, "bmi write address 0x%x length %d\n", in ath10k_bmi_write_memory()
267 address, length); in ath10k_bmi_write_memory()
274 while (length) { in ath10k_bmi_write_memory()
275 txlen = min(length, BMI_MAX_DATA_SIZE - hdrlen); in ath10k_bmi_write_memory()
293 /* fixup roundup() so `length` zeroes out for last chunk */ in ath10k_bmi_write_memory()
294 txlen = min(txlen, length); in ath10k_bmi_write_memory()
298 length -= txlen; in ath10k_bmi_write_memory()
331 ath10k_warn(ar, "invalid execute response length (%d)\n", in ath10k_bmi_execute()
343 static int ath10k_bmi_lz_data_large(struct ath10k *ar, const void *buffer, u32 length) in ath10k_bmi_lz_data_large() argument
351 ath10k_dbg(ar, ATH10K_DBG_BMI, "large bmi lz data buffer 0x%pK length %d\n", in ath10k_bmi_lz_data_large()
352 buffer, length); in ath10k_bmi_lz_data_large()
364 while (length) { in ath10k_bmi_lz_data_large()
365 txlen = min(length, BMI_MAX_LARGE_DATA_SIZE - hdrlen); in ath10k_bmi_lz_data_large()
382 length -= txlen; in ath10k_bmi_lz_data_large()
390 int ath10k_bmi_lz_data(struct ath10k *ar, const void *buffer, u32 length) in ath10k_bmi_lz_data() argument
397 ath10k_dbg(ar, ATH10K_DBG_BMI, "bmi lz data buffer 0x%pK length %d\n", in ath10k_bmi_lz_data()
398 buffer, length); in ath10k_bmi_lz_data()
405 while (length) { in ath10k_bmi_lz_data()
406 txlen = min(length, BMI_MAX_DATA_SIZE - hdrlen); in ath10k_bmi_lz_data()
422 length -= txlen; in ath10k_bmi_lz_data()
455 u32 address, const void *buffer, u32 length) in ath10k_bmi_fast_download() argument
458 u32 head_len = rounddown(length, 4); in ath10k_bmi_fast_download()
459 u32 trailer_len = length - head_len; in ath10k_bmi_fast_download()
463 "bmi fast download address 0x%x buffer 0x%pK length %d\n", in ath10k_bmi_fast_download()
464 address, buffer, length); in ath10k_bmi_fast_download()