/linux/drivers/net/wireless/intel/iwlwifi/fw/ |
A D | uefi.c | 78 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 D | pnvm.c | 47 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 D | iwl-drv.c | 599 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 D | iwl-dbg-tlv.c | 181 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 D | qmi_encdec.c | 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() 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 D | tipc_config.h | 249 __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 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() 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 D | sta_event.c | 419 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 D | uap_event.c | 31 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 D | 11h.c | 211 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 D | ie.c | 85 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 D | wmm.c | 930 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 D | 11n_rxreorder.c | 923 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 D | scan.c | 1149 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 D | spectral.c | 580 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 D | hal_rx.c | 1131 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 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()
|
A 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/net/nfc/ |
A 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() 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 D | llcp_core.c | 1235 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 D | ice_nvm.c | 465 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 D | send.h | 44 __le16 tlv_len; member
|
/linux/drivers/net/wireless/ath/ath10k/ |
A 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()
|
A D | coredump.h | 32 __le32 tlv_len; member
|
A 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() 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 …]
|