Home
last modified time | relevance | path

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

12

/linux/drivers/net/wireless/intel/iwlwifi/fw/
A Duefi.c78 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_section() local
86 if (len < tlv_len) { in iwl_uefi_reduce_power_section()
88 len, tlv_len); in iwl_uefi_reduce_power_section()
100 tlv_len); in iwl_uefi_reduce_power_section()
118 size += tlv_len; in iwl_uefi_reduce_power_section()
128 tlv_type, tlv_len); in iwl_uefi_reduce_power_section()
132 len -= ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_section()
162 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_parse() local
170 if (len < tlv_len) { in iwl_uefi_reduce_power_parse()
172 len, tlv_len); in iwl_uefi_reduce_power_parse()
[all …]
A Dpnvm.c47 u32 tlv_len, tlv_type; in iwl_pnvm_handle_section() local
55 if (len < tlv_len) { in iwl_pnvm_handle_section()
57 len, tlv_len); in iwl_pnvm_handle_section()
107 tlv_len); in iwl_pnvm_handle_section()
141 tlv_type, tlv_len); in iwl_pnvm_handle_section()
145 len -= ALIGN(tlv_len, 4); in iwl_pnvm_handle_section()
146 data += ALIGN(tlv_len, 4); in iwl_pnvm_handle_section()
181 u32 tlv_len, tlv_type; in iwl_pnvm_parse() local
189 if (len < tlv_len) { in iwl_pnvm_parse()
191 len, tlv_len); in iwl_pnvm_parse()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/
A Diwl-drv.c599 u32 tlv_len; in iwl_parse_tlv_firmware() local
652 len, tlv_len); in iwl_parse_tlv_firmware()
705 if (tlv_len) in iwl_parse_tlv_firmware()
772 if (tlv_len) in iwl_parse_tlv_firmware()
802 tlv_len); in iwl_parse_tlv_firmware()
807 tlv_len); in iwl_parse_tlv_firmware()
812 tlv_len); in iwl_parse_tlv_firmware()
834 tlv_len); in iwl_parse_tlv_firmware()
936 tlv_len - in iwl_parse_tlv_firmware()
939 tlv_len - in iwl_parse_tlv_firmware()
[all …]
A Diwl-dbg-tlv.c181 u32 tlv_len = sizeof(*tlv) + le32_to_cpu(tlv->length); in iwl_dbg_tlv_alloc_region() local
221 *active_reg = kmemdup(tlv, tlv_len, GFP_KERNEL); in iwl_dbg_tlv_alloc_region()
447 u32 tlv_len; in iwl_dbg_tlv_parse_bin() local
453 tlv_len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_parse_bin()
455 if (len < tlv_len) { in iwl_dbg_tlv_parse_bin()
457 len, tlv_len); in iwl_dbg_tlv_parse_bin()
460 len -= ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
461 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
/linux/drivers/soc/qcom/
A Dqmi_encdec.c45 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()
415 tlv_len = 0; in qmi_encode()
528 string_len = tlv_len; in qmi_decode_string_elem()
602 u32 tlv_len = 0; in qmi_decode() local
[all …]
/linux/include/uapi/linux/
A 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()
/linux/drivers/net/ethernet/mellanox/mlxfw/
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()
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()
/linux/drivers/net/wireless/marvell/mwifiex/
A Dsta_event.c419 u16 tlv_buf_left, tlv_type, tlv_len; in mwifiex_process_multi_chan_event() local
442 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_multi_chan_event()
479 tlv_len; in mwifiex_process_multi_chan_event()
480 tlv = (void *)((u8 *)tlv + tlv_len + in mwifiex_process_multi_chan_event()
495 u16 tlv_type, tlv_len; in mwifiex_process_tx_pause_event() local
510 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_tx_pause_event()
515 tlv_len, tlv_buf_left); in mwifiex_process_tx_pause_event()
526 tlv_len; in mwifiex_process_tx_pause_event()
545 u16 tlv_type, tlv_len; in mwifiex_bt_coex_wlan_param_update_event() local
549 tlv_len = le16_to_cpu(tlv->len); in mwifiex_bt_coex_wlan_param_update_event()
[all …]
A 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()
A 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()
A 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()
A 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()
A 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()
A 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()
/linux/drivers/net/wireless/ath/ath11k/
A Dspectral.c580 int tlv_len, bin_len, num_bins; in ath11k_spectral_process_fft() local
596 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_fft()
681 int tlv_len, sample_sz; in ath11k_spectral_process_data() local
720 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, in ath11k_spectral_process_data()
723 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_data()
724 if ((i + sizeof(*tlv) + tlv_len) > data_len) { in ath11k_spectral_process_data()
726 i, tlv_len, data_len); in ath11k_spectral_process_data()
740 tlv_len = sizeof(*summary) - sizeof(*tlv) + in ath11k_spectral_process_data()
743 if (tlv_len < (sizeof(*summary) - sizeof(*tlv))) { in ath11k_spectral_process_data()
745 i, tlv_len); in ath11k_spectral_process_data()
[all …]
A Dhal_rx.c1131 u16 tlv_len; in ath11k_hal_rx_parse_mon_status() local
1137 tlv_len = FIELD_GET(HAL_TLV_HDR_LEN, tlv->tl); in ath11k_hal_rx_parse_mon_status()
1146 tlv_len = sizeof(struct hal_rx_rxpcu_classification_overview); in ath11k_hal_rx_parse_mon_status()
1150 ptr += tlv_len; in ath11k_hal_rx_parse_mon_status()
/linux/net/ipv6/
A 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()
A 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()
/linux/net/nfc/
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()
560 skb_put_data(skb, sdp->tlv, sdp->tlv_len); in nfc_llcp_send_snl_sdres()
592 skb_put_data(skb, sdreq->tlv, sdreq->tlv_len); in nfc_llcp_send_snl_sdreq()
A Dllcp_core.c1235 u16 tlv_len, offset; in nfc_llcp_recv_snl() local
1254 tlv_len = skb->len - LLCP_HEADER_SIZE; in nfc_llcp_recv_snl()
1258 while (offset < tlv_len) { in nfc_llcp_recv_snl()
1320 sdres_tlvs_len += sdp->tlv_len; in nfc_llcp_recv_snl()
/linux/drivers/net/ethernet/intel/ice/
A Dice_nvm.c465 u16 tlv_len; in ice_get_pfa_module_tlv() local
474 status = ice_read_sr_word(hw, next_tlv + 1, &tlv_len); in ice_get_pfa_module_tlv()
480 if (tlv_len) { in ice_get_pfa_module_tlv()
482 *module_tlv_len = tlv_len; in ice_get_pfa_module_tlv()
490 next_tlv = next_tlv + tlv_len + 2; in ice_get_pfa_module_tlv()
/linux/fs/btrfs/
A Dsend.h44 __le16 tlv_len; member
/linux/drivers/net/wireless/ath/ath10k/
A Dcoredump.c1559 dump_tlv->tlv_len = cpu_to_le32(sizeof(crash_data->registers)); in ath10k_coredump_build()
1568 dump_tlv->tlv_len = cpu_to_le32(struct_size(ce_hdr, entries, in ath10k_coredump_build()
1583 dump_tlv->tlv_len = cpu_to_le32(crash_data->ramdump_buf_len); in ath10k_coredump_build()
A Dcoredump.h32 __le32 tlv_len; member
A 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()
106 tlv_tag, ptr - begin, tlv_len, 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
1815 tlv->len = tlv_len; in ath10k_wmi_tlv_put_host_mem_chunks()
3856 u16 tlv_len; in ath10k_wmi_tlv_op_gen_config_pno_start() local
[all …]

Completed in 88 milliseconds

12