Home
last modified time | relevance | path

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

12

/linux/drivers/net/wireless/intel/iwlwifi/fw/
A Dpnvm.c49 u32 tlv_len, tlv_type; in iwl_pnvm_handle_section() local
57 if (len < tlv_len) { in iwl_pnvm_handle_section()
59 len, tlv_len); in iwl_pnvm_handle_section()
109 tlv_len); in iwl_pnvm_handle_section()
143 tlv_type, tlv_len); in iwl_pnvm_handle_section()
147 len -= ALIGN(tlv_len, 4); in iwl_pnvm_handle_section()
148 data += ALIGN(tlv_len, 4); in iwl_pnvm_handle_section()
177 u32 tlv_len, tlv_type; in iwl_pnvm_parse() local
186 if (len < tlv_len) { in iwl_pnvm_parse()
188 len, tlv_len); in iwl_pnvm_parse()
[all …]
A Duefi.c130 tlv_len, data_len); in iwl_uefi_handle_tlv_mem_desc()
161 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_section() local
169 if (len < tlv_len) { in iwl_uefi_reduce_power_section()
171 len, tlv_len); in iwl_uefi_reduce_power_section()
189 tlv_type, tlv_len); in iwl_uefi_reduce_power_section()
193 len -= ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_section()
194 data += ALIGN(tlv_len, 4); in iwl_uefi_reduce_power_section()
214 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_parse() local
222 if (len < tlv_len) { in iwl_uefi_reduce_power_parse()
224 len, tlv_len); in iwl_uefi_reduce_power_parse()
[all …]
A Duefi.h229 u32 tlv_len, struct iwl_pnvm_image *pnvm_data);
273 u32 tlv_len, struct iwl_pnvm_image *pnvm_data) in iwl_uefi_handle_tlv_mem_desc() argument
/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/drivers/net/wireless/intel/iwlwifi/
A Diwl-drv.c701 u32 tlv_len; in iwl_parse_tlv_firmware() local
754 len, tlv_len); in iwl_parse_tlv_firmware()
807 if (tlv_len) in iwl_parse_tlv_firmware()
874 if (tlv_len) in iwl_parse_tlv_firmware()
904 tlv_len); in iwl_parse_tlv_firmware()
909 tlv_len); in iwl_parse_tlv_firmware()
914 tlv_len); in iwl_parse_tlv_firmware()
936 tlv_len); in iwl_parse_tlv_firmware()
1028 tlv_len - in iwl_parse_tlv_firmware()
1031 tlv_len - in iwl_parse_tlv_firmware()
[all …]
A Diwl-dbg-tlv.c199 u32 tlv_len = sizeof(*tlv) + le32_to_cpu(tlv->length); in iwl_dbg_tlv_alloc_region() local
241 *active_reg = kmemdup(tlv, tlv_len, GFP_KERNEL); in iwl_dbg_tlv_alloc_region()
477 u32 tlv_len; in iwl_dbg_tlv_parse_bin() local
483 tlv_len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_parse_bin()
485 if (len < tlv_len) { in iwl_dbg_tlv_parse_bin()
487 len, tlv_len); in iwl_dbg_tlv_parse_bin()
490 len -= ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
491 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
/linux/include/uapi/linux/
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()
/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()
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/drivers/net/wireless/marvell/mwifiex/
A Duap_cmd.c801 u16 tlv_len; in mwifiex_cmd_uap_add_station() local
847 pos += (header_len + tlv_len); in mwifiex_cmd_uap_add_station()
848 size += (header_len + tlv_len); in mwifiex_cmd_uap_add_station()
858 pos += (header_len + tlv_len); in mwifiex_cmd_uap_add_station()
865 tlv_len = sizeof(qos_capa); in mwifiex_cmd_uap_add_station()
869 pos += (header_len + tlv_len); in mwifiex_cmd_uap_add_station()
880 pos += (header_len + tlv_len); in mwifiex_cmd_uap_add_station()
896 pos += (header_len + tlv_len); in mwifiex_cmd_uap_add_station()
904 tlv_len = sizeof(u8); in mwifiex_cmd_uap_add_station()
907 tlv_len); in mwifiex_cmd_uap_add_station()
[all …]
A Dsta_event.c418 u16 tlv_buf_left, tlv_type, tlv_len; in mwifiex_process_multi_chan_event() local
441 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_multi_chan_event()
478 tlv_len; in mwifiex_process_multi_chan_event()
479 tlv = (void *)((u8 *)tlv + tlv_len + in mwifiex_process_multi_chan_event()
494 u16 tlv_type, tlv_len; in mwifiex_process_tx_pause_event() local
509 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_tx_pause_event()
514 tlv_len, tlv_buf_left); in mwifiex_process_tx_pause_event()
525 tlv_len; in mwifiex_process_tx_pause_event()
544 u16 tlv_type, tlv_len; in mwifiex_bt_coex_wlan_param_update_event() local
548 tlv_len = le16_to_cpu(tlv->len); in mwifiex_bt_coex_wlan_param_update_event()
[all …]
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()
A 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()
A D11h.c199 u16 event_len, tlv_len; in mwifiex_11h_handle_chanrpt_ready() local
213 tlv_len = le16_to_cpu(rpt->header.len); in mwifiex_11h_handle_chanrpt_ready()
232 event_len -= (tlv_len + sizeof(rpt->header)); in mwifiex_11h_handle_chanrpt_ready()
A D11n_rxreorder.c906 u16 tlv_type, tlv_len; in mwifiex_11n_rxba_sync_event() local
918 tlv_len = le16_to_cpu(tlv_rxba->header.len); in mwifiex_11n_rxba_sync_event()
919 if (size_add(sizeof(tlv_rxba->header), tlv_len) > tlv_buf_left) { in mwifiex_11n_rxba_sync_event()
922 size_add(sizeof(tlv_rxba->header), tlv_len), in mwifiex_11n_rxba_sync_event()
979 tlv_buf_left -= (sizeof(tlv_rxba->header) + tlv_len); in mwifiex_11n_rxba_sync_event()
980 tmp = (u8 *)tlv_rxba + sizeof(tlv_rxba->header) + tlv_len; in mwifiex_11n_rxba_sync_event()
A Dwmm.c914 uint16_t resp_len = le16_to_cpu(resp->size), tlv_len; in mwifiex_ret_wmm_get_status() local
929 tlv_len = le16_to_cpu(tlv_hdr->header.len); in mwifiex_ret_wmm_get_status()
931 if (resp_len < tlv_len + sizeof(tlv_hdr->header)) in mwifiex_ret_wmm_get_status()
963 wmm_param_ie->vend_hdr.len = (u8) tlv_len; in mwifiex_ret_wmm_get_status()
987 curr += (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_ret_wmm_get_status()
988 resp_len -= (tlv_len + sizeof(tlv_hdr->header)); in mwifiex_ret_wmm_get_status()
A Dscan.c1120 u32 tlv_len; in mwifiex_ret_802_11_scan_get_tlv_ptrs() local
1133 tlv_len = le16_to_cpu(current_tlv->header.len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1135 if (sizeof(tlv->header) + tlv_len > tlv_buf_left) { in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1147 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1154 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1170 tlv_buf_left -= (sizeof(tlv->header) + tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
1173 tlv_len); in mwifiex_ret_802_11_scan_get_tlv_ptrs()
/linux/drivers/net/wireless/ath/ath11k/
A Dspectral.c577 int tlv_len, bin_len, num_bins; in ath11k_spectral_process_fft() local
595 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_fft()
705 int tlv_len, sample_sz; in ath11k_spectral_process_data() local
744 tlv_len = FIELD_GET(SPECTRAL_TLV_HDR_LEN, in ath11k_spectral_process_data()
747 tlv_len *= ATH11K_SPECTRAL_DWORD_SIZE; in ath11k_spectral_process_data()
748 if ((i + sizeof(*tlv) + tlv_len) > data_len) { in ath11k_spectral_process_data()
750 i, tlv_len, data_len); in ath11k_spectral_process_data()
764 tlv_len = sizeof(*summary) - sizeof(*tlv) + in ath11k_spectral_process_data()
767 if (tlv_len < (sizeof(*summary) - sizeof(*tlv))) { in ath11k_spectral_process_data()
769 i, tlv_len); in ath11k_spectral_process_data()
[all …]
/linux/net/ipv6/
A Dcalipso.c808 unsigned int opt_len = ipv6_optlen(opt), tlv_len; in calipso_tlv_len() local
816 tlv_len = tlv[offset + 1] + 2; in calipso_tlv_len()
817 if (offset + tlv_len > opt_len) in calipso_tlv_len()
819 return tlv_len; in calipso_tlv_len()
846 int ret_val = -ENOENT, tlv_len; in calipso_opt_find() local
854 tlv_len = calipso_tlv_len(hop, offset); in calipso_opt_find()
855 if (tlv_len < 0) in calipso_opt_find()
856 return tlv_len; in calipso_opt_find()
874 offset += tlv_len; in calipso_opt_find()
A Dseg6.c58 unsigned int tlv_len; in seg6_validate_srh() local
64 tlv_len = sizeof(*tlv) + tlv->len; in seg6_validate_srh()
66 trailing -= tlv_len; in seg6_validate_srh()
70 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()
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()
/linux/drivers/net/ethernet/intel/ice/
A Dice_nvm.c488 u16 tlv_len; in ice_get_pfa_module_tlv() local
497 status = ice_read_sr_word(hw, next_tlv + 1, &tlv_len); in ice_get_pfa_module_tlv()
503 if (tlv_len) { in ice_get_pfa_module_tlv()
505 *module_tlv_len = tlv_len; in ice_get_pfa_module_tlv()
512 check_add_overflow(next_tlv, tlv_len, &next_tlv)) { in ice_get_pfa_module_tlv()
514 tlv_sub_module_type, tlv_len, pfa_ptr, pfa_len); in ice_get_pfa_module_tlv()
/linux/fs/btrfs/
A Dsend.h60 __le16 tlv_len; member
/linux/drivers/net/wireless/ath/ath10k/
A Dcoredump.h37 __le32 tlv_len; member
A Dcoredump.c1560 dump_tlv->tlv_len = cpu_to_le32(sizeof(crash_data->registers)); in ath10k_coredump_build()
1569 dump_tlv->tlv_len = cpu_to_le32(struct_size(ce_hdr, entries, in ath10k_coredump_build()
1584 dump_tlv->tlv_len = cpu_to_le32(crash_data->ramdump_buf_len); in ath10k_coredump_build()
A Dwmi-tlv.c78 u16 tlv_tag, tlv_len; in ath10k_wmi_tlv_iter() local
91 tlv_len = __le16_to_cpu(tlv->len); in ath10k_wmi_tlv_iter()
95 if (tlv_len > len) { in ath10k_wmi_tlv_iter()
98 tlv_tag, ptr - begin, len, tlv_len); in ath10k_wmi_tlv_iter()
107 tlv_tag, ptr - begin, tlv_len, in ath10k_wmi_tlv_iter()
116 ptr += tlv_len; in ath10k_wmi_tlv_iter()
117 len -= tlv_len; in ath10k_wmi_tlv_iter()
1820 __le16 tlv_len, tlv_tag; in ath10k_wmi_tlv_put_host_mem_chunks() local
1827 tlv->len = tlv_len; in ath10k_wmi_tlv_put_host_mem_chunks()
3873 u16 tlv_len; in ath10k_wmi_tlv_op_gen_config_pno_start() local
[all …]

Completed in 71 milliseconds

12