Lines Matching full:struct
89 struct mt7915_vif;
90 struct mt7915_sta;
91 struct mt7915_dfs_pulse;
92 struct mt7915_dfs_pattern;
119 struct mt7915_twt_flow {
120 struct list_head list;
137 struct mt7915_sta {
138 struct mt76_wcid wcid; /* must be first */
140 struct mt7915_vif *vif;
142 struct list_head rc_list;
146 struct ewma_avg_signal avg_ack_signal;
150 struct mt76_connac_sta_key_conf bip;
152 struct {
154 struct mt7915_twt_flow flow[MT7915_MAX_STA_TWT_AGRT];
158 struct mt7915_vif_cap {
171 struct mt7915_vif {
172 struct mt76_vif mt76; /* must be first */
174 struct mt7915_vif_cap cap;
175 struct mt7915_sta sta;
176 struct mt7915_phy *phy;
178 struct ieee80211_tx_queue_params queue_params[IEEE80211_NUM_ACS];
179 struct cfg80211_bitrate_mask bitrate_mask;
183 struct mt7915_crash_data {
185 struct timespec64 timestamp;
191 struct mt7915_hif {
192 struct list_head list;
194 struct device *dev;
199 struct mt7915_phy {
200 struct mt76_phy *mt76;
201 struct mt7915_dev *dev;
203 struct ieee80211_sband_iftype_data iftype[NUM_NL80211_BANDS][NUM_NL80211_IFTYPES];
205 struct ieee80211_vif *monitor_vif;
207 struct thermal_cooling_device *cdev;
227 struct mt76_mib_stats mib;
228 struct mt76_channel_state state_ts;
231 struct {
245 struct mt7915_dev {
247 struct mt76_dev mt76;
248 struct mt76_phy mphy;
251 struct mt7915_hif *hif2;
252 struct mt7915_reg_desc reg;
257 const struct mt76_bus_ops *bus_ops;
258 struct mt7915_phy phy;
261 struct cfg80211_chan_def rdd2_chandef;
262 struct mt7915_phy *rdd2_phy;
268 struct work_struct init_work;
269 struct work_struct rc_work;
270 struct work_struct dump_work;
271 struct work_struct reset_work;
274 struct {
284 struct mutex dump_mutex;
286 struct {
287 struct mt7915_crash_data *crash_data;
291 struct list_head sta_rc_list;
292 struct list_head twt_list;
301 struct dentry *debugfs_dir;
302 struct rchan *relay_fwlog;
306 struct {
312 struct {
317 struct reset_control *rstc;
352 static inline struct mt7915_phy *
353 mt7915_hw_phy(struct ieee80211_hw *hw) in mt7915_hw_phy()
355 struct mt76_phy *phy = hw->priv; in mt7915_hw_phy()
360 static inline struct mt7915_dev *
361 mt7915_hw_dev(struct ieee80211_hw *hw) in mt7915_hw_dev()
363 struct mt76_phy *phy = hw->priv; in mt7915_hw_dev()
365 return container_of(phy->dev, struct mt7915_dev, mt76); in mt7915_hw_dev()
368 static inline struct mt7915_phy *
369 mt7915_ext_phy(struct mt7915_dev *dev) in mt7915_ext_phy()
371 struct mt76_phy *phy = dev->mt76.phys[MT_BAND1]; in mt7915_ext_phy()
379 static inline u32 mt7915_check_adie(struct mt7915_dev *dev, bool sku) in mt7915_check_adie()
388 extern const struct ieee80211_ops mt7915_ops;
389 extern const struct mt76_testmode_ops mt7915_testmode_ops;
390 extern struct pci_driver mt7915_pci_driver;
391 extern struct pci_driver mt7915_hif_driver;
392 extern struct platform_driver mt798x_wmac_driver;
395 int mt7986_wmac_enable(struct mt7915_dev *dev);
396 void mt7986_wmac_disable(struct mt7915_dev *dev);
398 static inline int mt7986_wmac_enable(struct mt7915_dev *dev) in mt7986_wmac_enable()
403 static inline void mt7986_wmac_disable(struct mt7915_dev *dev) in mt7986_wmac_disable()
407 struct mt7915_dev *mt7915_mmio_probe(struct device *pdev,
409 void mt7915_wfsys_reset(struct mt7915_dev *dev);
411 u64 __mt7915_get_tsf(struct ieee80211_hw *hw, struct mt7915_vif *mvif);
414 int mt7915_register_device(struct mt7915_dev *dev);
415 void mt7915_unregister_device(struct mt7915_dev *dev);
416 int mt7915_eeprom_init(struct mt7915_dev *dev);
417 void mt7915_eeprom_parse_hw_cap(struct mt7915_dev *dev,
418 struct mt7915_phy *phy);
419 int mt7915_eeprom_get_target_power(struct mt7915_dev *dev,
420 struct ieee80211_channel *chan,
422 s8 mt7915_eeprom_get_power_delta(struct mt7915_dev *dev, int band);
423 int mt7915_dma_init(struct mt7915_dev *dev, struct mt7915_phy *phy2);
424 void mt7915_dma_prefetch(struct mt7915_dev *dev);
425 void mt7915_dma_cleanup(struct mt7915_dev *dev);
426 int mt7915_dma_reset(struct mt7915_dev *dev, bool force);
427 int mt7915_dma_start(struct mt7915_dev *dev, bool reset, bool wed_reset);
428 int mt7915_txbf_init(struct mt7915_dev *dev);
429 void mt7915_init_txpower(struct mt7915_dev *dev,
430 struct ieee80211_supported_band *sband);
431 void mt7915_reset(struct mt7915_dev *dev);
432 int mt7915_run(struct ieee80211_hw *hw);
433 int mt7915_mcu_init(struct mt7915_dev *dev);
434 int mt7915_mcu_init_firmware(struct mt7915_dev *dev);
435 int mt7915_mcu_twt_agrt_update(struct mt7915_dev *dev,
436 struct mt7915_vif *mvif,
437 struct mt7915_twt_flow *flow,
439 int mt7915_mcu_add_dev_info(struct mt7915_phy *phy,
440 struct ieee80211_vif *vif, bool enable);
441 int mt7915_mcu_add_bss_info(struct mt7915_phy *phy,
442 struct ieee80211_vif *vif, int enable);
443 int mt7915_mcu_add_sta(struct mt7915_dev *dev, struct ieee80211_vif *vif,
444 struct ieee80211_sta *sta, bool enable);
445 int mt7915_mcu_add_tx_ba(struct mt7915_dev *dev,
446 struct ieee80211_ampdu_params *params,
448 int mt7915_mcu_add_rx_ba(struct mt7915_dev *dev,
449 struct ieee80211_ampdu_params *params,
451 int mt7915_mcu_update_bss_color(struct mt7915_dev *dev, struct ieee80211_vif *vif,
452 struct cfg80211_he_bss_color *he_bss_color);
453 int mt7915_mcu_add_beacon(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
455 int mt7915_mcu_add_obss_spr(struct mt7915_phy *phy, struct ieee80211_vif *vif,
456 struct ieee80211_he_obss_pd *he_obss_pd);
457 int mt7915_mcu_add_rate_ctrl(struct mt7915_dev *dev, struct ieee80211_vif *vif,
458 struct ieee80211_sta *sta, bool changed);
459 int mt7915_mcu_add_smps(struct mt7915_dev *dev, struct ieee80211_vif *vif,
460 struct ieee80211_sta *sta);
461 int mt7915_set_channel(struct mt7915_phy *phy);
462 int mt7915_mcu_set_chan_info(struct mt7915_phy *phy, int cmd);
463 int mt7915_mcu_set_tx(struct mt7915_dev *dev, struct ieee80211_vif *vif);
464 int mt7915_mcu_update_edca(struct mt7915_dev *dev, void *req);
465 int mt7915_mcu_set_fixed_rate_ctrl(struct mt7915_dev *dev,
466 struct ieee80211_vif *vif,
467 struct ieee80211_sta *sta,
469 int mt7915_mcu_set_eeprom(struct mt7915_dev *dev);
470 int mt7915_mcu_get_eeprom(struct mt7915_dev *dev, u32 offset);
471 int mt7915_mcu_get_eeprom_free_block(struct mt7915_dev *dev, u8 *block_num);
472 int mt7915_mcu_set_mac(struct mt7915_dev *dev, int band, bool enable,
474 int mt7915_mcu_set_test_param(struct mt7915_dev *dev, u8 param, bool test_mode,
476 int mt7915_mcu_set_ser(struct mt7915_dev *dev, u8 action, u8 set, u8 band);
477 int mt7915_mcu_set_sku_en(struct mt7915_phy *phy, bool enable);
478 int mt7915_mcu_set_txpower_sku(struct mt7915_phy *phy);
479 int mt7915_mcu_get_txpower_sku(struct mt7915_phy *phy, s8 *txpower, int len);
480 int mt7915_mcu_set_txpower_frame_min(struct mt7915_phy *phy, s8 txpower);
481 int mt7915_mcu_set_txpower_frame(struct mt7915_phy *phy,
482 struct ieee80211_vif *vif,
483 struct ieee80211_sta *sta, s8 txpower);
484 int mt7915_mcu_set_txbf(struct mt7915_dev *dev, u8 action);
485 int mt7915_mcu_set_fcc5_lpn(struct mt7915_dev *dev, int val);
486 int mt7915_mcu_set_pulse_th(struct mt7915_dev *dev,
487 const struct mt7915_dfs_pulse *pulse);
488 int mt7915_mcu_set_radar_th(struct mt7915_dev *dev, int index,
489 const struct mt7915_dfs_pattern *pattern);
490 int mt7915_mcu_set_muru_ctrl(struct mt7915_dev *dev, u32 cmd, u32 val);
491 int mt7915_mcu_apply_group_cal(struct mt7915_dev *dev);
492 int mt7915_mcu_apply_tx_dpd(struct mt7915_phy *phy);
493 int mt7915_mcu_get_chan_mib_info(struct mt7915_phy *phy, bool chan_switch);
494 int mt7915_mcu_get_temperature(struct mt7915_phy *phy);
495 int mt7915_mcu_set_thermal_throttling(struct mt7915_phy *phy, u8 state);
496 int mt7915_mcu_set_thermal_protect(struct mt7915_phy *phy);
497 int mt7915_mcu_get_rx_rate(struct mt7915_phy *phy, struct ieee80211_vif *vif,
498 struct ieee80211_sta *sta, struct rate_info *rate);
499 int mt7915_mcu_rdd_background_enable(struct mt7915_phy *phy,
500 struct cfg80211_chan_def *chandef);
501 int mt7915_mcu_wed_wa_tx_stats(struct mt7915_dev *dev, u16 wcid);
502 int mt7915_mcu_rf_regval(struct mt7915_dev *dev, u32 regidx, u32 *val, bool set);
503 int mt7915_mcu_wa_cmd(struct mt7915_dev *dev, int cmd, u32 a1, u32 a2, u32 a3);
504 int mt7915_mcu_fw_log_2_host(struct mt7915_dev *dev, u8 type, u8 ctrl);
505 int mt7915_mcu_fw_dbg_ctrl(struct mt7915_dev *dev, u32 module, u8 level);
506 void mt7915_mcu_rx_event(struct mt7915_dev *dev, struct sk_buff *skb);
507 void mt7915_mcu_exit(struct mt7915_dev *dev);
509 static inline u16 mt7915_wtbl_size(struct mt7915_dev *dev) in mt7915_wtbl_size()
514 static inline u16 mt7915_eeprom_size(struct mt7915_dev *dev) in mt7915_eeprom_size()
519 void mt7915_dual_hif_set_irq_mask(struct mt7915_dev *dev, bool write_reg,
522 static inline void mt7915_irq_enable(struct mt7915_dev *dev, u32 mask) in mt7915_irq_enable()
532 static inline void mt7915_irq_disable(struct mt7915_dev *dev, u32 mask) in mt7915_irq_disable()
540 void mt7915_memcpy_fromio(struct mt7915_dev *dev, void *buf, u32 offset,
543 void mt7915_mac_init(struct mt7915_dev *dev);
544 u32 mt7915_mac_wtbl_lmac_addr(struct mt7915_dev *dev, u16 wcid, u8 dw);
545 bool mt7915_mac_wtbl_update(struct mt7915_dev *dev, int idx, u32 mask);
546 void mt7915_mac_reset_counters(struct mt7915_phy *phy);
547 void mt7915_mac_cca_stats_reset(struct mt7915_phy *phy);
548 void mt7915_mac_enable_nf(struct mt7915_dev *dev, bool ext_phy);
549 void mt7915_mac_enable_rtscts(struct mt7915_dev *dev,
550 struct ieee80211_vif *vif, bool enable);
551 void mt7915_mac_write_txwi(struct mt76_dev *dev, __le32 *txwi,
552 struct sk_buff *skb, struct mt76_wcid *wcid, int pid,
553 struct ieee80211_key_conf *key,
555 void mt7915_mac_set_timing(struct mt7915_phy *phy);
556 int mt7915_mac_sta_add(struct mt76_dev *mdev, struct ieee80211_vif *vif,
557 struct ieee80211_sta *sta);
558 void mt7915_mac_sta_remove(struct mt76_dev *mdev, struct ieee80211_vif *vif,
559 struct ieee80211_sta *sta);
560 void mt7915_mac_work(struct work_struct *work);
561 void mt7915_mac_reset_work(struct work_struct *work);
562 void mt7915_mac_dump_work(struct work_struct *work);
563 void mt7915_mac_sta_rc_work(struct work_struct *work);
564 void mt7915_mac_update_stats(struct mt7915_phy *phy);
565 void mt7915_mac_twt_teardown_flow(struct mt7915_dev *dev,
566 struct mt7915_sta *msta,
568 void mt7915_mac_add_twt_setup(struct ieee80211_hw *hw,
569 struct ieee80211_sta *sta,
570 struct ieee80211_twt_setup *twt);
571 int mt7915_tx_prepare_skb(struct mt76_dev *mdev, void *txwi_ptr,
572 enum mt76_txq_id qid, struct mt76_wcid *wcid,
573 struct ieee80211_sta *sta,
574 struct mt76_tx_info *tx_info);
575 void mt7915_queue_rx_skb(struct mt76_dev *mdev, enum mt76_rxq_id q,
576 struct sk_buff *skb, u32 *info);
577 bool mt7915_rx_check(struct mt76_dev *mdev, void *data, int len);
578 void mt7915_stats_work(struct work_struct *work);
579 int mt76_dfs_start_rdd(struct mt7915_dev *dev, bool force);
580 int mt7915_dfs_init_radar_detector(struct mt7915_phy *phy);
581 void mt7915_set_stream_he_caps(struct mt7915_phy *phy);
582 void mt7915_set_stream_vht_txbf_caps(struct mt7915_phy *phy);
583 void mt7915_update_channel(struct mt76_phy *mphy);
584 int mt7915_mcu_muru_debug_set(struct mt7915_dev *dev, bool enable);
585 int mt7915_mcu_muru_debug_get(struct mt7915_phy *phy);
586 int mt7915_mcu_wed_enable_rx_stats(struct mt7915_dev *dev);
587 int mt7915_init_debugfs(struct mt7915_phy *phy);
588 void mt7915_debugfs_rx_fw_monitor(struct mt7915_dev *dev, const void *data, int len);
589 bool mt7915_debugfs_rx_log(struct mt7915_dev *dev, const void *data, int len);
591 void mt7915_sta_add_debugfs(struct ieee80211_hw *hw, struct ieee80211_vif *vif,
592 struct ieee80211_sta *sta, struct dentry *dir);
594 int mt7915_mmio_wed_init(struct mt7915_dev *dev, void *pdev_ptr,