Searched refs:rate (Results 51 - 75 of 286) sorted by relevance

1234567891011>>

/freebsd-11-stable/sys/dev/usb/serial/
H A Duchcom.c573 uchcom_calc_divider_settings(struct uchcom_divider *dp, uint32_t rate) argument
583 if (dividers[i].dvr_high >= rate &&
584 dividers[i].dvr_low <= rate) {
596 div = rp->dvr_base_clock / rate;
597 rem = rp->dvr_base_clock % rate;
600 if ((rem << 1) >= rate)
605 mod = (UCHCOM_BPS_MOD_BASE / rate) + UCHCOM_BPS_MOD_BASE_OFS;
614 uchcom_set_baudrate(struct uchcom_softc *sc, uint32_t rate) argument
618 if (uchcom_calc_divider_settings(&dv, rate))
H A Dumcs.c153 static usb_error_t umcs7840_calc_baudrate(uint32_t rate, uint16_t *, uint8_t *);
1036 umcs7840_set_baudrate(struct umcs7840_softc *sc, uint8_t portno, uint32_t rate) argument
1043 if (umcs7840_calc_baudrate(rate, &divisor, &clk)) {
1044 DPRINTF("Port %d bad speed: %d\n", portno, rate);
1048 DPRINTF("Port %d bad speed calculation: %d\n", portno, rate);
1051 DPRINTF("Port %d set speed: %d (%02x / %d)\n", portno, rate, clk, divisor);
1089 umcs7840_calc_baudrate(uint32_t rate, uint16_t *divisor, uint8_t *clk) argument
1093 if (rate > umcs7840_baudrate_divisors[umcs7840_baudrate_divisors_len - 1])
1097 !(rate > umcs7840_baudrate_divisors[i] && rate <
[all...]
/freebsd-11-stable/contrib/ofed/opensm/opensm/
H A Dosm_prtn_config.c78 unsigned mtu, rate, sl, scope_mask; member in struct:group_flags
110 osm_prtn_t * p, uint8_t rate, uint8_t mtu,
154 if (group->flags.rate == conf->flags.rate)
158 "IP MC group (%s) specified with invalid rate (%d): "
160 "[Partition broadcast group rate = %d]\n",
162 group->flags.rate, cl_ntoh16(conf->p_prtn->pkey),
163 conf->p_prtn->name, conf->flags.rate);
191 (uint8_t) group->flags.rate,
205 (uint8_t)group->flags.rate,
[all...]
/freebsd-11-stable/tools/tools/ath/athaggrstats/
H A Dathaggrstats.c213 snprintrate(char b[], size_t bs, int rate) argument
215 if (rate & IEEE80211_RATE_MCS)
216 snprintf(b, bs, "MCS%u", rate &~ IEEE80211_RATE_MCS);
217 else if (rate & 1)
218 snprintf(b, bs, "%u.5M", rate / 2);
220 snprintf(b, bs, "%uM", rate / 2);
/freebsd-11-stable/usr.bin/gprof/
H A Dgprof.c266 int rate; local
276 rate = gmonhdr.profrate;
281 gmonhdr.profrate = rate = hertz();
285 hz = rate;
286 } else if (hz != rate)
287 errx(0, "%s: profile clock rate (%d) %s (%ld) in first gmon file",
288 filename, rate, "incompatible with clock rate", hz);
313 printf( "[openpfile] sample rate %ld\n" , hz );
/freebsd-11-stable/sys/dev/acpica/
H A Dacpiio.h48 int rate; /* emptying rate */ member in struct:acpi_battinfo
58 #define ACPI_BIF_UNITS_MW 0 /* Capacity in mWh, rate in mW. */
59 #define ACPI_BIF_UNITS_MA 1 /* Capacity in mAh, rate in mA. */
81 #define ACPI_BIX_UNITS_MW 0 /* Capacity in mWh, rate in mW. */
82 #define ACPI_BIX_UNITS_MA 1 /* Capacity in mAh, rate in mA. */
146 uint32_t rate; /* Present Rate */ member in struct:acpi_bst
/freebsd-11-stable/sys/contrib/octeon-sdk/
H A Dcvmx-led-defs.h220 uint64_t rate : 8; /**< LED Blink rate in led_latch clks member in struct:cvmx_led_blink::cvmx_led_blink_s
223 uint64_t rate : 8;
280 uint64_t rate : 16; /**< LED Cylon Effect when RATE!=0 member in struct:cvmx_led_cylon::cvmx_led_cylon_s
283 uint64_t rate : 16;
/freebsd-11-stable/sys/sys/
H A Dcpu.h186 /* Estimate the current clock rate for the given CPU id. */
187 int cpu_est_clockrate(int cpu_id, uint64_t *rate);
/freebsd-11-stable/sys/dev/sound/pcm/
H A Dac97.h99 int ac97_setrate(struct ac97_info *codec, int which, int rate);
/freebsd-11-stable/sys/dev/sbni/
H A Dif_sbnivar.h61 u_int rate : 2; member in struct:sbni_flags
/freebsd-11-stable/sys/dev/usb/wlan/
H A Dif_uralvar.h70 int rate; member in struct:ural_tx_data
/freebsd-11-stable/sys/arm/broadcom/bcm2835/
H A Dbcm2835_cpufreq.c165 int rate; local
169 * Get clock rate
179 * u32: rate (in Hz)
195 device_printf(sc->dev, "can't get clock rate (id=%u)\n",
201 rate = (int)msg.body.resp.rate_hz;
202 DPRINTF("clock = %d(Hz)\n", rate);
203 return (rate);
211 int rate; local
215 * Get max clock rate
225 * u32: rate (i
257 int rate; local
303 int rate; local
[all...]
/freebsd-11-stable/contrib/gdb/gdb/
H A Dser-e7kpc.c39 static int e7000pc_setbaudrate (struct serial *scb, int rate);
381 e7000pc_setbaudrate (struct serial *scb, int rate) argument
387 e7000pc_setstopbits (struct serial *scb, int rate) argument
/freebsd-11-stable/sys/dev/patm/genrtab/
H A Dgenrtab.c29 * This program is used to generate the different rate tables for the IDT77252
48 /* number of rate difference tables to create */
51 /* cell rate offset for log 0 */
119 * A cell rate to the logarithmic one
133 * Convert log to cell rate
175 * Generate log to rate conversion table
181 double rate, interval, xinterval, cps, xcps; local
184 /* get the desired rate */
185 rate = alink / pow(alink / offset,
189 interval = alink / rate;
[all...]
/freebsd-11-stable/sys/contrib/alpine-hal/
H A Dal_hal_serdes.h162 /** SerDes group rate */
280 * @param rate
281 * The required speed rate
286 enum al_serdes_rate rate);
295 * @param rate
296 * The required speed rate
303 * Rx rate change
309 * @param rate
310 * The Rx required rate
315 enum al_serdes_rate rate);
[all...]
/freebsd-11-stable/sys/dev/bwi/
H A Dif_bwi.c1811 /* NB: only the fixed rate can change and that doesn't need a reset */
2607 int buflen, wh_ofs, hdr_extra, rssi, noise, type, rate; local
2644 rate = bwi_plcp2rate(plcp, IEEE80211_T_OFDM);
2646 rate = bwi_plcp2rate(plcp, IEEE80211_T_CCK);
2650 bwi_rx_radiotap(sc, m, hdr, &plcp, rate, rssi, noise);
2665 sc->sc_rx_rate = rate;
2855 bwi_ofdm_plcp_header(uint32_t *plcp0, int pkt_len, uint8_t rate) argument
2859 plcp = __SHIFTIN(ieee80211_rate2plcp(rate, IEEE80211_T_OFDM),
2867 uint8_t rate)
2872 len = howmany(pkt_bitlen * 2, rate);
2866 bwi_ds_plcp_header(struct ieee80211_ds_plcp_hdr *plcp, int pkt_len, uint8_t rate) argument
2894 bwi_plcp_header(const struct ieee80211_rate_table *rt, void *plcp, int pkt_len, uint8_t rate) argument
2924 uint8_t rate, rate_fb; local
3115 uint8_t rate, rate_fb; local
3766 bwi_rx_radiotap(struct bwi_softc *sc, struct mbuf *m, struct bwi_rxbuf_hdr *hdr, const void *plcp, int rate, int rssi, int noise) argument
3919 int rate; local
[all...]
/freebsd-11-stable/sbin/pfctl/
H A Dpfctl_altq.c261 u_int rate, size, errors = 0; local
267 if ((rate = getifspeed(pf->dev, pa->ifname)) == 0) {
269 if ((rate = getifspeed(pa->ifname)) == 0) {
275 } else if ((pa->ifbandwidth = eval_bwspec(bw, rate)) == 0)
276 pa->ifbandwidth = rate;
282 rate = pa->ifbandwidth;
283 if (rate <= 1 * 1000 * 1000)
285 else if (rate <= 10 * 1000 * 1000)
287 else if (rate <= 200 * 1000 * 1000)
1290 rate2str(double rate) argument
[all...]
/freebsd-11-stable/contrib/wpa/wpa_supplicant/
H A Dscan.c1787 int rate = 0; local
1793 if ((ie[i + 2] & 0x7f) > rate)
1794 rate = ie[i + 2] & 0x7f;
1799 if ((ie[i + 2] & 0x7f) > rate)
1800 rate = ie[i + 2] & 0x7f;
1803 return rate;
1937 * Channels with a great SNR can operate at full rate. What is a great SNR?
1941 * recommends 25 as a minimum SNR for 54 Mbps data rate. The estimates used in
1993 /* if SNR is close, decide by max rate or frequency band */
2254 int rate; /* ma local
[all...]
/freebsd-11-stable/sys/tools/sound/
H A Dfeeder_eq_mkfilter.awk82 function feedeq_w0(fc, rate)
84 return ((2.0 * M_PI * fc) / (1.0 * rate));
126 function feedeq_gen_biquad_coeffs(coeffs, rate, gain, \
129 w0 = feedeq_w0(FEEDEQ_TREBLE_SFREQ, 1.0 * rate);
163 w0 = feedeq_w0(FEEDEQ_BASS_SFREQ, 1.0 * rate);
397 printf("\tuint32_t rate;\n");
/freebsd-11-stable/contrib/ofed/opensm/include/iba/
H A Dib_types.h1871 * Mask for the selector field for path record MTU, rate,
1883 * Mask for the selector field for multipath record MTU, rate,
1896 * Mask for the base value field for path record MTU, rate,
1909 * Mask for the base value field for multipath record MTU, rate,
2509 uint8_t rate; member in struct:_ib_path_rec
2552 * rate
2553 * Rate and rate selector fields to use on this path.
2859 IN uint8_t rate,
2873 p_rec->rate = (uint8_t) ((rate
2847 ib_path_rec_init_local(IN ib_path_rec_t * const p_rec, IN ib_gid_t * const p_dgid, IN ib_gid_t * const p_sgid, IN ib_net16_t dlid, IN ib_net16_t slid, IN uint8_t num_path, IN ib_net16_t pkey, IN uint8_t sl, IN uint16_t qos_class, IN uint8_t mtu_selector, IN uint8_t mtu, IN uint8_t rate_selector, IN uint8_t rate, IN uint8_t pkt_life_selector, IN uint8_t pkt_life, IN uint8_t preference) argument
[all...]
/freebsd-11-stable/sys/dev/uart/
H A Duart_dev_imx.c108 uint32_t rate, ubir, ubmr; local
116 * Get the baud rate the hardware is programmed for, then search the
118 * actual rate the hardware is programmed for. It's more comforting to
121 * numerator are 1 (like we do when setting the baud rate), because we
126 rate = imx_ccm_uart_hz() / predivs[i];
129 baud = ((rate / 16 ) * ubir) / ubmr;
134 rate = std_rates[i];
135 if (rate >= blo && rate <= bhi) {
136 baud = rate;
[all...]
/freebsd-11-stable/sys/cddl/dev/profile/
H A Dprofile.c370 int i, j, rate, kind; local
412 if ((rate = profile_rates[i]) == 0)
416 PROF_PREFIX_PROFILE, rate);
417 profile_create(NANOSEC / rate, n, PROF_PROFILE);
421 if ((rate = profile_ticks[i]) == 0)
425 PROF_PREFIX_TICK, rate);
426 profile_create(NANOSEC / rate, n, PROF_TICK);
/freebsd-11-stable/sys/kern/
H A Dkern_cpu.c149 uint64_t rate; local
163 /* If that fails, try to measure the current rate */
166 if (cpu_est_clockrate(pc->pc_cpuid, &rate) == 0)
167 sc->max_mhz = rate / 1000000;
424 uint64_t rate; local
497 cpu_est_clockrate(pc->pc_cpuid, &rate);
498 rate /= 1000000;
501 diff = abs(levels[i].total_set.freq - rate);
530 uint64_t rate; local
601 * If the CPU can't report a rate fo
[all...]
/freebsd-11-stable/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
176 if ((mask & 1) == 0) /* not a supported rate */
179 /* Don't pick a non-HT rate for a HT node */
199 /* don't use a bit-rate tha
1319 int rate, error; local
1336 int rate, error; local
[all...]
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/
H A Dib_sysfs.c233 int rate; /* in deci-Gb/sec */ local
243 rate = 50;
247 rate = 100;
251 rate = 100;
255 rate = 140;
259 rate = 250;
263 rate = 500;
268 rate = 25;
272 rate *= ib_width_enum_to_int(attr.active_width);
273 if (rate <
[all...]

Completed in 219 milliseconds

1234567891011>>