Home
last modified time | relevance | path

Searched refs:baudrate (Results 1 – 25 of 39) sorted by relevance

12

/kernel/linux/linux-5.10/drivers/usb/serial/
Dkl5kusb105.c102 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 …]
Df81232.c131 static int calc_baud_divisor(speed_t baudrate, speed_t clockrate) in calc_baud_divisor() argument
133 if (!baudrate) in calc_baud_divisor()
136 return DIV_ROUND_CLOSEST(clockrate, baudrate); in calc_baud_divisor()
500 static int f81232_find_clk(speed_t baudrate) in f81232_find_clk() argument
505 if (baudrate <= baudrate_table[idx] && in f81232_find_clk()
506 baudrate_table[idx] % baudrate == 0) in f81232_find_clk()
514 struct usb_serial_port *port, speed_t baudrate, in f81232_set_baudrate() argument
523 speed_t baud_list[] = { baudrate, old_baudrate, F81232_DEF_BAUDRATE }; in f81232_set_baudrate()
528 baudrate = baud_list[i]; in f81232_set_baudrate()
529 tty_encode_baud_rate(tty, baudrate, baudrate); in f81232_set_baudrate()
[all …]
Df81534.c539 static u32 f81534_calc_baud_divisor(u32 baudrate, u32 clockrate) in f81534_calc_baud_divisor() argument
541 if (!baudrate) in f81534_calc_baud_divisor()
545 return DIV_ROUND_CLOSEST(clockrate, baudrate); in f81534_calc_baud_divisor()
548 static int f81534_find_clk(u32 baudrate) in f81534_find_clk() argument
553 if (baudrate <= baudrate_table[idx] && in f81534_find_clk()
554 baudrate_table[idx] % baudrate == 0) in f81534_find_clk()
562 struct tty_struct *tty, u32 baudrate, u32 old_baudrate, u8 lcr) in f81534_set_port_config() argument
570 u32 baud_list[] = {baudrate, old_baudrate, F81534_DEFAULT_BAUD_RATE}; in f81534_set_port_config()
575 baudrate = baud_list[i]; in f81534_set_port_config()
576 tty_encode_baud_rate(tty, baudrate, baudrate); in f81534_set_port_config()
[all …]
Dmos7720.c1408 __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 …]
Dquatech2.c146 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()
Dio_edgeport.c2358 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()
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/serial/
Dmvebu-uart.txt8 FIFO, baudrate limited to 230400).
11 accesses to the FIFO, baudrate unlimited by the dividers).
13 - clocks: UART reference clock used to derive the baudrate. If no clock
16 if the baudrate was initialized by the bootloader and no baudrate
Darm_sbsa_uart.txt3 in the PL011 driver. It's baudrate and other communication parameters
Dmtk-uart.txt38 - "baud": The clock the baudrate is derived from
/kernel/linux/linux-5.10/drivers/bluetooth/
Dbtqca.h138 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
Dbtqca.c461 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()
Dbtmtkuart.c669 __le32 baudrate; in btmtkuart_change_baudrate() local
676 baudrate = cpu_to_le32(bdev->desired_speed); in btmtkuart_change_baudrate()
680 wmt_params.data = &baudrate; in btmtkuart_change_baudrate()
/kernel/linux/linux-5.10/Documentation/admin-guide/
Dserial-console.rst29 defines the baudrate/parity/bits/flow control of
33 9600n8. The maximum baudrate is 115200.
92 set the baudrate to 38400 (baudrate of the virtual console).
/kernel/linux/linux-5.10/drivers/net/hamradio/
Dyam.c99 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()
/kernel/linux/linux-5.10/net/nfc/nci/
Duart.c434 void nci_uart_set_config(struct nci_uart *nu, int baudrate, int flow_ctrl) in nci_uart_set_config() argument
444 tty_termios_encode_baud_rate(&new_termios, baudrate, baudrate); in nci_uart_set_config()
/kernel/linux/linux-5.10/include/linux/
Dyam.h49 unsigned int baudrate; /* Baud rate of the RS232 port */ member
Dserdev.h237 …c inline unsigned int serdev_device_set_baudrate(struct serdev_device *sdev, unsigned int baudrate) in serdev_device_set_baudrate() argument
/kernel/linux/linux-5.10/drivers/nfc/nfcmrvl/
Dfw_dnld.h40 uint32_t baudrate; member
Duart.c59 nci_uart_set_config(nu, le32_to_cpu(config->baudrate), in nfcmrvl_uart_nci_update_config()
Dfw_dnld.c204 &priv->fw_dnld.binary_config->uart.baudrate, in process_state_set_ref_clock()
/kernel/linux/linux-5.10/drivers/tty/serial/
Dfsl_lpuart.c1942 unsigned int baudrate, bool use_rx_dma, in __lpuart32_serial_setbrg() argument
1957 baud_diff = baudrate; in __lpuart32_serial_setbrg()
1963 tmp_sbr = (clk / (baudrate * tmp_osr)); in __lpuart32_serial_setbrg()
1971 tmp_diff = clk / (tmp_osr * tmp_sbr) - baudrate; in __lpuart32_serial_setbrg()
1975 if (tmp_diff > (baudrate - tmp)) { in __lpuart32_serial_setbrg()
1976 tmp_diff = baudrate - tmp; in __lpuart32_serial_setbrg()
1994 if (baud_diff > ((baudrate / 100) * 3)) in __lpuart32_serial_setbrg()
2018 unsigned int baudrate) in lpuart32_serial_setbrg() argument
2020 __lpuart32_serial_setbrg(&sport->port, baudrate, in lpuart32_serial_setbrg()
Damba-pl011.c2699 int baudrate; in sbsa_uart_probe() local
2708 ret = of_property_read_u32(np, "current-speed", &baudrate); in sbsa_uart_probe()
2712 baudrate = 115200; in sbsa_uart_probe()
2741 uap->fixed_baud = baudrate; in sbsa_uart_probe()
/kernel/linux/linux-5.10/Documentation/networking/device_drivers/hamradio/
Dz8530drv.rst226 Note that you cannot use the on-board baudrate generator off DRSI
267 speed 1200 # the default baudrate
424 baudrate and number of interfaces is too high for the processing
466 The baudrate on this channel in bits/sec
503 on the baudrate selected. A few character times should be
/kernel/linux/linux-5.10/sound/soc/fsl/
Dfsl_ssi.c682 unsigned long clkrate, baudrate, tmprate; in fsl_ssi_set_bclk() local
751 baudrate = tmprate; in fsl_ssi_set_bclk()
776 ret = clk_set_rate(ssi->baudclk, baudrate); in fsl_ssi_set_bclk()
/kernel/linux/linux-5.10/include/net/nfc/
Dnci_core.h463 void nci_uart_set_config(struct nci_uart *nu, int baudrate, int flow_ctrl);

12