Lines Matching refs:phy_idx
949 enum rtw89_phy_idx phy_idx) in rtw8851b_set_gain_offset() argument
986 rtw89_phy_write32_idx(rtwdev, R_P0_RPL1, B_P0_RPL1_BIAS_MASK, tmp, phy_idx); in rtw8851b_set_gain_offset()
990 rtw89_phy_write32_idx(rtwdev, R_P1_RPL1, B_P0_RPL1_BIAS_MASK, tmp, phy_idx); in rtw8851b_set_gain_offset()
1031 enum rtw89_phy_idx phy_idx) in rtw8851b_ctrl_ch() argument
1040 B_PATH0_BAND_SEL_MSK_V1, 1, phy_idx); in rtw8851b_ctrl_ch()
1043 B_PATH0_BAND_SEL_MSK_V1, 0, phy_idx); in rtw8851b_ctrl_ch()
1046 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_INV, sco_comp, phy_idx); in rtw8851b_ctrl_ch()
1073 rtw8851b_set_gain_offset(rtwdev, subband, phy_idx); in rtw8851b_ctrl_ch()
1119 enum rtw89_phy_idx phy_idx) in rtw8851b_ctrl_bw() argument
1123 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_SET, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1124 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_SBW, 0x1, phy_idx); in rtw8851b_ctrl_bw()
1125 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_PRICH, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1128 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_SET, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1129 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_SBW, 0x2, phy_idx); in rtw8851b_ctrl_bw()
1130 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_PRICH, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1133 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_SET, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1134 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_SBW, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1135 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_PRICH, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1138 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_SET, 0x1, phy_idx); in rtw8851b_ctrl_bw()
1139 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_SBW, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1141 pri_ch, phy_idx); in rtw8851b_ctrl_bw()
1150 rtw89_phy_write32_idx(rtwdev, R_FC0_BW_V1, B_FC0_BW_SET, 0x2, phy_idx); in rtw8851b_ctrl_bw()
1151 rtw89_phy_write32_idx(rtwdev, R_CHBW_MOD_V1, B_CHBW_MOD_SBW, 0x0, phy_idx); in rtw8851b_ctrl_bw()
1153 pri_ch, phy_idx); in rtw8851b_ctrl_bw()
1204 enum rtw89_phy_idx phy_idx) in rtw8851b_set_csi_tone_idx() argument
1212 0, phy_idx); in rtw8851b_set_csi_tone_idx()
1221 csi_tone_idx, phy_idx); in rtw8851b_set_csi_tone_idx()
1222 rtw89_phy_write32_idx(rtwdev, R_SEG0CSI_EN_V1, B_SEG0CSI_EN, 1, phy_idx); in rtw8851b_set_csi_tone_idx()
1329 enum rtw89_phy_idx phy_idx) in rtw8851b_5m_mask() argument
1355 B_ASSIGN_SBD_OPT_EN_V1, 0x0, phy_idx); in rtw8851b_5m_mask()
1371 B_ASSIGN_SBD_OPT_EN_V1, 0x1, phy_idx); in rtw8851b_5m_mask()
1374 static void rtw8851b_bb_reset_all(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8851b_bb_reset_all() argument
1376 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()
1378 rtw89_phy_write32_idx(rtwdev, R_RSTB_ASYNC, B_RSTB_ASYNC_ALL, 1, phy_idx); in rtw8851b_bb_reset_all()
1379 rtw89_phy_write32_idx(rtwdev, R_RSTB_ASYNC, B_RSTB_ASYNC_ALL, 0, phy_idx); in rtw8851b_bb_reset_all()
1380 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()
1381 rtw89_phy_write32_idx(rtwdev, R_RSTB_ASYNC, B_RSTB_ASYNC_ALL, 1, phy_idx); in rtw8851b_bb_reset_all()
1385 enum rtw89_phy_idx phy_idx, bool en) in rtw8851b_bb_reset_en() argument
1389 B_S0_HW_SI_DIS_W_R_TRIG, 0x0, phy_idx); in rtw8851b_bb_reset_en()
1390 rtw89_phy_write32_idx(rtwdev, R_RSTB_ASYNC, B_RSTB_ASYNC_ALL, 1, phy_idx); in rtw8851b_bb_reset_en()
1398 B_S0_HW_SI_DIS_W_R_TRIG, 0x7, phy_idx); in rtw8851b_bb_reset_en()
1400 rtw89_phy_write32_idx(rtwdev, R_RSTB_ASYNC, B_RSTB_ASYNC_ALL, 0, phy_idx); in rtw8851b_bb_reset_en()
1405 enum rtw89_phy_idx phy_idx) in rtw8851b_bb_reset() argument
1410 rtw8851b_bb_reset_all(rtwdev, phy_idx); in rtw8851b_bb_reset()
1459 enum rtw89_phy_idx phy_idx) in rtw8851b_bb_macid_ctrl_init() argument
1465 rtw89_mac_txpwr_write32(rtwdev, phy_idx, addr, 0); in rtw8851b_bb_macid_ctrl_init()
1488 enum rtw89_phy_idx phy_idx) in rtw8851b_set_channel_bb() argument
1497 rtw8851b_ctrl_ch(rtwdev, chan, phy_idx); in rtw8851b_set_channel_bb()
1498 rtw8851b_ctrl_bw(rtwdev, pri_ch_idx, chan->band_width, phy_idx); in rtw8851b_set_channel_bb()
1501 rtw8851b_set_csi_tone_idx(rtwdev, chan, phy_idx); in rtw8851b_set_channel_bb()
1517 rtw8851b_5m_mask(rtwdev, chan, phy_idx); in rtw8851b_set_channel_bb()
1519 rtw8851b_bb_reset_all(rtwdev, phy_idx); in rtw8851b_set_channel_bb()
1525 enum rtw89_phy_idx phy_idx) in rtw8851b_set_channel() argument
1528 rtw8851b_set_channel_bb(rtwdev, chan, phy_idx); in rtw8851b_set_channel()
1529 rtw8851b_set_channel_rf(rtwdev, chan, phy_idx); in rtw8851b_set_channel()
1545 u8 phy_idx) in rtw8851b_tssi_cont_en_phyidx() argument
1562 enum rtw89_phy_idx phy_idx) in rtw8851b_set_channel_help() argument
1570 rtw8851b_bb_reset_en(rtwdev, chan->band_type, phy_idx, false); in rtw8851b_set_channel_help()
1575 rtw8851b_bb_reset_en(rtwdev, chan->band_type, phy_idx, true); in rtw8851b_set_channel_help()
1596 enum rtw89_phy_idx phy_idx = rtwvif->phy_idx; in rtw8851b_rfk_channel() local
1598 rtw8851b_rx_dck(rtwdev, phy_idx, chanctx_idx); in rtw8851b_rfk_channel()
1599 rtw8851b_iqk(rtwdev, phy_idx, chanctx_idx); in rtw8851b_rfk_channel()
1600 rtw8851b_tssi(rtwdev, phy_idx, true, chanctx_idx); in rtw8851b_rfk_channel()
1601 rtw8851b_dpk(rtwdev, phy_idx, chanctx_idx); in rtw8851b_rfk_channel()
1605 enum rtw89_phy_idx phy_idx, in rtw8851b_rfk_band_changed() argument
1608 rtw8851b_tssi_scan(rtwdev, phy_idx, chan); in rtw8851b_rfk_band_changed()
1614 rtw8851b_wifi_scan_notify(rtwdev, start, rtwvif->phy_idx, rtwvif->chanctx_idx); in rtw8851b_rfk_scan()
1624 enum rtw89_phy_idx phy_idx, s16 ref) in rtw8851b_bb_cal_txpwr_ref() argument
1652 enum rtw89_phy_idx phy_idx) in rtw8851b_set_txpwr_ref() argument
1665 rtw89_mac_txpwr_write32_mask(rtwdev, phy_idx, R_AX_PWR_RATE_CTRL, in rtw8851b_set_txpwr_ref()
1669 val = rtw8851b_bb_cal_txpwr_ref(rtwdev, phy_idx, ref_ofdm); in rtw8851b_set_txpwr_ref()
1673 phy_idx); in rtw8851b_set_txpwr_ref()
1676 val = rtw8851b_bb_cal_txpwr_ref(rtwdev, phy_idx, ref_cck); in rtw8851b_set_txpwr_ref()
1680 phy_idx); in rtw8851b_set_txpwr_ref()
1686 enum rtw89_phy_idx phy_idx) in rtw8851b_bb_set_tx_shape_dfir() argument
1725 phy_idx); in rtw8851b_bb_set_tx_shape_dfir()
1736 enum rtw89_phy_idx phy_idx) in rtw8851b_set_tx_shape() argument
1745 rtw8851b_bb_set_tx_shape_dfir(rtwdev, chan, tx_shape_cck, phy_idx); in rtw8851b_set_tx_shape()
1753 enum rtw89_phy_idx phy_idx) in rtw8851b_set_txpwr() argument
1755 rtw89_phy_set_txpwr_byrate(rtwdev, chan, phy_idx); in rtw8851b_set_txpwr()
1756 rtw89_phy_set_txpwr_offset(rtwdev, chan, phy_idx); in rtw8851b_set_txpwr()
1757 rtw8851b_set_tx_shape(rtwdev, chan, phy_idx); in rtw8851b_set_txpwr()
1758 rtw89_phy_set_txpwr_limit(rtwdev, chan, phy_idx); in rtw8851b_set_txpwr()
1759 rtw89_phy_set_txpwr_limit_ru(rtwdev, chan, phy_idx); in rtw8851b_set_txpwr()
1763 enum rtw89_phy_idx phy_idx) in rtw8851b_set_txpwr_ctrl() argument
1765 rtw8851b_set_txpwr_ref(rtwdev, phy_idx); in rtw8851b_set_txpwr_ctrl()
1791 rtw8851b_init_txpwr_unit(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8851b_init_txpwr_unit() argument
1795 ret = rtw89_mac_txpwr_write32(rtwdev, phy_idx, R_AX_PWR_UL_CTRL2, 0x07763333); in rtw8851b_init_txpwr_unit()
1799 ret = rtw89_mac_txpwr_write32(rtwdev, phy_idx, R_AX_PWR_COEXT_CTRL, 0x01ebf000); in rtw8851b_init_txpwr_unit()
1803 ret = rtw89_mac_txpwr_write32(rtwdev, phy_idx, R_AX_PWR_UL_CTRL0, 0x0002f8ff); in rtw8851b_init_txpwr_unit()
1807 rtw8851b_set_txpwr_ul_tb_offset(rtwdev, 0, phy_idx == RTW89_PHY_1 ? in rtw8851b_init_txpwr_unit()
1814 enum rtw89_phy_idx phy_idx) in rtw8851b_ctrl_nbtg_bt_tx() argument
1837 enum rtw89_phy_idx phy_idx) in rtw8851b_ctrl_btg_bt_rx() argument