Home
last modified time | relevance | path

Searched refs:tlv_len (Results 1 – 25 of 36) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/
Dpnvm.c48 u32 tlv_len, tlv_type; in iwl_pnvm_handle_section() local
53 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_handle_section()
56 if (len < tlv_len) { in iwl_pnvm_handle_section()
58 len, tlv_len); in iwl_pnvm_handle_section()
67 if (tlv_len < sizeof(__le32)) { in iwl_pnvm_handle_section()
70 sizeof(__le32), tlv_len); in iwl_pnvm_handle_section()
81 if (tlv_len < 2 * sizeof(__le16)) { in iwl_pnvm_handle_section()
84 2 * sizeof(__le16), tlv_len); in iwl_pnvm_handle_section()
104 u32 data_len = tlv_len - sizeof(*section); in iwl_pnvm_handle_section()
108 tlv_len); in iwl_pnvm_handle_section()
[all …]
/kernel/linux/linux-5.10/drivers/soc/qcom/
Dqmi_encdec.c41 encoded_bytes, tlv_len, encode_tlv, rc) \ argument
45 tlv_len += rc; \
301 u32 tlv_len; in qmi_encode() local
312 tlv_len = 0; in qmi_encode()
354 encoded_bytes, tlv_len, in qmi_encode()
380 encoded_bytes, tlv_len, in qmi_encode()
392 encoded_bytes, tlv_len, in qmi_encode()
403 encoded_bytes, tlv_len, in qmi_encode()
412 QMI_ENCDEC_ENCODE_TLV(tlv_type, tlv_len, tlv_pointer); in qmi_encode()
415 tlv_len = 0; in qmi_encode()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
Diwl-drv.c622 u32 tlv_len; in iwl_parse_tlv_firmware() local
669 tlv_len = le32_to_cpu(tlv->length); in iwl_parse_tlv_firmware()
673 if (len < tlv_len) { in iwl_parse_tlv_firmware()
675 len, tlv_len); in iwl_parse_tlv_firmware()
678 len -= ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
679 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
686 IWL_UCODE_SECTION_INST, tlv_len); in iwl_parse_tlv_firmware()
695 IWL_UCODE_SECTION_DATA, tlv_len); in iwl_parse_tlv_firmware()
704 IWL_UCODE_SECTION_INST, tlv_len); in iwl_parse_tlv_firmware()
713 IWL_UCODE_SECTION_DATA, tlv_len); in iwl_parse_tlv_firmware()
[all …]
Diwl-dbg-tlv.c235 u32 tlv_len = sizeof(*tlv) + le32_to_cpu(tlv->length); in iwl_dbg_tlv_alloc_region() local
264 *active_reg = kmemdup(tlv, tlv_len, GFP_KERNEL); in iwl_dbg_tlv_alloc_region()
457 u32 tlv_len; in iwl_dbg_tlv_parse_bin() local
463 tlv_len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_parse_bin()
465 if (len < tlv_len) { in iwl_dbg_tlv_parse_bin()
467 len, tlv_len); in iwl_dbg_tlv_parse_bin()
470 len -= ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
471 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
/kernel/linux/linux-5.10/include/uapi/linux/
Dtipc_config.h249 __be16 tlv_len; /* TLV length (descriptor + value) */ member
272 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
283 return ntohs(tlv->tlv_len); in TLV_GET_LEN()
288 tlv->tlv_len = htons(len); in TLV_SET_LEN()
304 int tlv_len; in TLV_SET() local
306 tlv_len = TLV_LENGTH(len); in TLV_SET()
309 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET()
312 memset((char *)TLV_DATA(tlv_ptr) + len, 0, TLV_SPACE(len) - tlv_len); in TLV_SET()
351 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dtipc_config.h115 __be16 tlv_len; member
127 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
136 return ntohs(tlv->tlv_len); in TLV_GET_LEN()
140 tlv->tlv_len = htons(len); in TLV_SET_LEN()
153 int tlv_len; in TLV_SET() local
154 tlv_len = TLV_LENGTH(len); in TLV_SET()
157 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET()
160 memset(TLV_DATA(tlv_ptr) + len, 0, TLV_SPACE(len) - tlv_len); in TLV_SET()
188 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxfw/
Dmlxfw_mfa2_tlv_multi.c27 u16 tlv_len; in mlxfw_mfa2_tlv_next() local
30 tlv_len = MLXFW_MFA2_TLV_TOTAL_SIZE(tlv); in mlxfw_mfa2_tlv_next()
34 tlv_len = NLA_ALIGN(tlv_len + be16_to_cpu(multi->total_len)); in mlxfw_mfa2_tlv_next()
37 next = (void *) tlv + tlv_len; in mlxfw_mfa2_tlv_next()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
Dsta_event.c422 u16 tlv_buf_left, tlv_type, tlv_len; in mwifiex_process_multi_chan_event() local
445 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_multi_chan_event()
446 if ((sizeof(struct mwifiex_ie_types_header) + tlv_len) > in mwifiex_process_multi_chan_event()
449 "tlvBufLeft=%d\n", tlv_len, tlv_buf_left); in mwifiex_process_multi_chan_event()
482 tlv_len; in mwifiex_process_multi_chan_event()
483 tlv = (void *)((u8 *)tlv + tlv_len + in mwifiex_process_multi_chan_event()
498 u16 tlv_type, tlv_len; in mwifiex_process_tx_pause_event() local
513 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_tx_pause_event()
514 if ((sizeof(struct mwifiex_ie_types_header) + tlv_len) > in mwifiex_process_tx_pause_event()
518 tlv_len, tlv_buf_left); in mwifiex_process_tx_pause_event()
[all …]
Duap_event.c31 u16 tlv_len; in mwifiex_check_uap_capabilities() local
48 tlv_len = le16_to_cpu(tlv_hdr->header.len); in mwifiex_check_uap_capabilities()
50 if (evt_len < tlv_len + sizeof(tlv_hdr->header)) in mwifiex_check_uap_capabilities()
67 wmm_param_ie->vend_hdr.len = (u8)tlv_len; in mwifiex_check_uap_capabilities()
84 curr += (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_check_uap_capabilities()
85 evt_len -= (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_check_uap_capabilities()
D11h.c211 u16 event_len, tlv_len; in mwifiex_11h_handle_chanrpt_ready() local
227 tlv_len = le16_to_cpu(rpt->header.len); in mwifiex_11h_handle_chanrpt_ready()
246 evt_buf += (tlv_len + sizeof(rpt->header)); in mwifiex_11h_handle_chanrpt_ready()
247 event_len -= (tlv_len + sizeof(rpt->header)); in mwifiex_11h_handle_chanrpt_ready()
Die.c85 s16 input_len, tlv_len; in mwifiex_update_autoindex_ies() local
96 tlv_len = le16_to_cpu(ie->ie_length); in mwifiex_update_autoindex_ies()
97 travel_len += tlv_len + MWIFIEX_IE_HDR_SIZE; in mwifiex_update_autoindex_ies()
99 if (input_len < tlv_len + MWIFIEX_IE_HDR_SIZE) in mwifiex_update_autoindex_ies()
138 input_len -= tlv_len + MWIFIEX_IE_HDR_SIZE; in mwifiex_update_autoindex_ies()
Dwmm.c930 uint16_t resp_len = le16_to_cpu(resp->size), tlv_len; in mwifiex_ret_wmm_get_status() local
945 tlv_len = le16_to_cpu(tlv_hdr->header.len); in mwifiex_ret_wmm_get_status()
947 if (resp_len < tlv_len + sizeof(tlv_hdr->header)) in mwifiex_ret_wmm_get_status()
979 wmm_param_ie->vend_hdr.len = (u8) tlv_len; in mwifiex_ret_wmm_get_status()
1003 curr += (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_ret_wmm_get_status()
1004 resp_len -= (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_ret_wmm_get_status()
D11n_rxreorder.c923 u16 tlv_type, tlv_len; in mwifiex_11n_rxba_sync_event() local
935 tlv_len = le16_to_cpu(tlv_rxba->header.len); in mwifiex_11n_rxba_sync_event()
980 tlv_buf_left -= (sizeof(*tlv_rxba) + tlv_len); in mwifiex_11n_rxba_sync_event()
981 tmp = (u8 *)tlv_rxba + tlv_len + sizeof(*tlv_rxba); in mwifiex_11n_rxba_sync_event()
Dscan.c1149 u32 tlv_len; in mwifiex_ret_802_11_scan_get_tlv_ptrs() local
1162 tlv_len = le16_to_cpu(current_tlv->header.len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1164 if (sizeof(tlv->header) + tlv_len > tlv_buf_left) { in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1176 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1183 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1199 tlv_buf_left -= (sizeof(tlv->header) + tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1202 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
Dspectral.c585 int tlv_len, bin_len, num_bins; in ath11k_spectral_process_fft() local
599 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, __le32_to_cpu(tlv->header)); in ath11k_spectral_process_fft()
601 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_fft()
602 bin_len = tlv_len - (sizeof(*fft_report) - sizeof(*tlv)); in ath11k_spectral_process_fft()
685 int tlv_len, sample_sz; in ath11k_spectral_process_data() local
724 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, in ath11k_spectral_process_data()
727 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_data()
728 if ((i + sizeof(*tlv) + tlv_len) > data_len) { in ath11k_spectral_process_data()
730 i, tlv_len, data_len); in ath11k_spectral_process_data()
744 tlv_len = sizeof(*summary) - sizeof(*tlv); in ath11k_spectral_process_data()
[all …]
Dhal_rx.c1169 u16 tlv_len; in ath11k_hal_rx_parse_mon_status() local
1175 tlv_len = FIELD_GET(HAL_TLV_HDR_LEN, tlv->tl); in ath11k_hal_rx_parse_mon_status()
1184 tlv_len = sizeof(struct hal_rx_rxpcu_classification_overview); in ath11k_hal_rx_parse_mon_status()
1188 ptr += tlv_len; in ath11k_hal_rx_parse_mon_status()
/kernel/linux/linux-5.10/net/ipv6/
Dcalipso.c811 unsigned int opt_len = ipv6_optlen(opt), tlv_len; in calipso_tlv_len() local
819 tlv_len = tlv[offset + 1] + 2; in calipso_tlv_len()
820 if (offset + tlv_len > opt_len) in calipso_tlv_len()
822 return tlv_len; in calipso_tlv_len()
849 int ret_val = -ENOENT, tlv_len; in calipso_opt_find() local
857 tlv_len = calipso_tlv_len(hop, offset); in calipso_opt_find()
858 if (tlv_len < 0) in calipso_opt_find()
859 return tlv_len; in calipso_opt_find()
877 offset += tlv_len; in calipso_opt_find()
Dseg6.c60 unsigned int tlv_len; in seg6_validate_srh() local
66 tlv_len = sizeof(*tlv) + tlv->len; in seg6_validate_srh()
68 trailing -= tlv_len; in seg6_validate_srh()
72 tlv_offset += tlv_len; in seg6_validate_srh()
/kernel/linux/linux-5.10/net/nfc/
Dllcp_commands.c119 &sdres->tlv_len); in nfc_llcp_build_sdres_tlv()
148 sdreq->tlv_len = uri_len + 3; in nfc_llcp_build_sdreq_tlv()
151 sdreq->tlv_len--; in nfc_llcp_build_sdreq_tlv()
153 sdreq->tlv = kzalloc(sdreq->tlv_len + 1, GFP_KERNEL); in nfc_llcp_build_sdreq_tlv()
160 sdreq->tlv[1] = sdreq->tlv_len - 2; in nfc_llcp_build_sdreq_tlv()
564 skb_put_data(skb, sdp->tlv, sdp->tlv_len); in nfc_llcp_send_snl_sdres()
596 skb_put_data(skb, sdreq->tlv, sdreq->tlv_len); in nfc_llcp_send_snl_sdreq()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_nvm.c293 u16 tlv_len; in ice_get_pfa_module_tlv() local
302 status = ice_read_sr_word(hw, next_tlv + 1, &tlv_len); in ice_get_pfa_module_tlv()
308 if (tlv_len) { in ice_get_pfa_module_tlv()
310 *module_tlv_len = tlv_len; in ice_get_pfa_module_tlv()
318 next_tlv = next_tlv + tlv_len + 2; in ice_get_pfa_module_tlv()
/kernel/linux/linux-5.10/fs/btrfs/
Dsend.h44 __le16 tlv_len; member
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath10k/
Dcoredump.h32 __le32 tlv_len; member
Dcoredump.c1554 dump_tlv->tlv_len = cpu_to_le32(sizeof(crash_data->registers)); in ath10k_coredump_build()
1563 dump_tlv->tlv_len = cpu_to_le32(struct_size(ce_hdr, entries, in ath10k_coredump_build()
1578 dump_tlv->tlv_len = cpu_to_le32(crash_data->ramdump_buf_len); in ath10k_coredump_build()
Dwmi-tlv.c77 u16 tlv_tag, tlv_len; in ath10k_wmi_tlv_iter() local
90 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_tlv_iter()
94 if (tlv_len > len) { in ath10k_wmi_tlv_iter()
97 tlv_tag, ptr - begin, len, tlv_len); in ath10k_wmi_tlv_iter()
103 wmi_tlv_policies[tlv_tag].min_len > tlv_len) { in ath10k_wmi_tlv_iter()
106 tlv_tag, ptr - begin, tlv_len, in ath10k_wmi_tlv_iter()
111 ret = iter(ar, tlv_tag, tlv_len, ptr, data); in ath10k_wmi_tlv_iter()
115 ptr += tlv_len; in ath10k_wmi_tlv_iter()
116 len -= tlv_len; in ath10k_wmi_tlv_iter()
1808 __le16 tlv_len, tlv_tag; in ath10k_wmi_tlv_put_host_mem_chunks() local
[all …]
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dtipc_config.h126 __be16 tlv_len; member

12