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

/freebsd-current/crypto/openssh/
H A Dttymodes.c69 * Converts POSIX speed_t to a baud rate. The values of the
159 * Converts a numeric baud rate to a POSIX speed_t.
162 baud_to_speed(int baud) argument
164 switch (baud) {
300 /* Store input and output baud rates. */
349 u_int baud, u; local
380 if ((r = sshbuf_get_u32(buf, &baud)) != 0)
383 cfsetispeed(&tio, baud_to_speed(baud)) == -1)
384 error("cfsetispeed failed for %d", baud);
388 if ((r = sshbuf_get_u32(buf, &baud)) !
[all...]
/freebsd-current/usr.bin/tip/libacu/
H A Dcourier.c178 int baud; member in struct:baud_msg
234 cfsetospeed(&cntrl, bm->baud);
235 cfsetispeed(&cntrl, bm->baud);
H A Dt3000.c184 int baud; member in struct:tbaud_msg
249 cfsetospeed(&cntrl, bm->baud);
250 cfsetispeed(&cntrl, bm->baud);
/freebsd-current/sys/dev/usb/serial/
H A Ducycom.c439 ucycom_cfg_write(struct ucycom_softc *sc, uint32_t baud, uint8_t cfg) argument
458 sc->sc_temp_cfg[0] = (baud & 0xff);
459 sc->sc_temp_cfg[1] = (baud >> 8) & 0xff;
460 sc->sc_temp_cfg[2] = (baud >> 16) & 0xff;
461 sc->sc_temp_cfg[3] = (baud >> 24) & 0xff;
486 * Stock chips only support standard baud rates in the 600 - 57600
H A Duplcom.c411 only fixed rates) and for PL2303SA (8-pin chip, up to 115200 baud */
730 * NOTE: These baud rates are officially supported, they can be written
779 * Check requested baud rate.
781 * The PL2303 can only set specific baud rates, up to 1228800 baud.
782 * The PL2303HX can set any baud rate up to 6Mb.
783 * The PL2303HX rev. D and PL2303HXN can set any baud rate up to 12Mb.
809 DPRINTF("uplcom_param: bad baud rate (%d)\n", t->c_ospeed);
814 uplcom_encode_baud_rate_divisor(uint8_t *buf, unsigned baud) argument
818 /* Determine the baud rat
[all...]
H A Dumct.c474 umct_calc_baud(uint32_t baud) argument
476 switch (baud) {
/freebsd-current/libexec/getty/
H A Dsubr.c579 * baud rate. This string indicates the user's actual speed.
602 char c, baud[20]; local
608 for (len = 0; len < sizeof (baud) - 1; len++) {
616 baud[len] = c;
618 baud[len] = '\0';
620 if (strcmp(ps->ps_baud, baud) == 0) {
629 * This auto-baud speed select mechanism is written for the Micom 600
639 const char *type = "9600-baud";
654 case 0200: /* 300-baud */
655 type = "300-baud";
[all...]
/freebsd-current/sys/dev/uart/
H A Duart_dev_imx.c116 u_int baud, blo, bhi, i; local
123 * Get the baud rate the hardware is programmed for, then search the
124 * table of standard baud rates for a number that's within 3% of the
128 * numerator are 1 (like we do when setting the baud rate), because we
136 baud = ((rate / 16 ) * ubir) / ubmr;
138 blo = (baud * 100) / 103;
139 bhi = (baud * 100) / 97;
143 baud = rate;
148 return (baud);
190 * The hardware has an extremely flexible baud cloc
[all...]
H A Duart_dev_mu.c168 uint32_t baud; local
193 baud = CPU_CLOCK / (8 * baudrate);
195 * baud = cpu_clock() / (8 * baudrate);
197 __uart_setreg(bas, AUX_MU_BAUD_REG, ((uint32_t)(baud & 0xFFFF)));
H A Duart_dev_pl011.c79 #define UART_IBRD 0x09 /* Integer baud rate register */
82 #define UART_FBRD 0x0a /* Fractional baud rate register */
183 uint32_t baud; local
221 baud = bas->rclk * 4 / baudrate;
222 __uart_setreg(bas, UART_IBRD, ((uint32_t)(baud >> 6)) & IBRD_BDIVINT);
223 __uart_setreg(bas, UART_FBRD, (uint32_t)(baud & 0x3F) & FBRD_BDIVFRAC);
H A Duart_bus_fdt.c174 bus_space_handle_t *bsh, int *baud, u_int *rclk, u_int *shiftp,
258 *baud = br;
173 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, u_int *iowidthp, const int devtype) argument
/freebsd-current/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-current/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.);
H A Drefclock_msfees.c145 #define SPEED232 B9600 /* 9600 baud */
152 #define BITS_TO_L_FP(bits, baud) \
153 (((((bits)*2 +1) << (FRACTION_PREC-SAFETY_SHIFT)) / (2*baud)) << SAFETY_SHIFT)

Completed in 136 milliseconds