| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_indep_power/ |
| H A D | bcmwifi_channels.h | 162 #define CHBW_CHSPEC(bw, channel) (chanspec_t)((chanspec_t)(channel) | (bw) | \ argument 203 #define BW_LE20(bw) TRUE argument 227 #define BW_LT20(bw) (((bw) == WL_CHANSPEC_BW_2P5) || \ argument 228 ((bw) == WL_CHANSPEC_BW_5) || \ 229 ((bw) == WL_CHANSPEC_BW_10)) 234 #define BW_LE20(bw) (((bw) == WL_CHANSPEC_BW_2P5) || \ argument 235 ((bw) == WL_CHANSPEC_BW_5) || \ 236 ((bw) == WL_CHANSPEC_BW_10) || \ 237 ((bw) == WL_CHANSPEC_BW_20)) 241 #define BW_LE20(bw) ((bw) == WL_CHANSPEC_BW_20) argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/bcmdhd/ |
| H A D | bcmwifi_channels.c | 182 #define WFC_BW_EQ(bw, val) WFC_2VALS_EQ(bw, val) argument 184 #define WFC_BW_EQ(bw, val) (FALSE) argument 188 static chanspec_bw_t wf_iter_next_bw(chanspec_bw_t bw); 191 static int wf_chanspec_iter_next_5g_range(wf_chanspec_iter_t *iter, chanspec_bw_t bw); 192 static void wf_chanspec_iter_6g_range_init(wf_chanspec_iter_t *iter, chanspec_bw_t bw); 206 uint bw; in wf_bw_chspec_to_mhz() local 208 bw = (chspec & WL_CHANSPEC_BW_MASK) >> WL_CHANSPEC_BW_SHIFT; in wf_bw_chspec_to_mhz() 209 return (bw >= WF_NUM_BW ? 0 : wf_chspec_bw_mhz[bw]); in wf_bw_chspec_to_mhz() 216 center_chan_to_edge(chanspec_bw_t bw) in center_chan_to_edge() argument 223 if (bw == WL_CHANSPEC_BW_40) { in center_chan_to_edge() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/ |
| H A D | bcmwifi_channels.c | 182 #define WFC_BW_EQ(bw, val) WFC_2VALS_EQ(bw, val) argument 184 #define WFC_BW_EQ(bw, val) (FALSE) argument 188 static chanspec_bw_t wf_iter_next_bw(chanspec_bw_t bw); 191 static int wf_chanspec_iter_next_5g_range(wf_chanspec_iter_t *iter, chanspec_bw_t bw); 192 static void wf_chanspec_iter_6g_range_init(wf_chanspec_iter_t *iter, chanspec_bw_t bw); 206 uint bw; in wf_bw_chspec_to_mhz() local 208 bw = (chspec & WL_CHANSPEC_BW_MASK) >> WL_CHANSPEC_BW_SHIFT; in wf_bw_chspec_to_mhz() 209 return (bw >= WF_NUM_BW ? 0 : wf_chspec_bw_mhz[bw]); in wf_bw_chspec_to_mhz() 216 center_chan_to_edge(chanspec_bw_t bw) in center_chan_to_edge() argument 223 if (bw == WL_CHANSPEC_BW_40) { in center_chan_to_edge() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/core/ |
| H A D | rtw_rf.c | 213 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset) in rtw_get_scch_by_cch_offset() argument 217 if (bw == CHANNEL_WIDTH_20) { in rtw_get_scch_by_cch_offset() 228 if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 234 if (cch >= 50 && cch <= 163 && bw == CHANNEL_WIDTH_160) { in rtw_get_scch_by_cch_offset() 239 } else if (cch >= 42 && cch <= 171 && bw == CHANNEL_WIDTH_80) { in rtw_get_scch_by_cch_offset() 244 } else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 274 inline u8 center_chs_2g_num(u8 bw) in center_chs_2g_num() argument 276 if (bw > CHANNEL_WIDTH_40) in center_chs_2g_num() 279 return center_chs_2g_by_bw[bw].ch_num; in center_chs_2g_num() 282 inline u8 center_chs_2g(u8 bw, u8 id) in center_chs_2g() argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/core/ |
| H A D | rtw_rf.c | 213 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset) in rtw_get_scch_by_cch_offset() argument 217 if (bw == CHANNEL_WIDTH_20) { in rtw_get_scch_by_cch_offset() 228 if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 234 if (cch >= 50 && cch <= 163 && bw == CHANNEL_WIDTH_160) { in rtw_get_scch_by_cch_offset() 239 } else if (cch >= 42 && cch <= 171 && bw == CHANNEL_WIDTH_80) { in rtw_get_scch_by_cch_offset() 244 } else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 274 inline u8 center_chs_2g_num(u8 bw) in center_chs_2g_num() argument 276 if (bw > CHANNEL_WIDTH_40) in center_chs_2g_num() 279 return center_chs_2g_by_bw[bw].ch_num; in center_chs_2g_num() 282 inline u8 center_chs_2g(u8 bw, u8 id) in center_chs_2g() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/core/ |
| H A D | rtw_rf.c | 214 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset) in rtw_get_scch_by_cch_offset() argument 218 if (bw == CHANNEL_WIDTH_20) { in rtw_get_scch_by_cch_offset() 229 if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 235 if (cch >= 50 && cch <= 163 && bw == CHANNEL_WIDTH_160) { in rtw_get_scch_by_cch_offset() 240 } else if (cch >= 42 && cch <= 171 && bw == CHANNEL_WIDTH_80) { in rtw_get_scch_by_cch_offset() 245 } else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 266 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch) in rtw_get_scch_by_cch_opch() argument 275 return rtw_get_scch_by_cch_offset(cch, bw, offset); in rtw_get_scch_by_cch_opch() 295 inline u8 center_chs_2g_num(u8 bw) in center_chs_2g_num() argument 297 if (bw > CHANNEL_WIDTH_40) in center_chs_2g_num() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/core/ |
| H A D | rtw_rf.c | 214 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset) in rtw_get_scch_by_cch_offset() argument 218 if (bw == CHANNEL_WIDTH_20) { in rtw_get_scch_by_cch_offset() 229 if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 235 if (cch >= 50 && cch <= 163 && bw == CHANNEL_WIDTH_160) { in rtw_get_scch_by_cch_offset() 240 } else if (cch >= 42 && cch <= 171 && bw == CHANNEL_WIDTH_80) { in rtw_get_scch_by_cch_offset() 245 } else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 266 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch) in rtw_get_scch_by_cch_opch() argument 275 return rtw_get_scch_by_cch_offset(cch, bw, offset); in rtw_get_scch_by_cch_opch() 295 inline u8 center_chs_2g_num(u8 bw) in center_chs_2g_num() argument 297 if (bw > CHANNEL_WIDTH_40) in center_chs_2g_num() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/core/ |
| H A D | rtw_rf.c | 215 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset) in rtw_get_scch_by_cch_offset() argument 219 if (bw == CHANNEL_WIDTH_20) { in rtw_get_scch_by_cch_offset() 230 if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 236 if (cch >= 50 && cch <= 163 && bw == CHANNEL_WIDTH_160) { in rtw_get_scch_by_cch_offset() 241 } else if (cch >= 42 && cch <= 171 && bw == CHANNEL_WIDTH_80) { in rtw_get_scch_by_cch_offset() 246 } else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 267 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch) in rtw_get_scch_by_cch_opch() argument 276 return rtw_get_scch_by_cch_offset(cch, bw, offset); in rtw_get_scch_by_cch_opch() 296 inline u8 center_chs_2g_num(u8 bw) in center_chs_2g_num() argument 298 if (bw > CHANNEL_WIDTH_40) in center_chs_2g_num() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/include/ |
| H A D | rtw_rf.h | 41 u8 center_chs_2g_num(u8 bw); 42 u8 center_chs_2g(u8 bw, u8 id); 50 u8 center_chs_5g_num(u8 bw); 51 u8 center_chs_5g(u8 bw, u8 id); 53 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset); 54 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch); 56 u8 rtw_get_op_chs_by_cch_bw(u8 cch, u8 bw, u8 **op_chs, u8 *op_ch_num); 58 u8 rtw_get_offset_by_chbw(u8 ch, u8 bw, u8 *r_offset); 59 u8 rtw_get_center_ch(u8 ch, u8 bw, u8 offset); 117 #define ch_width_str(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_str[(bw)] : "CHANNEL_WIDTH_MAX") argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/include/ |
| H A D | rtw_rf.h | 41 u8 center_chs_2g_num(u8 bw); 42 u8 center_chs_2g(u8 bw, u8 id); 50 u8 center_chs_5g_num(u8 bw); 51 u8 center_chs_5g(u8 bw, u8 id); 53 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset); 54 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch); 56 u8 rtw_get_op_chs_by_cch_bw(u8 cch, u8 bw, u8 **op_chs, u8 *op_ch_num); 58 u8 rtw_get_offset_by_chbw(u8 ch, u8 bw, u8 *r_offset); 59 u8 rtw_get_center_ch(u8 ch, u8 bw, u8 offset); 117 #define ch_width_str(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_str[(bw)] : "CHANNEL_WIDTH_MAX") argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/include/ |
| H A D | rtw_rf.h | 42 u8 center_chs_2g_num(u8 bw); 43 u8 center_chs_2g(u8 bw, u8 id); 51 u8 center_chs_5g_num(u8 bw); 52 u8 center_chs_5g(u8 bw, u8 id); 54 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset); 55 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch); 57 u8 rtw_get_op_chs_by_cch_bw(u8 cch, u8 bw, u8 **op_chs, u8 *op_ch_num); 59 u8 rtw_get_offset_by_chbw(u8 ch, u8 bw, u8 *r_offset); 60 u8 rtw_get_center_ch(u8 ch, u8 bw, u8 offset); 118 #define ch_width_str(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_str[(bw)] : "CHANNEL_WIDTH_MAX") argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8723ds/include/ |
| H A D | rtw_rf.h | 42 u8 center_chs_2g_num(u8 bw); 43 u8 center_chs_2g(u8 bw, u8 id); 51 u8 center_chs_5g_num(u8 bw); 52 u8 center_chs_5g(u8 bw, u8 id); 54 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset); 55 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch); 57 u8 rtw_get_op_chs_by_cch_bw(u8 cch, u8 bw, u8 **op_chs, u8 *op_ch_num); 59 u8 rtw_get_offset_by_chbw(u8 ch, u8 bw, u8 *r_offset); 60 u8 rtw_get_center_ch(u8 ch, u8 bw, u8 offset); 118 #define ch_width_str(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_str[(bw)] : "CHANNEL_WIDTH_MAX") argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/include/ |
| H A D | rtw_rf.h | 54 u8 center_chs_2g_num(u8 bw); 55 u8 center_chs_2g(u8 bw, u8 id); 63 u8 center_chs_5g_num(u8 bw); 64 u8 center_chs_5g(u8 bw, u8 id); 66 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset); 68 u8 rtw_get_op_chs_by_cch_bw(u8 cch, u8 bw, u8 **op_chs, u8 *op_ch_num); 70 u8 rtw_get_offset_by_chbw(u8 ch, u8 bw, u8 *r_offset); 71 u8 rtw_get_center_ch(u8 ch, u8 bw, u8 offset); 118 #define ch_width_str(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_str[(bw)] : "CHANNEL_WIDTH_MAX") argument 121 #define ch_width_to_bw_cap(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_to_bw_cap[(bw)] : 0) argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/include/ |
| H A D | rtw_rf.h | 54 u8 center_chs_2g_num(u8 bw); 55 u8 center_chs_2g(u8 bw, u8 id); 63 u8 center_chs_5g_num(u8 bw); 64 u8 center_chs_5g(u8 bw, u8 id); 66 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset); 68 u8 rtw_get_op_chs_by_cch_bw(u8 cch, u8 bw, u8 **op_chs, u8 *op_ch_num); 70 u8 rtw_get_offset_by_chbw(u8 ch, u8 bw, u8 *r_offset); 71 u8 rtw_get_center_ch(u8 ch, u8 bw, u8 offset); 118 #define ch_width_str(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_str[(bw)] : "CHANNEL_WIDTH_MAX") argument 121 #define ch_width_to_bw_cap(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_to_bw_cap[(bw)] : 0) argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/core/ |
| H A D | rtw_rf.c | 214 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset) in rtw_get_scch_by_cch_offset() argument 218 if (bw == CHANNEL_WIDTH_20) { in rtw_get_scch_by_cch_offset() 229 if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 235 if (cch >= 50 && cch <= 163 && bw == CHANNEL_WIDTH_160) { in rtw_get_scch_by_cch_offset() 240 } else if (cch >= 42 && cch <= 171 && bw == CHANNEL_WIDTH_80) { in rtw_get_scch_by_cch_offset() 245 } else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 266 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch) in rtw_get_scch_by_cch_opch() argument 275 return rtw_get_scch_by_cch_offset(cch, bw, offset); in rtw_get_scch_by_cch_opch() 295 inline u8 center_chs_2g_num(u8 bw) in center_chs_2g_num() argument 297 if (bw > CHANNEL_WIDTH_40) in center_chs_2g_num() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/core/ |
| H A D | rtw_rf.c | 214 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset) in rtw_get_scch_by_cch_offset() argument 218 if (bw == CHANNEL_WIDTH_20) { in rtw_get_scch_by_cch_offset() 229 if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 235 if (cch >= 50 && cch <= 163 && bw == CHANNEL_WIDTH_160) { in rtw_get_scch_by_cch_offset() 240 } else if (cch >= 42 && cch <= 171 && bw == CHANNEL_WIDTH_80) { in rtw_get_scch_by_cch_offset() 245 } else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 266 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch) in rtw_get_scch_by_cch_opch() argument 275 return rtw_get_scch_by_cch_offset(cch, bw, offset); in rtw_get_scch_by_cch_opch() 295 inline u8 center_chs_2g_num(u8 bw) in center_chs_2g_num() argument 297 if (bw > CHANNEL_WIDTH_40) in center_chs_2g_num() [all …]
|
| /OK3568_Linux_fs/u-boot/drivers/ram/rockchip/ |
| H A D | sdram_common.c | 55 printdec(8 << cap_info->bw); in sdram_print_ddr_info() 130 cap[0] = 1llu << (cap_info->bw + cap_info->col + in sdram_get_cs_cap() 134 cap[1] = 1llu << (cap_info->bw + cap_info->col + in sdram_get_cs_cap() 140 cap[2] = 1llu << (cap_info->bw + cap_info->col + in sdram_get_cs_cap() 142 cap[3] = 1llu << (cap_info->bw + cap_info->col + in sdram_get_cs_cap() 180 *p_os_reg2 |= SYS_REG_ENC_BW(cap_info->bw, channel); in sdram_org_config() 210 *p_os_reg2 |= SYS_REG_ENC_BW_V3(cap_info->bw, channel); in sdram_org_config_v3() 248 u32 bw = cap_info->bw; in sdram_detect_col() local 253 (1ul << (col + bw - 1ul))); in sdram_detect_col() 274 u32 bw = cap_info->bw; in sdram_detect_bank() local [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8821cs/include/ |
| H A D | rtw_rf.h | 54 u8 center_chs_2g_num(u8 bw); 55 u8 center_chs_2g(u8 bw, u8 id); 63 u8 center_chs_5g_num(u8 bw); 64 u8 center_chs_5g(u8 bw, u8 id); 66 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset); 67 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch); 69 u8 rtw_get_op_chs_by_cch_bw(u8 cch, u8 bw, u8 **op_chs, u8 *op_ch_num); 71 u8 rtw_get_offset_by_chbw(u8 ch, u8 bw, u8 *r_offset); 72 u8 rtw_get_center_ch(u8 ch, u8 bw, u8 offset); 133 #define ch_width_str(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_str[(bw)] : "CHANNEL_WIDTH_MAX") argument [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8822cs/include/ |
| H A D | rtw_rf.h | 54 u8 center_chs_2g_num(u8 bw); 55 u8 center_chs_2g(u8 bw, u8 id); 63 u8 center_chs_5g_num(u8 bw); 64 u8 center_chs_5g(u8 bw, u8 id); 66 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset); 67 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch); 69 u8 rtw_get_op_chs_by_cch_bw(u8 cch, u8 bw, u8 **op_chs, u8 *op_ch_num); 71 u8 rtw_get_offset_by_chbw(u8 ch, u8 bw, u8 *r_offset); 72 u8 rtw_get_center_ch(u8 ch, u8 bw, u8 offset); 133 #define ch_width_str(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_str[(bw)] : "CHANNEL_WIDTH_MAX") argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723cs/include/ |
| H A D | rtw_rf.h | 42 u8 center_chs_2g_num(u8 bw); 43 u8 center_chs_2g(u8 bw, u8 id); 51 u8 center_chs_5g_num(u8 bw); 52 u8 center_chs_5g(u8 bw, u8 id); 54 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset); 55 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch); 57 u8 rtw_get_op_chs_by_cch_bw(u8 cch, u8 bw, u8 **op_chs, u8 *op_ch_num); 59 u8 rtw_get_offset_by_chbw(u8 ch, u8 bw, u8 *r_offset); 60 u8 rtw_get_center_ch(u8 ch, u8 bw, u8 offset); 118 #define ch_width_str(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_str[(bw)] : "CHANNEL_WIDTH_MAX") argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8821cs/include/ |
| H A D | rtw_rf.h | 43 u8 center_chs_2g_num(u8 bw); 44 u8 center_chs_2g(u8 bw, u8 id); 52 u8 center_chs_5g_num(u8 bw); 53 u8 center_chs_5g(u8 bw, u8 id); 55 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset); 56 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch); 58 u8 rtw_get_op_chs_by_cch_bw(u8 cch, u8 bw, u8 **op_chs, u8 *op_ch_num); 60 u8 rtw_get_offset_by_chbw(u8 ch, u8 bw, u8 *r_offset); 61 u8 rtw_get_center_ch(u8 ch, u8 bw, u8 offset); 119 #define ch_width_str(bw) (((bw) < CHANNEL_WIDTH_MAX) ? _ch_width_str[(bw)] : "CHANNEL_WIDTH_MAX") argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/rtl8723ds/core/ |
| H A D | rtw_rf.c | 215 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset) in rtw_get_scch_by_cch_offset() argument 219 if (bw == CHANNEL_WIDTH_20) { in rtw_get_scch_by_cch_offset() 230 if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 236 if (cch >= 50 && cch <= 163 && bw == CHANNEL_WIDTH_160) { in rtw_get_scch_by_cch_offset() 241 } else if (cch >= 42 && cch <= 171 && bw == CHANNEL_WIDTH_80) { in rtw_get_scch_by_cch_offset() 246 } else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 267 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch) in rtw_get_scch_by_cch_opch() argument 276 return rtw_get_scch_by_cch_offset(cch, bw, offset); in rtw_get_scch_by_cch_opch() 296 inline u8 center_chs_2g_num(u8 bw) in center_chs_2g_num() argument 298 if (bw > CHANNEL_WIDTH_40) in center_chs_2g_num() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8189fs/core/ |
| H A D | rtw_rf.c | 214 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset) in rtw_get_scch_by_cch_offset() argument 218 if (bw == CHANNEL_WIDTH_20) { in rtw_get_scch_by_cch_offset() 229 if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 235 if (cch >= 50 && cch <= 163 && bw == CHANNEL_WIDTH_160) { in rtw_get_scch_by_cch_offset() 240 } else if (cch >= 42 && cch <= 171 && bw == CHANNEL_WIDTH_80) { in rtw_get_scch_by_cch_offset() 245 } else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 266 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch) in rtw_get_scch_by_cch_opch() argument 275 return rtw_get_scch_by_cch_offset(cch, bw, offset); in rtw_get_scch_by_cch_opch() 295 inline u8 center_chs_2g_num(u8 bw) in center_chs_2g_num() argument 297 if (bw > CHANNEL_WIDTH_40) in center_chs_2g_num() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8188fu/core/ |
| H A D | rtw_rf.c | 214 u8 rtw_get_scch_by_cch_offset(u8 cch, u8 bw, u8 offset) in rtw_get_scch_by_cch_offset() argument 218 if (bw == CHANNEL_WIDTH_20) { in rtw_get_scch_by_cch_offset() 229 if (cch >= 3 && cch <= 11 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 235 if (cch >= 50 && cch <= 163 && bw == CHANNEL_WIDTH_160) { in rtw_get_scch_by_cch_offset() 240 } else if (cch >= 42 && cch <= 171 && bw == CHANNEL_WIDTH_80) { in rtw_get_scch_by_cch_offset() 245 } else if (cch >= 38 && cch <= 175 && bw == CHANNEL_WIDTH_40) { in rtw_get_scch_by_cch_offset() 266 u8 rtw_get_scch_by_cch_opch(u8 cch, u8 bw, u8 opch) in rtw_get_scch_by_cch_opch() argument 275 return rtw_get_scch_by_cch_offset(cch, bw, offset); in rtw_get_scch_by_cch_opch() 295 inline u8 center_chs_2g_num(u8 bw) in center_chs_2g_num() argument 297 if (bw > CHANNEL_WIDTH_40) in center_chs_2g_num() [all …]
|
| /OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/rf/ |
| H A D | halrf_pwr_table.c | 583 u32 reg, bw, rate, bf, ch, tx_num; in halrf_power_limit_set_worldwide() local 592 for (bw = 0; bw < PW_LMT_MAX_2G_BANDWITH_NUM; bw++) { in halrf_power_limit_set_worldwide() 596 reg, bw, rate, bf, ch, tx_num ,pwr->tx_pwr_limit_2g[reg][bw][rate][bf][ch][tx_num]); in halrf_power_limit_set_worldwide() 597 if (tmp > pwr->tx_pwr_limit_2g[reg][bw][rate][bf][ch][tx_num] && in halrf_power_limit_set_worldwide() 598 pwr->tx_pwr_limit_2g[reg][bw][rate][bf][ch][tx_num] > 0) { in halrf_power_limit_set_worldwide() 599 tmp = pwr->tx_pwr_limit_2g[reg][bw][rate][bf][ch][tx_num]; in halrf_power_limit_set_worldwide() 604 pwr->tx_pwr_limit_2g[PW_LMT_REGU_WW13][bw][rate][bf][ch][tx_num] = tmp; in halrf_power_limit_set_worldwide() 607 …PW_LMT_REGU_WW13, bw, rate, bf, ch, tx_num ,pwr->tx_pwr_limit_2g[PW_LMT_REGU_WW13][bw][rate][bf][c… in halrf_power_limit_set_worldwide() 618 for (bw = 0; bw < PW_LMT_MAX_BANDWIDTH_NUM; bw++) { in halrf_power_limit_set_worldwide() 622 reg, bw, rate, bf, ch, tx_num, pwr->tx_pwr_limit_5g[reg][bw][rate][bf][ch][tx_num]); in halrf_power_limit_set_worldwide() [all …]
|