Home
last modified time | relevance | path

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

12

/linux/drivers/net/wireless/intel/iwlwifi/fw/
H A Dpnvm.c50 u32 tlv_len, tlv_type; in iwl_pnvm_handle_section() local
55 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_handle_section()
58 if (len < tlv_len) { in iwl_pnvm_handle_section()
60 len, tlv_len); in iwl_pnvm_handle_section()
68 if (tlv_len < sizeof(__le32)) { in iwl_pnvm_handle_section()
71 sizeof(__le32), tlv_len); in iwl_pnvm_handle_section()
83 if (tlv_len < 2 * sizeof(__le16)) { in iwl_pnvm_handle_section()
86 2 * sizeof(__le16), tlv_len); in iwl_pnvm_handle_section()
106 u32 data_len = tlv_len - sizeof(*section); in iwl_pnvm_handle_section()
110 tlv_len); in iwl_pnvm_handle_section()
[all …]
/linux/include/uapi/linux/
H A Dtipc_config.h245 __be16 tlv_len; /* TLV length (descriptor + value) */ member
268 (__be16_to_cpu(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK()
279 return __be16_to_cpu(tlv->tlv_len); in TLV_GET_LEN()
284 tlv->tlv_len = __cpu_to_be16(len); in TLV_SET_LEN()
300 int tlv_len; in TLV_SET() local
302 tlv_len = TLV_LENGTH(len); in TLV_SET()
305 tlv_ptr->tlv_len = __cpu_to_be16(tlv_len); in TLV_SET()
308 memset((char *)TLV_DATA(tlv_ptr) + len, 0, TLV_SPACE(len) - tlv_len); in TLV_SET()
347 __u16 tlv_space = TLV_ALIGN(__be16_to_cpu(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
/linux/drivers/net/wireless/marvell/mwifiex/
H A Duap_cmd.c801 u16 tlv_len; in mwifiex_cmd_uap_add_station() local
844 tlv_len = params->ext_capab_len; in mwifiex_cmd_uap_add_station()
845 tlv->header.len = cpu_to_le16(tlv_len); in mwifiex_cmd_uap_add_station()
846 memcpy(tlv->data, params->ext_capab, tlv_len); in mwifiex_cmd_uap_add_station()
847 pos += (header_len + tlv_len); in mwifiex_cmd_uap_add_station()
848 size += (header_len + tlv_len); in mwifiex_cmd_uap_add_station()
854 tlv_len = params->link_sta_params.supported_rates_len; in mwifiex_cmd_uap_add_station()
855 tlv->header.len = cpu_to_le16(tlv_len); in mwifiex_cmd_uap_add_station()
857 params->link_sta_params.supported_rates, tlv_len); in mwifiex_cmd_uap_add_station()
858 pos += (header_len + tlv_len); in mwifiex_cmd_uap_add_station()
[all …]
H A Dsta_event.c415 u16 tlv_buf_left, tlv_type, tlv_len; in mwifiex_process_multi_chan_event() local
438 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_multi_chan_event()
439 if ((sizeof(struct mwifiex_ie_types_header) + tlv_len) > in mwifiex_process_multi_chan_event()
442 "tlvBufLeft=%d\n", tlv_len, tlv_buf_left); in mwifiex_process_multi_chan_event()
475 tlv_len; in mwifiex_process_multi_chan_event()
476 tlv = (void *)((u8 *)tlv + tlv_len + in mwifiex_process_multi_chan_event()
491 u16 tlv_type, tlv_len; in mwifiex_process_tx_pause_event() local
506 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_tx_pause_event()
507 if ((sizeof(struct mwifiex_ie_types_header) + tlv_len) > in mwifiex_process_tx_pause_event()
511 tlv_len, tlv_buf_left); in mwifiex_process_tx_pause_event()
[all …]
H A Die.c73 s16 input_len, tlv_len; in mwifiex_update_autoindex_ies() local
84 tlv_len = le16_to_cpu(ie->ie_length); in mwifiex_update_autoindex_ies()
85 travel_len += tlv_len + MWIFIEX_IE_HDR_SIZE; in mwifiex_update_autoindex_ies()
87 if (input_len < tlv_len + MWIFIEX_IE_HDR_SIZE) in mwifiex_update_autoindex_ies()
126 input_len -= tlv_len + MWIFIEX_IE_HDR_SIZE; in mwifiex_update_autoindex_ies()
H A D11h.c199 u16 event_len, tlv_len; in mwifiex_11h_handle_chanrpt_ready() local
213 tlv_len = le16_to_cpu(rpt->header.len); in mwifiex_11h_handle_chanrpt_ready()
232 event_len -= (tlv_len + sizeof(rpt->header)); in mwifiex_11h_handle_chanrpt_ready()
H A D11n_rxreorder.c906 u16 tlv_type, tlv_len; in mwifiex_11n_rxba_sync_event() local
918 tlv_len = le16_to_cpu(tlv_rxba->header.len); in mwifiex_11n_rxba_sync_event()
919 if (size_add(sizeof(tlv_rxba->header), tlv_len) > tlv_buf_left) { in mwifiex_11n_rxba_sync_event()
922 size_add(sizeof(tlv_rxba->header), tlv_len), in mwifiex_11n_rxba_sync_event()
979 tlv_buf_left -= (sizeof(tlv_rxba->header) + tlv_len); in mwifiex_11n_rxba_sync_event()
980 tmp = (u8 *)tlv_rxba + sizeof(tlv_rxba->header) + tlv_len; in mwifiex_11n_rxba_sync_event()
H A Dwmm.c914 uint16_t resp_len = le16_to_cpu(resp->size), tlv_len; in mwifiex_ret_wmm_get_status() local
929 tlv_len = le16_to_cpu(tlv_hdr->header.len); in mwifiex_ret_wmm_get_status()
931 if (resp_len < tlv_len + sizeof(tlv_hdr->header)) in mwifiex_ret_wmm_get_status()
963 wmm_param_ie->vend_hdr.len = (u8) tlv_len; in mwifiex_ret_wmm_get_status()
987 curr += (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_ret_wmm_get_status()
988 resp_len -= (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_ret_wmm_get_status()
H A Dscan.c1120 u32 tlv_len; in mwifiex_ret_802_11_scan_get_tlv_ptrs() local
1133 tlv_len = le16_to_cpu(current_tlv->header.len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1135 if (sizeof(tlv->header) + tlv_len > tlv_buf_left) { in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1147 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1154 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1170 tlv_buf_left -= (sizeof(tlv->header) + tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1173 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
/linux/drivers/net/ethernet/mellanox/mlxfw/
H A 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()
36 tlv_len = NLA_ALIGN(tlv_len + be16_to_cpu(multi->total_len)); in mlxfw_mfa2_tlv_next()
39 next = (void *) tlv + tlv_len; in mlxfw_mfa2_tlv_next()
/linux/drivers/net/wireless/ath/ath11k/
H A Dspectral.c578 int tlv_len, bin_len, num_bins; in ath11k_spectral_process_fft() local
594 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, __le32_to_cpu(tlv->header)); in ath11k_spectral_process_fft()
596 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_fft()
597 bin_len = tlv_len - ab->hw_params.spectral.fft_hdr_len; in ath11k_spectral_process_fft()
706 int tlv_len, sample_sz; in ath11k_spectral_process_data() local
745 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, in ath11k_spectral_process_data()
748 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_data()
749 if ((i + sizeof(*tlv) + tlv_len) > data_len) { in ath11k_spectral_process_data()
751 i, tlv_len, data_len); in ath11k_spectral_process_data()
765 tlv_len = sizeof(*summary) - sizeof(*tlv) + in ath11k_spectral_process_data()
[all …]
H A Dcoredump.h30 __le32 tlv_len; member
H A Ddp_rx.c1332 u16 tlv_tag, tlv_len; in ath11k_dp_htt_tlv_iter() local
1343 tlv_len = FIELD_GET(HTT_TLV_LEN, tlv->header); in ath11k_dp_htt_tlv_iter()
1347 if (tlv_len > len) { in ath11k_dp_htt_tlv_iter()
1349 tlv_tag, ptr - begin, len, tlv_len); in ath11k_dp_htt_tlv_iter()
1352 ret = iter(ab, tlv_tag, tlv_len, ptr, data); in ath11k_dp_htt_tlv_iter()
1356 ptr += tlv_len; in ath11k_dp_htt_tlv_iter()
1357 len -= tlv_len; in ath11k_dp_htt_tlv_iter()
2950 u16 ppdu_id_diff, ppdu_id, tlv_len; in ath11k_dp_rx_mon_update_status_buf_state() local
2954 tlv_len = FIELD_GET(HAL_TLV_HDR_LEN, tlv->tl); in ath11k_dp_rx_mon_update_status_buf_state()
2956 ptr += sizeof(*tlv) + tlv_len; in ath11k_dp_rx_mon_update_status_buf_state()
/linux/net/ipv6/
H A Dcalipso.c807 unsigned int opt_len = ipv6_optlen(opt), tlv_len; in calipso_tlv_len() local
815 tlv_len = tlv[offset + 1] + 2; in calipso_tlv_len()
816 if (offset + tlv_len > opt_len) in calipso_tlv_len()
818 return tlv_len; in calipso_tlv_len()
845 int ret_val = -ENOENT, tlv_len; in calipso_opt_find() local
853 tlv_len = calipso_tlv_len(hop, offset); in calipso_opt_find()
854 if (tlv_len < 0) in calipso_opt_find()
855 return tlv_len; in calipso_opt_find()
873 offset += tlv_len; in calipso_opt_find()
H A Dseg6.c58 unsigned int tlv_len; in seg6_validate_srh() local
64 tlv_len = sizeof(*tlv) + tlv->len; in seg6_validate_srh()
66 trailing -= tlv_len; in seg6_validate_srh()
70 tlv_offset += tlv_len; in seg6_validate_srh()
/linux/net/nfc/
H A 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()
567 skb_put_data(skb, sdp->tlv, sdp->tlv_len); in nfc_llcp_send_snl_sdres()
599 skb_put_data(skb, sdreq->tlv, sdreq->tlv_len); in nfc_llcp_send_snl_sdreq()
H A Dllcp.h39 u8 tlv_len; member
H A Dllcp_core.c1279 u16 tlv_len, offset; in nfc_llcp_recv_snl()
1298 tlv_len = skb->len - LLCP_HEADER_SIZE; in nfc_llcp_recv_snl()
1302 while (offset < tlv_len) { in nfc_llcp_recv_snl()
1367 sdres_tlvs_len += sdp->tlv_len; in nfc_llcp_recv_snl()
1277 u16 tlv_len, offset; nfc_llcp_recv_snl() local
/linux/drivers/net/ethernet/intel/ice/
H A Dice_nvm.c488 u16 tlv_len; in ice_get_pfa_module_tlv() local
497 status = ice_read_sr_word(hw, next_tlv + 1, &tlv_len); in ice_get_pfa_module_tlv()
503 if (tlv_len) { in ice_get_pfa_module_tlv()
505 *module_tlv_len = tlv_len; in ice_get_pfa_module_tlv()
512 check_add_overflow(next_tlv, tlv_len, &next_tlv)) { in ice_get_pfa_module_tlv()
514 tlv_sub_module_type, tlv_len, pfa_ptr, pfa_len); in ice_get_pfa_module_tlv()
/linux/drivers/net/wireless/intel/iwlwifi/
H A Diwl-dbg-tlv.c199 u32 tlv_len = sizeof(*tlv) + le32_to_cpu(tlv->length); in iwl_dbg_tlv_alloc_region() local
241 *active_reg = kmemdup(tlv, tlv_len, GFP_KERNEL); in iwl_dbg_tlv_alloc_region()
477 u32 tlv_len; in iwl_dbg_tlv_parse_bin() local
483 tlv_len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_parse_bin()
485 if (len < tlv_len) { in iwl_dbg_tlv_parse_bin()
487 len, tlv_len); in iwl_dbg_tlv_parse_bin()
490 len -= ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
491 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
/linux/fs/btrfs/
H A Dsend.h60 __le16 tlv_len; member
/linux/drivers/net/wireless/ath/ath10k/
H A Dcoredump.h37 __le32 tlv_len; member
H A Dcoredump.c1562 dump_tlv->tlv_len = cpu_to_le32(sizeof(crash_data->registers)); in ath10k_coredump_build()
1571 dump_tlv->tlv_len = cpu_to_le32(struct_size(ce_hdr, entries, in ath10k_coredump_build()
1586 dump_tlv->tlv_len = cpu_to_le32(crash_data->ramdump_buf_len); in ath10k_coredump_build()
/linux/drivers/net/wireless/quantenna/qtnfmac/
H A Dcommands.c587 u16 tlv_len; in qtnf_cmd_sta_info_parse() local
594 tlv_len = le16_to_cpu(tlv->len); in qtnf_cmd_sta_info_parse()
598 map_len = tlv_len; in qtnf_cmd_sta_info_parse()
602 stats_len = tlv_len; in qtnf_cmd_sta_info_parse()
894 u16 tlv_len; in qtnf_cmd_resp_proc_hw_info() local
908 tlv_len = le16_to_cpu(tlv->len); in qtnf_cmd_resp_proc_hw_info()
934 min(sizeof(hwinfo->hw_capab), (size_t)tlv_len)); in qtnf_cmd_resp_proc_hw_info()
/linux/drivers/net/ethernet/intel/ixgbe/
H A Dixgbe_e610.c3838 u16 tlv_sub_module_type, tlv_len; in ixgbe_get_pfa_module_tlv() local
3847 err = ixgbe_read_ee_aci_e610(hw, next_tlv + 1, &tlv_len); in ixgbe_get_pfa_module_tlv()
3852 if (tlv_len) { in ixgbe_get_pfa_module_tlv()
3854 *module_tlv_len = tlv_len; in ixgbe_get_pfa_module_tlv()
3862 next_tlv = next_tlv + tlv_len + 2; in ixgbe_get_pfa_module_tlv()

12