Lines Matching full:struct

55 struct mt7996_vif;
56 struct mt7996_sta;
57 struct mt7996_dfs_pulse;
58 struct mt7996_dfs_pattern;
86 struct mt7996_twt_flow {
87 struct list_head list;
104 struct mt7996_sta {
105 struct mt76_wcid wcid; /* must be first */
107 struct mt7996_vif *vif;
109 struct list_head rc_list;
113 struct ewma_avg_signal avg_ack_signal;
118 struct mt76_connac_sta_key_conf bip;
120 struct {
122 struct mt7996_twt_flow flow[MT7996_MAX_STA_TWT_AGRT];
126 struct mt7996_vif {
127 struct mt76_vif mt76; /* must be first */
129 struct mt7996_sta sta;
130 struct mt7996_phy *phy;
132 struct ieee80211_tx_queue_params queue_params[IEEE80211_NUM_ACS];
133 struct cfg80211_bitrate_mask bitrate_mask;
137 struct mt7996_crash_data {
139 struct timespec64 timestamp;
145 struct mt7996_hif {
146 struct list_head list;
148 struct device *dev;
153 struct mt7996_phy {
154 struct mt76_phy *mt76;
155 struct mt7996_dev *dev;
157 struct ieee80211_sband_iftype_data iftype[NUM_NL80211_BANDS][NUM_NL80211_IFTYPES];
159 struct ieee80211_vif *monitor_vif;
174 struct mt76_mib_stats mib;
175 struct mt76_channel_state state_ts;
178 struct mt7996_dev {
180 struct mt76_dev mt76;
181 struct mt76_phy mphy;
184 struct mt7996_hif *hif2;
185 struct mt7996_reg_desc reg;
190 const struct mt76_bus_ops *bus_ops;
191 struct mt7996_phy phy;
194 struct cfg80211_chan_def rdd2_chandef;
195 struct mt7996_phy *rdd2_phy;
201 struct work_struct init_work;
202 struct work_struct rc_work;
203 struct work_struct dump_work;
204 struct work_struct reset_work;
206 struct {
216 struct mutex dump_mutex;
218 struct {
219 struct mt7996_crash_data *crash_data;
223 struct list_head sta_rc_list;
224 struct list_head twt_list;
239 struct dentry *debugfs_dir;
240 struct rchan *relay_fwlog;
242 struct {
282 static inline struct mt7996_phy *
283 mt7996_hw_phy(struct ieee80211_hw *hw) in mt7996_hw_phy()
285 struct mt76_phy *phy = hw->priv; in mt7996_hw_phy()
290 static inline struct mt7996_dev *
291 mt7996_hw_dev(struct ieee80211_hw *hw) in mt7996_hw_dev()
293 struct mt76_phy *phy = hw->priv; in mt7996_hw_dev()
295 return container_of(phy->dev, struct mt7996_dev, mt76); in mt7996_hw_dev()
298 static inline struct mt7996_phy *
299 __mt7996_phy(struct mt7996_dev *dev, enum mt76_band_id band) in __mt7996_phy()
301 struct mt76_phy *phy = dev->mt76.phys[band]; in __mt7996_phy()
309 static inline struct mt7996_phy *
310 mt7996_phy2(struct mt7996_dev *dev) in mt7996_phy2()
315 static inline struct mt7996_phy *
316 mt7996_phy3(struct mt7996_dev *dev) in mt7996_phy3()
321 extern const struct ieee80211_ops mt7996_ops;
322 extern struct pci_driver mt7996_pci_driver;
323 extern struct pci_driver mt7996_hif_driver;
325 struct mt7996_dev *mt7996_mmio_probe(struct device *pdev,
327 void mt7996_wfsys_reset(struct mt7996_dev *dev);
329 u64 __mt7996_get_tsf(struct ieee80211_hw *hw, struct mt7996_vif *mvif);
330 int mt7996_register_device(struct mt7996_dev *dev);
331 void mt7996_unregister_device(struct mt7996_dev *dev);
332 int mt7996_eeprom_init(struct mt7996_dev *dev);
333 int mt7996_eeprom_parse_hw_cap(struct mt7996_dev *dev, struct mt7996_phy *phy);
334 int mt7996_eeprom_get_target_power(struct mt7996_dev *dev,
335 struct ieee80211_channel *chan);
336 s8 mt7996_eeprom_get_power_delta(struct mt7996_dev *dev, int band);
337 int mt7996_dma_init(struct mt7996_dev *dev);
338 void mt7996_dma_reset(struct mt7996_dev *dev, bool force);
339 void mt7996_dma_prefetch(struct mt7996_dev *dev);
340 void mt7996_dma_cleanup(struct mt7996_dev *dev);
341 void mt7996_dma_start(struct mt7996_dev *dev, bool reset);
342 void mt7996_init_txpower(struct mt7996_dev *dev,
343 struct ieee80211_supported_band *sband);
344 int mt7996_txbf_init(struct mt7996_dev *dev);
345 void mt7996_reset(struct mt7996_dev *dev);
346 int mt7996_run(struct ieee80211_hw *hw);
347 int mt7996_mcu_init(struct mt7996_dev *dev);
348 int mt7996_mcu_init_firmware(struct mt7996_dev *dev);
349 int mt7996_mcu_twt_agrt_update(struct mt7996_dev *dev,
350 struct mt7996_vif *mvif,
351 struct mt7996_twt_flow *flow,
353 int mt7996_mcu_add_dev_info(struct mt7996_phy *phy,
354 struct ieee80211_vif *vif, bool enable);
355 int mt7996_mcu_add_bss_info(struct mt7996_phy *phy,
356 struct ieee80211_vif *vif, int enable);
357 int mt7996_mcu_add_sta(struct mt7996_dev *dev, struct ieee80211_vif *vif,
358 struct ieee80211_sta *sta, bool enable);
359 int mt7996_mcu_add_tx_ba(struct mt7996_dev *dev,
360 struct ieee80211_ampdu_params *params,
362 int mt7996_mcu_add_rx_ba(struct mt7996_dev *dev,
363 struct ieee80211_ampdu_params *params,
365 int mt7996_mcu_update_bss_color(struct mt7996_dev *dev, struct ieee80211_vif *vif,
366 struct cfg80211_he_bss_color *he_bss_color);
367 int mt7996_mcu_add_beacon(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
369 int mt7996_mcu_beacon_inband_discov(struct mt7996_dev *dev,
370 struct ieee80211_vif *vif, u32 changed);
371 int mt7996_mcu_add_obss_spr(struct mt7996_phy *phy, struct ieee80211_vif *vif,
372 struct ieee80211_he_obss_pd *he_obss_pd);
373 int mt7996_mcu_add_rate_ctrl(struct mt7996_dev *dev, struct ieee80211_vif *vif,
374 struct ieee80211_sta *sta, bool changed);
375 int mt7996_set_channel(struct mt7996_phy *phy);
376 int mt7996_mcu_set_chan_info(struct mt7996_phy *phy, u16 tag);
377 int mt7996_mcu_set_tx(struct mt7996_dev *dev, struct ieee80211_vif *vif);
378 int mt7996_mcu_set_fixed_rate_ctrl(struct mt7996_dev *dev,
380 int mt7996_mcu_set_eeprom(struct mt7996_dev *dev);
381 int mt7996_mcu_get_eeprom(struct mt7996_dev *dev, u32 offset);
382 int mt7996_mcu_get_eeprom_free_block(struct mt7996_dev *dev, u8 *block_num);
383 int mt7996_mcu_get_chip_config(struct mt7996_dev *dev, u32 *cap);
384 int mt7996_mcu_set_ser(struct mt7996_dev *dev, u8 action, u8 set, u8 band);
385 int mt7996_mcu_set_txbf(struct mt7996_dev *dev, u8 action);
386 int mt7996_mcu_set_fcc5_lpn(struct mt7996_dev *dev, int val);
387 int mt7996_mcu_set_pulse_th(struct mt7996_dev *dev,
388 const struct mt7996_dfs_pulse *pulse);
389 int mt7996_mcu_set_radar_th(struct mt7996_dev *dev, int index,
390 const struct mt7996_dfs_pattern *pattern);
391 int mt7996_mcu_set_radio_en(struct mt7996_phy *phy, bool enable);
392 int mt7996_mcu_set_rts_thresh(struct mt7996_phy *phy, u32 val);
393 int mt7996_mcu_set_timing(struct mt7996_phy *phy, struct ieee80211_vif *vif);
394 int mt7996_mcu_get_chan_mib_info(struct mt7996_phy *phy, bool chan_switch);
395 int mt7996_mcu_rdd_cmd(struct mt7996_dev *dev, int cmd, u8 index,
397 int mt7996_mcu_rdd_background_enable(struct mt7996_phy *phy,
398 struct cfg80211_chan_def *chandef);
399 int mt7996_mcu_rf_regval(struct mt7996_dev *dev, u32 regidx, u32 *val, bool set);
400 int mt7996_mcu_set_hdr_trans(struct mt7996_dev *dev, bool hdr_trans);
401 int mt7996_mcu_set_rro(struct mt7996_dev *dev, u16 tag, u8 val);
402 int mt7996_mcu_wa_cmd(struct mt7996_dev *dev, int cmd, u32 a1, u32 a2, u32 a3);
403 int mt7996_mcu_fw_log_2_host(struct mt7996_dev *dev, u8 type, u8 ctrl);
404 int mt7996_mcu_fw_dbg_ctrl(struct mt7996_dev *dev, u32 module, u8 level);
405 int mt7996_mcu_trigger_assert(struct mt7996_dev *dev);
406 void mt7996_mcu_rx_event(struct mt7996_dev *dev, struct sk_buff *skb);
407 void mt7996_mcu_exit(struct mt7996_dev *dev);
409 static inline u8 mt7996_max_interface_num(struct mt7996_dev *dev) in mt7996_max_interface_num()
414 static inline u16 mt7996_wtbl_size(struct mt7996_dev *dev) in mt7996_wtbl_size()
419 void mt7996_dual_hif_set_irq_mask(struct mt7996_dev *dev, bool write_reg,
422 static inline void mt7996_irq_enable(struct mt7996_dev *dev, u32 mask) in mt7996_irq_enable()
432 static inline void mt7996_irq_disable(struct mt7996_dev *dev, u32 mask) in mt7996_irq_disable()
440 void mt7996_memcpy_fromio(struct mt7996_dev *dev, void *buf, u32 offset,
443 void mt7996_mac_init(struct mt7996_dev *dev);
444 u32 mt7996_mac_wtbl_lmac_addr(struct mt7996_dev *dev, u16 wcid, u8 dw);
445 bool mt7996_mac_wtbl_update(struct mt7996_dev *dev, int idx, u32 mask);
446 void mt7996_mac_reset_counters(struct mt7996_phy *phy);
447 void mt7996_mac_cca_stats_reset(struct mt7996_phy *phy);
448 void mt7996_mac_enable_nf(struct mt7996_dev *dev, u8 band);
449 void mt7996_mac_enable_rtscts(struct mt7996_dev *dev,
450 struct ieee80211_vif *vif, bool enable);
451 void mt7996_mac_set_fixed_rate_table(struct mt7996_dev *dev,
453 void mt7996_mac_write_txwi(struct mt7996_dev *dev, __le32 *txwi,
454 struct sk_buff *skb, struct mt76_wcid *wcid,
455 struct ieee80211_key_conf *key, int pid,
457 void mt7996_mac_set_coverage_class(struct mt7996_phy *phy);
458 int mt7996_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
459 struct ieee80211_sta *sta);
460 void mt7996_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif,
461 struct ieee80211_sta *sta);
462 void mt7996_mac_work(struct work_struct *work);
463 void mt7996_mac_reset_work(struct work_struct *work);
464 void mt7996_mac_dump_work(struct work_struct *work);
465 void mt7996_mac_sta_rc_work(struct work_struct *work);
466 void mt7996_mac_update_stats(struct mt7996_phy *phy);
467 void mt7996_mac_twt_teardown_flow(struct mt7996_dev *dev,
468 struct mt7996_sta *msta,
470 void mt7996_mac_add_twt_setup(struct ieee80211_hw *hw,
471 struct ieee80211_sta *sta,
472 struct ieee80211_twt_setup *twt);
473 int mt7996_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
474 enum mt76_txq_id qid, struct mt76_wcid *wcid,
475 struct ieee80211_sta *sta,
476 struct mt76_tx_info *tx_info);
477 void mt7996_tx_token_put(struct mt7996_dev *dev);
478 void mt7996_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q,
479 struct sk_buff *skb, u32 *info);
480 bool mt7996_rx_check(struct mt76_dev *mdev, void *data, int len);
481 void mt7996_stats_work(struct work_struct *work);
482 int mt76_dfs_start_rdd(struct mt7996_dev *dev, bool force);
483 int mt7996_dfs_init_radar_detector(struct mt7996_phy *phy);
484 void mt7996_set_stream_he_eht_caps(struct mt7996_phy *phy);
485 void mt7996_set_stream_vht_txbf_caps(struct mt7996_phy *phy);
486 void mt7996_update_channel(struct mt76_phy *mphy);
487 int mt7996_init_debugfs(struct mt7996_phy *phy);
488 void mt7996_debugfs_rx_fw_monitor(struct mt7996_dev *dev, const void *data, int len);
489 bool mt7996_debugfs_rx_log(struct mt7996_dev *dev, const void *data, int len);
490 int mt7996_mcu_add_key(struct mt76_dev *dev, struct ieee80211_vif *vif,
491 struct mt76_connac_sta_key_conf *sta_key_conf,
492 struct ieee80211_key_conf *key, int mcu_cmd,
493 struct mt76_wcid *wcid, enum set_key_cmd cmd);
494 int mt7996_mcu_wtbl_update_hdr_trans(struct mt7996_dev *dev,
495 struct ieee80211_vif *vif,
496 struct ieee80211_sta *sta);
498 void mt7996_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
499 struct ieee80211_sta *sta, struct dentry *dir);