Home
last modified time | relevance | path

Searched full:rate (Results 1 – 25 of 2110) sorted by relevance

12345678910>>...85

/freebsd/sys/net80211/
H A Dieee80211_phy.h89 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 Dieee80211_amrr.c23 * Naive implementation of the Adaptive Multi Rate Retry algorithm:
25 * "IEEE 802.11 Rate Adaptation: A Practical Approach"
148 uint8_t rate; in amrr_node_init() local
184 /* Initial rate - lowest */ in amrr_node_init()
185 rate = rs->rs_rates[0]; in amrr_node_init()
187 /* XXX clear the basic rate flag if it's not 11n */ in amrr_node_init()
189 rate &= IEEE80211_RATE_VAL; in amrr_node_init()
191 /* pick initial rate from the rateset - HT or otherwise */ in amrr_node_init()
203 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL; in amrr_node_init()
205 /* if the rate is an 11n rate, ensure the MCS bit is set */ in amrr_node_init()
[all …]
H A Dieee80211_phy.c68 /* 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 Dmlx5_rl.c36 /* 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 Dif_rtwn_ridx.h24 /* 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 Donoe.c34 * 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 Donoe.h45 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 Dtcp_ratelimit.c72 * 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 Dphy.c1145 u32 addr, u32 mask, u32 val, u8 *rate, in rtw_phy_get_rate_values_of_txpwr_by_rate() argument
1153 rate[0] = DESC_RATE6M; in rtw_phy_get_rate_values_of_txpwr_by_rate()
1154 rate[1] = DESC_RATE9M; in rtw_phy_get_rate_values_of_txpwr_by_rate()
1155 rate[2] = DESC_RATE12M; in rtw_phy_get_rate_values_of_txpwr_by_rate()
1156 rate[3] = DESC_RATE18M; in rtw_phy_get_rate_values_of_txpwr_by_rate()
1163 rate[0] = DESC_RATE24M; in rtw_phy_get_rate_values_of_txpwr_by_rate()
1164 rate[1] = DESC_RATE36M; in rtw_phy_get_rate_values_of_txpwr_by_rate()
1165 rate[2] = DESC_RATE48M; in rtw_phy_get_rate_values_of_txpwr_by_rate()
1166 rate[3] = DESC_RATE54M; in rtw_phy_get_rate_values_of_txpwr_by_rate()
1172 rate[ in rtw_phy_get_rate_values_of_txpwr_by_rate()
1454 u8 rate; rtw_phy_store_tx_power_by_rate() local
1781 rtw_get_channel_group(u8 channel,u8 rate) rtw_get_channel_group() argument
1871 rtw_phy_get_dis_dpd_by_rate_diff(struct rtw_dev * rtwdev,u16 rate) rtw_phy_get_dis_dpd_by_rate_diff() argument
1905 rtw_phy_get_2g_tx_power_index(struct rtw_dev * rtwdev,struct rtw_2g_txpwr_idx * pwr_idx_2g,enum rtw_bandwidth bandwidth,u8 rate,u8 group) rtw_phy_get_2g_tx_power_index() argument
1952 rtw_phy_get_5g_tx_power_index(struct rtw_dev * rtwdev,struct rtw_5g_txpwr_idx * pwr_idx_5g,enum rtw_bandwidth bandwidth,u8 rate,u8 group) rtw_phy_get_5g_tx_power_index() argument
2004 rtw_phy_rate_to_rate_section(u8 rate) rtw_phy_rate_to_rate_section() argument
2024 rtw_phy_get_tx_power_limit(struct rtw_dev * rtwdev,u8 band,enum rtw_bandwidth bw,u8 rf_path,u8 rate,u8 channel,u8 regd) rtw_phy_get_tx_power_limit() argument
2072 rtw_phy_get_tx_power_sar(struct rtw_dev * rtwdev,u8 sar_band,u8 rf_path,u8 rate) rtw_phy_get_tx_power_sar() argument
2092 rtw_get_tx_power_params(struct rtw_dev * rtwdev,u8 path,u8 rate,u8 bw,u8 ch,u8 regd,struct rtw_power_params * pwr_param) rtw_get_tx_power_params() argument
2131 rtw_phy_get_tx_power_index(struct rtw_dev * rtwdev,u8 rf_path,u8 rate,enum rtw_bandwidth bandwidth,u8 channel,u8 regd) rtw_phy_get_tx_power_index() argument
2165 u8 rate; rtw_phy_set_tx_power_index_by_rs() local
2225 u8 rate; rtw_phy_tx_power_by_rate_config_by_path() local
2319 u8 regd, path, rate, rs, bw; rtw_phy_init_tx_power() local
[all...]
H A Dutil.c82 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 …]
H A Drx.c51 dm_info->curr_rx_rate = pkt_stat->rate; in rtw_rx_phy_stat()
56 switch (pkt_stat->rate) { in rtw_rx_phy_stat()
77 rtw_warn(rtwdev, "unknown pkt rate = %d\n", pkt_stat->rate); in rtw_rx_phy_stat()
93 cur_pkt_cnt->num_qry_pkt[pkt_stat->rate]++; in rtw_rx_phy_stat()
169 if (pkt_stat->rate >= DESC_RATEVHT1SS_MCS0) in rtw_rx_fill_rx_status()
171 else if (pkt_stat->rate >= DESC_RATEMCS0) in rtw_rx_fill_rx_status()
175 pkt_stat->rate >= DESC_RATE6M && in rtw_rx_fill_rx_status()
176 pkt_stat->rate <= DESC_RATE54M) { in rtw_rx_fill_rx_status()
177 rx_status->rate_idx = pkt_stat->rate - DESC_RATE6M; in rtw_rx_fill_rx_status()
179 pkt_stat->rate >= DESC_RATE1M && in rtw_rx_fill_rx_status()
[all …]
/freebsd/sys/dev/ath/
H A Dif_athrate.h36 * 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 Dif_ath_tx_ht.c210 * 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 Dwlantxtime.c52 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 DPPCScheduleE5500.td74 [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 Damrr.c43 * 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 Dadjtimed.c21 * 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/sys/contrib/dev/iwlwifi/fw/
H A Drs.c96 int rate = rate_n_flags & RATE_LEGACY_RATE_MSK_V1; in iwl_legacy_rate_to_fw_idx() local
103 if (iwl_fw_rate_idx_to_plcp(idx) == rate) in iwl_legacy_rate_to_fw_idx()
115 /* convert rate */ in iwl_new_rate_from_v1()
142 /* the new rate have an additional bit to in iwl_new_rate_from_v1()
145 * rate */ in iwl_new_rate_from_v1()
192 int rs_pretty_print_rate(char *buf, int bufsz, const u32 rate) in rs_pretty_print_rate() argument
196 u8 ant = (rate & RATE_MCS_ANT_AB_MSK) >> RATE_MCS_ANT_POS; in rs_pretty_print_rate()
197 u32 bw = (rate & RATE_MCS_CHAN_WIDTH_MSK) >> in rs_pretty_print_rate()
199 u32 format = rate & RATE_MCS_MOD_TYPE_MSK; in rs_pretty_print_rate()
204 int legacy_rate = rate in rs_pretty_print_rate()
[all...]
/freebsd/contrib/ofed/libibverbs/man/
H A Dibv_rate_to_mult.37 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 Dibv_rate_to_mbps.37 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/device-tree/Bindings/serial/
H A Dnvidia,tegra20-hsuart.txt27 - 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 Dr12a_rx.c212 uint8_t flags, rate; in r12a_rx_radiotap_flags() local
216 rate = MS(le32toh(stat->rxdw3), R12A_RXDW3_RATE); in r12a_rx_radiotap_flags()
217 if (RTWN_RATE_IS_CCK(rate)) in r12a_rx_radiotap_flags()
231 uint8_t rate; in r12a_get_rx_stats() local
237 rate = MS(rxdw3, R12A_RXDW3_RATE); in r12a_get_rx_stats()
250 (RTWN_RATE_IS_HT(rate) || RTWN_RATE_IS_VHT(rate))) in r12a_get_rx_stats()
267 if (RTWN_RATE_IS_CCK(rate)) in r12a_get_rx_stats()
276 if (RTWN_RATE_IS_CCK(rate) || RTWN_RATE_IS_OFDM(rate)) { in r12a_get_rx_stats()
281 } else if (RTWN_RATE_IS_HT(rate)) { in r12a_get_rx_stats()
286 } else if (RTWN_RATE_IS_VHT(rate)) { in r12a_get_rx_stats()
[all …]
/freebsd/share/man/man4/
H A Dng_car.431 .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 Dsample.c86 * 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 Dr92c_rx.c95 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 …]

12345678910>>...85