Lines Matching refs:buf_len
306 u32 cmd_id, buf_len; in ath11k_tm_cmd_wmi() local
324 buf_len = nla_len(tb[ATH11K_TM_ATTR_DATA]); in ath11k_tm_cmd_wmi()
325 if (!buf_len) { in ath11k_tm_cmd_wmi()
336 if (buf_len < sizeof(struct wmi_tlv) + sizeof(u32)) { in ath11k_tm_cmd_wmi()
363 cmd_id, buf_len); in ath11k_tm_cmd_wmi()
365 ath11k_dbg_dump(ar->ab, ATH11K_DBG_TESTMODE, NULL, "", buf, buf_len); in ath11k_tm_cmd_wmi()
367 skb = ath11k_wmi_alloc_skb(wmi->wmi_ab, buf_len); in ath11k_tm_cmd_wmi()
373 memcpy(skb->data, buf, buf_len); in ath11k_tm_cmd_wmi()
395 u32 cmd_id, buf_len, hdr_info; in ath11k_tm_cmd_wmi_ftm() local
418 buf_len = nla_len(tb[ATH11K_TM_ATTR_DATA]); in ath11k_tm_cmd_wmi_ftm()
423 cmd_id, buf_len); in ath11k_tm_cmd_wmi_ftm()
424 ath11k_dbg_dump(ar->ab, ATH11K_DBG_TESTMODE, NULL, "", buf, buf_len); in ath11k_tm_cmd_wmi_ftm()
427 total_bytes = buf_len; in ath11k_tm_cmd_wmi_ftm()
430 if (buf_len - (num_segments * MAX_WMI_UTF_LEN)) in ath11k_tm_cmd_wmi_ftm()
433 while (buf_len) { in ath11k_tm_cmd_wmi_ftm()
434 chunk_len = min_t(u16, buf_len, MAX_WMI_UTF_LEN); in ath11k_tm_cmd_wmi_ftm()
463 buf_len -= chunk_len; in ath11k_tm_cmd_wmi_ftm()