Home
last modified time | relevance | path

Searched refs:bw (Results 1 - 25 of 39) sorted by relevance

12

/device/soc/rockchip/common/kernel/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd_wifi6/
H A Dbcmwifi_channels.h359 /* given a chanspec of any bw, tests if primary20 SB is in lower 20, 40, 80 respectively */
373 #define BW_LE40(bw) ((bw) == WL_CHANSPEC_BW_20 || ((bw) == WL_CHANSPEC_BW_40))
374 #define BW_LE80(bw) (BW_LE40(bw) || ((bw) == WL_CHANSPEC_BW_80))
375 #define BW_LE160(bw) (BW_LE80(bw) || ((bw)
[all...]
H A Dbcmwifi_channels.c210 uint bw; in wf_bw_chspec_to_mhz() local
212 bw = (chspec & WL_CHANSPEC_BW_MASK) >> WL_CHANSPEC_BW_SHIFT; in wf_bw_chspec_to_mhz()
213 return (bw >= WF_NUM_BW ? 0 : wf_chspec_bw_mhz[bw]); in wf_bw_chspec_to_mhz()
216 /* bw in MHz, return the channel count from the center channel to the
220 center_chan_to_edge(uint bw) in center_chan_to_edge() argument
226 return (uint8)(((bw - 20) / 2) / 5); in center_chan_to_edge()
233 channel_low_edge(uint center_ch, uint bw) in channel_low_edge() argument
235 return (uint8)(center_ch - center_chan_to_edge(bw)); in channel_low_edge()
242 channel_to_sb(uint center_ch, uint primary_ch, uint bw) in channel_to_sb() argument
265 channel_to_primary20_chan(uint center_ch, uint bw, uint sb) channel_to_primary20_chan() argument
325 const char *bw; wf_chspec_ntoa() local
389 uint chspec_ch, chspec_band, bw, chspec_bw, chspec_sb; wf_chspec_aton() local
906 wf_channel2chspec(uint pri_ch, uint bw) wf_channel2chspec() argument
[all...]
H A Ddhd_rtt.h189 uint32 bw :3; /* 0: 20Mhz, 1: 40Mhz, 2: 80Mhz, 3: 160Mhz */ member
258 uint8 bw; /* 5, 10, 20, 40, 80, 160 */ member
323 int32 bw :8; member
H A Ddhd_rtt.c335 rate_mcs2rate(uint mcs, uint nss, uint bw, int sgi) in rate_mcs2rate() argument
354 if (RSPEC_IS20MHZ(bw)) { in rate_mcs2rate()
356 } else if (RSPEC_IS40MHZ(bw)) { in rate_mcs2rate()
358 } else if (bw == WL_RSPEC_BW_80MHZ) { in rate_mcs2rate()
360 } else if (bw == WL_RSPEC_BW_160MHZ) { in rate_mcs2rate()
1372 int bw; in dhd_rtt_convert_to_chspec() local
1382 bw = WL_CHANSPEC_BW_20; in dhd_rtt_convert_to_chspec()
1384 chanspec = wf_channel2chspec(primary_chan, bw); in dhd_rtt_convert_to_chspec()
1387 bw = WL_CHANSPEC_BW_40; in dhd_rtt_convert_to_chspec()
1389 chanspec = wf_channel2chspec(primary_chan, bw); in dhd_rtt_convert_to_chspec()
[all...]
H A Ddngl_stats.h132 uint32 bw; /* 0:20MHz, 1:40Mhz, 2:80Mhz, 3:160Mhz */ member
144 uint32 bw :3; /* 0:20MHz, 1:40Mhz, 2:80Mhz, 3:160Mhz */ member
H A Dwl_android_ext.c414 /* convert the bw and sideband */ in wl_ext_chspec_to_legacy()
499 /* convert the bw and sideband */ in wl_ext_chspec_from_legacy()
706 u32 bw = WL_CHANSPEC_BW_20; in wl_ext_set_chanspec() local
732 bw = WL_CHANSPEC_BW_40; in wl_ext_set_chanspec()
736 bw = WL_CHANSPEC_BW_80; in wl_ext_set_chanspec()
738 bw = WL_CHANSPEC_BW_40; in wl_ext_set_chanspec()
740 bw = WL_CHANSPEC_BW_20; in wl_ext_set_chanspec()
745 bw = WL_CHANSPEC_BW_20; in wl_ext_set_chanspec()
748 chspec = wf_channel2chspec(_chan, bw); in wl_ext_set_chanspec()
753 if (bw in wl_ext_set_chanspec()
1000 u16 band, bw, ctl_sb; wl_ext_connect() local
1797 u32 bw = WL_CHANSPEC_BW_20; wl_ext_chan_to_chanspec() local
6644 uint32 bw; global() member
6969 u32 bw = WL_CHANSPEC_BW_20; wl_ext_get_distance() local
[all...]
H A Dbcmwifi_rates.h825 uint wf_mcs_to_rate(uint mcs, uint nss, uint bw, int sgi);
826 uint wf_he_mcs_to_rate(uint mcs, uint nss, uint bw, uint gi, bool dcm);
827 uint wf_mcs_to_Ndbps(uint mcs, uint nss, uint bw);
H A Dwl_android.c909 uint16 bw = 0; in wl_android_get_chanspec() local
926 bw = chanspec & WL_CHANSPEC_BW_MASK; in wl_android_get_chanspec()
929 channel, band, bw)); in wl_android_get_chanspec()
931 if (bw == WL_CHANSPEC_BW_80) in wl_android_get_chanspec()
932 bw = WL_CH_BANDWIDTH_80MHZ; in wl_android_get_chanspec()
933 else if (bw == WL_CHANSPEC_BW_40) in wl_android_get_chanspec()
934 bw = WL_CH_BANDWIDTH_40MHZ; in wl_android_get_chanspec()
935 else if (bw == WL_CHANSPEC_BW_20) in wl_android_get_chanspec()
936 bw = WL_CH_BANDWIDTH_20MHZ; in wl_android_get_chanspec()
938 bw in wl_android_get_chanspec()
4820 int bw = DOT11_OPER_MODE_20MHZ; wl_android_set_ap_bw() local
5561 wl_nan_ranging_bw(struct net_device *net, int bw, char *command) wl_nan_ranging_bw() argument
[all...]
H A Dwl_cfgp2p.c2139 int ch, bw; in wl_cfgp2p_set_p2p_ecsa() local
2150 sscanf(buf, "%10d %10d", &ch, &bw); in wl_cfgp2p_set_p2p_ecsa()
2151 CFGP2P_DBG(("Enter ch %d bw %d\n", ch, bw)); in wl_cfgp2p_set_p2p_ecsa()
2158 if (ch <= 0 || bw <= 0) { in wl_cfgp2p_set_p2p_ecsa()
2168 snprintf(buf, len, "%d/%d", ch, bw); in wl_cfgp2p_set_p2p_ecsa()
2194 int bw; in wl_cfgp2p_increase_p2p_bw() local
2197 sscanf(buf, "%3d", &bw); in wl_cfgp2p_increase_p2p_bw()
2198 if (bw == 0) { in wl_cfgp2p_increase_p2p_bw()
2214 ret = wldev_iovar_setbuf(ndev, "mchan_bw", &bw, sizeo in wl_cfgp2p_increase_p2p_bw()
[all...]
H A Dwl_cfg80211.c1331 /* convert the bw and sideband */ in wl_chspec_from_legacy()
1376 /* convert the bw and sideband */ in wl_chspec_to_legacy()
3781 int bw = 0, tmp_bw = 0; in channel_to_chanspec() local
3807 bw = 20; in channel_to_chanspec()
3816 if ((tmp_bw > bw) && (tmp_bw <= bw_cap)) { in channel_to_chanspec()
3817 bw = tmp_bw; in channel_to_chanspec()
3819 if (bw == bw_cap) in channel_to_chanspec()
3828 WL_DBG(("return chanspec %x %d\n", ret_c, bw)); in channel_to_chanspec()
6671 u16 channel, band, bw, ctl_sb; in wl_cfg80211_connect() local
6678 bw in wl_cfg80211_connect()
9870 u32 bw = WL_CHANSPEC_BW_20; wl_get_bandwidth_cap() local
9922 u32 bw = WL_CHANSPEC_BW_20; wl_cfg80211_set_channel() local
24273 u32 bw = WL_CHANSPEC_BW_20; wl_cfg80211_channel_switch() local
24756 wl_update_opmode(struct net_device *ndev, u32 bw) wl_update_opmode() argument
24784 wl_set_ap_bw(struct net_device *dev, u32 bw, char *ifname) wl_set_ap_bw() argument
24888 u32 bw = DOT11_OPER_MODE_20MHZ; wl_get_ap_bw() local
24942 u32 bw; wl_restore_ap_bw() local
[all...]
H A Ddhd_config.h104 int bw; member
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/wal/
H A Dwal_11d.c173 static inline hi_u8 wal_regdomain_get_bw(hi_u8 bw) in wal_regdomain_get_bw() argument
175 switch (bw) { in wal_regdomain_get_bw()
264 hi_u8 bw; in wal_regdomain_fill_info() local
288 bw = (hi_u8)(regdom->reg_rules[i].freq_range.max_bandwidth_khz / 1000); /* 1000 频率单位转换 */ in wal_regdomain_fill_info()
289 mac_regdom->ast_regclass[i].ch_spacing = wal_regdomain_get_bw(bw); in wal_regdomain_fill_info()
H A Dhi_wifi_driver_api.c550 [2]bw 带宽
553 hi_s32 hi_wifi_set_bandwidth(const hi_char *ifname, unsigned char ifname_len, hi_wifi_bw bw) in hi_wifi_set_bandwidth() argument
568 if ((bw > HI_WIFI_BW_LEGACY_20M) || (bw < HI_WIFI_BW_HIEX_5M)) { in hi_wifi_set_bandwidth()
569 oam_error_log0(0, 0, "hi_wifi_set_bandwidth invalid bw."); in hi_wifi_set_bandwidth()
574 if (bw == HI_WIFI_BW_HIEX_5M) { in hi_wifi_set_bandwidth()
576 } else if (bw == HI_WIFI_BW_HIEX_10M) { in hi_wifi_set_bandwidth()
607 hi_wifi_bw bw = HI_WIFI_BW_BUTT; in hi_wifi_get_bandwidth() local
627 bw = HI_WIFI_BW_HIEX_5M; in hi_wifi_get_bandwidth()
629 bw in hi_wifi_get_bandwidth()
[all...]
H A Dwal_net.h110 hi_u32 wal_init_drv_wlan_netdev(nl80211_iftype_uint8 type, wal_phy_mode mode, hi_u16 bw);
H A Dwal_cfg80211.h302 hi_u32 wal_wifi_set_bw(oal_net_device_stru *netdev, wal_wifi_bw_enum_int bw);
/device/soc/rockchip/common/sdk_linux/drivers/opp/
H A Dof.c646 u32 *bw; in _read_bw() local
659 bw = kmalloc_array(count, sizeof(*bw), GFP_KERNEL); in _read_bw()
660 if (!bw) { in _read_bw()
664 ret = of_property_read_u32_array(np, name, bw, count); in _read_bw()
672 new_opp->bandwidth[i].peak = kBps_to_icc(bw[i]); in _read_bw()
674 new_opp->bandwidth[i].avg = kBps_to_icc(bw[i]); in _read_bw()
679 kfree(bw); in _read_bw()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/mac/common/
H A Dmac_ie.h102 hi_u32 mac_set_second_channel_offset_ie(wlan_channel_bandwidth_enum_uint8 bw, hi_u8 *pauc_buffer,
H A Dmac_ie.c186 WIFI_ROM_TEXT hi_u32 mac_set_second_channel_offset_ie(wlan_channel_bandwidth_enum_uint8 bw, hi_u8 *pauc_buffer, in mac_set_second_channel_offset_ie() argument
203 switch (bw) { in mac_set_second_channel_offset_ie()
214 oam_error_log1(0, OAM_SF_SCAN, "{mac_set_second_channel_offset_ie::invalid bandwidth[%d].}", bw); in mac_set_second_channel_offset_ie()
/device/soc/hisilicon/hi3861v100/sdk_liteos/components/at/src/
H A Dat_wifi.c280 hi_u32 sta_start_adv_param(hi_s32 argc, const hi_char *argv[], hi_wifi_bw *bw) in sta_start_adv_param() argument
290 if ((value == HI_WIFI_PHY_MODE_11B) && (argv[1] != HI_NULL) && (strcmp(argv[1], "20"))) { /* 20:bw */ in sta_start_adv_param()
298 if ((argv[i] == HI_NULL) || !(strcmp(argv[i], "20"))) { /* bw 20M */ in sta_start_adv_param()
299 *bw = HI_WIFI_BW_LEGACY_20M; in sta_start_adv_param()
300 } else if (!(strcmp(argv[i], "10"))) { /* bw 10M */ in sta_start_adv_param()
301 *bw = HI_WIFI_BW_HIEX_10M; in sta_start_adv_param()
302 } else if (!(strcmp(argv[i], "5"))) { /* bw 5M */ in sta_start_adv_param()
303 *bw = HI_WIFI_BW_HIEX_5M; in sta_start_adv_param()
331 hi_wifi_bw bw = HI_WIFI_BW_LEGACY_20M; in cmd_sta_start_adv() local
337 ret = (hi_s32)sta_start_adv_param(argc, argv, &bw); in cmd_sta_start_adv()
[all...]
/device/soc/rockchip/common/vendor/drivers/phy/
H A Dphy-rockchip-usbdp.c1234 u8 bw; in rk3588_dp_phy_set_rate() local
1242 bw = DP_BW_RBR; in rk3588_dp_phy_set_rate()
1245 bw = DP_BW_HBR; in rk3588_dp_phy_set_rate()
1248 bw = DP_BW_HBR2; in rk3588_dp_phy_set_rate()
1251 bw = DP_BW_HBR3; in rk3588_dp_phy_set_rate()
1257 regmap_update_bits(udphy->pma_regmap, CMN_DP_LINK_OFFSET, CMN_DP_TX_LINK_BW, FIELD_PREP(CMN_DP_TX_LINK_BW, bw)); in rk3588_dp_phy_set_rate()
/device/soc/rockchip/rk3588/kernel/drivers/phy/rockchip/
H A Dphy-rockchip-usbdp.c1274 u8 bw; in rk3588_dp_phy_set_rate() local
1283 bw = DP_BW_RBR; in rk3588_dp_phy_set_rate()
1286 bw = DP_BW_HBR; in rk3588_dp_phy_set_rate()
1289 bw = DP_BW_HBR2; in rk3588_dp_phy_set_rate()
1292 bw = DP_BW_HBR3; in rk3588_dp_phy_set_rate()
1299 FIELD_PREP(CMN_DP_TX_LINK_BW, bw)); in rk3588_dp_phy_set_rate()
H A Dphy-rockchip-samsung-hdptx.c592 u32 bw, status; in rockchip_hdptx_phy_set_rate() local
607 bw = DP_BW_RBR; in rockchip_hdptx_phy_set_rate()
610 bw = DP_BW_HBR; in rockchip_hdptx_phy_set_rate()
613 bw = DP_BW_HBR2; in rockchip_hdptx_phy_set_rate()
620 FIELD_PREP(DP_TX_LINK_BW, bw)); in rockchip_hdptx_phy_set_rate()
/device/soc/rockchip/common/sdk_linux/kernel/sched/
H A Dsched.h360 * - bw (< 100%) is the deadline bandwidth of each CPU;
365 u64 bw; member
369 static inline void __dl_update(struct dl_bw *dl_b, s64 bw);
385 return (dl_b->bw != -1) && (cap_scale(dl_b->bw, cap) < (dl_b->total_bw - old_bw + new_bw)); in __dl_overflow()
2418 static inline void __dl_update(struct dl_bw *dl_b, s64 bw) in __dl_update() argument
2428 rq->dl.extra_bw += bw; in __dl_update()
2432 static inline void __dl_update(struct dl_bw *dl_b, s64 bw) in __dl_update() argument
2436 dl->extra_bw += bw; in __dl_update()
/device/soc/hisilicon/common/platform/wifi/hi3881v100/driver/include/
H A Dhi_wifi_api.h1559 * @param bw [IN] Type #hi_wifi_bw, bandwidth enum.CNcomment:带宽.CNend
1568 int hi_wifi_set_bandwidth(const char *ifname, unsigned char ifname_len, hi_wifi_bw bw);
/device/soc/hisilicon/hi3861v100/sdk_liteos/include/
H A Dhi_wifi_api.h1664 * @param bw [IN] Type #hi_wifi_bw, bandwidth enum.CNcomment:带宽.CNend
1672 int hi_wifi_set_bandwidth(const char *ifname, unsigned char ifname_len, hi_wifi_bw bw);

Completed in 62 milliseconds

12