/freebsd-9.3-release/sys/dev/sound/pcm/ |
H A D | feeder_eq.c | 102 &feeder_eq_exact_rate, 0, "force exact rate validation"); 123 uint32_t rate; member in struct:feed_eq_info 273 feed_eq_coeff_rate(uint32_t rate) argument 278 if (rate < FEEDEQ_RATE_MIN || rate > FEEDEQ_RATE_MAX) 282 * Not all rates are supported. Choose the best rate that we can to 286 spd = feed_eq_tab[i].rate; 288 feed_eq_tab[i + 1].rate > spd) ? 289 ((feed_eq_tab[i + 1].rate - spd) >> 1) : 0); 290 if (rate 299 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 204 * feeder_build_rate(): Chain sample rate converter. 260 ret = FEEDER_SET(f, FEEDRATE_SRC, cdesc->current.rate); 263 "%s(): can't set source rate\n", __func__); 267 ret = FEEDER_SET(f, FEEDRATE_DST, cdesc->target.rate); 270 "%s(): can't set destination rate\n", __func__); 276 cdesc->current.rate = cdesc->target.rate; 446 ret = FEEDER_SET(f, FEEDEQ_RATE, cdesc->current.rate); [all...] |
/freebsd-9.3-release/sys/dev/nmdm/ |
H A D | nmdm.c | 245 int bpc, rate, speed, i; local 256 * DSRFLOW one either side enables rate-simulation for both 265 /* Use the slower of our receive and their transmit rate */ 275 rate = (hz << QS) / speed; /* [hz per callout] */ 276 if (rate == 0) 277 rate = 1; 279 speed *= rate; 283 np->np_rate = rate; 284 callout_reset(&np->np_callout, rate, nmdm_timeout, np);
|
/freebsd-9.3-release/contrib/bind9/lib/dns/ |
H A D | rrl.c | 203 double rate; local 220 rate = rrl->probes; 222 rate /= rrl->searches; 228 rrl->hash->length, rate); 286 double rate; local 317 rate = rrl->probes; 319 rate /= rrl->searches; 324 old_bins, new_bins, rrl->num_entries, rate); 387 * Collisions result in legitimate rate limiting responses for one 474 int balance, rate; local 615 int rate, new_rate, slip, new_slip, age, log_secs, min; local [all...] |
/freebsd-9.3-release/contrib/ofed/management/opensm/opensm/ |
H A D | osm_sa_mcmember_record.c | 102 dest->rate = src->rate; 251 /* Fill in the mtu, rate, and packet lifetime selectors */ 254 item->rec.rate &= 0x3f; 255 item->rec.rate |= 2 << 6; /* exactly */ 324 /* what about rate ? */ 326 rate_sel = (uint8_t) (p_recvd_mcmember_rec->rate >> 6); 328 rate_required = (uint8_t) (p_recvd_mcmember_rec->rate & 0x3F); 329 rate_mgrp = (uint8_t) (p_mgrp->mcmember_rec.rate & 0x3F); 389 rate_mgrp = (uint8_t) (p_mgrp->mcmember_rec.rate 697 uint8_t rate_required, rate, port_rate; local [all...] |
H A D | osm_sa_path_record.c | 84 uint8_t rate; member in struct:osm_path_parms 187 uint8_t rate; local 212 rate = ib_port_info_compute_rate(p_pi); 231 tracking the most restrictive rate and mtu values along the way... 348 if (rate > ib_port_info_compute_rate(p_pi)) 349 rate = ib_port_info_compute_rate(p_pi); 369 if (rate > ib_port_info_compute_rate(p_pi)) 370 rate = ib_port_info_compute_rate(p_pi); 399 if (rate > ib_port_info_compute_rate(p_pi)) 400 rate [all...] |
H A D | osm_sa_multipath_record.c | 77 uint8_t rate; member in struct:osm_path_parms 177 uint8_t rate; local 201 rate = ib_port_info_compute_rate(p_pi); 221 tracking the most restrictive rate and mtu values along the way... 339 if (rate > ib_port_info_compute_rate(p_pi)) 340 rate = ib_port_info_compute_rate(p_pi); 360 if (rate > ib_port_info_compute_rate(p_pi)) 361 rate = ib_port_info_compute_rate(p_pi); 391 if (rate > ib_port_info_compute_rate(p_pi)) 392 rate [all...] |
/freebsd-9.3-release/contrib/gdb/gdb/ |
H A D | ser-unix.c | 76 static int rate_to_code (int rate); 77 static int hardwire_setbaudrate (struct serial *scb, int rate); 649 int rate; member in struct:__anon1436 745 rate_to_code (int rate) argument 749 for (i = 0; baudtab[i].rate != -1; i++) 752 if (rate == baudtab[i].rate) 757 if (rate < baudtab[i].rate) 761 warning ("Invalid baud rate 781 hardwire_setbaudrate(struct serial *scb, int rate) argument 1095 ser_unix_nop_setbaudrate(struct serial *scb, int rate) argument [all...] |
H A D | serial.h | 134 extern int serial_setbaudrate (struct serial *scb, int rate); 225 int (*setbaudrate) (struct serial *, int rate);
|
H A D | ser-go32.c | 54 * Constants for computing 16 bit baud rate divisor (lower byte 56 * 1.8432 MHz / (16 * X) for X bps. If the baud rate can't be set 234 static int dos_setbaudrate (struct serial *scb, int rate); 239 static int dos_baudconv (int rate); 544 /* set default baud rate and mode: 9600,8,n,1 */ 702 dos_baudconv (int rate) 706 if (rate <= 0) 710 x = divrnd (COMTICK, rate); 714 err = divrnd (1000 * COMTICK, x * rate) - 1000; 725 dos_setbaudrate (struct serial *scb, int rate) 698 dos_baudconv(int rate) argument 721 dos_setbaudrate(struct serial *scb, int rate) argument [all...] |
/freebsd-9.3-release/sys/dev/random/ |
H A D | nehemiah.c | 101 uint32_t rate = 0; local 107 : "=a" (retval), "+d" (rate), "+D" (buf) 111 if (rate == 0)
|
/freebsd-9.3-release/sys/dev/cpufreq/ |
H A D | ichss.c | 327 uint64_t rate; local 365 cpu_est_clockrate(0, &rate); 366 sc->sets[req_val].freq = rate / 1000000; 367 DPRINT("ichss: set calibrated new rate of %d\n", 378 uint64_t rate; local 386 cpu_est_clockrate(0, &rate); 387 sc->sets[state].freq = rate / 1000000; 388 DPRINT("ichss: get calibrated new rate of %d\n",
|
/freebsd-9.3-release/sys/net80211/ |
H A D | ieee80211_phy.c | 189 * Setup a rate table's reverse lookup table and fill in 216 * Map w/o basic rate bit too. 223 * XXX for 11g the control rate to use for 5.5 and 11 Mb/s 226 * 2Mb/s rate which will work but is suboptimal 228 * NB: Control rate is always less than or equal to the 229 * current rate, so control rate's reverse lookup entry 242 /* Setup all rate tables */ 296 panic("%s: no rate table for channel; freq %u flags 0x%x\n", 303 * Convert PLCP signal/rate fiel 344 ieee80211_rate2plcp(int rate, enum ieee80211_phytype type) argument 398 ieee80211_compute_duration(const struct ieee80211_rate_table *rt, uint32_t frameLen, uint16_t rate, int isShortPreamble) argument [all...] |
/freebsd-9.3-release/sys/dev/acpica/ |
H A D | acpi_battery.c | 203 bst[i].rate = (bst[i].rate * bif->dvol) / 1000; 229 * sequentially, thus bst.rate may only signify the one currently 230 * in use. For the remaining batteries, bst.rate will be zero, 232 * Therefore, we sum the bst.rate for batteries in the discharging 235 if (bst[i].rate != ACPI_BATT_UNKNOWN && 237 valid_rate += bst[i].rate; 250 * If any batteries are discharging, use the sum of the bst.rate 274 battinfo->rate = valid_rate; 279 battinfo->rate [all...] |
/freebsd-9.3-release/sys/dev/ral/ |
H A D | rt2661.c | 888 /* retrieve rate control algorithm context */ 1092 tap->wr_rate = ieee80211_plcp2rate(desc->rate, 1215 rt2661_plcp_signal(int rate) argument 1217 switch (rate) { 1234 return 0xff; /* XXX unsupported/unknown rate */ 1239 uint32_t flags, uint16_t xflags, int len, int rate, 1268 desc->plcp_signal = rt2661_plcp_signal(rate); 1272 if (ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_OFDM) { 1279 plcp_length = (16 * len + rate - 1) / rate; 1238 rt2661_setup_tx_desc(struct rt2661_softc *sc, struct rt2661_tx_desc *desc, uint32_t flags, uint16_t xflags, int len, int rate, const bus_dma_segment_t *segs, int nsegs, int ac) argument 1312 int nsegs, rate, error; local 1387 rt2661_sendprot(struct rt2661_softc *sc, int ac, const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate) argument 1474 int error, nsegs, rate, noack = 0; local 1917 uint8_t rate; local 2694 int rate; local [all...] |
/freebsd-9.3-release/contrib/ofed/libibverbs/src/ |
H A D | marshall.c | 113 dst->rate = src->rate; 138 dst->rate = src->rate;
|
/freebsd-9.3-release/sys/dev/agp/ |
H A D | agp.c | 332 int rq, sba, fw, rate, arqsz, cal; local 367 /* Figure out the max rate */ 368 rate = (AGP_MODE_GET_RATE(tstatus) 371 if (rate & AGP_MODE_V3_RATE_8x) 372 rate = AGP_MODE_V3_RATE_8x; 374 rate = AGP_MODE_V3_RATE_4x; 376 device_printf(dev, "Setting AGP v3 mode %d\n", rate * 4); 387 command = AGP_MODE_SET_RATE(command, rate); 401 int rq, sba, fw, rate; local 423 /* Figure out the max rate */ [all...] |
/freebsd-9.3-release/sys/ofed/drivers/infiniband/core/ |
H A D | uverbs_marshall.c | 108 dst->rate = src->rate; 134 dst->rate = src->rate;
|
/freebsd-9.3-release/sys/sys/ |
H A D | cpu.h | 170 /* Estimate the current clock rate for the given CPU id. */ 171 int cpu_est_clockrate(int cpu_id, uint64_t *rate);
|
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/dtrace/ |
H A D | profile.c | 191 int i, j, rate, kind; local 233 if ((rate = profile_rates[i]) == 0) 237 PROF_PREFIX_PROFILE, rate); 238 profile_create(NANOSEC / rate, n, PROF_PROFILE); 242 if ((rate = profile_ticks[i]) == 0) 246 PROF_PREFIX_TICK, rate); 247 profile_create(NANOSEC / rate, n, PROF_TICK);
|
/freebsd-9.3-release/sys/cddl/dev/profile/ |
H A D | profile.c | 251 int i, j, rate, kind; local 293 if ((rate = profile_rates[i]) == 0) 297 PROF_PREFIX_PROFILE, rate); 298 profile_create(NANOSEC / rate, n, PROF_PROFILE); 302 if ((rate = profile_ticks[i]) == 0) 306 PROF_PREFIX_TICK, rate); 307 profile_create(NANOSEC / rate, n, PROF_TICK);
|
/freebsd-9.3-release/contrib/wpa/src/ap/ |
H A D | hw_features.c | 60 "Fetching hardware channel/rate support not " 131 wpa_printf(MSG_ERROR, "Failed to update rate sets in kernel " 141 wpa_printf(MSG_ERROR, "Failed to allocate memory for rate " 147 struct hostapd_rate_data *rate; local 154 rate = &hapd->iface->current_rates[hapd->iface->num_rates]; 155 rate->rate = mode->rates[i]; 156 if (hostapd_rate_found(basic_rates, rate->rate)) { 157 rate [all...] |
/freebsd-9.3-release/sys/dev/usb/input/ |
H A D | uep.c | 368 u_int rate; local 370 if ((rate = sc->pollrate) > 1000) 371 rate = 1000; 373 if (rate > 0 && sc->xfer[UEP_INTR_DT] != NULL) { 375 usbd_xfer_set_interval(sc->xfer[UEP_INTR_DT], 1000 / rate);
|
/freebsd-9.3-release/sys/dev/usb/wlan/ |
H A D | if_ural.c | 768 /* enable automatic rate adaptation */ 833 tap->wt_rate = data->rate; 942 tap->wr_rate = ieee80211_plcp2rate(sc->sc_rx_desc.rate, 990 ural_plcp_signal(int rate) argument 992 switch (rate) { 1009 return 0xff; /* XXX unsupported/unknown rate */ 1014 uint32_t flags, int len, int rate) 1029 desc->plcp_signal = ural_plcp_signal(rate); 1033 if (ieee80211_rate2phytype(ic->ic_rt, rate) == IEEE80211_T_OFDM) { 1040 plcp_length = (16 * len + rate 1013 ural_setup_tx_desc(struct ural_softc *sc, struct ural_tx_desc *desc, uint32_t flags, int len, int rate) argument 1163 ural_sendprot(struct ural_softc *sc, const struct mbuf *m, struct ieee80211_node *ni, int prot, int rate) argument 1221 int rate; local 1277 int error, rate; local [all...] |
/freebsd-9.3-release/sys/dev/ath/ |
H A D | if_ath_tx.c | 103 * Whether to use the 11n rate scenario functions or not 430 * CTS transmit rate is derived from the transmit rate 431 * by looking in the h/w rate table. We must also factor 458 printf("%s: HT rate where it shouldn't be (0x%x)\n", 514 uint8_t try[4], rate[4]; local 517 bzero(rate, sizeof(rate)); 555 KASSERT(rt != NULL, ("no rate table, mode %u", sc->sc_curmode)); 572 ismrr = 0; /* default no multi-rate retr 890 uint8_t try[4], rate[4]; local [all...] |