Lines Matching refs:tlv
397 struct tlv *tlv = (struct tlv *)data; in mt7996_mcu_rx_log_message() local
399 const struct tlv *tlv = (const struct tlv *)data; in mt7996_mcu_rx_log_message() local
409 if (le16_to_cpu(tlv->tag) != UNI_EVENT_FW_LOG_FORMAT) in mt7996_mcu_rx_log_message()
412 data += sizeof(*tlv) + 4; in mt7996_mcu_rx_log_message()
413 len = le16_to_cpu(tlv->len) - sizeof(*tlv) - 4; in mt7996_mcu_rx_log_message()
459 struct tlv *tlv = (struct tlv *)(data + 4); in mt7996_mcu_ie_countdown() local
462 const struct tlv *tlv = (const struct tlv *)(data + 4); in mt7996_mcu_ie_countdown() local
473 while (data + sizeof(struct tlv) < tail && le16_to_cpu(tlv->len)) { in mt7996_mcu_ie_countdown()
474 switch (le16_to_cpu(tlv->tag)) { in mt7996_mcu_ie_countdown()
487 data += le16_to_cpu(tlv->len); in mt7996_mcu_ie_countdown()
489 tlv = (struct tlv *)data; in mt7996_mcu_ie_countdown()
491 tlv = (const struct tlv *)data; in mt7996_mcu_ie_countdown()
762 static struct tlv *
765 struct tlv *ptlv = skb_put_zero(skb, len); in mt7996_mcu_add_uni_tlv()
783 struct tlv *tlv; in mt7996_mcu_bss_rfch_tlv() local
786 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_RLM, sizeof(*ch)); in mt7996_mcu_bss_rfch_tlv()
788 ch = (struct bss_rlm_tlv *)tlv; in mt7996_mcu_bss_rfch_tlv()
807 struct tlv *tlv; in mt7996_mcu_bss_ra_tlv() local
809 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_RA, sizeof(*ra)); in mt7996_mcu_bss_ra_tlv()
811 ra = (struct bss_ra_tlv *)tlv; in mt7996_mcu_bss_ra_tlv()
824 struct tlv *tlv; in mt7996_mcu_bss_he_tlv() local
828 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_HE_BASIC, sizeof(*he)); in mt7996_mcu_bss_he_tlv()
830 he = (struct bss_info_uni_he *)tlv; in mt7996_mcu_bss_he_tlv()
849 struct tlv *tlv; in mt7996_mcu_bss_mbssid_tlv() local
854 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_11V_MBSSID, sizeof(*mbssid)); in mt7996_mcu_bss_mbssid_tlv()
856 mbssid = (struct bss_info_uni_mbssid *)tlv; in mt7996_mcu_bss_mbssid_tlv()
872 struct tlv *tlv; in mt7996_mcu_bss_bmc_tlv() local
876 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_RATE, sizeof(*bmc)); in mt7996_mcu_bss_bmc_tlv()
878 bmc = (struct bss_rate_tlv *)tlv; in mt7996_mcu_bss_bmc_tlv()
889 struct tlv *tlv; in mt7996_mcu_bss_txcmd_tlv() local
891 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_TXCMD, sizeof(*txcmd)); in mt7996_mcu_bss_txcmd_tlv()
893 txcmd = (struct bss_txcmd_tlv *)tlv; in mt7996_mcu_bss_txcmd_tlv()
901 struct tlv *tlv; in mt7996_mcu_bss_mld_tlv() local
903 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_MLD, sizeof(*mld)); in mt7996_mcu_bss_mld_tlv()
905 mld = (struct bss_mld_tlv *)tlv; in mt7996_mcu_bss_mld_tlv()
915 struct tlv *tlv; in mt7996_mcu_bss_sec_tlv() local
917 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_SEC, sizeof(*sec)); in mt7996_mcu_bss_sec_tlv()
919 sec = (struct bss_sec_tlv *)tlv; in mt7996_mcu_bss_sec_tlv()
964 struct tlv *tlv; in mt7996_mcu_bss_ifs_timing_tlv() local
967 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_IFS_TIME, sizeof(*ifs_time)); in mt7996_mcu_bss_ifs_timing_tlv()
969 ifs_time = (struct bss_ifs_time_tlv *)tlv; in mt7996_mcu_bss_ifs_timing_tlv()
999 struct tlv *tlv; in mt7996_mcu_bss_basic_tlv() local
1030 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_BSS_INFO_BASIC, sizeof(*bss)); in mt7996_mcu_bss_basic_tlv()
1032 bss = (struct mt76_connac_bss_basic_tlv *)tlv; in mt7996_mcu_bss_basic_tlv()
1152 struct tlv *tlv; in mt7996_mcu_sta_ba() local
1159 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_BA, sizeof(*ba)); in mt7996_mcu_sta_ba()
1161 ba = (struct sta_rec_ba_uni *)tlv; in mt7996_mcu_sta_ba()
1204 struct tlv *tlv; in mt7996_mcu_sta_he_tlv() local
1210 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_HE_V2, sizeof(*he)); in mt7996_mcu_sta_he_tlv()
1212 he = (struct sta_rec_he_v2 *)tlv; in mt7996_mcu_sta_he_tlv()
1246 struct tlv *tlv; in mt7996_mcu_sta_he_6g_tlv() local
1251 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_HE_6G, sizeof(*he_6g)); in mt7996_mcu_sta_he_6g_tlv()
1253 he_6g = (struct sta_rec_he_6g_capa *)tlv; in mt7996_mcu_sta_he_6g_tlv()
1266 struct tlv *tlv; in mt7996_mcu_sta_eht_tlv() local
1274 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_EHT, sizeof(*eht)); in mt7996_mcu_sta_eht_tlv()
1276 eht = (struct sta_rec_eht *)tlv; in mt7996_mcu_sta_eht_tlv()
1302 struct tlv *tlv; in mt7996_mcu_sta_ht_tlv() local
1307 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_HT, sizeof(*ht)); in mt7996_mcu_sta_ht_tlv()
1309 ht = (struct sta_rec_ht_uni *)tlv; in mt7996_mcu_sta_ht_tlv()
1321 struct tlv *tlv; in mt7996_mcu_sta_vht_tlv() local
1327 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_VHT, sizeof(*vht)); in mt7996_mcu_sta_vht_tlv()
1329 vht = (struct sta_rec_vht *)tlv; in mt7996_mcu_sta_vht_tlv()
1341 struct tlv *tlv; in mt7996_mcu_sta_amsdu_tlv() local
1351 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_HW_AMSDU, sizeof(*amsdu)); in mt7996_mcu_sta_amsdu_tlv()
1352 amsdu = (struct sta_rec_amsdu *)tlv; in mt7996_mcu_sta_amsdu_tlv()
1378 struct tlv *tlv; in mt7996_mcu_sta_muru_tlv() local
1384 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_MURU, sizeof(*muru)); in mt7996_mcu_sta_muru_tlv()
1386 muru = (struct sta_rec_muru *)tlv; in mt7996_mcu_sta_muru_tlv()
1687 struct tlv *tlv; in mt7996_mcu_sta_bfer_tlv() local
1703 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_BF, sizeof(*bf)); in mt7996_mcu_sta_bfer_tlv()
1704 bf = (struct sta_rec_bf *)tlv; in mt7996_mcu_sta_bfer_tlv()
1767 struct tlv *tlv; in mt7996_mcu_sta_bfee_tlv() local
1776 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_BFEE, sizeof(*bfee)); in mt7996_mcu_sta_bfee_tlv()
1777 bfee = (struct sta_rec_bfee *)tlv; in mt7996_mcu_sta_bfee_tlv()
1799 struct tlv *tlv; in mt7996_mcu_sta_tx_proc_tlv() local
1801 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_TX_PROC, sizeof(*tx_proc)); in mt7996_mcu_sta_tx_proc_tlv()
1803 tx_proc = (struct sta_rec_tx_proc *)tlv; in mt7996_mcu_sta_tx_proc_tlv()
1811 struct tlv *tlv; in mt7996_mcu_sta_hdrt_tlv() local
1813 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_HDRT, sizeof(*hdrt)); in mt7996_mcu_sta_hdrt_tlv()
1815 hdrt = (struct sta_rec_hdrt *)tlv; in mt7996_mcu_sta_hdrt_tlv()
1824 struct tlv *tlv; in mt7996_mcu_sta_hdr_trans_tlv() local
1826 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_HDR_TRANS, sizeof(*hdr_trans)); in mt7996_mcu_sta_hdr_trans_tlv()
1827 hdr_trans = (struct sta_rec_hdr_trans *)tlv; in mt7996_mcu_sta_hdr_trans_tlv()
1872 struct tlv *tlv; in mt7996_mcu_set_fixed_rate_ctrl() local
1883 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_RA_FIXED_RATE, sizeof(*req)); in mt7996_mcu_set_fixed_rate_ctrl()
1884 req = (struct ra_fixed_rate *)tlv; in mt7996_mcu_set_fixed_rate_ctrl()
1900 struct tlv *tlv; in mt7996_mcu_set_fixed_field() local
1908 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_RA_UPDATE, sizeof(*ra)); in mt7996_mcu_set_fixed_field()
1909 ra = (struct sta_rec_ra_fixed_uni *)tlv; in mt7996_mcu_set_fixed_field()
2031 struct tlv *tlv; in mt7996_mcu_sta_rate_ctrl_tlv() local
2035 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_RA, sizeof(*ra)); in mt7996_mcu_sta_rate_ctrl_tlv()
2036 ra = (struct sta_rec_ra_uni *)tlv; in mt7996_mcu_sta_rate_ctrl_tlv()
2267 struct tlv *tlv; in mt7996_mcu_sta_key_tlv() local
2269 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_KEY_V2, sizeof(*sec)); in mt7996_mcu_sta_key_tlv()
2270 sec = (struct sta_rec_sec_uni *)tlv; in mt7996_mcu_sta_key_tlv()
2332 struct tlv *tlv; in mt7996_mcu_get_pn() local
2339 tlv = mt76_connac_mcu_add_tlv(skb, STA_REC_PN_INFO, sizeof(*pn_info)); in mt7996_mcu_get_pn()
2340 pn_info = (struct sta_rec_pn_info *)tlv; in mt7996_mcu_get_pn()
2365 struct tlv *tlv; in mt7996_mcu_bcn_prot_enable() local
2375 tlv = mt76_connac_mcu_add_tlv(skb, UNI_BSS_INFO_BCN_PROT, sizeof(*bcn_prot)); in mt7996_mcu_bcn_prot_enable()
2377 bcn_prot = (struct mt7996_mcu_bcn_prot_tlv *)tlv; in mt7996_mcu_bcn_prot_enable()
2429 } __packed tlv; in mt7996_mcu_add_dev_info() member
2435 .tlv = { in mt7996_mcu_add_dev_info()
2445 memcpy(data.tlv.omac_addr, link_conf->addr, ETH_ALEN); in mt7996_mcu_add_dev_info()
2456 struct tlv *tlv; in mt7996_mcu_beacon_cntdwn() local
2464 tlv = mt7996_mcu_add_uni_tlv(rskb, tag, sizeof(*info)); in mt7996_mcu_beacon_cntdwn()
2466 info = (struct bss_bcn_cntdwn_tlv *)tlv; in mt7996_mcu_beacon_cntdwn()
2477 struct tlv *tlv; in mt7996_mcu_beacon_mbss() local
2479 tlv = mt7996_mcu_add_uni_tlv(rskb, UNI_BSS_INFO_BCN_MBSSID, sizeof(*mbss)); in mt7996_mcu_beacon_mbss()
2481 mbss = (struct bss_bcn_mbss_tlv *)tlv; in mt7996_mcu_beacon_mbss()
2561 struct tlv *tlv; in mt7996_mcu_add_beacon() local
2594 tlv = mt7996_mcu_add_uni_tlv(rskb, UNI_BSS_INFO_BCN_CONTENT, len); in mt7996_mcu_add_beacon()
2595 bcn = (struct bss_bcn_content_tlv *)tlv; in mt7996_mcu_add_beacon()
2627 struct tlv *tlv; in mt7996_mcu_beacon_inband_discov() local
2673 tlv = mt7996_mcu_add_uni_tlv(rskb, UNI_BSS_INFO_OFFLOAD, len); in mt7996_mcu_beacon_inband_discov()
2675 discov = (struct bss_inband_discovery_tlv *)tlv; in mt7996_mcu_beacon_inband_discov()
2684 buf = (u8 *)tlv + sizeof(*discov); in mt7996_mcu_beacon_inband_discov()
3060 struct tlv *tlv; in mt7996_add_rx_airtime_tlv() local
3062 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_VOW_RX_AT_AIRTIME_CLR_EN, sizeof(*req)); in mt7996_add_rx_airtime_tlv()
3063 req = (struct vow_rx_airtime *)tlv; in mt7996_add_rx_airtime_tlv()
3067 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_VOW_RX_AT_AIRTIME_EN, sizeof(*req)); in mt7996_add_rx_airtime_tlv()
3068 req = (struct vow_rx_airtime *)tlv; in mt7996_add_rx_airtime_tlv()
3179 struct tlv *tlv; in mt7996_mcu_set_hdr_trans() local
3188 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_HDR_TRANS_EN, sizeof(*req_en)); in mt7996_mcu_set_hdr_trans()
3189 req_en = (struct hdr_trans_en *)tlv; in mt7996_mcu_set_hdr_trans()
3192 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_HDR_TRANS_VLAN, in mt7996_mcu_set_hdr_trans()
3196 tlv = mt7996_mcu_add_uni_tlv(skb, UNI_HDR_TRANS_BLACKLIST, in mt7996_mcu_set_hdr_trans()
3198 req_blacklist = (struct hdr_trans_blacklist *)tlv; in mt7996_mcu_set_hdr_trans()
3237 struct tlv *tlv; in mt7996_mcu_set_tx() local
3239 tlv = mt7996_mcu_add_uni_tlv(skb, MCU_EDCA_AC_PARAM, sizeof(*e)); in mt7996_mcu_set_tx()
3241 e = (struct edca *)tlv; in mt7996_mcu_set_tx()
3713 struct tlv *tlv = (struct tlv *)buf; in mt7996_mcu_get_chip_config() local
3715 switch (le16_to_cpu(tlv->tag)) { in mt7996_mcu_get_chip_config()
3717 *cap = le32_to_cpu(*(__le32 *)(buf + sizeof(*tlv))); in mt7996_mcu_get_chip_config()
3723 buf += le16_to_cpu(tlv->len); in mt7996_mcu_get_chip_config()
3974 struct tlv *tlv; in mt7996_mcu_set_txbf() local
3989 tlv = mt7996_mcu_add_uni_tlv(skb, action, sizeof(*req_snd_on)); in mt7996_mcu_set_txbf()
3990 req_snd_on = (struct bf_sounding_on *)tlv; in mt7996_mcu_set_txbf()
3997 tlv = mt7996_mcu_add_uni_tlv(skb, action, sizeof(*req_hw_en)); in mt7996_mcu_set_txbf()
3998 req_hw_en = (struct bf_hw_en_status_update *)tlv; in mt7996_mcu_set_txbf()
4006 tlv = mt7996_mcu_add_uni_tlv(skb, action, sizeof(*req_mod_en)); in mt7996_mcu_set_txbf()
4007 req_mod_en = (struct bf_mod_en_ctrl *)tlv; in mt7996_mcu_set_txbf()
4224 struct tlv *tlv; in mt7996_mcu_update_bss_color() local
4230 tlv = mt76_connac_mcu_add_tlv(skb, UNI_BSS_INFO_BSS_COLOR, in mt7996_mcu_update_bss_color()
4232 bss_color = (struct bss_color_tlv *)tlv; in mt7996_mcu_update_bss_color()