Lines Matching refs:phy_idx

956 				     enum rtw89_phy_idx phy_idx)  in rtw8851b_set_gain_offset()  argument
993 rtw89_phy_write32_idx(rtwdev, R_P0_RPL1, B_P0_RPL1_BIAS_MASK, tmp, phy_idx); in rtw8851b_set_gain_offset()
997 rtw89_phy_write32_idx(rtwdev, R_P1_RPL1, B_P0_RPL1_BIAS_MASK, tmp, phy_idx); in rtw8851b_set_gain_offset()
1038 enum rtw89_phy_idx phy_idx) in rtw8851b_ctrl_ch() argument
1047 B_PATH0_BAND_SEL_MSK_V1, 1, phy_idx); in rtw8851b_ctrl_ch()
1050 B_PATH0_BAND_SEL_MSK_V1, 0, phy_idx); in rtw8851b_ctrl_ch()
1053 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_INV, sco_comp, phy_idx); in rtw8851b_ctrl_ch()
1080 rtw8851b_set_gain_offset(rtwdev, subband, phy_idx); in rtw8851b_ctrl_ch()
1126 enum rtw89_phy_idx phy_idx) in rtw8851b_ctrl_bw() argument
1130 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_SET, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1131 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_SBW, 0x1, phy_idx); in rtw8851b_ctrl_bw()
1132 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_PRICH, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1135 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_SET, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1136 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_SBW, 0x2, phy_idx); in rtw8851b_ctrl_bw()
1137 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_PRICH, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1140 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_SET, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1141 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_SBW, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1142 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_PRICH, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1145 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_SET, 0x1, phy_idx); in rtw8851b_ctrl_bw()
1146 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_SBW, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1148 pri_ch, phy_idx); in rtw8851b_ctrl_bw()
1157 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_SET, 0x2, phy_idx); in rtw8851b_ctrl_bw()
1158 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_SBW, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1160 pri_ch, phy_idx); in rtw8851b_ctrl_bw()
1211 enum rtw89_phy_idx phy_idx) in rtw8851b_set_csi_tone_idx() argument
1219 0, phy_idx); in rtw8851b_set_csi_tone_idx()
1228 csi_tone_idx, phy_idx); in rtw8851b_set_csi_tone_idx()
1229 rtw89_phy_write32_idx(rtwdev, R_SEG0CSI_EN_V1, B_SEG0CSI_EN, 1, phy_idx); in rtw8851b_set_csi_tone_idx()
1336 enum rtw89_phy_idx phy_idx) in rtw8851b_5m_mask() argument
1362 B_ASSIGN_SBD_OPT_EN_V1, 0x0, phy_idx); in rtw8851b_5m_mask()
1378 B_ASSIGN_SBD_OPT_EN_V1, 0x1, phy_idx); in rtw8851b_5m_mask()
1381 static void rtw8851b_bb_reset_all(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8851b_bb_reset_all() argument
1383 rtw89_phy_write32_idx(rtwdev, R_S0_HW_SI_DIS, B_S0_HW_SI_DIS_W_R_TRIG, 0x7, phy_idx); in rtw8851b_bb_reset_all()
1385 rtw89_phy_write32_idx(rtwdev, R_RSTB_ASYNC, B_RSTB_ASYNC_ALL, 1, phy_idx); in rtw8851b_bb_reset_all()
1386 rtw89_phy_write32_idx(rtwdev, R_RSTB_ASYNC, B_RSTB_ASYNC_ALL, 0, phy_idx); in rtw8851b_bb_reset_all()
1387 rtw89_phy_write32_idx(rtwdev, R_S0_HW_SI_DIS, B_S0_HW_SI_DIS_W_R_TRIG, 0x0, phy_idx); in rtw8851b_bb_reset_all()
1388 rtw89_phy_write32_idx(rtwdev, R_RSTB_ASYNC, B_RSTB_ASYNC_ALL, 1, phy_idx); in rtw8851b_bb_reset_all()
1392 enum rtw89_phy_idx phy_idx, bool en) in rtw8851b_bb_reset_en() argument
1396 B_S0_HW_SI_DIS_W_R_TRIG, 0x0, phy_idx); in rtw8851b_bb_reset_en()
1397 rtw89_phy_write32_idx(rtwdev, R_RSTB_ASYNC, B_RSTB_ASYNC_ALL, 1, phy_idx); in rtw8851b_bb_reset_en()
1405 B_S0_HW_SI_DIS_W_R_TRIG, 0x7, phy_idx); in rtw8851b_bb_reset_en()
1407 rtw89_phy_write32_idx(rtwdev, R_RSTB_ASYNC, B_RSTB_ASYNC_ALL, 0, phy_idx); in rtw8851b_bb_reset_en()
1412 enum rtw89_phy_idx phy_idx) in rtw8851b_bb_reset() argument
1417 rtw8851b_bb_reset_all(rtwdev, phy_idx); in rtw8851b_bb_reset()
1466 enum rtw89_phy_idx phy_idx) in rtw8851b_bb_macid_ctrl_init() argument
1472 rtw89_mac_txpwr_write32(rtwdev, phy_idx, addr, 0); in rtw8851b_bb_macid_ctrl_init()
1495 enum rtw89_phy_idx phy_idx) in rtw8851b_set_channel_bb() argument
1504 rtw8851b_ctrl_ch(rtwdev, chan, phy_idx); in rtw8851b_set_channel_bb()
1505 rtw8851b_ctrl_bw(rtwdev, pri_ch_idx, chan->band_width, phy_idx); in rtw8851b_set_channel_bb()
1508 rtw8851b_set_csi_tone_idx(rtwdev, chan, phy_idx); in rtw8851b_set_channel_bb()
1524 rtw8851b_5m_mask(rtwdev, chan, phy_idx); in rtw8851b_set_channel_bb()
1526 rtw8851b_bb_reset_all(rtwdev, phy_idx); in rtw8851b_set_channel_bb()
1532 enum rtw89_phy_idx phy_idx) in rtw8851b_set_channel() argument
1535 rtw8851b_set_channel_bb(rtwdev, chan, phy_idx); in rtw8851b_set_channel()
1536 rtw8851b_set_channel_rf(rtwdev, chan, phy_idx); in rtw8851b_set_channel()
1552 u8 phy_idx) in rtw8851b_tssi_cont_en_phyidx() argument
1569 enum rtw89_phy_idx phy_idx) in rtw8851b_set_channel_help() argument
1577 rtw8851b_bb_reset_en(rtwdev, chan->band_type, phy_idx, false); in rtw8851b_set_channel_help()
1582 rtw8851b_bb_reset_en(rtwdev, chan->band_type, phy_idx, true); in rtw8851b_set_channel_help()
1604 enum rtw89_phy_idx phy_idx = rtwvif_link->phy_idx; in rtw8851b_rfk_channel() local
1608 rtw8851b_rx_dck(rtwdev, phy_idx, chanctx_idx); in rtw8851b_rfk_channel()
1609 rtw8851b_iqk(rtwdev, phy_idx, chanctx_idx); in rtw8851b_rfk_channel()
1611 rtw8851b_tssi(rtwdev, phy_idx, true, chanctx_idx); in rtw8851b_rfk_channel()
1613 rtw8851b_dpk(rtwdev, phy_idx, chanctx_idx); in rtw8851b_rfk_channel()
1619 enum rtw89_phy_idx phy_idx, in rtw8851b_rfk_band_changed() argument
1622 rtw8851b_tssi_scan(rtwdev, phy_idx, chan); in rtw8851b_rfk_band_changed()
1629 rtw8851b_wifi_scan_notify(rtwdev, start, rtwvif_link->phy_idx, in rtw8851b_rfk_scan()
1640 enum rtw89_phy_idx phy_idx, s16 ref) in rtw8851b_bb_cal_txpwr_ref() argument
1668 enum rtw89_phy_idx phy_idx) in rtw8851b_set_txpwr_ref() argument
1681 rtw89_mac_txpwr_write32_mask(rtwdev, phy_idx, R_AX_PWR_RATE_CTRL, in rtw8851b_set_txpwr_ref()
1685 val = rtw8851b_bb_cal_txpwr_ref(rtwdev, phy_idx, ref_ofdm); in rtw8851b_set_txpwr_ref()
1689 phy_idx); in rtw8851b_set_txpwr_ref()
1692 val = rtw8851b_bb_cal_txpwr_ref(rtwdev, phy_idx, ref_cck); in rtw8851b_set_txpwr_ref()
1696 phy_idx); in rtw8851b_set_txpwr_ref()
1702 enum rtw89_phy_idx phy_idx) in rtw8851b_bb_set_tx_shape_dfir() argument
1741 phy_idx); in rtw8851b_bb_set_tx_shape_dfir()
1752 enum rtw89_phy_idx phy_idx) in rtw8851b_set_tx_shape() argument
1761 rtw8851b_bb_set_tx_shape_dfir(rtwdev, chan, tx_shape_cck, phy_idx); in rtw8851b_set_tx_shape()
1769 enum rtw89_phy_idx phy_idx) in rtw8851b_set_txpwr() argument
1771 rtw89_phy_set_txpwr_byrate(rtwdev, chan, phy_idx); in rtw8851b_set_txpwr()
1772 rtw89_phy_set_txpwr_offset(rtwdev, chan, phy_idx); in rtw8851b_set_txpwr()
1773 rtw8851b_set_tx_shape(rtwdev, chan, phy_idx); in rtw8851b_set_txpwr()
1774 rtw89_phy_set_txpwr_limit(rtwdev, chan, phy_idx); in rtw8851b_set_txpwr()
1775 rtw89_phy_set_txpwr_limit_ru(rtwdev, chan, phy_idx); in rtw8851b_set_txpwr()
1779 enum rtw89_phy_idx phy_idx) in rtw8851b_set_txpwr_ctrl() argument
1781 rtw8851b_set_txpwr_ref(rtwdev, phy_idx); in rtw8851b_set_txpwr_ctrl()
1807 rtw8851b_init_txpwr_unit(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8851b_init_txpwr_unit() argument
1811 ret = rtw89_mac_txpwr_write32(rtwdev, phy_idx, R_AX_PWR_UL_CTRL2, 0x07763333); in rtw8851b_init_txpwr_unit()
1815 ret = rtw89_mac_txpwr_write32(rtwdev, phy_idx, R_AX_PWR_COEXT_CTRL, 0x01ebf000); in rtw8851b_init_txpwr_unit()
1819 ret = rtw89_mac_txpwr_write32(rtwdev, phy_idx, R_AX_PWR_UL_CTRL0, 0x0002f8ff); in rtw8851b_init_txpwr_unit()
1823 rtw8851b_set_txpwr_ul_tb_offset(rtwdev, 0, phy_idx == RTW89_PHY_1 ? in rtw8851b_init_txpwr_unit()
1830 enum rtw89_phy_idx phy_idx) in rtw8851b_ctrl_nbtg_bt_tx() argument
1853 enum rtw89_phy_idx phy_idx) in rtw8851b_ctrl_btg_bt_rx() argument