Searched refs:baud (Results 1 - 25 of 29) sorted by relevance

12

/freebsd-11-stable/crypto/openssh/
H A Dttymodes.c70 * Converts POSIX speed_t to a baud rate. The values of the
160 * Converts a numeric baud rate to a POSIX speed_t.
163 baud_to_speed(int baud) argument
165 switch (baud) {
283 int baud; local
311 /* Store input and output baud rates. */
312 baud = speed_to_baud(cfgetospeed(&tio));
314 buffer_put_int(&buf, baud);
315 baud = speed_to_baud(cfgetispeed(&tio));
317 buffer_put_int(&buf, baud);
351 int opcode, baud; local
[all...]
/freebsd-11-stable/sys/mips/nlm/hal/
H A Duart.h51 #define BAUD_DIVISOR(baud) (BASE_BAUD / baud)
99 nlm_uart_set_baudrate(uint64_t base, int baud) argument
105 /* enable divisor register, and write baud values */
108 (BAUD_DIVISOR(baud) & 0xff));
110 ((BAUD_DIVISOR(baud) >> 8) & 0xff));
151 nlm_uart_init(uint64_t base, int baud, int databits, int stopbits, argument
177 nlm_uart_set_baudrate(base, baud);
/freebsd-11-stable/sbin/sconfig/
H A Dsconfig.c68 "\t<number>\t\t -- baud rate, internal clock\n"
524 format_e3_cv (unsigned long cv, unsigned long baud, unsigned long atime) argument
528 if (!cv || !baud || !atime)
531 sprintf (buf, "%10lu (%.1e)", cv, (double)cv/baud/atime);
540 long baud; local
546 ioctl (fd, SERIAL_GETBAUD, &baud) < 0)
553 format_e3_cv (st.ccv, baud, st.cursec));
561 format_e3_cv (st.tcv, baud, st.totsec));
570 format_e3_cv (st.icv[i], baud, 15*60));
588 long baud, timeslot local
737 long baud, timeslots, mtu, rqlen; local
[all...]
/freebsd-11-stable/sys/dev/ce/
H A Dceddk.h119 unsigned long baud; member in struct:_ce_chan_t
186 void ce_set_baud (ce_chan_t *c, unsigned long baud);
H A Dceddk.c935 void ce_set_baud (ce_chan_t *c, unsigned long baud) argument
941 unsigned long kbps = (baud + 32000) / 64000 * 64;
944 baud == c->baud || b->cr.pending >= CONFREQSZ)
967 /* _ce_set_ts () will set proper baud */
977 c->baud = baud;
1135 c->baud = nts*64000;
/freebsd-11-stable/sys/dev/uart/
H A Duart_cpu_sparc64.c208 int baud, bits, error, range, space, stop; local
296 if (sscanf(buf, "%d,%d,%c,%d,%c", &baud, &bits, &par, &stop, &flag)
299 di->baudrate = baud;
H A Duart_dev_imx.c109 u_int baud, blo, bhi, i; local
116 * Get the baud rate the hardware is programmed for, then search the
117 * table of standard baud rates for a number that's within 3% of the
121 * numerator are 1 (like we do when setting the baud rate), because we
129 baud = ((rate / 16 ) * ubir) / ubmr;
131 blo = (baud * 100) / 103;
132 bhi = (baud * 100) / 97;
136 baud = rate;
141 return (baud);
183 * The hardware has an extremely flexible baud cloc
[all...]
H A Duart_dev_pl011.c56 #define UART_IBRD 0x09 /* Integer baud rate register */
59 #define UART_FBRD 0x0a /* Fractional baud rate register */
130 uint32_t baud; local
168 baud = bas->rclk * 4 / baudrate;
169 __uart_setreg(bas, UART_IBRD, ((uint32_t)(baud >> 6)) & IBRD_BDIVINT);
170 __uart_setreg(bas, UART_FBRD, (uint32_t)(baud & 0x3F) & FBRD_BDIVFRAC);
H A Duart_bus_fdt.c166 bus_space_handle_t *bsh, int *baud, u_int *rclk, u_int *shiftp)
235 *baud = br;
165 uart_cpu_fdt_probe(struct uart_class **classp, bus_space_tag_t *bst, bus_space_handle_t *bsh, int *baud, u_int *rclk, u_int *shiftp) argument
/freebsd-11-stable/usr.bin/tip/libacu/
H A Dcourier.c186 int baud; member in struct:baud_msg
242 cfsetospeed(&cntrl, bm->baud);
243 cfsetispeed(&cntrl, bm->baud);
H A Dt3000.c192 int baud; member in struct:tbaud_msg
257 cfsetospeed(&cntrl, bm->baud);
258 cfsetispeed(&cntrl, bm->baud);
/freebsd-11-stable/sys/dev/usb/serial/
H A Ducycom.c440 ucycom_cfg_write(struct ucycom_softc *sc, uint32_t baud, uint8_t cfg) argument
459 sc->sc_temp_cfg[0] = (baud & 0xff);
460 sc->sc_temp_cfg[1] = (baud >> 8) & 0xff;
461 sc->sc_temp_cfg[2] = (baud >> 16) & 0xff;
462 sc->sc_temp_cfg[3] = (baud >> 24) & 0xff;
487 * Stock chips only support standard baud rates in the 600 - 57600
H A Duplcom.c412 only fixed rates) and for PL2303SA (8-pin chip, up to 115200 baud */
731 * NOTE: These baud rates are officially supported, they can be written
780 * Check requested baud rate.
782 * The PL2303 can only set specific baud rates, up to 1228800 baud.
783 * The PL2303HX can set any baud rate up to 6Mb.
784 * The PL2303HX rev. D and PL2303HXN can set any baud rate up to 12Mb.
810 DPRINTF("uplcom_param: bad baud rate (%d)\n", t->c_ospeed);
815 uplcom_encode_baud_rate_divisor(uint8_t *buf, unsigned int baud) argument
819 /* Determine the baud rat
[all...]
H A Dumct.c478 umct_calc_baud(uint32_t baud) argument
480 switch (baud) {
/freebsd-11-stable/libexec/getty/
H A Dsubr.c586 * baud rate. This string indicates the user's actual speed.
609 char c, baud[20]; local
615 for (len = 0; len < sizeof (baud) - 1; len++) {
623 baud[len] = c;
625 baud[len] = '\0';
627 if (strcmp(ps->ps_baud, baud) == 0) {
636 * This auto-baud speed select mechanism is written for the Micom 600
646 const char *type = "9600-baud";
661 case 0200: /* 300-baud */
662 type = "300-baud";
[all...]
/freebsd-11-stable/sys/mips/atheros/
H A Duart_dev_ar933x.c107 * Calculate the baud from the given chip configuration parameters.
130 ar933x_uart_get_scale_step(struct uart_bas *bas, unsigned int baud, argument
141 min_diff = baud;
146 tstep = baud * (tscale + 1);
153 diff = abs(ar933x_uart_get_baud(clk, tscale, tstep) - baud);
176 /* Find the best fit for the given baud rate */
/freebsd-11-stable/sys/dev/ctau/
H A Dctddk.c151 * Set up baud rate.
153 static void ct_chan_baud (ct_chan_t *c, unsigned long baud) argument
155 c->baud = baud;
156 if (baud) {
165 void ct_set_baud (ct_chan_t *c, unsigned long baud) argument
172 if (baud >= 2048000) r = 2048;
173 else if (baud >= 1024000) r = 1024;
174 else if (baud >= 512000) r = 512;
175 else if (baud >
[all...]
H A Dctau.c66 long ct_baud = 256000; /* default baud rate */
544 /* External clock mode -- set zero baud rate. */
546 c->baud = 0;
547 } else if (c->baud == 0) {
548 /* No baud rate in internal clock mode -- set default values. */
550 c->baud = 9600;
552 c->baud = 64000;
563 /* Compute the baud value. */
574 c->baud = 0;
577 c->baud
1574 ct_compute_clock(long hz, long baud, int *txbr, int *tmc) argument
[all...]
H A Dctddk.h288 #define CLK_INT 0x40 /* internal baud rate generator */
370 unsigned long baud; /* data rate */ member in struct:_ct_chan_t
515 void ct_compute_clock (long hz, long baud, int *txbr, int *tmc);
572 void ct_set_baud (ct_chan_t *c, unsigned long baud);
/freebsd-11-stable/sys/arm/freescale/vybrid/
H A Dvf_uart.c199 uart_reinit(struct uart_softc *sc, int clkspeed, int baud) argument
224 sbr = (uint16_t) (clkspeed / (baud * 16));
225 brfa = (clkspeed / baud) - (sbr * 16);
/freebsd-11-stable/sys/dev/cp/
H A Dcpddk.h103 unsigned long baud; /* data rate, bps */ member in struct:_cp_chan_t
324 void cp_set_baud (cp_chan_t *c, int baud);
/freebsd-11-stable/sys/dev/cx/
H A Dcxddk.h457 void cx_set_baud (cx_chan_t *, unsigned long baud);
486 void cx_set_async_param (cx_chan_t *c, int baud, int bits, int parity,
/freebsd-11-stable/sys/dev/rp/
H A Drp.c959 int baud; member in struct:__anon11612
973 static int rp_convert_baud(int baud) { argument
976 for (i = 0; baud_table[i].baud >= 0; i++) {
977 if (baud_table[i].baud == baud)
1022 /* Set baud rate ----- we only pay attention to ispeed */
/freebsd-11-stable/sys/i386/include/
H A Dcserial.h145 * Query/set the synchronization mode and baud rate.
146 * If baud==0 then the external clock is used.
458 void (*set_async_param) (chan_t *h, int baud, int bits, int parity,
/freebsd-11-stable/contrib/ntp/ntpd/
H A Drefclock_chu.c209 #define SPEED232 B300 /* uart speed (300 baud) */
213 #define SPEED232 B300 /* UART speed (300 baud) */
392 double baud; /* baud interval */ member in struct:chuunit
720 * This routine implements a 300-baud Bell 103 modem with mark 2225 Hz
723 * decoder samples the baseband signal at eight times the baud rate and
841 up->baud += 1. / SECOND;
842 if (up->baud > 1. / (BAUD * 8.)) {
843 up->baud -= 1. / (BAUD * 8.);

Completed in 213 milliseconds

12