Home
last modified time | relevance | path

Searched refs:tlv_len (Results 1 - 25 of 78) sorted by relevance

1234

/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/fw/
H A 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()
182 u32 tlv_len, tlv_type; iwl_pnvm_parse() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/fw/
H A 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()
65 if (tlv_len < sizeof(__le32)) { in iwl_pnvm_handle_section()
68 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()
175 u32 tlv_len, tlv_type; iwl_pnvm_parse() local
[all...]
H A Duefi.c80 u32 tlv_len, struct iwl_pnvm_image *pnvm_data) in iwl_uefi_handle_tlv_mem_desc()
85 if (tlv_len < sizeof(*desc)) { in iwl_uefi_handle_tlv_mem_desc()
86 IWL_DEBUG_FW(trans, "TLV len (%d) is too small\n", tlv_len); in iwl_uefi_handle_tlv_mem_desc()
90 data_len = tlv_len - sizeof(*desc); in iwl_uefi_handle_tlv_mem_desc()
94 tlv_len, data_len); in iwl_uefi_handle_tlv_mem_desc()
125 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_section() local
130 tlv_len = le32_to_cpu(tlv->length); in iwl_uefi_reduce_power_section()
133 if (len < tlv_len) { in iwl_uefi_reduce_power_section()
135 len, tlv_len); in iwl_uefi_reduce_power_section()
143 if (iwl_uefi_handle_tlv_mem_desc(trans, data, tlv_len, in iwl_uefi_reduce_power_section()
79 iwl_uefi_handle_tlv_mem_desc(struct iwl_trans *trans, const u8 *data, u32 tlv_len, struct iwl_pnvm_image *pnvm_data) iwl_uefi_handle_tlv_mem_desc() argument
178 u32 tlv_len, tlv_type; iwl_uefi_reduce_power_parse() local
[all...]
H A Duefi.h50 u32 tlv_len, struct iwl_pnvm_image *pnvm_data);
77 u32 tlv_len, struct iwl_pnvm_image *pnvm_data) in iwl_uefi_handle_tlv_mem_desc()
76 iwl_uefi_handle_tlv_mem_desc(struct iwl_trans *trans, const u8 *data, u32 tlv_len, struct iwl_pnvm_image *pnvm_data) iwl_uefi_handle_tlv_mem_desc() argument
/kernel/linux/linux-5.10/drivers/soc/qcom/
H A Dqmi_encdec.c41 encoded_bytes, tlv_len, encode_tlv, rc) \
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 in qmi_encode()
471 qmi_decode_struct_elem(struct qmi_elem_info *ei_array, void *buf_dst, const void *buf_src, u32 elem_len, u32 tlv_len, int dec_level) qmi_decode_struct_elem() argument
517 qmi_decode_string_elem(struct qmi_elem_info *ei_array, void *buf_dst, const void *buf_src, u32 tlv_len, int dec_level) qmi_decode_string_elem() argument
602 u32 tlv_len = 0; qmi_decode() local
[all...]
/kernel/linux/linux-6.6/drivers/soc/qcom/
H A Dqmi_encdec.c41 encoded_bytes, tlv_len, encode_tlv, rc) \
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 in qmi_encode()
471 qmi_decode_struct_elem(const struct qmi_elem_info *ei_array, void *buf_dst, const void *buf_src, u32 elem_len, u32 tlv_len, int dec_level) qmi_decode_struct_elem() argument
517 qmi_decode_string_elem(const struct qmi_elem_info *ei_array, void *buf_dst, const void *buf_src, u32 tlv_len, int dec_level) qmi_decode_string_elem() argument
602 u32 tlv_len = 0; qmi_decode() local
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/
H A Diwl-drv.c593 const void *tlv_data, u32 tlv_len) in iwl_drv_set_dump_exclude()
598 if (tlv_len < sizeof(*fw)) in iwl_drv_set_dump_exclude()
698 u32 tlv_len; in iwl_parse_tlv_firmware() local
745 tlv_len = le32_to_cpu(tlv->length); in iwl_parse_tlv_firmware()
749 if (len < tlv_len) { in iwl_parse_tlv_firmware()
751 len, tlv_len); in iwl_parse_tlv_firmware()
754 len -= ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
755 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware()
762 IWL_UCODE_SECTION_INST, tlv_len); in iwl_parse_tlv_firmware()
771 IWL_UCODE_SECTION_DATA, tlv_len); in iwl_parse_tlv_firmware()
591 iwl_drv_set_dump_exclude(struct iwl_drv *drv, enum iwl_ucode_tlv_type tlv_type, const void *tlv_data, u32 tlv_len) iwl_drv_set_dump_exclude() argument
[all...]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
H A 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...]
/kernel/linux/linux-5.10/include/uapi/linux/
H 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()
[all...]
/kernel/linux/linux-6.6/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()
[all...]
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
H A 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()
[all...]
/kernel/linux/linux-5.10/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()
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-5.10/drivers/net/wireless/marvell/mwifiex/
H A 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_lef in mwifiex_process_tx_pause_event()
548 u16 tlv_type, tlv_len; mwifiex_bt_coex_wlan_param_update_event() local
[all...]
H 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()
H 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()
H 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()
/kernel/linux/linux-6.6/drivers/net/wireless/marvell/mwifiex/
H A 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_lef in mwifiex_process_tx_pause_event()
537 u16 tlv_type, tlv_len; mwifiex_bt_coex_wlan_param_update_event() local
[all...]
H A 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()
/kernel/linux/linux-5.10/drivers/net/wireless/ath/ath11k/
H A 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()
729 ath11k_warn(ab, "failed to parse spectral tlv payload at bytes %d tlv_len:%d data_len:%d\n", in ath11k_spectral_process_data()
730 i, tlv_len, data_le in ath11k_spectral_process_data()
[all...]
/kernel/linux/linux-6.6/drivers/net/wireless/ath/ath11k/
H A 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()
758 ath11k_warn(ab, "failed to parse spectral tlv payload at bytes %d tlv_len:%d data_len:%d\n", in ath11k_spectral_process_data()
759 i, tlv_len, data_le in ath11k_spectral_process_data()
[all...]
/kernel/linux/linux-5.10/net/nfc/
H A Dllcp_commands.c119 &sdres->tlv_len); in nfc_llcp_build_sdres_tlv()
140 /* sdreq->tlv_len is u8, takes uri_len, + 3 for header, + 1 for NULL */ in nfc_llcp_build_sdreq_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()
575 skb_put_data(skb, sdp->tlv, sdp->tlv_len); in nfc_llcp_send_snl_sdres()
607 skb_put_data(skb, sdreq->tlv, sdreq->tlv_len); in nfc_llcp_send_snl_sdreq()
/kernel/linux/linux-6.6/net/nfc/
H A Dllcp_commands.c119 &sdres->tlv_len); in nfc_llcp_build_sdres_tlv()
140 /* sdreq->tlv_len is u8, takes uri_len, + 3 for header, + 1 for NULL */ in nfc_llcp_build_sdreq_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()
/kernel/linux/linux-5.10/net/ipv6/
H 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()
/kernel/linux/linux-6.6/net/ipv6/
H 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()

Completed in 21 milliseconds

1234