Home
last modified time | relevance | path

Searched refs:central_ch (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/net/wireless/realtek/rtw89/
H A Drtw8852a.c797 static int rtw8852a_ctrl_sco_cck(struct rtw89_dev *rtwdev, u8 central_ch, in rtw8852a_ctrl_sco_cck() argument
803 ch_element = central_ch - 1; in rtw8852a_ctrl_sco_cck()
806 ch_element = central_ch - 1 + 2; in rtw8852a_ctrl_sco_cck()
808 ch_element = central_ch - 1 - 2; in rtw8852a_ctrl_sco_cck()
821 static void rtw8852a_ch_setting(struct rtw89_dev *rtwdev, u8 central_ch, in rtw8852a_ch_setting() argument
832 val |= central_ch; in rtw8852a_ch_setting()
833 if (central_ch > 14) in rtw8852a_ch_setting()
838 static u8 rtw8852a_sco_mapping(u8 central_ch) in rtw8852a_sco_mapping() argument
840 if (central_ch == 1) in rtw8852a_sco_mapping()
842 else if (central_ch >= 2 && central_ch <= 6) in rtw8852a_sco_mapping()
[all …]
H A Drtw8852b_common.c522 static u8 rtw8852bx_sco_mapping(u8 central_ch) in rtw8852bx_sco_mapping() argument
524 if (central_ch == 1) in rtw8852bx_sco_mapping()
526 else if (central_ch >= 2 && central_ch <= 6) in rtw8852bx_sco_mapping()
528 else if (central_ch >= 7 && central_ch <= 10) in rtw8852bx_sco_mapping()
530 else if (central_ch >= 11 && central_ch <= 14) in rtw8852bx_sco_mapping()
532 else if (central_ch == 36 || central_ch == 38) in rtw8852bx_sco_mapping()
534 else if (central_ch >= 40 && central_ch <= 58) in rtw8852bx_sco_mapping()
536 else if (central_ch >= 60 && central_ch <= 64) in rtw8852bx_sco_mapping()
538 else if (central_ch == 100 || central_ch == 102) in rtw8852bx_sco_mapping()
540 else if (central_ch >= 104 && central_ch <= 126) in rtw8852bx_sco_mapping()
[all …]
H A Drtw8851b.c855 static u8 rtw8851b_sco_mapping(u8 central_ch) in rtw8851b_sco_mapping() argument
857 if (central_ch == 1) in rtw8851b_sco_mapping()
859 else if (central_ch >= 2 && central_ch <= 6) in rtw8851b_sco_mapping()
861 else if (central_ch >= 7 && central_ch <= 10) in rtw8851b_sco_mapping()
863 else if (central_ch >= 11 && central_ch <= 14) in rtw8851b_sco_mapping()
865 else if (central_ch == 36 || central_ch == 38) in rtw8851b_sco_mapping()
867 else if (central_ch >= 40 && central_ch <= 58) in rtw8851b_sco_mapping()
869 else if (central_ch >= 60 && central_ch <= 64) in rtw8851b_sco_mapping()
871 else if (central_ch == 100 || central_ch == 102) in rtw8851b_sco_mapping()
873 else if (central_ch >= 104 && central_ch <= 126) in rtw8851b_sco_mapping()
[all …]
H A Dphy.c719 u8 central_ch = chan->channel; in rtw89_phy_get_txsc() local
728 txsc_idx = pri_ch > central_ch ? 1 : 2; in rtw89_phy_get_txsc()
732 if (pri_ch > central_ch) in rtw89_phy_get_txsc()
733 txsc_idx = (pri_ch - central_ch) >> 1; in rtw89_phy_get_txsc()
735 txsc_idx = ((central_ch - pri_ch) >> 1) + 1; in rtw89_phy_get_txsc()
737 txsc_idx = pri_ch > central_ch ? 9 : 10; in rtw89_phy_get_txsc()
741 if (pri_ch > central_ch) in rtw89_phy_get_txsc()
742 tmp = (pri_ch - central_ch) >> 1; in rtw89_phy_get_txsc()
744 tmp = ((central_ch - pri_ch) >> 1) + 1; in rtw89_phy_get_txsc()
760 txsc_idx = pri_ch > central_ch ? 13 : 14; in rtw89_phy_get_txsc()
[all …]
H A Drtw8922a_rfk.c39 u8 central_ch, enum rtw89_band band, in rtw8922a_ctl_band_ch_bw() argument
78 rf_reg[path][i] |= u32_encode_bits(central_ch, RR_CFGCH_CH); in rtw8922a_ctl_band_ch_bw()
H A Drtw8852c_rfk.c3929 u8 central_ch, enum rtw89_band band, bool is_dav) in _ch_setting() argument
3942 rf_reg18 |= FIELD_PREP(RR_CFGCH_CH, central_ch); in _ch_setting()
3965 u8 central_ch, enum rtw89_band band) in _ctrl_ch() argument
3971 if ((central_ch > 14 && central_ch < 36) || in _ctrl_ch()
3972 (central_ch > 64 && central_ch < 100) || in _ctrl_ch()
3973 (central_ch > 144 && central_ch < 149) || central_ch > 177) in _ctrl_ch()
3976 if (central_ch > 253 || central_ch == 2) in _ctrl_ch()
3984 _ch_setting(rtwdev, path, central_ch, band, true); in _ctrl_ch()
3985 _ch_setting(rtwdev, path, central_ch, band, false); in _ctrl_ch()
4089 u8 central_ch, enum rtw89_band band, in rtw8852c_ctrl_bw_ch() argument
[all …]
H A Drtw8852b_rfk.c4086 u8 central_ch, bool dav) in _ch_setting() argument
4089 bool is_2g_ch = central_ch <= 14; in _ch_setting()
4097 rf_reg18 |= FIELD_PREP(RR_CFGCH_CH, central_ch); in _ch_setting()
4117 central_ch, path, reg18_addr, in _ch_setting()
4121 static void _ctrl_ch(struct rtw89_dev *rtwdev, u8 central_ch) in _ctrl_ch() argument
4123 _ch_setting(rtwdev, RF_PATH_A, central_ch, true); in _ctrl_ch()
4124 _ch_setting(rtwdev, RF_PATH_B, central_ch, true); in _ctrl_ch()
4125 _ch_setting(rtwdev, RF_PATH_A, central_ch, false); in _ctrl_ch()
4126 _ch_setting(rtwdev, RF_PATH_B, central_ch, false); in _ctrl_ch()
4166 enum rtw89_phy_idx phy, u8 central_ch, in rtw8852b_ctrl_bw_ch() argument
[all …]
H A Drtw8852bt_rfk.c4159 u8 central_ch, bool dav) in _ch_setting() argument
4162 bool is_2g_ch = central_ch <= 14; in _ch_setting()
4170 rf_reg18 |= FIELD_PREP(RR_CFGCH_CH, central_ch); in _ch_setting()
4190 central_ch, path, reg18_addr, in _ch_setting()
4194 static void _ctrl_ch(struct rtw89_dev *rtwdev, u8 central_ch) in _ctrl_ch() argument
4196 _ch_setting(rtwdev, RF_PATH_A, central_ch, true); in _ctrl_ch()
4197 _ch_setting(rtwdev, RF_PATH_B, central_ch, true); in _ctrl_ch()
4198 _ch_setting(rtwdev, RF_PATH_A, central_ch, false); in _ctrl_ch()
4199 _ch_setting(rtwdev, RF_PATH_B, central_ch, false); in _ctrl_ch()
4239 enum rtw89_phy_idx phy, u8 central_ch, in rtw8852bt_ctrl_bw_ch() argument
[all …]
H A Drtw8851b_rfk.c3537 u8 central_ch, bool dav) in _ch_setting() argument
3540 bool is_2g_ch = central_ch <= 14; in _ch_setting()
3548 rf_reg18 |= FIELD_PREP(RR_CFGCH_CH, central_ch); in _ch_setting()
3568 central_ch, path, reg18_addr, in _ch_setting()
3572 static void _ctrl_ch(struct rtw89_dev *rtwdev, u8 central_ch) in _ctrl_ch() argument
3574 _ch_setting(rtwdev, RF_PATH_A, central_ch, true); in _ctrl_ch()
3575 _ch_setting(rtwdev, RF_PATH_A, central_ch, false); in _ctrl_ch()
3615 enum rtw89_phy_idx phy, u8 central_ch, in rtw8851b_ctrl_bw_ch() argument
3618 _ctrl_ch(rtwdev, central_ch); in rtw8851b_ctrl_bw_ch()
H A Drtw8852c.c751 static int rtw8852c_ctrl_sco_cck(struct rtw89_dev *rtwdev, u8 central_ch, in rtw8852c_ctrl_sco_cck() argument
757 ch_element = central_ch - 1; in rtw8852c_ctrl_sco_cck()
760 ch_element = central_ch - 1 + 2; in rtw8852c_ctrl_sco_cck()
762 ch_element = central_ch - 1 - 2; in rtw8852c_ctrl_sco_cck()
974 u8 central_ch = chan->channel; in rtw8852c_ctrl_ch() local
1050 if (central_ch == 14) { in rtw8852c_ctrl_ch()
H A Drtw8922a.c1204 static void rtw8922a_set_cck_parameters(struct rtw89_dev *rtwdev, u8 central_ch, in rtw8922a_set_cck_parameters() argument
1207 if (central_ch == 14) { in rtw8922a_set_cck_parameters()
1234 u8 central_ch = chan->channel; in rtw8922a_ctrl_ch() local
1260 rtw8922a_set_cck_parameters(rtwdev, central_ch, phy_idx); in rtw8922a_ctrl_ch()
H A Dchan.c94 static u8 rtw89_get_primary_sb_idx(u8 central_ch, u8 pri_ch, in rtw89_get_primary_sb_idx() argument
104 return (prisb_cal_ofst[bw] + pri_ch - central_ch) / 4; in rtw89_get_primary_sb_idx()
1647 slot_arg->roles[0].central_ch = chan->channel; in __mrc_fw_add_role()
H A Dphy.h967 u8 rtw89_encode_chan_idx(struct rtw89_dev *rtwdev, u8 central_ch, u8 band);
H A Dfw.c2614 h2c->info[0].central_ch = chan->channel; in rtw89_fw_h2c_lps_ch_info()
4909 le32_encode_bits(ch_info->central_ch, RTW89_H2C_CHINFO_W0_CENTER_CH) | in rtw89_fw_h2c_scan_list_offload()
4985 le32_encode_bits(ch_info->central_ch, in rtw89_fw_h2c_scan_list_offload_be()
6359 ch_info->central_ch = op->channel; in rtw89_hw_scan_add_chan()
6510 ch_info->central_ch = channel->hw_value; in rtw89_pno_scan_add_chan_list_ax()
6568 ch_info->central_ch = channel->hw_value; in rtw89_hw_scan_add_chan_list_ax()
6638 ch_info->central_ch = channel->hw_value; in rtw89_pno_scan_add_chan_list_be()
6699 ch_info->central_ch = channel->hw_value; in rtw89_hw_scan_add_chan_list_be()
7837 le32_encode_bits(slot_arg->roles[i].central_ch, in rtw89_fw_h2c_mrc_add_slot()
H A Dfw.h322 u8 central_ch; member
346 u8 central_ch; member
1775 u8 central_ch; member
3275 u8 central_ch; member