Searched refs:rate (Results 26 - 50 of 263) sorted by relevance

1234567891011

/freebsd-9.3-release/sys/dev/sound/pcm/
H A Dfeeder_eq.c102 &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 Dfeeder_chain.c40 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 Dnmdm.c245 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 Drrl.c203 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 Dosm_sa_mcmember_record.c102 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 Dosm_sa_path_record.c84 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 Dosm_sa_multipath_record.c77 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 Dser-unix.c76 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 Dserial.h134 extern int serial_setbaudrate (struct serial *scb, int rate);
225 int (*setbaudrate) (struct serial *, int rate);
H A Dser-go32.c54 * 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 Dnehemiah.c101 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 Dichss.c327 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 Dieee80211_phy.c189 * 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 Dacpi_battery.c203 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 Drt2661.c888 /* 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 Dmarshall.c113 dst->rate = src->rate;
138 dst->rate = src->rate;
/freebsd-9.3-release/sys/dev/agp/
H A Dagp.c332 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 Duverbs_marshall.c108 dst->rate = src->rate;
134 dst->rate = src->rate;
/freebsd-9.3-release/sys/sys/
H A Dcpu.h170 /* 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 Dprofile.c191 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 Dprofile.c251 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 Dhw_features.c60 "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 Duep.c368 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 Dif_ural.c768 /* 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 Dif_ath_tx.c103 * 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...]

Completed in 140 milliseconds

1234567891011