| /linux/drivers/net/wireless/intel/iwlwifi/fw/ |
| H A D | pnvm.c | 57 u32 tlv_len, tlv_type; in iwl_pnvm_handle_section() local 62 tlv_len = le32_to_cpu(tlv->length); in iwl_pnvm_handle_section() 65 if (len < tlv_len) { in iwl_pnvm_handle_section() 67 len, tlv_len); in iwl_pnvm_handle_section() 75 if (tlv_len < sizeof(__le32)) { in iwl_pnvm_handle_section() 78 sizeof(__le32), tlv_len); in iwl_pnvm_handle_section() 90 if (tlv_len < 2 * sizeof(__le16)) { in iwl_pnvm_handle_section() 93 2 * sizeof(__le16), tlv_len); in iwl_pnvm_handle_section() 113 u32 data_len = tlv_len - sizeof(*section); in iwl_pnvm_handle_section() 117 tlv_len); in iwl_pnvm_handle_section() [all …]
|
| H A D | uefi.c | 131 u32 tlv_len, struct iwl_pnvm_image *pnvm_data) in iwl_uefi_handle_tlv_mem_desc() argument 136 if (tlv_len < sizeof(*desc)) { in iwl_uefi_handle_tlv_mem_desc() 137 IWL_DEBUG_FW(trans, "TLV len (%d) is too small\n", tlv_len); in iwl_uefi_handle_tlv_mem_desc() 141 data_len = tlv_len - sizeof(*desc); in iwl_uefi_handle_tlv_mem_desc() 145 tlv_len, data_len); in iwl_uefi_handle_tlv_mem_desc() 176 u32 tlv_len, tlv_type; in iwl_uefi_reduce_power_section() local 181 tlv_len = le32_to_cpu(tlv->length); in iwl_uefi_reduce_power_section() 184 if (len < tlv_len) { in iwl_uefi_reduce_power_section() 186 len, tlv_len); in iwl_uefi_reduce_power_section() 194 if (iwl_uefi_handle_tlv_mem_desc(trans, data, tlv_len, in iwl_uefi_reduce_power_section() [all …]
|
| H A D | uefi.h | 330 u32 tlv_len, struct iwl_pnvm_image *pnvm_data); 379 u32 tlv_len, struct iwl_pnvm_image *pnvm_data) in iwl_uefi_handle_tlv_mem_desc() argument
|
| /linux/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-drv.c | 697 const void *tlv_data, u32 tlv_len) in iwl_drv_set_dump_exclude() argument 702 if (tlv_len < sizeof(*fw)) in iwl_drv_set_dump_exclude() 802 u32 tlv_len; in iwl_parse_tlv_firmware() local 850 tlv_len = le32_to_cpu(tlv->length); in iwl_parse_tlv_firmware() 854 if (len < tlv_len) { in iwl_parse_tlv_firmware() 856 len, tlv_len); in iwl_parse_tlv_firmware() 860 aligned_tlv_len = ALIGN(tlv_len, 4); in iwl_parse_tlv_firmware() 875 IWL_UCODE_SECTION_INST, tlv_len); in iwl_parse_tlv_firmware() 884 IWL_UCODE_SECTION_DATA, tlv_len); in iwl_parse_tlv_firmware() 893 IWL_UCODE_SECTION_INST, tlv_len); in iwl_parse_tlv_firmware() [all …]
|
| /linux/include/uapi/linux/ |
| H A 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/drivers/net/ethernet/mellanox/mlxfw/ |
| H 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() 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/ |
| H A D | uap_cmd.c | 801 u16 tlv_len; in mwifiex_cmd_uap_add_station() local 844 tlv_len = params->ext_capab_len; in mwifiex_cmd_uap_add_station() 845 tlv->header.len = cpu_to_le16(tlv_len); in mwifiex_cmd_uap_add_station() 846 memcpy(tlv->data, params->ext_capab, tlv_len); in mwifiex_cmd_uap_add_station() 847 pos += (header_len + tlv_len); in mwifiex_cmd_uap_add_station() 848 size += (header_len + tlv_len); in mwifiex_cmd_uap_add_station() 854 tlv_len = params->link_sta_params.supported_rates_len; in mwifiex_cmd_uap_add_station() 855 tlv->header.len = cpu_to_le16(tlv_len); in mwifiex_cmd_uap_add_station() 857 params->link_sta_params.supported_rates, tlv_len); in mwifiex_cmd_uap_add_station() 858 pos += (header_len + tlv_len); in mwifiex_cmd_uap_add_station() [all …]
|
| H A D | sta_event.c | 415 u16 tlv_buf_left, tlv_type, tlv_len; in mwifiex_process_multi_chan_event() local 438 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_multi_chan_event() 439 if ((sizeof(struct mwifiex_ie_types_header) + tlv_len) > in mwifiex_process_multi_chan_event() 442 "tlvBufLeft=%d\n", tlv_len, tlv_buf_left); in mwifiex_process_multi_chan_event() 475 tlv_len; in mwifiex_process_multi_chan_event() 476 tlv = (void *)((u8 *)tlv + tlv_len + in mwifiex_process_multi_chan_event() 491 u16 tlv_type, tlv_len; in mwifiex_process_tx_pause_event() local 506 tlv_len = le16_to_cpu(tlv->len); in mwifiex_process_tx_pause_event() 507 if ((sizeof(struct mwifiex_ie_types_header) + tlv_len) > in mwifiex_process_tx_pause_event() 511 tlv_len, tlv_buf_left); in mwifiex_process_tx_pause_event() [all …]
|
| H A 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()
|
| H A 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()
|
| H A D | 11h.c | 199 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()
|
| H A D | 11n_rxreorder.c | 906 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()
|
| /linux/drivers/net/wireless/nxp/nxpwifi/ |
| H A D | sta_event.c | 677 u16 tlv_buf_left, tlv_type, tlv_len; in nxpwifi_process_multi_chan_event() local 700 tlv_len = le16_to_cpu(tlv->len); in nxpwifi_process_multi_chan_event() 701 if ((sizeof(struct nxpwifi_ie_types_header) + tlv_len) > in nxpwifi_process_multi_chan_event() 704 "tlvBufLeft=%d\n", tlv_len, tlv_buf_left); in nxpwifi_process_multi_chan_event() 729 tlv_len; in nxpwifi_process_multi_chan_event() 730 tlv = (void *)((u8 *)tlv + tlv_len + in nxpwifi_process_multi_chan_event() 739 u16 tlv_type, tlv_len; in nxpwifi_process_tx_pause_event() local 754 tlv_len = le16_to_cpu(tlv->len); in nxpwifi_process_tx_pause_event() 755 if ((sizeof(struct nxpwifi_ie_types_header) + tlv_len) > in nxpwifi_process_tx_pause_event() 759 tlv_len, tlv_buf_left); in nxpwifi_process_tx_pause_event() [all …]
|
| H A D | uap_cmd.c | 568 u16 tlv_len; in nxpwifi_cmd_uap_add_new_station() local 612 tlv_len = nxpwifi_append_data_tlv(WLAN_EID_EXT_CAPABILITY, in nxpwifi_cmd_uap_add_new_station() 614 if (!tlv_len) in nxpwifi_cmd_uap_add_new_station() 616 pos += tlv_len; in nxpwifi_cmd_uap_add_new_station() 617 cmd_size += tlv_len; in nxpwifi_cmd_uap_add_new_station() 624 tlv_len = nxpwifi_append_data_tlv(WLAN_EID_SUPP_RATES, in nxpwifi_cmd_uap_add_new_station() 626 if (!tlv_len) in nxpwifi_cmd_uap_add_new_station() 628 pos += tlv_len; in nxpwifi_cmd_uap_add_new_station() 629 cmd_size += tlv_len; in nxpwifi_cmd_uap_add_new_station() 637 tlv_len = nxpwifi_append_data_tlv(WLAN_EID_QOS_CAPA, in nxpwifi_cmd_uap_add_new_station() [all …]
|
| H A D | 11ax.c | 207 u16 left_len, tlv_type, tlv_len; in nxpwifi_ret_11ax_cfg() local 216 tlv_len = le16_to_cpu(header->len); in nxpwifi_ret_11ax_cfg() 222 he_cap->len = tlv_len; in nxpwifi_ret_11ax_cfg() 225 tlv_len); in nxpwifi_ret_11ax_cfg() 229 sizeof(*header) + tlv_len); in nxpwifi_ret_11ax_cfg() 231 sizeof(*header) + tlv_len; in nxpwifi_ret_11ax_cfg() 235 sizeof(*header) + tlv_len); in nxpwifi_ret_11ax_cfg() 237 sizeof(*header) + tlv_len; in nxpwifi_ret_11ax_cfg() 242 left_len -= (sizeof(*header) + tlv_len); in nxpwifi_ret_11ax_cfg() 245 tlv_len); in nxpwifi_ret_11ax_cfg()
|
| H A D | uap_event.c | 173 u16 tlv_len; in nxpwifi_check_uap_capabilities() local 190 tlv_len = le16_to_cpu(tlv_hdr->header.len); in nxpwifi_check_uap_capabilities() 192 if (evt_len < tlv_len + sizeof(tlv_hdr->header)) in nxpwifi_check_uap_capabilities() 210 wmm_param_ie->len = (u8)tlv_len; in nxpwifi_check_uap_capabilities() 227 curr += (tlv_len + sizeof(tlv_hdr->header)); in nxpwifi_check_uap_capabilities() 228 evt_len -= (tlv_len + sizeof(tlv_hdr->header)); in nxpwifi_check_uap_capabilities()
|
| H A D | ie.c | 70 s16 input_len, tlv_len; in nxpwifi_update_autoindex_ies() local 81 tlv_len = le16_to_cpu(ie->ie_length); in nxpwifi_update_autoindex_ies() 82 travel_len += tlv_len + NXPWIFI_IE_HDR_SIZE; in nxpwifi_update_autoindex_ies() 84 if (input_len < tlv_len + NXPWIFI_IE_HDR_SIZE) in nxpwifi_update_autoindex_ies() 123 input_len -= tlv_len + NXPWIFI_IE_HDR_SIZE; in nxpwifi_update_autoindex_ies()
|
| H A D | 11h.c | 208 u16 event_len, tlv_len; in nxpwifi_11h_handle_chanrpt_ready() local 222 tlv_len = le16_to_cpu(rpt->header.len); in nxpwifi_11h_handle_chanrpt_ready() 246 event_len -= (tlv_len + sizeof(rpt->header)); in nxpwifi_11h_handle_chanrpt_ready()
|
| H A D | wmm.c | 736 u16 resp_len = le16_to_cpu(resp->size), tlv_len; in nxpwifi_ret_wmm_get_status() local 759 tlv_len = le16_to_cpu(tlv_hdr->header.len); in nxpwifi_ret_wmm_get_status() 761 if (resp_len < tlv_len + sizeof(tlv_hdr->header)) in nxpwifi_ret_wmm_get_status() 766 if (tlv_len < in nxpwifi_ret_wmm_get_status() 785 if (tlv_len + sizeof(tlv_hdr->header) < in nxpwifi_ret_wmm_get_status() 793 if (tlv_len + 2 > sizeof(struct ieee80211_wmm_param_ie)) in nxpwifi_ret_wmm_get_status() 796 wmm_param_ie->len = (u8)tlv_len; in nxpwifi_ret_wmm_get_status() 808 curr += sizeof(tlv_hdr->header) + tlv_len; in nxpwifi_ret_wmm_get_status() 809 resp_len -= sizeof(tlv_hdr->header) + tlv_len; in nxpwifi_ret_wmm_get_status()
|
| H A D | 11n_rxreorder.c | 738 u16 tlv_type, tlv_len; in nxpwifi_11n_rxba_sync_event() local 750 tlv_len = le16_to_cpu(tlv_rxba->header.len); in nxpwifi_11n_rxba_sync_event() 751 if (size_add(sizeof(tlv_rxba->header), tlv_len) > tlv_buf_left) { in nxpwifi_11n_rxba_sync_event() 754 size_add(sizeof(tlv_rxba->header), tlv_len), in nxpwifi_11n_rxba_sync_event() 811 tlv_buf_left -= (sizeof(tlv_rxba->header) + tlv_len); in nxpwifi_11n_rxba_sync_event() 812 tmp = (u8 *)tlv_rxba + sizeof(tlv_rxba->header) + tlv_len; in nxpwifi_11n_rxba_sync_event()
|
| /linux/net/ipv6/ |
| H A D | calipso.c | 807 unsigned int opt_len = ipv6_optlen(opt), tlv_len; in calipso_tlv_len() local 815 tlv_len = tlv[offset + 1] + 2; in calipso_tlv_len() 816 if (offset + tlv_len > opt_len) in calipso_tlv_len() 818 return tlv_len; in calipso_tlv_len() 845 int ret_val = -ENOENT, tlv_len; in calipso_opt_find() local 853 tlv_len = calipso_tlv_len(hop, offset); in calipso_opt_find() 854 if (tlv_len < 0) in calipso_opt_find() 855 return tlv_len; in calipso_opt_find() 873 offset += tlv_len; in calipso_opt_find()
|
| H A D | seg6.c | 61 unsigned int tlv_len; in seg6_validate_srh() local 67 tlv_len = sizeof(*tlv) + tlv->len; in seg6_validate_srh() 69 trailing -= tlv_len; in seg6_validate_srh() 73 tlv_offset += tlv_len; in seg6_validate_srh()
|
| /linux/net/nfc/ |
| H 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() 581 skb_put_data(skb, sdp->tlv, sdp->tlv_len); in nfc_llcp_send_snl_sdres() 613 skb_put_data(skb, sdreq->tlv, sdreq->tlv_len); in nfc_llcp_send_snl_sdreq()
|
| /linux/drivers/net/ethernet/intel/ice/ |
| H A D | ice_nvm.c | 495 u16 tlv_len; in ice_get_pfa_module_tlv() local 504 status = ice_read_sr_word(hw, next_tlv + 1, &tlv_len); in ice_get_pfa_module_tlv() 510 if (tlv_len) { in ice_get_pfa_module_tlv() 512 *module_tlv_len = tlv_len; in ice_get_pfa_module_tlv() 519 check_add_overflow(next_tlv, tlv_len, &next_tlv)) { in ice_get_pfa_module_tlv() 521 tlv_sub_module_type, tlv_len, pfa_ptr, pfa_len); in ice_get_pfa_module_tlv()
|
| /linux/fs/btrfs/ |
| H A D | send.h | 60 __le16 tlv_len; member
|