/freebsd-11-stable/sys/net80211/ |
H A D | ieee80211_phy.h | 74 uint32_t rateKbps; /* transfer rate in kbs */ 76 * preamble in CCK rate code */ 80 * rate; used for dur. calcs */ 90 ieee80211_ack_rate(const struct ieee80211_rate_table *rt, uint8_t rate) argument 93 * XXX Assert this is for a legacy rate; not for an MCS rate. 94 * If the caller wishes to use it for a basic rate, they should 97 KASSERT(! (rate & 0x80), ("rate %d is basic/mcs?", rate)); 105 ieee80211_ctl_rate(const struct ieee80211_rate_table *rt, uint8_t rate) argument 120 ieee80211_rate2phytype(const struct ieee80211_rate_table *rt, uint8_t rate) argument 135 ieee80211_isratevalid(const struct ieee80211_rate_table *rt, uint8_t rate) argument 154 ieee80211_ack_duration(const struct ieee80211_rate_table *rt, uint8_t rate, int isShortPreamble) argument 172 ieee80211_legacy_rate_lookup(const struct ieee80211_rate_table *rt, uint8_t rate) argument [all...] |
H A D | ieee80211_amrr.c | 170 uint8_t rate; local 206 /* Initial rate - lowest */ 207 rate = rs->rs_rates[0]; 209 /* XXX clear the basic rate flag if it's not 11n */ 211 rate &= IEEE80211_RATE_VAL; 213 /* pick initial rate from the rateset - HT or otherwise */ 225 rate = rs->rs_rates[amn->amn_rix] & IEEE80211_RATE_VAL; 227 /* if the rate is an 11n rate, ensure the MCS bit is set */ 229 rate | 462 int rate; local [all...] |
/freebsd-11-stable/sys/dev/vkbd/ |
H A D | vkbd_var.h | 43 int rate; /* keyboard rate */ member in struct:vkbd_status
|
/freebsd-11-stable/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; local 290 rate = dt; 293 * Apply a slew rate of slew_rate over a period of dt/slew_rate seconds. 296 rate = slew_rate; 298 rate = -slew_rate; 305 * using the modified clock rate rather than an assumed nominal clock rate, 366 long rate, mask; local [all...] |
/freebsd-11-stable/tools/tools/net80211/wlantxtime/ |
H A D | wlantxtime.c | 54 uint32_t rateKbps; /* transfer rate in kbs */ 56 * preamble in CCK rate code */ 60 * rate; used for dur. calcs */ 68 uint32_t frameLen, uint16_t rate, int isShortPreamble); 219 * Setup a rate table's reverse lookup table and fill in 245 * Map w/o basic rate bit too. 252 * XXX for 11g the control rate to use for 5.5 and 11 Mb/s 255 * 2Mb/s rate which will work but is suboptimal 257 * NB: Control rate is always less than or equal to the 258 * current rate, s 329 ieee80211_compute_duration(const struct ieee80211_rate_table *rt, uint32_t frameLen, uint16_t rate, int isShortPreamble) argument 399 ieee80211_compute_duration_ht(const struct ieee80211_rate_table *rt, uint32_t frameLen, uint16_t rate, int streams, int isht40, int isShortGI) argument 458 srate(int rate) argument 514 uint16_t rate; local [all...] |
/freebsd-11-stable/contrib/gdb/gdb/ |
H A D | ser-unix.h | 43 extern int ser_unix_nop_setbaudrate (struct serial *scb, int rate); 44 extern int ser_unix_nop_setstopbits (struct serial *scb, int rate);
|
/freebsd-11-stable/crypto/openssh/ |
H A D | fixprogs | 65 ($null, $null, $rate) = split(/,/, $ent[0]); 66 $est = $rate / $entscale; # scale the estimate back
|
/freebsd-11-stable/sys/arm/at91/ |
H A D | at91_twireg.h | 66 #define TWI_CWGR_DIV(rate) \ 68 ((at91_master_clock / (4 * (rate))) - 3) : \ 69 ((at91_master_clock / (4 * (rate))) - 2))
|
/freebsd-11-stable/sys/gnu/dev/bwn/phy_n/ |
H A D | if_bwn_phy_n_ppr.c | 98 uint8_t *rate; local 100 ppr_for_each_entry(ppr, i, rate) { 101 *rate = bwn_clamp_val(*rate + diff, 0, 127); 108 uint8_t *rate; local 110 ppr_for_each_entry(ppr, i, rate) { 111 *rate = min(*rate, max); 118 uint8_t *rate; local 120 ppr_for_each_entry(ppr, i, rate) { 129 uint8_t *rate; local [all...] |
/freebsd-11-stable/sys/dev/drm2/radeon/ |
H A D | r600_audio.c | 103 /* current sampling rate in HZ */ 105 status.rate = 44100; 107 status.rate = 48000; 108 status.rate *= ((value >> 11) & 0x7) + 1; 109 status.rate /= ((value >> 8) & 0x7) + 1; 134 rdev->audio_status.rate != audio_status.rate || 181 rdev->audio_status.rate = -1;
|
/freebsd-11-stable/usr.bin/tset/ |
H A D | map.c | 49 /* Baud rate conditionals for mapping. */ 61 int conditional; /* Baud rate conditionals bitmask. */ 62 speed_t speed; /* Baud rate to compare against. */ 70 * The baud rate tests are: >, <, @, =, ! 235 tset_baudrate(char *rate) argument 241 if (*rate == 'B') 242 ++rate; 245 if (!strcasecmp(rate, sp->string)) 247 speed = atol(rate); 249 errx(1, "unknown baud rate [all...] |
/freebsd-11-stable/sys/dev/random/ |
H A D | nehemiah.c | 66 uint32_t rate = 0; local 72 : "=a" (retval), "+d" (rate), "+D" (buf) 77 if (rate == 0)
|
/freebsd-11-stable/contrib/ofed/libibverbs/ |
H A D | sa.h | 60 uint8_t rate; member in struct:ibv_sa_path_rec 76 uint8_t rate; member in struct:ibv_sa_mcmember_rec 115 uint8_t rate; /* rate selector-7:6 rate-5:0 */ member in struct:ibv_path_record
|
/freebsd-11-stable/sys/dev/mthca/ |
H A D | mthca_av.c | 101 return memfree_rate_to_ib(mthca_rate, dev->rate[port - 1]); 103 return tavor_rate_to_ib(mthca_rate, dev->rate[port - 1]); 112 * Inter-packet delay (IPD) to get from rate X down to a rate 136 u8 rate; local 138 if (!static_rate || ib_rate_to_mult(static_rate) >= dev->rate[port - 1]) 142 rate = ib_rate_to_memfree(ib_rate_to_mult(static_rate), 143 dev->rate[port - 1]); 145 rate = ib_rate_to_tavor(static_rate); 147 if (!(dev->limits.stat_rate_support & (1 << rate))) [all...] |
/freebsd-11-stable/contrib/ofed/infiniband-diags/src/ |
H A D | ibstat.c | 138 char rate[32]; local 148 if (sys_read_string(port_dir, SYS_PORT_RATE, rate, sizeof(rate)) == 0) { 149 if ((p = strchr(rate, ')'))) { 180 printf("%sRate: %d (FDR10)\n", pre, port->rate); 182 if (port->rate != 2) 183 printf("%sRate: %d\n", pre, port->rate);
|
/freebsd-11-stable/usr.bin/systat/ |
H A D | zarc.c | 118 domode(struct zarcstats *delta, struct zarcrates *rate) argument 123 rate->current.stat = calc_rate(delta->hits.stat, delta->misses.stat); \ 124 rate->total.stat = calc_rate(curstat.hits.stat, curstat.misses.stat) 149 struct zarcrates rate = {}; local 151 domode(&delta, &rate); 155 #define RATES(stat) mvwprintw(wnd, row, 31+1, "%3"PRIu64, rate.current.stat);\ 156 mvwprintw(wnd, row, 31+1+5+7+7+8, "%3"PRIu64, rate.total.stat)
|
/freebsd-11-stable/sys/dev/sbni/ |
H A D | if_sbnireg.h | 64 unsigned rate : 2; member in struct:sbni_csr1
|
/freebsd-11-stable/sys/ofed/include/uapi/rdma/ |
H A D | ib_user_sa.h | 78 __u8 rate; member in struct:ib_user_path_rec
|
/freebsd-11-stable/sys/ofed/drivers/infiniband/ulp/ipoib/ |
H A D | ipoib_fs.c | 202 int rate; local 217 rate = ib_rate_to_mult(path.pathrec.rate) * 25; 222 " rate: %*d%s Gb/sec\n", 225 10 - ((rate % 10) ? 2 : 0), 226 rate / 10, rate % 10 ? ".5" : "");
|
/freebsd-11-stable/sys/dev/ath/ath_rate/amrr/ |
H A D | amrr.c | 43 * AMRR rate control. See: 83 static int ath_rateinterval = 1000; /* rate ctl interval (ms) */ 88 int rate); 122 * the returned rate with the relevant preamble rate flag. 212 * The code below assumes that we are dealing with hardware multi rate retry 218 ath_rate_update(struct ath_softc *sc, struct ieee80211_node *ni, int rate) argument 226 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); 229 "%s: set xmit rate to %dM", __func__, 231 (ni->ni_rates.rs_rates[rate] [all...] |
/freebsd-11-stable/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); 191 ath_rate_update(struct ath_softc *sc, struct ieee80211_node *ni, int rate) argument [all...] |
/freebsd-11-stable/sys/dev/sound/pcm/ |
H A D | feeder_eq.c | 101 &feeder_eq_exact_rate, 0, "force exact rate validation"); 122 uint32_t rate; member in struct:feed_eq_info 272 feed_eq_coeff_rate(uint32_t rate) argument 277 if (rate < FEEDEQ_RATE_MIN || rate > FEEDEQ_RATE_MAX) 281 * Not all rates are supported. Choose the best rate that we can to 285 spd = feed_eq_tab[i].rate; 287 feed_eq_tab[i + 1].rate > spd) ? 288 ((feed_eq_tab[i + 1].rate - spd) >> 1) : 0); 289 if (rate 298 feeder_eq_validrate(uint32_t rate) argument [all...] |
H A D | feeder_chain.c | 40 uint32_t rate; /* sampling rate */ member in struct:feeder_chain_state 203 * feeder_build_rate(): Chain sample rate converter. 259 ret = FEEDER_SET(f, FEEDRATE_SRC, cdesc->current.rate); 262 "%s(): can't set source rate\n", __func__); 266 ret = FEEDER_SET(f, FEEDRATE_DST, cdesc->target.rate); 269 "%s(): can't set destination rate\n", __func__); 275 cdesc->current.rate = cdesc->target.rate; 445 ret = FEEDER_SET(f, FEEDEQ_RATE, cdesc->current.rate); [all...] |
/freebsd-11-stable/sys/dev/nmdm/ |
H A D | nmdm.c | 322 int bpc, rate, speed, i; local 333 * DSRFLOW one either side enables rate-simulation for both 342 /* Use the slower of our receive and their transmit rate */ 352 rate = (hz << QS) / speed; /* [hz per callout] */ 353 if (rate == 0) 354 rate = 1; 356 speed *= rate; 360 np->np_rate = rate; 361 callout_reset(&np->np_callout, rate, nmdm_timeout, np);
|
/freebsd-11-stable/tools/tools/netrate/netsend/ |
H A D | netsend.c | 264 printf("approx send rate: %ld pps\n", (send_calls - send_errors) / 273 printf("approx error rate: %ld\n", (send_errors / send_calls)); 276 printf("approx wait rate: %lld\n", (long long)(waited / send_calls)); 284 long rate, payloadsize, port; local 351 rate = strtoul(argv[4], &dummy, 10); 352 if (rate < 0 || *dummy != '\0') 354 if (rate > MAX_RATE) { 355 fprintf(stderr, "packet rate at most %d\n", MAX_RATE); 369 if (rate == 0) { 372 } else if (rate [all...] |