| /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/fw/ |
| H A D | pnvm.c | 48 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() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/soc/qcom/ |
| H A 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 …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/intel/iwlwifi/ |
| H A D | iwl-drv.c | 622 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 …]
|
| H A D | iwl-dbg-tlv.c | 235 u32 tlv_len = sizeof(*tlv) + le32_to_cpu(tlv->length); in iwl_dbg_tlv_alloc_region() local 264 *active_reg = kmemdup(tlv, tlv_len, GFP_KERNEL); in iwl_dbg_tlv_alloc_region() 457 u32 tlv_len; in iwl_dbg_tlv_parse_bin() local 463 tlv_len = le32_to_cpu(tlv->length); in iwl_dbg_tlv_parse_bin() 465 if (len < tlv_len) { in iwl_dbg_tlv_parse_bin() 467 len, tlv_len); in iwl_dbg_tlv_parse_bin() 470 len -= ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin() 471 data += sizeof(*tlv) + ALIGN(tlv_len, 4); in iwl_dbg_tlv_parse_bin()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/arm/gcc-arm-10.3-2021.07-x86_64-arm-none-linux-gnueabihf/arm-none-linux-gnueabihf/libc/usr/include/linux/ |
| H A D | tipc_config.h | 247 __be16 tlv_len; /* TLV length (descriptor + value) */ member 270 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK() 281 return ntohs(tlv->tlv_len); in TLV_GET_LEN() 286 tlv->tlv_len = htons(len); in TLV_SET_LEN() 302 int tlv_len; in TLV_SET() local 304 tlv_len = TLV_LENGTH(len); in TLV_SET() 307 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET() 309 memcpy(TLV_DATA(tlv_ptr), data, tlv_len); in TLV_SET() 347 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
|
| /OK3568_Linux_fs/prebuilts/gcc/linux-x86/aarch64/gcc-arm-10.3-2021.07-x86_64-aarch64-none-linux-gnu/aarch64-none-linux-gnu/libc/usr/include/linux/ |
| H A D | tipc_config.h | 247 __be16 tlv_len; /* TLV length (descriptor + value) */ member 270 (ntohs(((struct tlv_desc *)tlv)->tlv_len) <= space); in TLV_OK() 281 return ntohs(tlv->tlv_len); in TLV_GET_LEN() 286 tlv->tlv_len = htons(len); in TLV_SET_LEN() 302 int tlv_len; in TLV_SET() local 304 tlv_len = TLV_LENGTH(len); in TLV_SET() 307 tlv_ptr->tlv_len = htons(tlv_len); in TLV_SET() 309 memcpy(TLV_DATA(tlv_ptr), data, tlv_len); in TLV_SET() 347 __u16 tlv_space = TLV_ALIGN(ntohs(list->tlv_ptr->tlv_len)); in TLV_LIST_STEP()
|
| /OK3568_Linux_fs/kernel/include/uapi/linux/ |
| H 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()
|
| /OK3568_Linux_fs/kernel/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() 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sta_event.c | 422 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_left); in mwifiex_process_tx_pause_event() [all …]
|
| H 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()
|
| H 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()
|
| H 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()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/nxp/mlan/ |
| H A D | mlan_11ax.c | 785 t_u16 left_len = 0, tlv_type = 0, tlv_len = 0; in wlan_ret_11ax_cfg() local 802 tlv_len = wlan_le16_to_cpu(tlv->len); in wlan_ret_11ax_cfg() 807 hecap->len = tlv_len; in wlan_ret_11ax_cfg() 809 (t_u8 *)&tlv->ext_id, tlv_len, in wlan_ret_11ax_cfg() 817 tlv_len + in wlan_ret_11ax_cfg() 821 tlv_len + in wlan_ret_11ax_cfg() 831 tlv_len + in wlan_ret_11ax_cfg() 835 tlv_len + in wlan_ret_11ax_cfg() 847 left_len -= (sizeof(MrvlIEtypesHeader_t) + tlv_len); in wlan_ret_11ax_cfg() 848 tlv = (MrvlIEtypes_Extension_t *)((t_u8 *)tlv + tlv_len + in wlan_ret_11ax_cfg() [all …]
|
| H A D | mlan_uap_cmdevent.c | 576 t_u16 tlv_type, tlv_len; in wlan_process_tx_pause_event() local 595 tlv_len = wlan_le16_to_cpu(tlv->len); in wlan_process_tx_pause_event() 596 if ((sizeof(MrvlIEtypesHeader_t) + tlv_len) > in wlan_process_tx_pause_event() 599 tlv_len, tlv_buf_left); in wlan_process_tx_pause_event() 645 tlv_buf_left -= (sizeof(MrvlIEtypesHeader_t) + tlv_len); in wlan_process_tx_pause_event() 646 tlv = (MrvlIEtypesHeader_t *)((t_u8 *)tlv + tlv_len + in wlan_process_tx_pause_event() 2002 t_u16 tlv_len = 0; in wlan_uap_ret_cmd_ap_config() local 2060 tlv_len = wlan_le16_to_cpu(tlv->len); in wlan_uap_ret_cmd_ap_config() 2062 if (tlv_buf_left < (tlv_len + sizeof(MrvlIEtypesHeader_t))) { in wlan_uap_ret_cmd_ap_config() 2079 MIN(MLAN_MAX_SSID_LENGTH, tlv_len); in wlan_uap_ret_cmd_ap_config() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/ath/ath11k/ |
| H A D | spectral.c | 585 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() 730 i, tlv_len, data_len); in ath11k_spectral_process_data() 744 tlv_len = sizeof(*summary) - sizeof(*tlv); in ath11k_spectral_process_data() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | dhd_timesync.c | 832 dhd_ts_fw_clksrc_log(dhd_ts_t *ts, uchar *tlvs, uint32 tlv_len, uint32 seqnum) in dhd_ts_fw_clksrc_log() argument 841 while (tlv_len) { in dhd_ts_fw_clksrc_log() 852 tlv_len -= sizeof(*fw_clock_info); in dhd_ts_fw_clksrc_log() 860 dhd_timesync_handle_fw_timestamp(dhd_ts_t *ts, uchar *tlvs, uint32 tlv_len, uint32 seqnum) in dhd_timesync_handle_fw_timestamp() argument 865 DHD_INFO(("FW sent timestamp message, tlv_len %d, seqnum %d\n", tlv_len, seqnum)); in dhd_timesync_handle_fw_timestamp() 866 bcm_print_bytes("fw ts", tlvs, tlv_len); in dhd_timesync_handle_fw_timestamp() 878 if (tlv_len < BCM_XTLV_HDR_SIZE) { in dhd_timesync_handle_fw_timestamp() 879 DHD_ERROR(("%s: bad length %d\n", __FUNCTION__, tlv_len)); in dhd_timesync_handle_fw_timestamp() 882 if (tlv_len > MAX_SIZE_FW_CLKINFO_TYPE) { in dhd_timesync_handle_fw_timestamp() 883 DHD_ERROR(("tlv_len %d more than what is supported in Host %d\n", tlv_len, in dhd_timesync_handle_fw_timestamp() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | dhd_timesync.c | 832 dhd_ts_fw_clksrc_log(dhd_ts_t *ts, uchar *tlvs, uint32 tlv_len, uint32 seqnum) in dhd_ts_fw_clksrc_log() argument 841 while (tlv_len) { in dhd_ts_fw_clksrc_log() 852 tlv_len -= sizeof(*fw_clock_info); in dhd_ts_fw_clksrc_log() 860 dhd_timesync_handle_fw_timestamp(dhd_ts_t *ts, uchar *tlvs, uint32 tlv_len, uint32 seqnum) in dhd_timesync_handle_fw_timestamp() argument 865 DHD_INFO(("FW sent timestamp message, tlv_len %d, seqnum %d\n", tlv_len, seqnum)); in dhd_timesync_handle_fw_timestamp() 866 bcm_print_bytes("fw ts", tlvs, tlv_len); in dhd_timesync_handle_fw_timestamp() 878 if (tlv_len < BCM_XTLV_HDR_SIZE) { in dhd_timesync_handle_fw_timestamp() 879 DHD_ERROR(("%s: bad length %d\n", __FUNCTION__, tlv_len)); in dhd_timesync_handle_fw_timestamp() 882 if (tlv_len > MAX_SIZE_FW_CLKINFO_TYPE) { in dhd_timesync_handle_fw_timestamp() 883 DHD_ERROR(("tlv_len %d more than what is supported in Host %d\n", tlv_len, in dhd_timesync_handle_fw_timestamp() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/ |
| H A D | bcmxtlv.c | 305 uint16 tlv_len; in bcm_pack_xtlv_buf() local 319 more = get_next(ctx, &tlv_id, &tlv_len); in bcm_pack_xtlv_buf() 320 size = bcm_xtlv_size_for_data(tlv_len, opts); in bcm_pack_xtlv_buf() 327 htol16_ua_store(tlv_len, buf + sizeof(tlv_id)); in bcm_pack_xtlv_buf() 328 pack_next(ctx, tlv_id, tlv_len, buf + BCM_XTLV_HDR_SIZE); in bcm_pack_xtlv_buf()
|
| /OK3568_Linux_fs/kernel/net/ipv6/ |
| H 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()
|
| H 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()
|
| /OK3568_Linux_fs/kernel/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() 564 skb_put_data(skb, sdp->tlv, sdp->tlv_len); in nfc_llcp_send_snl_sdres() 596 skb_put_data(skb, sdreq->tlv, sdreq->tlv_len); in nfc_llcp_send_snl_sdreq()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlan/ |
| H A D | mlan_uap_cmdevent.c | 433 t_u16 tlv_type, tlv_len; in wlan_process_tx_pause_event() local 446 tlv_len = wlan_le16_to_cpu(tlv->len); in wlan_process_tx_pause_event() 447 if ((sizeof(MrvlIEtypesHeader_t) + tlv_len) > in wlan_process_tx_pause_event() 450 tlv_len, tlv_buf_left); in wlan_process_tx_pause_event() 493 tlv_buf_left -= (sizeof(MrvlIEtypesHeader_t) + tlv_len); in wlan_process_tx_pause_event() 494 tlv = (MrvlIEtypesHeader_t *)((t_u8 *)tlv + tlv_len + in wlan_process_tx_pause_event() 1783 t_u16 tlv_len = 0; in wlan_uap_ret_cmd_ap_config() local 1842 tlv_len = wlan_le16_to_cpu(tlv->len); in wlan_uap_ret_cmd_ap_config() 1844 if (tlv_buf_left < (tlv_len + sizeof(MrvlIEtypesHeader_t))) { in wlan_uap_ret_cmd_ap_config() 1859 MIN(MLAN_MAX_SSID_LENGTH, tlv_len); in wlan_uap_ret_cmd_ap_config() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | bcmxtlv.c | 453 uint16 tlv_len; in bcm_pack_xtlv_buf() local 470 more = get_next(ctx, &tlv_id, &tlv_len); in bcm_pack_xtlv_buf() 471 size = bcm_xtlv_size_for_data(tlv_len, opts); in bcm_pack_xtlv_buf() 477 bcm_xtlv_pack_xtlv((bcm_xtlv_t *)buf, tlv_id, tlv_len, NULL, opts); in bcm_pack_xtlv_buf() 478 pack_next(ctx, tlv_id, tlv_len, buf + hdr_size); in bcm_pack_xtlv_buf()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | bcmxtlv.c | 453 uint16 tlv_len; in bcm_pack_xtlv_buf() local 470 more = get_next(ctx, &tlv_id, &tlv_len); in bcm_pack_xtlv_buf() 471 size = bcm_xtlv_size_for_data(tlv_len, opts); in bcm_pack_xtlv_buf() 477 bcm_xtlv_pack_xtlv((bcm_xtlv_t *)buf, tlv_id, tlv_len, NULL, opts); in bcm_pack_xtlv_buf() 478 pack_next(ctx, tlv_id, tlv_len, buf + hdr_size); in bcm_pack_xtlv_buf()
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | bcmxtlv.c | 453 uint16 tlv_len; in bcm_pack_xtlv_buf() local 470 more = get_next(ctx, &tlv_id, &tlv_len); in bcm_pack_xtlv_buf() 471 size = bcm_xtlv_size_for_data(tlv_len, opts); in bcm_pack_xtlv_buf() 477 bcm_xtlv_pack_xtlv((bcm_xtlv_t *)buf, tlv_id, tlv_len, NULL, opts); in bcm_pack_xtlv_buf() 478 pack_next(ctx, tlv_id, tlv_len, buf + hdr_size); in bcm_pack_xtlv_buf()
|