Searched refs:rate (Results 1 - 25 of 243) sorted by relevance

12345678910

/openbsd-current/gnu/usr.bin/binutils/gdb/
H A Dser-unix.h43 extern int ser_unix_nop_setbaudrate (struct serial *scb, int rate);
44 extern int ser_unix_nop_setstopbits (struct serial *scb, int rate);
H A Dser-unix.c76 static int rate_to_code (int rate);
77 static int hardwire_setbaudrate (struct serial *scb, int rate);
648 int rate; member in struct:__anon4623
744 rate_to_code (int rate) argument
748 for (i = 0; baudtab[i].rate != -1; i++)
751 if (rate == baudtab[i].rate)
756 if (rate < baudtab[i].rate)
760 warning ("Invalid baud rate
780 hardwire_setbaudrate(struct serial *scb, int rate) argument
1095 ser_unix_nop_setbaudrate(struct serial *scb, int rate) argument
[all...]
/openbsd-current/sys/dev/pci/drm/include/sound/
H A Dpcm.h38 snd_pcm_rate_to_rate_bit(u_int rate) argument
/openbsd-current/sys/dev/fdt/
H A Dsxipwm.c146 uint64_t rate, cycles, act_cycles; local
165 rate = sc->sc_clkin / sxipwm_prescalers[prescaler].divider;
172 ps->ps_period = (NS_PER_S * cycles) / rate;
173 ps->ps_pulse_width = (NS_PER_S * act_cycles) / rate;
185 uint64_t rate, cycles, act_cycles; local
194 rate = sc->sc_clkin / sxipwm_prescalers[i].divider;
195 cycles = (rate * ps->ps_period) / NS_PER_S;
204 rate = sc->sc_clkin / sxipwm_prescalers[prescaler].divider;
205 cycles = (rate * ps->ps_period) / NS_PER_S;
206 act_cycles = (rate * p
[all...]
H A Drkpwm.c129 uint64_t rate, cycles, act_cycles; local
134 rate = sc->sc_clkin;
139 ps->ps_period = (NS_PER_S * cycles) / rate;
140 ps->ps_pulse_width = (NS_PER_S * act_cycles) / rate;
152 uint64_t rate, cycles, act_cycles; local
162 rate = sc->sc_clkin;
163 cycles = (rate * ps->ps_period) / NS_PER_S;
164 act_cycles = (rate * ps->ps_pulse_width) / NS_PER_S;
/openbsd-current/usr.sbin/fdformat/
H A Dfdformat.c61 format_track(int fd, int cyl, int secs, int head, int rate, int gaplen, argument
79 f.transfer_rate = rate;
137 " [-i intleave] [-r rate] [-S secshft] [-s secs]\n"
165 int rate = -1, gaplen = -1, secsize = -1, steps = -1; local
192 case 'r': /* transfer rate, kilobyte/sec */
193 rate = strtonum(optarg, 1, INT_MAX, &errstr);
252 switch (rate) {
256 fdt.rate = FDC_250KBPS;
259 fdt.rate = FDC_300KBPS;
262 fdt.rate
[all...]
/openbsd-current/usr.bin/systat/
H A Dcache.c95 update_state(struct sc_ent *prev, struct pfsync_state *new, double rate) argument
99 prev->rate = rate;
101 if (prev->peak < rate)
102 prev->peak = rate;
126 ent->rate = 0;
H A Dcache.h31 double rate; member in struct:sc_ent
/openbsd-current/usr.bin/aucat/
H A Dafile.h30 int rate; /* file sample rate */ member in struct:afile
H A Dafile.c58 le32_t rate; member in struct:wav_fmt
94 /* rate in 80-bit floating point */
128 be32_t rate; member in struct:au_hdr
262 if (f->rate < RATE_MIN || f->rate > RATE_MAX) {
265 log_putu(f->rate);
266 log_puts(": unsupported rate\n");
328 f->rate = le32_get(&fmt.rate);
437 le32_set(&hdr.fmt.rate,
866 afile_open(struct afile *f, char *path, int hdr, int flags, struct aparams *par, int rate, int nch) argument
[all...]
/openbsd-current/usr.sbin/nsd/
H A Drrl.c25 * The rate limiting data structure bucket, this represents one rate of
32 /* rate, in queries per second, which due to rate=r(t)+r(t-1)/2 is
34 uint32_t rate; member in struct:rrl_bucket
39 /* timestamp, which time is the time of the counter, the rate is from
341 b->rate = 0;
343 /* divide rate /2 for every elapsed time step, because
346 b->rate >>= elapsed;
348 b->rate
376 used_to_block(uint32_t rate, uint32_t counter, uint32_t lm) argument
[all...]
/openbsd-current/usr.bin/sndiod/
H A Dsiofile.c98 unsigned int rate, mode = d->reqmode & (SIO_PLAY | SIO_REC); local
142 par.rate = d->rate;
149 * If the requested rate is not supported by the device,
153 rate = par.rate;
154 if (rate != d->rate) {
165 par.appbufsz = d->bufsz * rate / d->rate;
[all...]
/openbsd-current/sys/net80211/
H A Dieee80211_rssadapt.c53 static struct timeval lastrateadapt; /* time of last rate adaptation msg */
54 static int currssadaptps = 0; /* rate-adaptation msgs this second */
55 static int ieee80211_adaptrate = 4; /* rate-adaptation max msgs/sec */
143 /* a node is eligible for its rate to be raised every 1/10 to 10
168 * Adapt the data rate to suit the conditions. When a transmitted
171 * the same data rate.
186 "%s rate #%d > #%d out of bounds\n",
220 int i, rate, top; local
240 rate = (rs->rs_rates[id->id_rateidx + 1] & IEEE80211_RATE_VAL);
245 rate /
[all...]
H A Dieee80211.c309 * rate tables. This must be called by the driver after
321 int i, j, mode, rate, maxrate, r; local
363 rate = rs->rs_rates[i];
364 mword = ieee80211_rate2media(ic, rate, mode);
379 * Add rate to the collection of all rates.
381 r = rate & IEEE80211_RATE_VAL;
390 rate = (rate & IEEE80211_RATE_VAL) / 2;
391 if (rate > maxrate)
392 maxrate = rate;
491 ieee80211_findrate(struct ieee80211com *ic, enum ieee80211_phymode mode, int rate) argument
1287 ieee80211_rate2media(struct ieee80211com *ic, int rate, enum ieee80211_phymode mode) argument
1356 int rate; member in struct:__anon30
1387 ieee80211_rate2plcp(u_int8_t rate, enum ieee80211_phymode mode) argument
[all...]
/openbsd-current/sys/dev/ofw/
H A Dofw_clock.c289 uint32_t *clock, *parent, *rate; local
307 rate = rates = NULL;
309 rate = rates = malloc(rlen, M_TEMP, M_WAITOK);
318 if (rate && rate < rates + (rlen / sizeof(uint32_t)))
319 if (*rate != 0)
320 clock_set_frequency_cells(clock, *rate);
325 if (rate)
326 rate++;
/openbsd-current/include/
H A Dsndio.h60 unsigned int rate; /* frames per second */ member in struct:sio_par
89 unsigned int rate[SIO_NRATE]; /* allowed rates */ member in struct:sio_cap
96 unsigned int rate; /* mask of rate[] indexes */ member in struct:sio_cap::sio_conf
/openbsd-current/usr.sbin/wsmoused/
H A Dwsmoused.h97 unsigned char rate; /* report rate */ member in struct:mouse_s
/openbsd-current/sys/dev/pci/drm/include/drm/
H A Ddrm_audio_component.h45 * @sync_audio_rate: set n/cts based on the sample rate
48 * sample rate, it will call this function to set n/cts
50 int (*sync_audio_rate)(struct device *, int port, int pipe, int rate);
/openbsd-current/etc/examples/
H A Dhostapd.conf81 rate 100 / 10 sec
/openbsd-current/regress/lib/libsndio/rec/
H A Drec.c35 fprintf(stderr, "usage: rec [-r rate] [-c nchan] [-e enc]\n");
51 par.rate = 44100;
56 if (sscanf(optarg, "%u", &par.rate) != 1) {
57 fprintf(stderr, "%s: bad rate\n", optarg);
/openbsd-current/sys/dev/pci/
H A Dagp.c211 int rq, sba, fw, rate, capoff; local
243 /* Figure out the max rate */
244 rate = (AGP_MODE_GET_RATE(tstatus)
247 if (rate & AGP_MODE_RATE_4x)
248 rate = AGP_MODE_RATE_4x;
249 else if (rate & AGP_MODE_RATE_2x)
250 rate = AGP_MODE_RATE_2x;
252 rate = AGP_MODE_RATE_1x;
258 command = AGP_MODE_SET_RATE(command, rate);
H A Dcs4280.c349 cs4280_set_adc_rate(struct cs4280_softc *sc, int rate) argument
351 /* calculate capture rate:
353 * capture_coefficient_increment = -round(rate*128*65536/48000;
354 * capture_phase_increment = floor(48000*65536*1024/rate);
355 * cx = round(48000*65536*1024 - capture_phase_increment*rate);
358 * capture_delay = ceil(24*48000/rate);
359 * capture_num_triplets = floor(65536*rate/24000);
360 * capture_group_length = 24000/GCD(rate, 24000);
373 * Even though, embedded_audio_spec says capture rate range 11025 to
376 * "We can only decimate by up to a factor of 1/9th the hardware rate
467 cs4280_set_dac_rate(struct cs4280_softc *sc, int rate) argument
[all...]
/openbsd-current/sbin/pfctl/
H A Dpfctl_queue.c266 rate2str(double rate) argument
278 for (i = 0; rate >= 1000 && i <= 3; i++)
279 rate /= 1000;
281 if ((int)(rate * 100) % 100)
282 snprintf(buf, RATESTR_MAX, "%.2f%cb", rate, unit[i]);
284 snprintf(buf, RATESTR_MAX, "%d%cb", (int)rate, unit[i]);
/openbsd-current/lib/libsndio/
H A Dsio_sun.c102 unsigned int pchan, unsigned int rchan, unsigned int rate)
116 if (rate)
117 ap.rate = rate;
128 if (rate && ap.rate != rate)
238 cap->rate[i] = rates[i];
243 if (cap->confs[conf].rate == rate_map) {
254 cap->confs[nconf].rate
101 sio_sun_testpar(struct sio_sun_hdl *hdl, struct sio_enc *enc, unsigned int pchan, unsigned int rchan, unsigned int rate) argument
[all...]
/openbsd-current/games/battlestar/
H A Dcommand6.c84 printf("bye.\nYour rating was %s.\n", rate());
132 fprintf(score_fp, "%s %31s %c%20s", date, username, ch, rate());
142 rate(void) function

Completed in 252 milliseconds

12345678910