/drivers/usb/serial/ |
D | kl5kusb105.c | 102 u8 baudrate; member 142 settings->pktlen, settings->baudrate, settings->databits, in klsi_105_chg_port_settings() 220 priv->cfg.baudrate = kl5kusb105a_sio_b9600; in klsi_105_port_probe() 265 cfg->baudrate = kl5kusb105a_sio_b9600; in klsi_105_open() 273 priv->cfg.baudrate = cfg->baudrate; in klsi_105_open() 426 priv->cfg.baudrate = kl5kusb105a_sio_b1200; in klsi_105_set_termios() 429 priv->cfg.baudrate = kl5kusb105a_sio_b2400; in klsi_105_set_termios() 432 priv->cfg.baudrate = kl5kusb105a_sio_b4800; in klsi_105_set_termios() 435 priv->cfg.baudrate = kl5kusb105a_sio_b9600; in klsi_105_set_termios() 438 priv->cfg.baudrate = kl5kusb105a_sio_b19200; in klsi_105_set_termios() [all …]
|
D | f81232.c | 131 static int calc_baud_divisor(speed_t baudrate, speed_t clockrate) in calc_baud_divisor() argument 133 return DIV_ROUND_CLOSEST(clockrate, baudrate); in calc_baud_divisor() 497 static int f81232_find_clk(speed_t baudrate) in f81232_find_clk() argument 502 if (baudrate <= baudrate_table[idx] && in f81232_find_clk() 503 baudrate_table[idx] % baudrate == 0) in f81232_find_clk() 511 struct usb_serial_port *port, speed_t baudrate, in f81232_set_baudrate() argument 520 speed_t baud_list[] = { baudrate, old_baudrate, F81232_DEF_BAUDRATE }; in f81232_set_baudrate() 523 baudrate = baud_list[i]; in f81232_set_baudrate() 524 if (baudrate == 0) { in f81232_set_baudrate() 529 idx = f81232_find_clk(baudrate); in f81232_set_baudrate() [all …]
|
D | f81534.c | 539 static u32 f81534_calc_baud_divisor(u32 baudrate, u32 clockrate) in f81534_calc_baud_divisor() argument 542 return DIV_ROUND_CLOSEST(clockrate, baudrate); in f81534_calc_baud_divisor() 545 static int f81534_find_clk(u32 baudrate) in f81534_find_clk() argument 550 if (baudrate <= baudrate_table[idx] && in f81534_find_clk() 551 baudrate_table[idx] % baudrate == 0) in f81534_find_clk() 559 struct tty_struct *tty, u32 baudrate, u32 old_baudrate, u8 lcr) in f81534_set_port_config() argument 567 u32 baud_list[] = {baudrate, old_baudrate, F81534_DEFAULT_BAUD_RATE}; in f81534_set_port_config() 570 baudrate = baud_list[i]; in f81534_set_port_config() 571 if (baudrate == 0) { in f81534_set_port_config() 576 idx = f81534_find_clk(baudrate); in f81534_set_port_config() [all …]
|
D | mos7720.c | 1408 __u32 baudrate; member 1439 static int calc_baud_rate_divisor(struct usb_serial_port *port, int baudrate, int *divisor) in calc_baud_rate_divisor() argument 1447 dev_dbg(&port->dev, "%s - %d\n", __func__, baudrate); in calc_baud_rate_divisor() 1450 if (divisor_table[i].baudrate == baudrate) { in calc_baud_rate_divisor() 1458 if (baudrate > 75 && baudrate < 230400) { in calc_baud_rate_divisor() 1460 custom = (__u16)(230400L / baudrate); in calc_baud_rate_divisor() 1463 round1 = (__u16)(2304000L / baudrate); in calc_baud_rate_divisor() 1469 dev_dbg(&port->dev, "Baud %d = %d\n", baudrate, custom); in calc_baud_rate_divisor() 1483 int baudrate) in send_cmd_write_baud_rate() argument 1498 dev_dbg(&port->dev, "%s - baud = %d\n", __func__, baudrate); in send_cmd_write_baud_rate() [all …]
|
D | quatech2.c | 146 static inline int calc_baud_divisor(int baudrate) in calc_baud_divisor() argument 150 divisor = MAX_BAUD_RATE / baudrate; in calc_baud_divisor() 151 rem = MAX_BAUD_RATE % baudrate; in calc_baud_divisor() 153 if (((rem * 2) >= baudrate) && (baudrate != 110)) in calc_baud_divisor() 161 u16 baudrate, u16 lcr) in qt2_set_port_config() argument 163 int divisor = calc_baud_divisor(baudrate); in qt2_set_port_config()
|
D | io_edgeport.c | 2358 static int calc_baud_rate_divisor(struct device *dev, int baudrate, int *divisor) in calc_baud_rate_divisor() argument 2364 if (divisor_table[i].BaudRate == baudrate) { in calc_baud_rate_divisor() 2373 if (baudrate > 50 && baudrate < 230400) { in calc_baud_rate_divisor() 2375 custom = (__u16)((230400L + baudrate/2) / baudrate); in calc_baud_rate_divisor() 2379 dev_dbg(dev, "%s - Baud %d = %d\n", __func__, baudrate, custom); in calc_baud_rate_divisor()
|
/drivers/net/hamradio/ |
D | yam.c | 99 int baudrate; member 463 int divisor = 115200 / yp->baudrate; in yam_set_uart() 805 seq_printf(seq, " BaudRate %u\n", yp->baudrate); in yam_seq_show() 996 if (yi.cfg.baudrate > YAM_MAXBAUDRATE) in yam_ioctl() 998 yp->baudrate = yi.cfg.baudrate; in yam_ioctl() 1039 yi.cfg.baudrate = yp->baudrate; in yam_ioctl() 1085 yp->baudrate = DEFAULT_BITRATE * 2; in yam_setup()
|
D | Kconfig | 125 baudrate to be set between 300 and 4800 baud (however not all modems
|
/drivers/bluetooth/ |
D | btqca.h | 138 int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, 157 static inline int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, in qca_uart_setup() argument
|
D | btqca.c | 461 int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, in qca_uart_setup() argument 471 config.user_baud_rate = baudrate; in qca_uart_setup()
|
D | btmtkuart.c | 664 __le32 baudrate; in btmtkuart_change_baudrate() local 671 baudrate = cpu_to_le32(bdev->desired_speed); in btmtkuart_change_baudrate() 675 wmt_params.data = &baudrate; in btmtkuart_change_baudrate()
|
D | hci_qca.c | 1280 static int qca_set_baudrate(struct hci_dev *hdev, uint8_t baudrate) in qca_set_baudrate() argument 1287 if (baudrate > QCA_BAUDRATE_3200000) in qca_set_baudrate() 1290 cmd[4] = baudrate; in qca_set_baudrate()
|
/drivers/nfc/nfcmrvl/ |
D | fw_dnld.h | 40 uint32_t baudrate; member
|
D | uart.c | 59 nci_uart_set_config(nu, le32_to_cpu(config->baudrate), in nfcmrvl_uart_nci_update_config()
|
D | fw_dnld.c | 204 &priv->fw_dnld.binary_config->uart.baudrate, in process_state_set_ref_clock()
|
/drivers/tty/serial/ |
D | fsl_lpuart.c | 1967 unsigned int baudrate, bool use_rx_dma, in __lpuart32_serial_setbrg() argument 1982 baud_diff = baudrate; in __lpuart32_serial_setbrg() 1988 tmp_sbr = (clk / (baudrate * tmp_osr)); in __lpuart32_serial_setbrg() 1996 tmp_diff = clk / (tmp_osr * tmp_sbr) - baudrate; in __lpuart32_serial_setbrg() 2000 if (tmp_diff > (baudrate - tmp)) { in __lpuart32_serial_setbrg() 2001 tmp_diff = baudrate - tmp; in __lpuart32_serial_setbrg() 2019 if (baud_diff > ((baudrate / 100) * 3)) in __lpuart32_serial_setbrg() 2043 unsigned int baudrate) in lpuart32_serial_setbrg() argument 2045 __lpuart32_serial_setbrg(&sport->port, baudrate, in lpuart32_serial_setbrg()
|
D | amba-pl011.c | 2725 int baudrate; in sbsa_uart_probe() local 2734 ret = of_property_read_u32(np, "current-speed", &baudrate); in sbsa_uart_probe() 2738 baudrate = 115200; in sbsa_uart_probe() 2767 uap->fixed_baud = baudrate; in sbsa_uart_probe()
|
D | Kconfig | 308 are enabled). This driver uses the APB DMA to achieve higher baudrate 759 int "Default baudrate for Coldfire serial ports" 763 This setting lets you define what the default baudrate is for the 887 console baudrate 1214 int "Default baudrate for Altera UART ports" 1218 This setting lets you define what the default baudrate is for the
|
/drivers/tty/ |
D | mxser.c | 209 long baudrate[32]; member 1614 me->baudrate[p] = tty_termios_baud_rate(&ip->normal_termios); in mxser_ioctl_special() 1618 me->baudrate[p] = tty_get_baud_rate(tty); in mxser_ioctl_special()
|