Home
last modified time | relevance | path

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

12

/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/fw/
Duefi.c68 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_section() local
73 tlv_len = le32_to_cpu(tlv->length); in iwl_uefi_reduce_power_section()
76 if (len < tlv_len) { in iwl_uefi_reduce_power_section()
78 len, tlv_len); in iwl_uefi_reduce_power_section()
90 tlv_len); in iwl_uefi_reduce_power_section()
92 IWL_DEBUG_FW(trans, "Adding data (size %d)\n", tlv_len); in iwl_uefi_reduce_power_section()
94 tmp = krealloc(reduce_power_data, size + tlv_len, GFP_KERNEL); in iwl_uefi_reduce_power_section()
106 memcpy(reduce_power_data + size, data, tlv_len); in iwl_uefi_reduce_power_section()
108 size += tlv_len; in iwl_uefi_reduce_power_section()
118 tlv_type, tlv_len); in iwl_uefi_reduce_power_section()
[all …]
Dpnvm.c47 u32 tlv_len, tlv_type; in iwl_pnvm_handle_section() local
52 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_handle_section()
55 if (len < tlv_len) { in iwl_pnvm_handle_section()
57 len, tlv_len); in iwl_pnvm_handle_section()
66 if (tlv_len < sizeof(__le32)) { in iwl_pnvm_handle_section()
69 sizeof(__le32), tlv_len); in iwl_pnvm_handle_section()
80 if (tlv_len < 2 * sizeof(__le16)) { in iwl_pnvm_handle_section()
83 2 * sizeof(__le16), tlv_len); in iwl_pnvm_handle_section()
103 u32 data_len = tlv_len - sizeof(*section); in iwl_pnvm_handle_section()
107 tlv_len); in iwl_pnvm_handle_section()
[all …]
/linux-6.1.9/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 …]
/linux-6.1.9/drivers/net/wireless/intel/iwlwifi/
Diwl-drv.c534 const void *tlv_data, u32 tlv_len) in iwl_drv_set_dump_exclude() argument
539 if (tlv_len < sizeof(*fw)) in iwl_drv_set_dump_exclude()
639 u32 tlv_len; in iwl_parse_tlv_firmware() local
686 tlv_len = le32_to_cpu(tlv->length); in iwl_parse_tlv_firmware()
690 if (len < tlv_len) { in iwl_parse_tlv_firmware()
692 len, tlv_len); in iwl_parse_tlv_firmware()
695 len -= ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
696 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
703 IWL_UCODE_SECTION_INST, tlv_len); in iwl_parse_tlv_firmware()
712 IWL_UCODE_SECTION_DATA, tlv_len); in iwl_parse_tlv_firmware()
[all …]
Diwl-dbg-tlv.c182 u32 tlv_len = sizeof(*tlv) + le32_to_cpu(tlv->length); in iwl_dbg_tlv_alloc_region() local
230 *active_reg = kmemdup(tlv, tlv_len, GFP_KERNEL); in iwl_dbg_tlv_alloc_region()
468 u32 tlv_len; in iwl_dbg_tlv_parse_bin() local
474 tlv_len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_parse_bin()
476 if (len < tlv_len) { in iwl_dbg_tlv_parse_bin()
478 len, tlv_len); in iwl_dbg_tlv_parse_bin()
481 len -= ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
482 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
/linux-6.1.9/include/uapi/linux/
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-6.1.9/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()
/linux-6.1.9/drivers/net/wireless/marvell/mwifiex/
Dsta_event.c411 u16 tlv_buf_left, tlv_type, tlv_len; in mwifiex_process_multi_chan_event() local
434 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_multi_chan_event()
435 if ((sizeof(struct mwifiex_ie_types_header) + tlv_len) > in mwifiex_process_multi_chan_event()
438 "tlvBufLeft=%d\n", tlv_len, tlv_buf_left); in mwifiex_process_multi_chan_event()
471 tlv_len; in mwifiex_process_multi_chan_event()
472 tlv = (void *)((u8 *)tlv + tlv_len + in mwifiex_process_multi_chan_event()
487 u16 tlv_type, tlv_len; in mwifiex_process_tx_pause_event() local
502 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_tx_pause_event()
503 if ((sizeof(struct mwifiex_ie_types_header) + tlv_len) > in mwifiex_process_tx_pause_event()
507 tlv_len, tlv_buf_left); in mwifiex_process_tx_pause_event()
[all …]
Duap_event.c19 u16 tlv_len; in mwifiex_check_uap_capabilities() local
36 tlv_len = le16_to_cpu(tlv_hdr->header.len); in mwifiex_check_uap_capabilities()
38 if (evt_len < tlv_len + sizeof(tlv_hdr->header)) in mwifiex_check_uap_capabilities()
55 wmm_param_ie->vend_hdr.len = (u8)tlv_len; in mwifiex_check_uap_capabilities()
72 curr += (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_check_uap_capabilities()
73 evt_len -= (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_check_uap_capabilities()
D11h.c199 u16 event_len, tlv_len; in mwifiex_11h_handle_chanrpt_ready() local
215 tlv_len = le16_to_cpu(rpt->header.len); in mwifiex_11h_handle_chanrpt_ready()
234 evt_buf += (tlv_len + sizeof(rpt->header)); in mwifiex_11h_handle_chanrpt_ready()
235 event_len -= (tlv_len + sizeof(rpt->header)); in mwifiex_11h_handle_chanrpt_ready()
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()
Dwmm.c918 uint16_t resp_len = le16_to_cpu(resp->size), tlv_len; in mwifiex_ret_wmm_get_status() local
933 tlv_len = le16_to_cpu(tlv_hdr->header.len); in mwifiex_ret_wmm_get_status()
935 if (resp_len < tlv_len + sizeof(tlv_hdr->header)) in mwifiex_ret_wmm_get_status()
967 wmm_param_ie->vend_hdr.len = (u8) tlv_len; in mwifiex_ret_wmm_get_status()
991 curr += (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_ret_wmm_get_status()
992 resp_len -= (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_ret_wmm_get_status()
D11n_rxreorder.c911 u16 tlv_type, tlv_len; in mwifiex_11n_rxba_sync_event() local
923 tlv_len = le16_to_cpu(tlv_rxba->header.len); in mwifiex_11n_rxba_sync_event()
968 tlv_buf_left -= (sizeof(*tlv_rxba) + tlv_len); in mwifiex_11n_rxba_sync_event()
969 tmp = (u8 *)tlv_rxba + tlv_len + sizeof(*tlv_rxba); in mwifiex_11n_rxba_sync_event()
Dscan.c1137 u32 tlv_len; in mwifiex_ret_802_11_scan_get_tlv_ptrs() local
1150 tlv_len = le16_to_cpu(current_tlv->header.len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1152 if (sizeof(tlv->header) + tlv_len > tlv_buf_left) { in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1164 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1171 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1187 tlv_buf_left -= (sizeof(tlv->header) + tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1190 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
/linux-6.1.9/drivers/net/wireless/ath/ath11k/
Dspectral.c586 int tlv_len, bin_len, num_bins; in ath11k_spectral_process_fft() local
602 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, __le32_to_cpu(tlv->header)); in ath11k_spectral_process_fft()
604 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_fft()
605 bin_len = tlv_len - ab->hw_params.spectral.fft_hdr_len; in ath11k_spectral_process_fft()
714 int tlv_len, sample_sz; in ath11k_spectral_process_data() local
753 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, in ath11k_spectral_process_data()
756 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_data()
757 if ((i + sizeof(*tlv) + tlv_len) > data_len) { in ath11k_spectral_process_data()
759 i, tlv_len, data_len); in ath11k_spectral_process_data()
773 tlv_len = sizeof(*summary) - sizeof(*tlv) + in ath11k_spectral_process_data()
[all …]
/linux-6.1.9/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()
/linux-6.1.9/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()
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()
Dllcp.h39 u8 tlv_len; member
Dllcp_core.c1229 u16 tlv_len, offset; in nfc_llcp_recv_snl() local
1248 tlv_len = skb->len - LLCP_HEADER_SIZE; in nfc_llcp_recv_snl()
1252 while (offset < tlv_len) { in nfc_llcp_recv_snl()
1314 sdres_tlvs_len += sdp->tlv_len; in nfc_llcp_recv_snl()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_nvm.c464 u16 tlv_len; in ice_get_pfa_module_tlv() local
473 status = ice_read_sr_word(hw, next_tlv + 1, &tlv_len); in ice_get_pfa_module_tlv()
479 if (tlv_len) { in ice_get_pfa_module_tlv()
481 *module_tlv_len = tlv_len; in ice_get_pfa_module_tlv()
489 next_tlv = next_tlv + tlv_len + 2; in ice_get_pfa_module_tlv()
/linux-6.1.9/fs/btrfs/
Dsend.h56 __le16 tlv_len; member
/linux-6.1.9/drivers/net/wireless/ath/ath10k/
Dcoredump.h32 __le32 tlv_len; member
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()
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 …]

12