| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/test/mp/ |
| H A D | hal_test_mp_config.c | 252 u8 pri_ch = 0; in hal_mp_primary_channel_decision() local 255 pri_ch = cent_ch; in hal_mp_primary_channel_decision() 259 pri_ch = cent_ch + 2; in hal_mp_primary_channel_decision() 261 pri_ch = cent_ch - 2; in hal_mp_primary_channel_decision() 263 pri_ch = cent_ch - 2; /* tx_sc == 0 */ in hal_mp_primary_channel_decision() 267 pri_ch = cent_ch - 6; in hal_mp_primary_channel_decision() 269 pri_ch = cent_ch + 2; in hal_mp_primary_channel_decision() 271 pri_ch = cent_ch - 2; in hal_mp_primary_channel_decision() 273 pri_ch = cent_ch + 6; in hal_mp_primary_channel_decision() 275 pri_ch = cent_ch - 6; /* tx_sc == 0 */ in hal_mp_primary_channel_decision() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/test/mp/ |
| H A D | hal_test_mp_config.c | 252 u8 pri_ch = 0; in hal_mp_primary_channel_decision() local 255 pri_ch = cent_ch; in hal_mp_primary_channel_decision() 259 pri_ch = cent_ch + 2; in hal_mp_primary_channel_decision() 261 pri_ch = cent_ch - 2; in hal_mp_primary_channel_decision() 263 pri_ch = cent_ch - 2; /* tx_sc == 0 */ in hal_mp_primary_channel_decision() 267 pri_ch = cent_ch - 6; in hal_mp_primary_channel_decision() 269 pri_ch = cent_ch + 2; in hal_mp_primary_channel_decision() 271 pri_ch = cent_ch - 2; in hal_mp_primary_channel_decision() 273 pri_ch = cent_ch + 6; in hal_mp_primary_channel_decision() 275 pri_ch = cent_ch - 6; /* tx_sc == 0 */ in hal_mp_primary_channel_decision() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/bb/ |
| H A D | halbb_fwofld.c | 206 bool halbb_fw_5m_mask_8852a_2(struct bb_info *bb, u8 pri_ch, enum channel_width bw) in halbb_fw_5m_mask_8852a_2() argument 217 mask_5m_low = pri_ch == 2 ? true : false; in halbb_fw_5m_mask_8852a_2() 223 mask_5m_en = ((pri_ch == 3) || (pri_ch == 4)) ? true : false; in halbb_fw_5m_mask_8852a_2() 224 mask_5m_low = pri_ch == 4 ? true : false; in halbb_fw_5m_mask_8852a_2() 231 BB_DBG(bb, DBG_PHY_CONFIG, "[5M Mask] pri_ch = %d, bw = %d", pri_ch, bw); in halbb_fw_5m_mask_8852a_2() 460 bool halbb_fwofld_sco_cck_8852a_2(struct bb_info *bb, u8 pri_ch) in halbb_fwofld_sco_cck_8852a_2() argument 472 if (pri_ch > 14) { in halbb_fwofld_sco_cck_8852a_2() 478 rpt &= halbb_fw_set_reg(bb, 0x23b0, 0x7ffff, sco_barker_threshold[pri_ch - 1], 0); in halbb_fwofld_sco_cck_8852a_2() 479 rpt &= halbb_fw_set_reg(bb, 0x23b4, 0x7ffff, sco_cck_threshold[pri_ch - 1], 0); in halbb_fwofld_sco_cck_8852a_2() 685 bool halbb_fwofld_bw_8852a_2(struct bb_info *bb, u8 pri_ch, enum channel_width bw, in halbb_fwofld_bw_8852a_2() argument [all …]
|
| H A D | halbb_api.c | 545 u8 halbb_get_txsc(struct bb_info *bb, u8 pri_ch, u8 central_ch, in halbb_get_txsc() argument 560 txsc_idx = pri_ch > central_ch ? 1 : 2; in halbb_get_txsc() 564 if (pri_ch > central_ch) in halbb_get_txsc() 565 txsc_idx = (pri_ch - central_ch) >> 1; in halbb_get_txsc() 567 txsc_idx = ((central_ch - pri_ch) >> 1) + 1; in halbb_get_txsc() 569 txsc_idx = pri_ch > central_ch ? 9 : 10; in halbb_get_txsc() 573 if (pri_ch > central_ch) in halbb_get_txsc() 574 tmp = (pri_ch - central_ch) >> 1; in halbb_get_txsc() 576 tmp = ((central_ch - pri_ch) >> 1) + 1; in halbb_get_txsc() 592 txsc_idx = pri_ch > central_ch ? 13 : 14; in halbb_get_txsc() [all …]
|
| H A D | halbb_api_ex.h | 35 u8 halbb_get_txsc(struct bb_info *bb, u8 pri_ch, u8 central_ch, 65 bool halbb_ctrl_bw(struct bb_info *bb, u8 pri_ch, enum channel_width bw, 73 bool halbb_ctrl_bw_ch(struct bb_info *bb, u8 pri_ch, u8 central_ch_seg0,
|
| H A D | halbb_dfs_ex.h | 37 bool halbb_is_dfs_band(struct bb_info *bb, u8 ch, u8 pri_ch);
|
| H A D | halbb_fwofld.h | 41 bool halbb_fwofld_bw_ch_8852a_2(struct bb_info *bb, u8 pri_ch, u8 central_ch,
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/bb/ |
| H A D | halbb_fwofld.c | 206 bool halbb_fw_5m_mask_8852a_2(struct bb_info *bb, u8 pri_ch, enum channel_width bw) in halbb_fw_5m_mask_8852a_2() argument 217 mask_5m_low = pri_ch == 2 ? true : false; in halbb_fw_5m_mask_8852a_2() 223 mask_5m_en = ((pri_ch == 3) || (pri_ch == 4)) ? true : false; in halbb_fw_5m_mask_8852a_2() 224 mask_5m_low = pri_ch == 4 ? true : false; in halbb_fw_5m_mask_8852a_2() 231 BB_DBG(bb, DBG_PHY_CONFIG, "[5M Mask] pri_ch = %d, bw = %d", pri_ch, bw); in halbb_fw_5m_mask_8852a_2() 460 bool halbb_fwofld_sco_cck_8852a_2(struct bb_info *bb, u8 pri_ch) in halbb_fwofld_sco_cck_8852a_2() argument 472 if (pri_ch > 14) { in halbb_fwofld_sco_cck_8852a_2() 478 rpt &= halbb_fw_set_reg(bb, 0x23b0, 0x7ffff, sco_barker_threshold[pri_ch - 1], 0); in halbb_fwofld_sco_cck_8852a_2() 479 rpt &= halbb_fw_set_reg(bb, 0x23b4, 0x7ffff, sco_cck_threshold[pri_ch - 1], 0); in halbb_fwofld_sco_cck_8852a_2() 685 bool halbb_fwofld_bw_8852a_2(struct bb_info *bb, u8 pri_ch, enum channel_width bw, in halbb_fwofld_bw_8852a_2() argument [all …]
|
| H A D | halbb_api.c | 545 u8 halbb_get_txsc(struct bb_info *bb, u8 pri_ch, u8 central_ch, in halbb_get_txsc() argument 560 txsc_idx = pri_ch > central_ch ? 1 : 2; in halbb_get_txsc() 564 if (pri_ch > central_ch) in halbb_get_txsc() 565 txsc_idx = (pri_ch - central_ch) >> 1; in halbb_get_txsc() 567 txsc_idx = ((central_ch - pri_ch) >> 1) + 1; in halbb_get_txsc() 569 txsc_idx = pri_ch > central_ch ? 9 : 10; in halbb_get_txsc() 573 if (pri_ch > central_ch) in halbb_get_txsc() 574 tmp = (pri_ch - central_ch) >> 1; in halbb_get_txsc() 576 tmp = ((central_ch - pri_ch) >> 1) + 1; in halbb_get_txsc() 592 txsc_idx = pri_ch > central_ch ? 13 : 14; in halbb_get_txsc() [all …]
|
| H A D | halbb_api_ex.h | 35 u8 halbb_get_txsc(struct bb_info *bb, u8 pri_ch, u8 central_ch, 65 bool halbb_ctrl_bw(struct bb_info *bb, u8 pri_ch, enum channel_width bw, 73 bool halbb_ctrl_bw_ch(struct bb_info *bb, u8 pri_ch, u8 central_ch_seg0,
|
| H A D | halbb_dfs_ex.h | 37 bool halbb_is_dfs_band(struct bb_info *bb, u8 ch, u8 pri_ch);
|
| H A D | halbb_fwofld.h | 41 bool halbb_fwofld_bw_ch_8852a_2(struct bb_info *bb, u8 pri_ch, u8 central_ch,
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/bb/halbb_8852b/ |
| H A D | halbb_8852b_fwofld_api.c | 413 void halbb_fwofld_5m_mask_8852b(struct bb_info *bb, u8 pri_ch, enum channel_width bw, in halbb_fwofld_5m_mask_8852b() argument 424 mask_5m_low = pri_ch == 2 ? true : false; in halbb_fwofld_5m_mask_8852b() 430 mask_5m_en = ((pri_ch == 3) || (pri_ch == 4)) ? true : false; in halbb_fwofld_5m_mask_8852b() 431 mask_5m_low = pri_ch == 4 ? true : false; in halbb_fwofld_5m_mask_8852b() 438 BB_DBG(bb, DBG_PHY_CONFIG, "[5M Mask] pri_ch = %d, bw = %d", pri_ch, bw); in halbb_fwofld_5m_mask_8852b() 498 bool halbb_fwofld_ctrl_sco_cck_8852b(struct bb_info *bb, u8 pri_ch) in halbb_fwofld_ctrl_sco_cck_8852b() argument 509 if (pri_ch > 14) { in halbb_fwofld_ctrl_sco_cck_8852b() 514 halbb_fw_set_reg(bb, 0x23b0, 0x7ffff, sco_barker_threshold[pri_ch - 1], 0); in halbb_fwofld_ctrl_sco_cck_8852b() 515 halbb_fw_set_reg(bb, 0x23b4, 0x7ffff, sco_cck_threshold[pri_ch - 1], 0); in halbb_fwofld_ctrl_sco_cck_8852b() 648 bool halbb_fwofld_ctrl_bw_8852b(struct bb_info *bb, u8 pri_ch, enum channel_width bw, in halbb_fwofld_ctrl_bw_8852b() argument [all …]
|
| H A D | halbb_8852b_api.c | 311 void halbb_5m_mask_8852b(struct bb_info *bb, u8 pri_ch, enum channel_width bw, in halbb_5m_mask_8852b() argument 322 mask_5m_low = pri_ch == 2 ? true : false; in halbb_5m_mask_8852b() 328 mask_5m_en = ((pri_ch == 3) || (pri_ch == 4)) ? true : false; in halbb_5m_mask_8852b() 329 mask_5m_low = pri_ch == 4 ? true : false; in halbb_5m_mask_8852b() 336 BB_DBG(bb, DBG_PHY_CONFIG, "[5M Mask] pri_ch = %d, bw = %d", pri_ch, bw); in halbb_5m_mask_8852b() 396 bool halbb_ctrl_sco_cck_8852b(struct bb_info *bb, u8 pri_ch) in halbb_ctrl_sco_cck_8852b() argument 407 if (pri_ch > 14) { in halbb_ctrl_sco_cck_8852b() 412 halbb_set_reg(bb, 0x23b0, 0x7ffff, sco_barker_threshold[pri_ch - 1]); in halbb_ctrl_sco_cck_8852b() 413 halbb_set_reg(bb, 0x23b4, 0x7ffff, sco_cck_threshold[pri_ch - 1]); in halbb_ctrl_sco_cck_8852b() 724 bool halbb_ctrl_bw_8852b(struct bb_info *bb, u8 pri_ch, enum channel_width bw, in halbb_ctrl_bw_8852b() argument [all …]
|
| H A D | halbb_8852b_api.h | 53 bool halbb_ctrl_bw_ch_8852b(struct bb_info *bb, u8 pri_ch, u8 central_ch, 109 bool halbb_ctrl_bw_8852b(struct bb_info *bb, u8 pri_ch, enum channel_width bw, 125 bool halbb_ctrl_sco_cck_8852b(struct bb_info *bb, u8 pri_ch);
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/bb/halbb_8852b/ |
| H A D | halbb_8852b_fwofld_api.c | 413 void halbb_fwofld_5m_mask_8852b(struct bb_info *bb, u8 pri_ch, enum channel_width bw, in halbb_fwofld_5m_mask_8852b() argument 424 mask_5m_low = pri_ch == 2 ? true : false; in halbb_fwofld_5m_mask_8852b() 430 mask_5m_en = ((pri_ch == 3) || (pri_ch == 4)) ? true : false; in halbb_fwofld_5m_mask_8852b() 431 mask_5m_low = pri_ch == 4 ? true : false; in halbb_fwofld_5m_mask_8852b() 438 BB_DBG(bb, DBG_PHY_CONFIG, "[5M Mask] pri_ch = %d, bw = %d", pri_ch, bw); in halbb_fwofld_5m_mask_8852b() 498 bool halbb_fwofld_ctrl_sco_cck_8852b(struct bb_info *bb, u8 pri_ch) in halbb_fwofld_ctrl_sco_cck_8852b() argument 509 if (pri_ch > 14) { in halbb_fwofld_ctrl_sco_cck_8852b() 514 halbb_fw_set_reg(bb, 0x23b0, 0x7ffff, sco_barker_threshold[pri_ch - 1], 0); in halbb_fwofld_ctrl_sco_cck_8852b() 515 halbb_fw_set_reg(bb, 0x23b4, 0x7ffff, sco_cck_threshold[pri_ch - 1], 0); in halbb_fwofld_ctrl_sco_cck_8852b() 648 bool halbb_fwofld_ctrl_bw_8852b(struct bb_info *bb, u8 pri_ch, enum channel_width bw, in halbb_fwofld_ctrl_bw_8852b() argument [all …]
|
| H A D | halbb_8852b_api.c | 311 void halbb_5m_mask_8852b(struct bb_info *bb, u8 pri_ch, enum channel_width bw, in halbb_5m_mask_8852b() argument 322 mask_5m_low = pri_ch == 2 ? true : false; in halbb_5m_mask_8852b() 328 mask_5m_en = ((pri_ch == 3) || (pri_ch == 4)) ? true : false; in halbb_5m_mask_8852b() 329 mask_5m_low = pri_ch == 4 ? true : false; in halbb_5m_mask_8852b() 336 BB_DBG(bb, DBG_PHY_CONFIG, "[5M Mask] pri_ch = %d, bw = %d", pri_ch, bw); in halbb_5m_mask_8852b() 396 bool halbb_ctrl_sco_cck_8852b(struct bb_info *bb, u8 pri_ch) in halbb_ctrl_sco_cck_8852b() argument 407 if (pri_ch > 14) { in halbb_ctrl_sco_cck_8852b() 412 halbb_set_reg(bb, 0x23b0, 0x7ffff, sco_barker_threshold[pri_ch - 1]); in halbb_ctrl_sco_cck_8852b() 413 halbb_set_reg(bb, 0x23b4, 0x7ffff, sco_cck_threshold[pri_ch - 1]); in halbb_ctrl_sco_cck_8852b() 724 bool halbb_ctrl_bw_8852b(struct bb_info *bb, u8 pri_ch, enum channel_width bw, in halbb_ctrl_bw_8852b() argument [all …]
|
| H A D | halbb_8852b_api.h | 53 bool halbb_ctrl_bw_ch_8852b(struct bb_info *bb, u8 pri_ch, u8 central_ch, 109 bool halbb_ctrl_bw_8852b(struct bb_info *bb, u8 pri_ch, enum channel_width bw, 125 bool halbb_ctrl_sco_cck_8852b(struct bb_info *bb, u8 pri_ch);
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/infineon/ |
| H A D | bcmwifi_channels.c | 392 uint num, pri_ch; in wf_chspec_aton_ex() local 418 if (!read_uint(&a, &pri_ch)) in wf_chspec_aton_ex() 425 pri_ch = num; in wf_chspec_aton_ex() 426 chspec_band = ((pri_ch <= CH_MAX_2G_CHANNEL) ? in wf_chspec_aton_ex() 542 chspec_ch = UPPER_20_SB(pri_ch); in wf_chspec_aton_ex() 545 chspec_ch = LOWER_20_SB(pri_ch); in wf_chspec_aton_ex() 551 chspec_ch = pri_ch; in wf_chspec_aton_ex() 577 sb = channel_to_sb(center_ch[i], pri_ch, bw); in wf_chspec_aton_ex() 610 sb = channel_to_sb(ch1, pri_ch, bw); in wf_chspec_aton_ex() 918 wf_channel2chspec(uint pri_ch, uint bw) in wf_channel2chspec() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/cywdhd/bcmdhd/ |
| H A D | bcmwifi_channels.c | 421 uint num, pri_ch; in wf_chspec_aton_ex() local 447 if (!read_uint(&a, &pri_ch)) in wf_chspec_aton_ex() 454 pri_ch = num; in wf_chspec_aton_ex() 455 chspec_band = ((pri_ch <= CH_MAX_2G_CHANNEL) ? in wf_chspec_aton_ex() 571 chspec_ch = UPPER_20_SB(pri_ch); in wf_chspec_aton_ex() 574 chspec_ch = LOWER_20_SB(pri_ch); in wf_chspec_aton_ex() 580 chspec_ch = pri_ch; in wf_chspec_aton_ex() 606 sb = channel_to_sb(center_ch[i], pri_ch, bw); in wf_chspec_aton_ex() 639 sb = channel_to_sb(ch1, pri_ch, bw); in wf_chspec_aton_ex() 967 wf_channel2chspec(uint pri_ch, uint bw) in wf_channel2chspec() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/infineon/bcmdhd/ |
| H A D | bcmwifi_channels.c | 421 uint num, pri_ch; in wf_chspec_aton_ex() local 447 if (!read_uint(&a, &pri_ch)) in wf_chspec_aton_ex() 454 pri_ch = num; in wf_chspec_aton_ex() 455 chspec_band = ((pri_ch <= CH_MAX_2G_CHANNEL) ? in wf_chspec_aton_ex() 571 chspec_ch = UPPER_20_SB(pri_ch); in wf_chspec_aton_ex() 574 chspec_ch = LOWER_20_SB(pri_ch); in wf_chspec_aton_ex() 580 chspec_ch = pri_ch; in wf_chspec_aton_ex() 606 sb = channel_to_sb(center_ch[i], pri_ch, bw); in wf_chspec_aton_ex() 639 sb = channel_to_sb(ch1, pri_ch, bw); in wf_chspec_aton_ex() 967 wf_channel2chspec(uint pri_ch, uint bw) in wf_channel2chspec() argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | bcmwifi_channels.c | 599 uint num, pri_ch; in wf_chspec_aton() local 624 if (!read_uint(&a, &pri_ch)) in wf_chspec_aton() 630 pri_ch = num; in wf_chspec_aton() 631 chspec_band = ((pri_ch <= CH_MAX_2G_CHANNEL) ? in wf_chspec_aton() 721 chspec = wf_create_40MHz_chspec_primary_sb(pri_ch, chspec_sb, chspec_band); in wf_chspec_aton() 724 chspec = wf_create_20MHz_chspec(pri_ch, chspec_band); in wf_chspec_aton() 732 chspec = wf_create_chspec_from_primary(pri_ch, chspec_bw, chspec_band); in wf_chspec_aton() 2276 wf_channel2chspec(uint pri_ch, uint bw) in wf_channel2chspec() argument 2284 chspec = ((pri_ch <= CH_MAX_2G_CHANNEL) ? WL_CHANSPEC_BAND_2G : WL_CHANSPEC_BAND_5G); in wf_channel2chspec() 2289 if (pri_ch <= CH_MAX_2G_CHANNEL) { in wf_channel2chspec() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | bcmwifi_channels.c | 599 uint num, pri_ch; in wf_chspec_aton() local 624 if (!read_uint(&a, &pri_ch)) in wf_chspec_aton() 630 pri_ch = num; in wf_chspec_aton() 631 chspec_band = ((pri_ch <= CH_MAX_2G_CHANNEL) ? in wf_chspec_aton() 721 chspec = wf_create_40MHz_chspec_primary_sb(pri_ch, chspec_sb, chspec_band); in wf_chspec_aton() 724 chspec = wf_create_20MHz_chspec(pri_ch, chspec_band); in wf_chspec_aton() 732 chspec = wf_create_chspec_from_primary(pri_ch, chspec_bw, chspec_band); in wf_chspec_aton() 2276 wf_channel2chspec(uint pri_ch, uint bw) in wf_channel2chspec() argument 2284 chspec = ((pri_ch <= CH_MAX_2G_CHANNEL) ? WL_CHANSPEC_BAND_2G : WL_CHANSPEC_BAND_5G); in wf_channel2chspec() 2289 if (pri_ch <= CH_MAX_2G_CHANNEL) { in wf_channel2chspec() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8822be/hal/ |
| H A D | hal_com_phycfg.c | 1868 u8 pri_ch = 0; in rtw_get_primary_ch() local 1870 pri_ch= center_ch; in rtw_get_primary_ch() 1873 pri_ch = center_ch - 2; in rtw_get_primary_ch() 1875 pri_ch = center_ch + 2; in rtw_get_primary_ch() 1879 pri_ch = 36; in rtw_get_primary_ch() 1881 pri_ch = 40; in rtw_get_primary_ch() 1883 pri_ch = 44; in rtw_get_primary_ch() 1885 pri_ch = 48; in rtw_get_primary_ch() 1888 pri_ch = 52; in rtw_get_primary_ch() 1890 pri_ch = 56; in rtw_get_primary_ch() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/hal/phydm/rtl8822c/ |
| H A D | phydm_hal_api8822c.c | 1770 config_phydm_switch_bandwidth_8822c(struct dm_struct *dm, u8 pri_ch, in config_phydm_switch_bandwidth_8822c() argument 1785 if (bw >= CHANNEL_WIDTH_MAX || (bw == CHANNEL_WIDTH_40 && pri_ch > 2) || in config_phydm_switch_bandwidth_8822c() 1786 (bw == CHANNEL_WIDTH_80 && pri_ch > 4)) { in config_phydm_switch_bandwidth_8822c() 1788 "Fail to switch bw(bw:%d, pri ch:%d)\n", bw, pri_ch); in config_phydm_switch_bandwidth_8822c() 1888 if (pri_ch == 1) in config_phydm_switch_bandwidth_8822c() 1889 odm_set_bb_reg(dm, R_0x1a00, BIT(4), pri_ch); in config_phydm_switch_bandwidth_8822c() 1900 odm_set_bb_reg(dm, R_0x9b0, 0xff00, (pri_ch | (pri_ch << 4))); in config_phydm_switch_bandwidth_8822c() 1939 odm_set_bb_reg(dm, R_0x9b0, 0xff00, (pri_ch | (pri_ch << 4))); in config_phydm_switch_bandwidth_8822c() 1959 "Fail to switch bw (bw:%d, pri ch:%d)\n", bw, pri_ch); in config_phydm_switch_bandwidth_8822c() 1984 bw, pri_ch); in config_phydm_switch_bandwidth_8822c() [all …]
|