/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/fw/ |
D | pnvm.c | 47 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() [all …]
|
D | uefi.c | 80 u32 tlv_len, struct iwl_pnvm_image *pnvm_data) in iwl_uefi_handle_tlv_mem_desc() argument 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() [all …]
|
D | uefi.h | 50 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() argument
|
/linux-6.6.21/drivers/soc/qcom/ |
D | qmi_encdec.c | 41 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.6.21/drivers/net/wireless/intel/iwlwifi/ |
D | iwl-drv.c | 593 const void *tlv_data, u32 tlv_len) in iwl_drv_set_dump_exclude() argument 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() [all …]
|
D | iwl-dbg-tlv.c | 188 u32 tlv_len = sizeof(*tlv) + le32_to_cpu(tlv->length); in iwl_dbg_tlv_alloc_region() local 236 *active_reg = kmemdup(tlv, tlv_len, GFP_KERNEL); in iwl_dbg_tlv_alloc_region() 474 u32 tlv_len; in iwl_dbg_tlv_parse_bin() local 480 tlv_len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_parse_bin() 482 if (len < tlv_len) { in iwl_dbg_tlv_parse_bin() 484 len, tlv_len); in iwl_dbg_tlv_parse_bin() 487 len -= ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin() 488 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
|
/linux-6.6.21/include/uapi/linux/ |
D | tipc_config.h | 245 __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.6.21/drivers/net/ethernet/mellanox/mlxfw/ |
D | mlxfw_mfa2_tlv_multi.c | 27 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-6.6.21/drivers/net/wireless/marvell/mwifiex/ |
D | sta_event.c | 411 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 …]
|
D | uap_event.c | 19 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()
|
D | ie.c | 73 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()
|
D | 11h.c | 198 u16 event_len, tlv_len; in mwifiex_11h_handle_chanrpt_ready() local 212 tlv_len = le16_to_cpu(rpt->header.len); in mwifiex_11h_handle_chanrpt_ready() 231 event_len -= (tlv_len + sizeof(rpt->header)); in mwifiex_11h_handle_chanrpt_ready()
|
D | 11n_rxreorder.c | 911 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() 924 if (size_add(sizeof(tlv_rxba->header), tlv_len) > tlv_buf_left) { in mwifiex_11n_rxba_sync_event() 927 size_add(sizeof(tlv_rxba->header), tlv_len), in mwifiex_11n_rxba_sync_event() 984 tlv_buf_left -= (sizeof(tlv_rxba->header) + tlv_len); in mwifiex_11n_rxba_sync_event() 985 tmp = (u8 *)tlv_rxba + sizeof(tlv_rxba->header) + tlv_len; in mwifiex_11n_rxba_sync_event()
|
D | wmm.c | 918 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()
|
D | scan.c | 1132 u32 tlv_len; in mwifiex_ret_802_11_scan_get_tlv_ptrs() local 1145 tlv_len = le16_to_cpu(current_tlv->header.len); in mwifiex_ret_802_11_scan_get_tlv_ptrs() 1147 if (sizeof(tlv->header) + tlv_len > tlv_buf_left) { in mwifiex_ret_802_11_scan_get_tlv_ptrs() 1159 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs() 1166 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs() 1182 tlv_buf_left -= (sizeof(tlv->header) + tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs() 1185 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
|
/linux-6.6.21/drivers/net/wireless/ath/ath11k/ |
D | spectral.c | 586 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.6.21/net/ipv6/ |
D | calipso.c | 811 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()
|
D | seg6.c | 60 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.6.21/net/nfc/ |
D | llcp_commands.c | 119 &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()
|
D | llcp.h | 39 u8 tlv_len; member
|
/linux-6.6.21/drivers/net/ethernet/intel/ice/ |
D | ice_nvm.c | 464 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.6.21/fs/btrfs/ |
D | send.h | 58 __le16 tlv_len; member
|
/linux-6.6.21/drivers/net/wireless/ath/ath10k/ |
D | coredump.h | 32 __le32 tlv_len; member
|
D | coredump.c | 1559 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()
|
D | wmi-tlv.c | 77 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() 1815 __le16 tlv_len, tlv_tag; in ath10k_wmi_tlv_put_host_mem_chunks() local [all …]
|