Searched refs:rateidx (Results 1 – 9 of 9) sorted by relevance
/freebsd/sys/dev/iicbus/adc/ |
H A D | ads111x.c | 120 u_int rateidx; /* Samples per second config index */ member 214 (chan->rateidx << ADS111x_CONF_RATE_SHIFT); in ads111x_sample_voltage() 223 rate = sc->chipinfo->ratetab[chan->rateidx]; in ads111x_sample_voltage() 286 int chan, err, rateidx; in ads111x_sysctl_rateidx() local 291 rateidx = sc->channels[chan].rateidx; in ads111x_sysctl_rateidx() 292 err = sysctl_handle_int(oidp, &rateidx, 0, req); in ads111x_sysctl_rateidx() 295 if (rateidx < 0 || rateidx > 7) in ads111x_sysctl_rateidx() 298 sc->channels[chan].rateidx = rateidx; in ads111x_sysctl_rateidx() 384 ads111x_setup_channel(struct ads111x_softc *sc, int chan, int gainidx, int rateidx) in ads111x_setup_channel() argument 393 c->rateidx = rateidx; in ads111x_setup_channel() [all …]
|
/freebsd/sys/contrib/dev/mediatek/mt76/ |
H A D | mt76_connac_mac.c | 299 rateidx = ffs(mask->control[band]._mcs[i]) - 1; \ 301 rateidx += 8 * i; \ 314 int rateidx = 0, mcast_rate; in mt76_connac2_mac_tx_rate_val() local 320 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in mt76_connac2_mac_tx_rate_val() 334 rateidx = ffs(mask->control[band].legacy) - 1; in mt76_connac2_mac_tx_rate_val() 341 rateidx = mcast_rate - 1; in mt76_connac2_mac_tx_rate_val() 343 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in mt76_connac2_mac_tx_rate_val() 346 rateidx = mt76_calculate_default_rate(mphy, rateidx); in mt76_connac2_mac_tx_rate_val() 347 mode = rateidx >> 8; in mt76_connac2_mac_tx_rate_val() 348 rateidx &= GENMASK(7, 0); in mt76_connac2_mac_tx_rate_val() [all …]
|
H A D | mac80211.c | 1735 u16 mt76_calculate_default_rate(struct mt76_phy *phy, int rateidx) in mt76_calculate_default_rate() argument 1743 if (rateidx < 0) in mt76_calculate_default_rate() 1744 rateidx = 0; in mt76_calculate_default_rate() 1746 rateidx += offset; in mt76_calculate_default_rate() 1747 if (rateidx >= ARRAY_SIZE(mt76_rates)) in mt76_calculate_default_rate() 1748 rateidx = offset; in mt76_calculate_default_rate() 1750 return mt76_rates[rateidx].hw_value; in mt76_calculate_default_rate()
|
H A D | mt76.h | 1110 u16 mt76_calculate_default_rate(struct mt76_phy *phy, int rateidx);
|
/freebsd/sys/contrib/dev/athk/ath12k/ |
H A D | mac.h | 54 int ath12k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx,
|
H A D | mac.c | 367 int ath12k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx, in ath12k_mac_hw_ratecode_to_legacy_rate() argument 382 *rateidx = i; in ath12k_mac_hw_ratecode_to_legacy_rate() 2505 u8 rateidx; in ath12k_mac_op_bss_info_changed() local 2683 rateidx = mcast_rate - 1; in ath12k_mac_op_bss_info_changed() 2685 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath12k_mac_op_bss_info_changed() 2688 rateidx += ATH12K_MAC_FIRST_OFDM_RATE_IDX; in ath12k_mac_op_bss_info_changed() 2690 bitrate = ath12k_legacy_rates[rateidx].bitrate; in ath12k_mac_op_bss_info_changed() 2691 hw_value = ath12k_legacy_rates[rateidx].hw_value; in ath12k_mac_op_bss_info_changed()
|
/freebsd/sys/contrib/dev/athk/ath11k/ |
H A D | mac.h | 142 int ath11k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx,
|
H A D | mac.c | 385 int ath11k_mac_hw_ratecode_to_legacy_rate(u8 hw_rc, u8 preamble, u8 *rateidx, in ath11k_mac_hw_ratecode_to_legacy_rate() argument 400 *rateidx = i; in ath11k_mac_hw_ratecode_to_legacy_rate() 3415 u8 rateidx; in ath11k_mac_op_bss_info_changed() local 3619 rateidx = mcast_rate - 1; in ath11k_mac_op_bss_info_changed() 3621 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath11k_mac_op_bss_info_changed() 3624 rateidx += ATH11K_MAC_FIRST_OFDM_RATE_IDX; in ath11k_mac_op_bss_info_changed() 3626 bitrate = ath11k_legacy_rates[rateidx].bitrate; in ath11k_mac_op_bss_info_changed() 3627 hw_value = ath11k_legacy_rates[rateidx].hw_value; in ath11k_mac_op_bss_info_changed()
|
/freebsd/sys/contrib/dev/athk/ath10k/ |
H A D | mac.c | 6100 u8 rate, rateidx; in ath10k_bss_info_changed() local 6290 rateidx = mcast_rate - 1; in ath10k_bss_info_changed() 6292 rateidx = ffs(vif->bss_conf.basic_rates) - 1; in ath10k_bss_info_changed() 6295 rateidx += ATH10K_MAC_FIRST_OFDM_RATE_IDX; in ath10k_bss_info_changed() 6297 bitrate = ath10k_wmi_legacy_rates[rateidx].bitrate; in ath10k_bss_info_changed() 6298 hw_value = ath10k_wmi_legacy_rates[rateidx].hw_value; in ath10k_bss_info_changed()
|