/linux/drivers/net/wireless/mediatek/mt76/mt76x0/ |
A D | initvals_init.h | 94 { MT_BBP(AGC, 0), 0x00021400 }, 95 { MT_BBP(AGC, 1), 0x00000003 }, 96 { MT_BBP(AGC, 2), 0x003A6464 }, 110 { MT_BBP(TXC, 0), 0x00280403 }, 111 { MT_BBP(TXC, 1), 0x00000000 }, 112 { MT_BBP(RXC, 1), 0x00000012 }, 113 { MT_BBP(RXC, 2), 0x00000011 }, 114 { MT_BBP(RXC, 3), 0x00000005 }, 115 { MT_BBP(RXC, 4), 0x00000000 }, 116 { MT_BBP(RXC, 5), 0xF977C4EC }, [all …]
|
A D | initvals.h | 24 { RF_G_BAND | RF_BW_20, { MT_BBP(AGC, 12), 0x05052879 } }, 25 { RF_G_BAND | RF_BW_40, { MT_BBP(AGC, 12), 0x050528F9 } }, 40 { RF_G_BAND | RF_BW_20, { MT_BBP(AGC, 28), 0x00060806 } }, 41 { RF_G_BAND | RF_BW_40, { MT_BBP(AGC, 28), 0x00050806 } }, 42 { RF_A_BAND | RF_BW_40, { MT_BBP(AGC, 28), 0x00060801 } }, 56 { RF_G_BAND | RF_BW_20, { MT_BBP(AGC, 35), 0x11111616 } }, 57 { RF_G_BAND | RF_BW_40, { MT_BBP(AGC, 35), 0x11111516 } }, 60 { RF_G_BAND | RF_BW_20, { MT_BBP(AGC, 39), 0x2A2A3036 } }, 61 { RF_G_BAND | RF_BW_40, { MT_BBP(AGC, 39), 0x2A2A2C36 } }, 64 { RF_G_BAND | RF_BW_20, { MT_BBP(AGC, 43), 0x27273438 } }, [all …]
|
A D | phy.c | 191 val = mt76_rr(dev, MT_BBP(CORE, 0)); in mt76x0_phy_wait_bbp_ready() 411 if (pair->reg == MT_BBP(AGC, 8)) { in mt76x0_phy_set_chan_bbp_params() 516 mt76_set(dev, MT_BBP(CORE, 4), BIT(0)); in mt76x0_phy_tssi_dc_calibrate() 521 mt76_wr(dev, MT_BBP(CORE, 34), val); in mt76x0_phy_tssi_dc_calibrate() 524 mt76_wr(dev, MT_BBP(TXBE, 6), BIT(31)); in mt76x0_phy_tssi_dc_calibrate() 532 mt76_wr(dev, MT_BBP(TXBE, 6), 0); in mt76x0_phy_tssi_dc_calibrate() 550 mt76_wr(dev, MT_BBP(CORE, 34), val); in mt76x0_phy_tssi_adc_calibrate() 746 data = mt76_rr(dev, MT_BBP(CORE, 1)); in mt76x0_phy_get_delta_power() 759 data = mt76_rr(dev, MT_BBP(TXBE, 4)); in mt76x0_phy_get_delta_power() 905 mt76_wr(dev, MT_BBP(IBI, 9), reg_val); in mt76x0_phy_calibrate() [all …]
|
/linux/drivers/net/wireless/mediatek/mt76/mt76x2/ |
A D | pci_phy.c | 75 val = mt76_rr(dev, MT_BBP(AGC, 0)); in mt76x2_phy_set_antenna() 80 mt76_clear(dev, MT_BBP(IBI, 9), BIT(11)); in mt76x2_phy_set_antenna() 81 mt76_clear(dev, MT_BBP(TXBE, 5), 3); in mt76x2_phy_set_antenna() 91 mt76_clear(dev, MT_BBP(IBI, 9), BIT(11)); in mt76x2_phy_set_antenna() 92 mt76_rmw_field(dev, MT_BBP(TXBE, 5), 3, 1); in mt76x2_phy_set_antenna() 104 mt76_set(dev, MT_BBP(IBI, 9), BIT(11)); in mt76x2_phy_set_antenna() 105 mt76_set(dev, MT_BBP(TXBE, 5), 3); in mt76x2_phy_set_antenna() 114 mt76_wr(dev, MT_BBP(AGC, 0), val); in mt76x2_phy_set_antenna() 210 mt76_set(dev, MT_BBP(RXO, 13), BIT(10)); in mt76x2_phy_set_channel() 228 mt76_wr(dev, MT_BBP(AGC, 7), 0x08081010); in mt76x2_phy_set_channel() [all …]
|
A D | phy.c | 18 mt76_rr(dev, MT_BBP(AGC, reg))); in mt76x2_adjust_high_lna_gain() 265 mt76_wr(dev, MT_BBP(AGC, 8), in mt76x2_phy_set_gain_val() 267 mt76_wr(dev, MT_BBP(AGC, 9), in mt76x2_phy_set_gain_val() 301 mt76_wr(dev, MT_BBP(RXO, 14), 0x00560211); in mt76x2_phy_update_channel_gain() 307 mt76_wr(dev, MT_BBP(AGC, 26), val); in mt76x2_phy_update_channel_gain() 309 mt76_wr(dev, MT_BBP(RXO, 14), 0x00560423); in mt76x2_phy_update_channel_gain() 328 mt76_wr(dev, MT_BBP(RXO, 18), 0xf000a990); in mt76x2_phy_update_channel_gain() 329 mt76_wr(dev, MT_BBP(AGC, 35), 0x08080808); in mt76x2_phy_update_channel_gain() 330 mt76_wr(dev, MT_BBP(AGC, 37), 0x08080808); in mt76x2_phy_update_channel_gain() 339 mt76_wr(dev, MT_BBP(AGC, 35), agc_35); in mt76x2_phy_update_channel_gain() [all …]
|
A D | mac.c | 27 mt76_rr(dev, MT_BBP(IBI, 12))) { in mt76x2_mac_stop() 37 mt76_set(dev, MT_BBP(CORE, 4), BIT(1)); in mt76x2_mac_stop() 38 mt76_clear(dev, MT_BBP(CORE, 4), BIT(1)); in mt76x2_mac_stop() 40 mt76_set(dev, MT_BBP(CORE, 4), BIT(0)); in mt76x2_mac_stop() 41 mt76_clear(dev, MT_BBP(CORE, 4), BIT(0)); in mt76x2_mac_stop()
|
A D | usb_phy.c | 145 mt76_set(dev, MT_BBP(RXO, 13), BIT(10)); in mt76x2u_phy_set_channel() 161 mt76_wr(dev, MT_BBP(AGC, 61), 0xff64a4e2); in mt76x2u_phy_set_channel() 162 mt76_wr(dev, MT_BBP(AGC, 7), 0x08081010); in mt76x2u_phy_set_channel() 163 mt76_wr(dev, MT_BBP(AGC, 11), 0x00000404); in mt76x2u_phy_set_channel() 164 mt76_wr(dev, MT_BBP(AGC, 2), 0x00007070); in mt76x2u_phy_set_channel() 167 mt76_set(dev, MT_BBP(TXO, 4), BIT(25)); in mt76x2u_phy_set_channel() 168 mt76_set(dev, MT_BBP(RXO, 13), BIT(8)); in mt76x2u_phy_set_channel()
|
A D | usb_mac.c | 135 !mt76_rr(dev, MT_BBP(IBI, 12))) { in mt76x2u_mac_stop() 143 mt76_set(dev, MT_BBP(CORE, 4), BIT(1)); in mt76x2u_mac_stop() 144 mt76_clear(dev, MT_BBP(CORE, 4), BIT(1)); in mt76x2u_mac_stop() 146 mt76_set(dev, MT_BBP(CORE, 4), BIT(0)); in mt76x2u_mac_stop() 147 mt76_clear(dev, MT_BBP(CORE, 4), BIT(0)); in mt76x2u_mac_stop()
|
/linux/drivers/net/wireless/mediatek/mt76/ |
A D | mt76x02_dfs.c | 148 mt76_wr(dev, MT_BBP(DFS, 36), data); in mt76x02_dfs_set_capture_mode_ctrl() 212 mt76_wr(dev, MT_BBP(DFS, 1), 0xf); in mt76x02_dfs_detector_reset() 254 mt76_wr(dev, MT_BBP(DFS, 0), data); in mt76x02_dfs_get_hw_pulse() 668 mt76_wr(dev, MT_BBP(DFS, 1), 0xf); in mt76x02_dfs_tasklet() 742 mt76_wr(dev, MT_BBP(DFS, 2), data); in mt76x02_dfs_set_bbp_params() 745 mt76_wr(dev, MT_BBP(DFS, 3), data); in mt76x02_dfs_set_bbp_params() 749 mt76_wr(dev, MT_BBP(DFS, 0), i); in mt76x02_dfs_set_bbp_params() 787 mt76_wr(dev, MT_BBP(DFS, 1), 0xf); in mt76x02_dfs_set_bbp_params() 788 mt76_wr(dev, MT_BBP(DFS, 36), 0x3); in mt76x02_dfs_set_bbp_params() 817 mt76_wr(dev, MT_BBP(DFS, 0), 0); in mt76x02_phy_dfs_adjust_agc() [all …]
|
A D | mt76x02_phy.c | 16 val = mt76_rr(dev, MT_BBP(AGC, 0)); in mt76x02_phy_set_rxpath() 28 mt76_wr(dev, MT_BBP(AGC, 0), val); in mt76x02_phy_set_rxpath() 30 val = mt76_rr(dev, MT_BBP(AGC, 0)); in mt76x02_phy_set_rxpath() 41 mt76_set(dev, MT_BBP(TXBE, 5), 0x3); in mt76x02_phy_set_txdac() 44 mt76_clear(dev, MT_BBP(TXBE, 5), 0x3); in mt76x02_phy_set_txdac() 143 mt76_rmw_field(dev, MT_BBP(CORE, 1), MT_BBP_CORE_R1_BW, core_val); in mt76x02_phy_set_bw() 144 mt76_rmw_field(dev, MT_BBP(AGC, 0), MT_BBP_AGC_R0_BW, agc_val); in mt76x02_phy_set_bw() 145 mt76_rmw_field(dev, MT_BBP(AGC, 0), MT_BBP_AGC_R0_CTRL_CHAN, ctrl); in mt76x02_phy_set_bw() 146 mt76_rmw_field(dev, MT_BBP(TXBE, 0), MT_BBP_TXBE_R0_CTRL_CHAN, ctrl); in mt76x02_phy_set_bw() 195 dev->cal.agc_gain_init[0] = mt76_get_field(dev, MT_BBP(AGC, 8), in mt76x02_init_agc_gain() [all …]
|
A D | mt76x02_mac.c | 1092 mt76_rmw(dev, MT_BBP(AGC, 2), GENMASK(15, 0), in mt76x02_edcca_init() 1099 mt76_wr(dev, MT_BBP(AGC, 2), 0x00007070); in mt76x02_edcca_init() 1103 mt76_wr(dev, MT_BBP(AGC, 2), 0x003a6464); in mt76x02_edcca_init()
|
A D | mt76x02_regs.h | 617 #define MT_BBP(_type, _n) (MT_BBP_##_type##_BASE + ((_n) << 2)) macro
|
/linux/drivers/net/wireless/mediatek/mt7601u/ |
A D | regs.h | 549 #define MT_BBP(_type, _n) (MT_BBP_##_type##_BASE + ((_n) << 2)) macro
|