| /freebsd/sys/net80211/ |
| H A D | ieee80211_phy.h | 89 uint32_t rateKbps; /* transfer rate in kbs */ 91 * preamble in CCK rate code */ 95 * rate; used for dur. calcs */ 105 ieee80211_ack_rate(const struct ieee80211_rate_table *rt, uint8_t rate) in ieee80211_ack_rate() argument 108 * XXX Assert this is for a legacy rate; not for an MCS rate. in ieee80211_ack_rate() 109 * If the caller wishes to use it for a basic rate, they should in ieee80211_ack_rate() 112 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); in ieee80211_ack_rate() 114 uint8_t cix = rt->info[rt->rateCodeToIndex[rate & IEEE80211_RATE_VAL]].ctlRateIndex; in ieee80211_ack_rate() 115 KASSERT(cix != (uint8_t)-1, ("rate %d has no info", rate)); in ieee80211_ack_rate() 120 ieee80211_ctl_rate(const struct ieee80211_rate_table *rt, uint8_t rate) in ieee80211_ctl_rate() argument [all …]
|
| H A D | ieee80211_amrr.c | 23 * Naive implementation of the Adaptive Multi Rate Retry algorithm: 25 * "IEEE 802.11 Rate Adaptation: A Practical Approach" 154 "AMRR: VHT: initial rate NSS %d MCS %d", in amrr_node_init_vht() 164 uint8_t rate; /* dot11rate */ in amrr_node_init_ht() local 167 /* Initial rate - lowest */ in amrr_node_init_ht() 168 rate = rs->rs_rates[0]; in amrr_node_init_ht() 177 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL; in amrr_node_init_ht() 180 rate |= IEEE80211_RATE_MCS; in amrr_node_init_ht() 182 /* Assign initial rate from the rateset */ in amrr_node_init_ht() 183 ieee80211_node_set_txrate_dot11rate(ni, rate); in amrr_node_init_ht() [all …]
|
| H A D | ieee80211_phy.c | 68 /* XXX the 11n and the basic rate flag are unfortunately overlapping. Grr. */ 78 /* Preamble dot11Rate Rate */ 91 /* Preamble dot11Rate Rate */ 111 /* Preamble dot11Rate Rate */ 127 /* Preamble dot11Rate Rate */ 143 /* Preamble dot11Rate Rate */ 159 /* Preamble dot11Rate Rate */ 174 /* Preamble dot11Rate Rate */ 190 /* Preamble dot11Rate Rate */ 238 /* Preamble dot11Rate Rate */ [all …]
|
| /freebsd/sys/dev/mlx5/mlx5_core/ |
| H A D | mlx5_rl.c | 36 /* Finds an entry where we can register the given rate 37 * If the rate already exists, return the entry where it is registered, 42 u32 rate, u16 burst) in find_rl_entry() argument 50 if (entry->rate == rate && entry->burst == burst) in find_rl_entry() 52 if (ret_entry == NULL && entry->rate == 0) in find_rl_entry() 60 u32 rate, u32 burst, u16 index) in mlx5_set_rate_limit_cmd() argument 67 MLX5_SET(set_rate_limit_in, in, rate_limit, rate); in mlx5_set_rate_limit_cmd() 93 bool mlx5_rl_is_in_range(const struct mlx5_core_dev *dev, u32 rate, u32 burst) in mlx5_rl_is_in_range() argument 97 return (rate <= table->max_rate && rate >= table->min_rate && in mlx5_rl_is_in_range() 102 int mlx5_rl_add_rate(struct mlx5_core_dev *dev, u32 rate, u32 burst, u16 *index) in mlx5_rl_add_rate() argument [all …]
|
| /freebsd/sys/dev/rtwn/ |
| H A D | if_rtwn_ridx.h | 24 /* HW rate indices. */ 59 * The total amount of rate indexes, CCK, OFDM, HT MCS0..31, 66 #define RTWN_RATE_IS_CCK(rate) ((rate) <= RTWN_RIDX_CCK11) argument 67 #define RTWN_RATE_IS_OFDM(rate) \ argument 68 ((rate) >= RTWN_RIDX_OFDM6 && (rate) <= RTWN_RIDX_OFDM54) 69 #define RTWN_RATE_IS_HT(rate) \ argument 70 ((rate) >= RTWN_RIDX_HT_MCS_SHIFT && (rate) < RTWN_RIDX_VHT_MCS_SHIFT) 71 #define RTWN_RATE_IS_VHT(rate) \ argument 72 ((rate) >= RTWN_RIDX_VHT_MCS_SHIFT && (rate) <= RTWN_RIDX_COUNT) 78 rate2ridx(uint8_t rate) in rate2ridx() argument [all …]
|
| /freebsd/sys/dev/ath/ath_rate/onoe/ |
| H A D | onoe.c | 34 * Atsushi Onoe's rate control algorithm. 73 * Default parameters for the rate control algorithm. These are 74 * all tunable with sysctls. The rate controller runs periodically 78 * it gives a "raise rate credit". If transmits look to not be working 80 * the transmit rate is raised. Various error conditions force the 81 * the transmit rate to be dropped. 87 * the transmit rate is increased. 91 static int ath_rateinterval = 1000; /* rate ctl interval (ms) */ 93 static int ath_rate_raise_threshold = 10; /* rate ctl raise threshold */ 96 int rate); [all …]
|
| H A D | onoe.h | 45 int on_rix; /* current rate index */ 52 int on_tx_upper; /* tx upper rate req cnt */ 53 u_int8_t on_tx_rix0; /* series 0 rate index */ 55 u_int8_t on_tx_rate0; /* series 0 h/w rate */ 56 u_int8_t on_tx_rate1; /* series 1 h/w rate */ 57 u_int8_t on_tx_rate2; /* series 2 h/w rate */ 58 u_int8_t on_tx_rate3; /* series 3 h/w rate */ 59 u_int8_t on_tx_rate0sp; /* series 0 short preamble h/w rate */ 60 u_int8_t on_tx_rate1sp; /* series 1 short preamble h/w rate */ 61 u_int8_t on_tx_rate2sp; /* series 2 short preamble h/w rate */ [all …]
|
| /freebsd/sys/netinet/ |
| H A D | tcp_ratelimit.c | 72 * 1Mbps? Why do we have a rate at 1.44Mbps called common? 79 * supporters of rate limiting 85 * The c4 is why we have a common rate that is available 86 * in all rate tables. This is a selected rate from the 89 * rate it should always be able to get. This answers a 95 * a rate higher than the b/w that it is estimating 106 * excessively long (to reach our desired rate). 112 * rate 31Mbps. 31Mbps means that each send that is done 114 * the packets sent at that rate. For 29,110,000 bps we 126 * delta between the two rates (416 - 390) divided into the rate [all …]
|
| /freebsd/sys/contrib/dev/rtw88/ |
| H A D | phy.c | 1231 u32 addr, u32 mask, u32 val, u8 *rate, in rtw_phy_get_rate_values_of_txpwr_by_rate() argument 1239 rate[0] = DESC_RATE6M; in rtw_phy_get_rate_values_of_txpwr_by_rate() 1240 rate[1] = DESC_RATE9M; in rtw_phy_get_rate_values_of_txpwr_by_rate() 1241 rate[2] = DESC_RATE12M; in rtw_phy_get_rate_values_of_txpwr_by_rate() 1242 rate[3] = DESC_RATE18M; in rtw_phy_get_rate_values_of_txpwr_by_rate() 1249 rate[0] = DESC_RATE24M; in rtw_phy_get_rate_values_of_txpwr_by_rate() 1250 rate[1] = DESC_RATE36M; in rtw_phy_get_rate_values_of_txpwr_by_rate() 1251 rate[2] = DESC_RATE48M; in rtw_phy_get_rate_values_of_txpwr_by_rate() 1252 rate[3] = DESC_RATE54M; in rtw_phy_get_rate_values_of_txpwr_by_rate() 1258 rate[0] = DESC_RATE1M; in rtw_phy_get_rate_values_of_txpwr_by_rate() [all …]
|
| H A D | util.c | 82 void rtw_desc_to_mcsrate(u16 rate, u8 *mcs, u8 *nss) in rtw_desc_to_mcsrate() argument 84 if (rate <= DESC_RATE54M) in rtw_desc_to_mcsrate() 87 if (rate >= DESC_RATEVHT1SS_MCS0 && in rtw_desc_to_mcsrate() 88 rate <= DESC_RATEVHT1SS_MCS9) { in rtw_desc_to_mcsrate() 90 *mcs = rate - DESC_RATEVHT1SS_MCS0; in rtw_desc_to_mcsrate() 91 } else if (rate >= DESC_RATEVHT2SS_MCS0 && in rtw_desc_to_mcsrate() 92 rate <= DESC_RATEVHT2SS_MCS9) { in rtw_desc_to_mcsrate() 94 *mcs = rate - DESC_RATEVHT2SS_MCS0; in rtw_desc_to_mcsrate() 95 } else if (rate >= DESC_RATEVHT3SS_MCS0 && in rtw_desc_to_mcsrate() 96 rate <= DESC_RATEVHT3SS_MCS9) { in rtw_desc_to_mcsrate() [all …]
|
| /freebsd/sys/dev/ath/ |
| H A D | if_athrate.h | 36 * Interface definitions for transmit rate control modules for the 39 * A rate control module is responsible for choosing the transmit rate 41 * a fixed rate. 44 * rate control interfaces by symbol name. If multiple modules are 48 * An instance of the rate control module is attached to each device 54 * The rate control module is notified for each state transition and 56 * rate for each outgoing frame and provided status from each transmitted 61 * In addition to the transmit rate for each frame the module must also 62 * indicate the number of attempts to make at the specified rate. If this 64 * additional transmit state. The rate control code is assumed to write [all …]
|
| H A D | if_ath_tx_ht.c | 210 * Fill in the rate array information based on the current 211 * node configuration and the choices made by the rate 215 * rate control code, but for now it can live here. 228 uint8_t rate; in ath_tx_rate_fill_rcflags() local 234 * We only do LDPC if the rate is 11n, both we and the in ath_tx_rate_fill_rcflags() 238 * it if any of the rate entries aren't 11n. in ath_tx_rate_fill_rcflags() 259 rate = rt->info[rc[i].rix].rateCode; in ath_tx_rate_fill_rcflags() 264 if ((! IS_HT_RATE(rate)) && bf->bf_state.bfs_shpream) in ath_tx_rate_fill_rcflags() 265 rate |= rt->info[rc[i].rix].shortPreamble; in ath_tx_rate_fill_rcflags() 270 rc[i].ratecode = rate; in ath_tx_rate_fill_rcflags() [all …]
|
| /freebsd/tools/tools/net80211/wlantxtime/ |
| H A D | wlantxtime.c | 52 uint32_t rateKbps; /* transfer rate in kbs */ 54 * preamble in CCK rate code */ 58 * rate; used for dur. calcs */ 66 uint32_t frameLen, uint16_t rate, int isShortPreamble); 101 /* Preamble dot11Rate Rate */ 114 /* Preamble dot11Rate Rate */ 134 /* Preamble dot11Rate Rate */ 150 /* Preamble dot11Rate Rate */ 166 /* Preamble dot11Rate Rate */ 182 /* Preamble dot11Rate Rate */ [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/PowerPC/ |
| H A D | PPCScheduleE5500.td | 74 [30, 2, 2], // Latency= 4..26, Repeat rate= 4..26 80 [20, 2, 2], // Latency= 4..16, Repeat rate= 4..16 85 [11], // Latency = 7, Repeat rate = 1 89 [11, 2, 2], // Latency = 7, Repeat rate = 7 94 [9, 2, 2], // Latency = 4..7, Repeat rate = 2..4 100 [8, 2, 2], // Latency = 4, Repeat rate = 1 106 [8, 2, 2], // Latency = 4, Repeat rate = 1 122 [6, 2, 2], // Latency = 2, Repeat rate = 2 127 [5, 2, 2], // Latency = 1, Repeat rate = 1 132 [6, 2, 2], // Latency = 2, Repeat rate = 2 [all …]
|
| /freebsd/sys/dev/ath/ath_rate/amrr/ |
| H A D | amrr.c | 43 * AMRR rate control. See: 45 * "IEEE 802.11 Rate Adaptation: A Practical Approach" by 83 static int ath_rateinterval = 1000; /* rate ctl interval (ms) */ 88 int rate); 125 * the returned rate with the relevant preamble rate flag. 218 * The code below assumes that we are dealing with hardware multi rate retry 224 ath_rate_update(struct ath_softc *sc, struct ieee80211_node *ni, int rate) in ath_rate_update() argument 232 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); in ath_rate_update() 235 "%s: set xmit rate to %dM", __func__, in ath_rate_update() 237 (ni->ni_rates.rs_rates[rate] & IEEE80211_RATE_VAL) / 2 : 0); in ath_rate_update() [all …]
|
| /freebsd/contrib/ntp/adjtimed/ |
| H A D | adjtimed.c | 21 * This daemon adjusts the rate of the system clock a la BSD's adjtime(). 263 * Default clock rate (old_tick). 267 #define TICK_ADJ 5 /* standard adjustment rate, microsec/tick */ 279 register long rate, dt, leftover; in AdjustClockRate() local 290 rate = dt; in AdjustClockRate() 293 * Apply a slew rate of slew_rate over a period of dt/slew_rate seconds. in AdjustClockRate() 296 rate = slew_rate; in AdjustClockRate() 298 rate = -slew_rate; in AdjustClockRate() 305 * using the modified clock rate rather than an assumed nominal clock rate, in AdjustClockRate() 317 * adjust the clock rate in AdjustClockRate() [all …]
|
| /freebsd/contrib/ofed/libibverbs/man/ |
| H A D | ibv_rate_to_mult.3 | 7 ibv_rate_to_mult \- convert IB rate enumeration to multiplier of 2.5 Gbit/sec 9 mult_to_ibv_rate \- convert multiplier of 2.5 Gbit/sec to an IB rate enumeration 14 .BI "int ibv_rate_to_mult(enum ibv_rate " "rate" "); 20 converts the IB transmission rate enumeration 21 .I rate 22 to a multiple of 2.5 Gbit/sec (the base rate). For example, if 23 .I rate 31 to an IB transmission rate enumeration. For example, if 33 is 2, the rate enumeration 39 returns the multiplier of the base rate 2.5 Gbit/sec. [all …]
|
| H A D | ibv_rate_to_mbps.3 | 7 ibv_rate_to_mbps \- convert IB rate enumeration to Mbit/sec 9 mbps_to_ibv_rate \- convert Mbit/sec to an IB rate enumeration 14 .BI "int ibv_rate_to_mbps(enum ibv_rate " "rate" "); 20 converts the IB transmission rate enumeration 21 .I rate 23 .I rate 31 to an IB transmission rate enumeration. For example, if 33 is 5000, the rate enumeration 41 returns the enumeration representing the IB transmission rate.
|
| /freebsd/sys/contrib/dev/iwlwifi/fw/ |
| H A D | rs.c | 94 int rs_pretty_print_rate(char *buf, int bufsz, const u32 rate) in rs_pretty_print_rate() argument 98 u8 ant = (rate & RATE_MCS_ANT_AB_MSK) >> RATE_MCS_ANT_POS; in rs_pretty_print_rate() 99 u32 bw = (rate & RATE_MCS_CHAN_WIDTH_MSK) >> in rs_pretty_print_rate() 101 u32 format = rate & RATE_MCS_MOD_TYPE_MSK; in rs_pretty_print_rate() 110 index += rate & RATE_LEGACY_RATE_MSK; in rs_pretty_print_rate() 112 return scnprintf(buf, bufsz, "Legacy | ANT: %s Rate: %s Mbps", in rs_pretty_print_rate() 132 RATE_HT_MCS_INDEX(rate) : in rs_pretty_print_rate() 133 rate & RATE_MCS_CODE_MSK; in rs_pretty_print_rate() 134 nss = u32_get_bits(rate, RATE_MCS_NSS_MSK); in rs_pretty_print_rate() 136 iwl_he_is_sgi(rate) : in rs_pretty_print_rate() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/serial/ |
| H A D | nvidia,tegra20-hsuart.txt | 27 - nvidia,adjust-baud-rates: List of entries providing percentage of baud rate 29 Each entry contains sets of 3 values. Range low/high and adjusted rate. 31 When baud rate set on controller falls within the range mentioned in this 32 field, baud rate will be adjusted by percentage mentioned here. 34 Increase baud rate by 2% when set baud rate falls within range 9600 to 115200 36 Baud Rate tolerance: 37 Standard UART devices are expected to have tolerance for baud rate error by 39 Tegra186 chip has a known hardware issue. UART Rx baud rate tolerance level 42 rate to be higher than the deviations observed in Tx. 45 its spec) for valid range and Tegra baud rate has to be set above actual [all …]
|
| /freebsd/sys/dev/rtwn/rtl8812a/ |
| H A D | r12a_rx.c | 220 uint8_t flags, rate; in r12a_rx_radiotap_flags() local 224 rate = MS(le32toh(stat->rxdw3), R12A_RXDW3_RATE); in r12a_rx_radiotap_flags() 225 if (RTWN_RATE_IS_CCK(rate)) in r12a_rx_radiotap_flags() 239 uint8_t rate; in r12a_get_rx_stats() local 245 rate = MS(rxdw3, R12A_RXDW3_RATE); in r12a_get_rx_stats() 258 (RTWN_RATE_IS_HT(rate) || RTWN_RATE_IS_VHT(rate))) in r12a_get_rx_stats() 275 if (RTWN_RATE_IS_CCK(rate)) in r12a_get_rx_stats() 284 if (RTWN_RATE_IS_CCK(rate) || RTWN_RATE_IS_OFDM(rate)) { in r12a_get_rx_stats() 289 } else if (RTWN_RATE_IS_HT(rate)) { in r12a_get_rx_stats() 294 } else if (RTWN_RATE_IS_VHT(rate)) { in r12a_get_rx_stats() [all …]
|
| /freebsd/usr.sbin/sndctl/ |
| H A D | sndctl.8 | 79 .It play.rate Ta Number Ta Read/Write Ta Playback sample rate 81 .It play.min_rate Ta Number Ta Read Ta Minimum playback sample rate 82 .It play.max_rate Ta Number Ta Read Ta Maximum playback sample rate 88 .It rec.rate Ta Number Ta Read/Write Ta Recording sample rate 90 .It rec.min_rate Ta Number Ta Read Ta Minimum recording sample rate 91 .It rec.max_rate Ta Number Ta Read Ta Maximum recording sample rate 99 .Pa play.rate , 101 .Pa rec.rate 113 .It rate Ta Number Ta Read Ta Channel sample rate 122 .It hwbuf.rate Ta String Ta Read Ta Hardware buffer sample rate [all …]
|
| /freebsd/share/man/man4/ |
| H A D | ng_car.4 | 31 .Nd Committed Access Rate netgraph node type 41 Single rate three color marker as described in RFC 2697, 43 Two rate three color marker as described in RFC 2698, 45 RED-like rate limit algorithm used by Cisco, 76 Single rate three color marker as described in RFC 2697. 79 Committed burst getting refilled with CIR (Committed Information Rate) speed. 82 Two rate three color marker as described in RFC 2698. 86 Peak burst getting refilled with PIR (Peak Information Rate) speed at the 105 Traffic shaping is much more polite to the TCP traffic than rate limit on 128 uint64_t cir; /* Committed information rate (bits/s) */ [all …]
|
| /freebsd/sys/dev/ath/ath_rate/sample/ |
| H A D | sample.c | 86 * in "Bit-rate Selection in Wireless Networks" 89 * SampleRate chooses the bit-rate it predicts will provide the most 91 * transmission time for each bit-rate. SampleRate periodically sends 93 * another bit-rate will provide better performance. SampleRate 94 * switches to another bit-rate when its estimated per-packet 95 * transmission time becomes smaller than the current bit-rate's. 98 * currently being used. SampleRate also stops probing at a bit-rate 119 * given rate. For now this ignores SGI/LGI and will assume long-GI. 122 * (But it's also important because right now rate control doesn't set 125 * When selecting a set of rates the rate control code will iterate [all …]
|
| /freebsd/sys/dev/rtwn/rtl8192c/ |
| H A D | r92c_rx.c | 95 uint8_t flags, rate; in r92c_rx_radiotap_flags() local 100 rate = MS(le32toh(stat->rxdw3), R92C_RXDW3_RATE); in r92c_rx_radiotap_flags() 101 if (RTWN_RATE_IS_CCK(rate)) in r92c_rx_radiotap_flags() 114 uint8_t rate; in r92c_get_rx_stats() local 118 rate = MS(rxdw3, R92C_RXDW3_RATE); in r92c_get_rx_stats() 124 if ((rxdw3 & R92C_RXDW3_SPLCP) && RTWN_RATE_IS_HT(rate)) in r92c_get_rx_stats() 132 if (RTWN_RATE_IS_CCK(rate)) in r92c_get_rx_stats() 134 else if (RTWN_RATE_IS_OFDM(rate)) in r92c_get_rx_stats() 139 /* Map HW rate index to 802.11 rate. */ in r92c_get_rx_stats() 140 if (RTWN_RATE_IS_CCK(rate) || RTWN_RATE_IS_OFDM(rate)) { in r92c_get_rx_stats() [all …]
|