Lines Matching +full:d +full:- +full:phy

1 // SPDX-License-Identifier: ISC
33 mt7615_mac_set_scs(&dev->phy, val); in mt7615_scs_set()
46 *val = dev->phy.scs_en; in mt7615_scs_get()
70 *val = dev->pm.enable; in mt7615_pm_get()
82 dev->pm.idle_timeout = msecs_to_jiffies(val); in mt7615_pm_idle_timeout_set()
92 *val = jiffies_to_msecs(dev->pm.idle_timeout); in mt7615_pm_idle_timeout_get()
137 dev->fw_debug = val; in mt7615_fw_debug_set()
140 mt7615_mcu_fw_log_2_host(dev, dev->fw_debug ? 2 : 0); in mt7615_fw_debug_set()
151 *val = dev->fw_debug; in mt7615_fw_debug_get()
170 return -ENOMEM; in mt7615_reset_test_set()
185 mt7615_ampdu_stat_read_phy(struct mt7615_phy *phy, in mt7615_ampdu_stat_read_phy() argument
188 struct mt7615_dev *dev = file->private; in mt7615_ampdu_stat_read_phy()
189 u32 reg = is_mt7663(&dev->mt76) ? MT_MIB_ARNG(0) : MT_AGG_ASRCR0; in mt7615_ampdu_stat_read_phy()
190 bool ext_phy = phy != &dev->phy; in mt7615_ampdu_stat_read_phy()
193 if (!phy) in mt7615_ampdu_stat_read_phy()
204 seq_printf(file, "\nPhy %d\n", ext_phy); in mt7615_ampdu_stat_read_phy()
206 seq_printf(file, "Length: %8d | ", bound[0]); in mt7615_ampdu_stat_read_phy()
207 for (i = 0; i < ARRAY_SIZE(bound) - 1; i++) in mt7615_ampdu_stat_read_phy()
208 seq_printf(file, "%3d -%3d | ", in mt7615_ampdu_stat_read_phy()
212 range = ext_phy ? ARRAY_SIZE(dev->mt76.aggr_stats) / 2 : 0; in mt7615_ampdu_stat_read_phy()
214 seq_printf(file, "%8d | ", dev->mt76.aggr_stats[i + range]); in mt7615_ampdu_stat_read_phy()
217 seq_printf(file, "BA miss count: %d\n", phy->mib.ba_miss_cnt); in mt7615_ampdu_stat_read_phy()
219 phy->mib.aggr_per / 10, phy->mib.aggr_per % 10); in mt7615_ampdu_stat_read_phy()
225 struct mt7615_dev *dev = file->private; in mt7615_ampdu_stat_show()
229 mt7615_ampdu_stat_read_phy(&dev->phy, file); in mt7615_ampdu_stat_show()
240 mt7615_radio_read_phy(struct mt7615_phy *phy, struct seq_file *s) in mt7615_radio_read_phy() argument
242 struct mt7615_dev *dev = dev_get_drvdata(s->private); in mt7615_radio_read_phy()
243 bool ext_phy = phy != &dev->phy; in mt7615_radio_read_phy()
245 if (!phy) in mt7615_radio_read_phy()
248 seq_printf(s, "Radio %d sensitivity: ofdm=%d cck=%d\n", ext_phy, in mt7615_radio_read_phy()
249 phy->ofdm_sensitivity, phy->cck_sensitivity); in mt7615_radio_read_phy()
250 seq_printf(s, "Radio %d false CCA: ofdm=%d cck=%d\n", ext_phy, in mt7615_radio_read_phy()
251 phy->false_cca_ofdm, phy->false_cca_cck); in mt7615_radio_read_phy()
257 struct mt7615_dev *dev = dev_get_drvdata(s->private); in mt7615_radio_read()
259 mt7615_radio_read_phy(&dev->phy, s); in mt7615_radio_read()
267 struct mt7615_dev *dev = dev_get_drvdata(s->private); in mt7615_read_temperature()
278 seq_printf(s, "Temperature: %d\n", temp); in mt7615_read_temperature()
286 struct mt7615_dev *dev = dev_get_drvdata(s->private); in mt7615_queues_acq()
308 seq_printf(s, "AC%d%d: queued=%d\n", wmm_idx, acs, qlen); in mt7615_queues_acq()
319 struct mt7615_dev *dev = dev_get_drvdata(s->private); in mt7615_queues_read()
331 struct mt76_queue *q = dev->mt76.q_tx[queue_map[i].id]; in mt7615_queues_read()
337 "%s: queued=%d head=%d tail=%d\n", in mt7615_queues_read()
338 queue_map[i].queue, q->queued, q->head, in mt7615_queues_read()
339 q->tail); in mt7615_queues_read()
350 mt7615_rf_wr(dev, dev->debugfs_rf_wf, dev->debugfs_rf_reg, val); in mt7615_rf_reg_set()
360 *val = mt7615_rf_rr(dev, dev->debugfs_rf_wf, dev->debugfs_rf_reg); in mt7615_rf_reg_get()
372 dir = mt76_register_debugfs(&dev->mt76); in mt7615_init_debugfs()
374 return -ENOMEM; in mt7615_init_debugfs()
376 if (is_mt7615(&dev->mt76)) in mt7615_init_debugfs()
377 debugfs_create_devm_seqfile(dev->mt76.dev, "xmit-queues", dir, in mt7615_init_debugfs()
380 debugfs_create_devm_seqfile(dev->mt76.dev, "xmit-queues", dir, in mt7615_init_debugfs()
382 debugfs_create_devm_seqfile(dev->mt76.dev, "acq", dir, in mt7615_init_debugfs()
388 debugfs_create_file("runtime-pm", 0600, dir, dev, &fops_pm); in mt7615_init_debugfs()
389 debugfs_create_file("idle-timeout", 0600, dir, dev, in mt7615_init_debugfs()
391 debugfs_create_devm_seqfile(dev->mt76.dev, "radio", dir, in mt7615_init_debugfs()
393 debugfs_create_u32("dfs_hw_pattern", 0400, dir, &dev->hw_pattern); in mt7615_init_debugfs()
396 &dev->radar_pattern.n_pulses); in mt7615_init_debugfs()
398 &dev->radar_pattern.period); in mt7615_init_debugfs()
400 &dev->radar_pattern.width); in mt7615_init_debugfs()
402 &dev->radar_pattern.power); in mt7615_init_debugfs()
407 debugfs_create_devm_seqfile(dev->mt76.dev, "temperature", dir, in mt7615_init_debugfs()
410 debugfs_create_u32("rf_wfidx", 0600, dir, &dev->debugfs_rf_wf); in mt7615_init_debugfs()
411 debugfs_create_u32("rf_regidx", 0600, dir, &dev->debugfs_rf_reg); in mt7615_init_debugfs()