Lines Matching refs:phy_idx

75 static u8 _kpath(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx)  in _kpath()  argument
78 rtwdev->dbcc_en, phy_idx); in _kpath()
83 if (phy_idx == RTW89_PHY_0) in _kpath()
862 enum rtw89_phy_idx phy_idx, u8 path, u8 ktype) in _iqk_one_shot() argument
867 u8 phy_map = rtw89_btc_path_phymap(rtwdev, phy_idx, path); in _iqk_one_shot()
951 enum rtw89_phy_idx phy_idx, u8 path) in _rxk_group_sel() argument
990 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_RXK); in _rxk_group_sel()
1015 enum rtw89_phy_idx phy_idx, u8 path) in _iqk_nbrxk() argument
1054 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_NBRXK); in _iqk_nbrxk()
1103 enum rtw89_phy_idx phy_idx, u8 path) in _txk_group_sel() argument
1146 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_TXK); in _txk_group_sel()
1161 enum rtw89_phy_idx phy_idx, u8 path) in _iqk_nbtxk() argument
1194 fail = _iqk_one_shot(rtwdev, phy_idx, path, ID_NBTXK); in _iqk_nbtxk()
1242 enum rtw89_phy_idx phy_idx, u8 path) in _iqk_lok() argument
1273 tmp = _iqk_one_shot(rtwdev, phy_idx, path, ID_FLOK_COARSE); in _iqk_lok()
1277 tmp = _iqk_one_shot(rtwdev, phy_idx, path, ID_FLOK_FINE); in _iqk_lok()
1340 static void _iqk_info_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_info_iqk() argument
1387 void _iqk_by_path(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, u8 path) in _iqk_by_path() argument
1399 lok_is_fail = _iqk_lok(rtwdev, phy_idx, path); in _iqk_by_path()
1404 iqk_info->iqk_tx_fail[0][path] = _iqk_nbtxk(rtwdev, phy_idx, path); in _iqk_by_path()
1406 iqk_info->iqk_tx_fail[0][path] = _txk_group_sel(rtwdev, phy_idx, path); in _iqk_by_path()
1411 iqk_info->iqk_rx_fail[0][path] = _iqk_nbrxk(rtwdev, phy_idx, path); in _iqk_by_path()
1413 iqk_info->iqk_rx_fail[0][path] = _rxk_group_sel(rtwdev, phy_idx, path); in _iqk_by_path()
1415 _iqk_info_iqk(rtwdev, phy_idx, path); in _iqk_by_path()
1478 static void _iqk_start_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in _iqk_start_iqk() argument
1481 _iqk_by_path(rtwdev, phy_idx, path); in _iqk_start_iqk()
1513 enum rtw89_phy_idx phy_idx, u8 path) in _iqk_afebb_restore() argument
1517 switch (_kpath(rtwdev, phy_idx)) { in _iqk_afebb_restore()
1558 enum rtw89_phy_idx phy_idx, u8 path) in _iqk_macbb_setting() argument
1564 switch (_kpath(rtwdev, phy_idx)) { in _iqk_macbb_setting()
1582 u8 phy_idx = 0x0; in _iqk_dbcc() local
1587 phy_idx = RTW89_PHY_0; in _iqk_dbcc()
1589 phy_idx = RTW89_PHY_1; in _iqk_dbcc()
1591 _iqk_get_ch_info(rtwdev, phy_idx, path); in _iqk_dbcc()
1592 _iqk_macbb_setting(rtwdev, phy_idx, path); in _iqk_dbcc()
1594 _iqk_start_iqk(rtwdev, phy_idx, path); in _iqk_dbcc()
1596 _iqk_afebb_restore(rtwdev, phy_idx, path); in _iqk_dbcc()
1696 enum rtw89_phy_idx phy_idx, u8 path) in _doiqk() argument
1701 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, RF_AB); in _doiqk()
1712 _iqk_get_ch_info(rtwdev, phy_idx, path); in _doiqk()
1715 _iqk_macbb_setting(rtwdev, phy_idx, path); in _doiqk()
1717 _iqk_start_iqk(rtwdev, phy_idx, path); in _doiqk()
1719 _iqk_afebb_restore(rtwdev, phy_idx, path); in _doiqk()
1725 static void _iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, bool force) in _iqk() argument
1727 switch (_kpath(rtwdev, phy_idx)) { in _iqk()
1729 _doiqk(rtwdev, force, phy_idx, RF_PATH_A); in _iqk()
1732 _doiqk(rtwdev, force, phy_idx, RF_PATH_B); in _iqk()
1735 _doiqk(rtwdev, force, phy_idx, RF_PATH_A); in _iqk()
1736 _doiqk(rtwdev, force, phy_idx, RF_PATH_B); in _iqk()
3682 void rtw8852a_iqk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8852a_iqk() argument
3685 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, 0); in rtw8852a_iqk()
3688 rtw89_mac_stop_sch_tx(rtwdev, phy_idx, &tx_en, RTW89_SCH_TX_SEL_ALL); in rtw8852a_iqk()
3689 _wait_rx_mode(rtwdev, _kpath(rtwdev, phy_idx)); in rtw8852a_iqk()
3693 _iqk_dbcc(rtwdev, phy_idx); in rtw8852a_iqk()
3695 _iqk(rtwdev, phy_idx, false); in rtw8852a_iqk()
3697 rtw89_mac_resume_sch_tx(rtwdev, phy_idx, tx_en); in rtw8852a_iqk()
3706 void rtw8852a_rx_dck(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx, in rtw8852a_rx_dck() argument
3710 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, 0); in rtw8852a_rx_dck()
3713 rtw89_mac_stop_sch_tx(rtwdev, phy_idx, &tx_en, RTW89_SCH_TX_SEL_ALL); in rtw8852a_rx_dck()
3714 _wait_rx_mode(rtwdev, _kpath(rtwdev, phy_idx)); in rtw8852a_rx_dck()
3716 _rx_dck(rtwdev, phy_idx, is_afe); in rtw8852a_rx_dck()
3718 rtw89_mac_resume_sch_tx(rtwdev, phy_idx, tx_en); in rtw8852a_rx_dck()
3722 void rtw8852a_dpk(struct rtw89_dev *rtwdev, enum rtw89_phy_idx phy_idx) in rtw8852a_dpk() argument
3725 u8 phy_map = rtw89_btc_phymap(rtwdev, phy_idx, 0); in rtw8852a_dpk()
3728 rtw89_mac_stop_sch_tx(rtwdev, phy_idx, &tx_en, RTW89_SCH_TX_SEL_ALL); in rtw8852a_dpk()
3729 _wait_rx_mode(rtwdev, _kpath(rtwdev, phy_idx)); in rtw8852a_dpk()
3733 _dpk(rtwdev, phy_idx, false); in rtw8852a_dpk()
3735 rtw89_mac_resume_sch_tx(rtwdev, phy_idx, tx_en); in rtw8852a_dpk()
3902 bool scan_start, enum rtw89_phy_idx phy_idx) in rtw8852a_wifi_scan_notify() argument
3905 rtw8852a_tssi_default_txagc(rtwdev, phy_idx, true); in rtw8852a_wifi_scan_notify()
3906 rtw8852a_tssi_set_avg(rtwdev, phy_idx, true); in rtw8852a_wifi_scan_notify()
3908 rtw8852a_tssi_default_txagc(rtwdev, phy_idx, false); in rtw8852a_wifi_scan_notify()
3909 rtw8852a_tssi_set_avg(rtwdev, phy_idx, false); in rtw8852a_wifi_scan_notify()