Home
last modified time | relevance | path

Searched full:baudrate (Results 1 – 25 of 84) sorted by relevance

1234

/linux/drivers/usb/serial/
H A Dkl5kusb105.c102 u8 baudrate; member
143 "pktlen %u, baudrate 0x%02x, databits %u, u1 %u, u2 %u\n", in klsi_105_chg_port_settings()
144 settings->pktlen, settings->baudrate, settings->databits, in klsi_105_chg_port_settings()
198 priv->cfg.baudrate = kl5kusb105a_sio_b9600; in klsi_105_port_probe()
238 cfg.baudrate = kl5kusb105a_sio_b9600; in klsi_105_open()
246 priv->cfg.baudrate = cfg.baudrate; in klsi_105_open()
397 priv->cfg.baudrate = kl5kusb105a_sio_b1200; in klsi_105_set_termios()
400 priv->cfg.baudrate = kl5kusb105a_sio_b2400; in klsi_105_set_termios()
403 priv->cfg.baudrate = kl5kusb105a_sio_b4800; in klsi_105_set_termios()
406 priv->cfg.baudrate = kl5kusb105a_sio_b9600; in klsi_105_set_termios()
[all …]
H A Df81232.c65 /* Maximum baudrate for F81232 */
130 static int calc_baud_divisor(speed_t baudrate, speed_t clockrate) in calc_baud_divisor() argument
132 return DIV_ROUND_CLOSEST(clockrate, baudrate); in calc_baud_divisor()
473 static int f81232_find_clk(speed_t baudrate) in f81232_find_clk() argument
478 if (baudrate <= baudrate_table[idx] && in f81232_find_clk()
479 baudrate_table[idx] % baudrate == 0) in f81232_find_clk()
487 struct usb_serial_port *port, speed_t baudrate, in f81232_set_baudrate() argument
496 speed_t baud_list[] = { baudrate, old_baudrate, F81232_DEF_BAUDRATE }; in f81232_set_baudrate()
499 baudrate = baud_list[i]; in f81232_set_baudrate()
500 if (baudrate == 0) { in f81232_set_baudrate()
[all …]
H A Dmos7840.c1045 int baudRate, int *divisor, in mos7840_calc_baud_rate_divisor() argument
1048 dev_dbg(&port->dev, "%s - %d\n", __func__, baudRate); in mos7840_calc_baud_rate_divisor()
1050 if (baudRate <= 115200) { in mos7840_calc_baud_rate_divisor()
1051 *divisor = 115200 / baudRate; in mos7840_calc_baud_rate_divisor()
1054 if ((baudRate > 115200) && (baudRate <= 230400)) { in mos7840_calc_baud_rate_divisor()
1055 *divisor = 230400 / baudRate; in mos7840_calc_baud_rate_divisor()
1057 } else if ((baudRate > 230400) && (baudRate <= 403200)) { in mos7840_calc_baud_rate_divisor()
1058 *divisor = 403200 / baudRate; in mos7840_calc_baud_rate_divisor()
1060 } else if ((baudRate > 403200) && (baudRate <= 460800)) { in mos7840_calc_baud_rate_divisor()
1061 *divisor = 460800 / baudRate; in mos7840_calc_baud_rate_divisor()
[all …]
H A Df81534.c537 static u32 f81534_calc_baud_divisor(u32 baudrate, u32 clockrate) in f81534_calc_baud_divisor() argument
540 return DIV_ROUND_CLOSEST(clockrate, baudrate); in f81534_calc_baud_divisor()
543 static int f81534_find_clk(u32 baudrate) in f81534_find_clk() argument
548 if (baudrate <= baudrate_table[idx] && in f81534_find_clk()
549 baudrate_table[idx] % baudrate == 0) in f81534_find_clk()
557 struct tty_struct *tty, u32 baudrate, u32 old_baudrate, u8 lcr) in f81534_set_port_config() argument
565 u32 baud_list[] = {baudrate, old_baudrate, F81534_DEFAULT_BAUD_RATE}; in f81534_set_port_config()
568 baudrate = baud_list[i]; in f81534_set_port_config()
569 if (baudrate == 0) { in f81534_set_port_config()
574 idx = f81534_find_clk(baudrate); in f81534_set_port_config()
[all …]
H A Dark3116.c65 int quot; /* baudrate divisor */
160 /* setup baudrate */ in ark3116_port_probe()
217 /* calc baudrate */ in ark3116_set_termios()
254 /* baudrate */ in ark3116_set_termios()
271 /* magic baudrate thingy: not sure what it does, in ark3116_set_termios()
677 * The baudrate seems to be generated from the 12MHz crystal, using
710 * Set to 0x00 for IrDA, when the baudrate is initialised.
725 * Somekind of baudrate override. The windows driver seems to set
H A Dftdi_sio.h124 * - BaudDivisor = (BaseClock / 16) / BaudRate, where the (=) operation should
128 * BaudDivisor = (BaseClock / 16 / BaudRate) |
129 * (((BaseClock / 2 / BaudRate) & 4) ? 0x4000 // 0.5
130 * : ((BaseClock / 2 / BaudRate) & 2) ? 0x8000 // 0.25
131 * : ((BaseClock / 2 / BaudRate) & 1) ? 0xc000 // 0.125
H A Dmos7720.c1238 __u32 baudrate; member
1269 static int calc_baud_rate_divisor(struct usb_serial_port *port, int baudrate, int *divisor) in calc_baud_rate_divisor() argument
1277 dev_dbg(&port->dev, "%s - %d\n", __func__, baudrate); in calc_baud_rate_divisor()
1280 if (divisor_table[i].baudrate == baudrate) { in calc_baud_rate_divisor()
1288 if (baudrate > 75 && baudrate < 230400) { in calc_baud_rate_divisor()
1290 custom = (__u16)(230400L / baudrate); in calc_baud_rate_divisor()
1293 round1 = (__u16)(2304000L / baudrate); in calc_baud_rate_divisor()
1299 dev_dbg(&port->dev, "Baud %d = %d\n", baudrate, custom); in calc_baud_rate_divisor()
1313 int baudrate) in send_cmd_write_baud_rate() argument
1328 dev_dbg(&port->dev, "%s - baud = %d\n", __func__, baudrate); in send_cmd_write_baud_rate()
[all …]
/linux/Documentation/devicetree/bindings/net/bluetooth/
H A Dnxp,88w8987-bt.yaml29 fw-init-baudrate:
33 Chip baudrate after FW is downloaded and initialized.
95 fw-init-baudrate = <3000000>;
/linux/Documentation/admin-guide/
H A Dserial-console.rst29 defines the baudrate/parity/bits/flow control of
33 9600n8. The maximum baudrate is 115200.
124 set the baudrate to 38400 (baudrate of the virtual console).
/linux/arch/x86/kernel/
H A Dearly_printk.c221 unsigned long baudrate; in early_mmio_serial_init() local
242 baudrate = 0; in early_mmio_serial_init()
244 baudrate = simple_strtoul(s, &e, 0); in early_mmio_serial_init()
245 if (baudrate == 0 || s == e) in early_mmio_serial_init()
246 baudrate = DEFAULT_BAUD; in early_mmio_serial_init()
249 if (baudrate) in early_mmio_serial_init()
250 early_serial_hw_init(115200 / baudrate); in early_mmio_serial_init()
/linux/drivers/bluetooth/
H A Dbtmtkuart.c434 bt_dev_err(hdev, "Unable to set baudrate UART device %s", in btmtkuart_open()
529 __le32 baudrate; in btmtkuart_change_baudrate() local
534 * ready to change a new baudrate. in btmtkuart_change_baudrate()
536 baudrate = cpu_to_le32(bdev->desired_speed); in btmtkuart_change_baudrate()
540 wmt_params.data = &baudrate; in btmtkuart_change_baudrate()
545 bt_dev_err(hdev, "Failed to device baudrate (%d)", err); in btmtkuart_change_baudrate()
552 bt_dev_err(hdev, "Failed to set up host baudrate (%d)", in btmtkuart_change_baudrate()
559 /* Send a dummy byte 0xff to activate the new baudrate */ in btmtkuart_change_baudrate()
567 /* Wait some time for the device changing baudrate done */ in btmtkuart_change_baudrate()
570 /* Test the new baudrate */ in btmtkuart_change_baudrate()
[all …]
H A Dbtqca.h166 int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate,
180 static inline int qca_uart_setup(struct hci_dev *hdev, uint8_t baudrate, in qca_uart_setup() argument
H A Dhci_bcm.c54 * @no_early_set_baudrate: Disallow set baudrate before driver setup()
57 * @max_autobaud_speed: max baudrate supported by device in autobaud mode
58 * @max_speed: max baudrate supported
94 * @init_speed: default baudrate of Bluetooth device;
95 * the host UART is initially set to this baudrate so that
97 * @oper_speed: preferred baudrate of Bluetooth device;
98 * set to 0 if @init_speed is already the preferred baudrate
110 * @max_autobaud_speed: max baudrate supported by device in autobaud mode
218 bt_dev_err(hdev, "BCM: failed to write update baudrate (%d)", in bcm_set_baudrate()
497 /* If oper_speed is set, ldisc/serdev will set the baudrate in bcm_open()
H A Dhci_qca.c1213 /* For the WCN3990 the vendor command for a baudrate change in qca_recv_event()
1216 * new baudrate. The event is received and properly decoded in qca_recv_event()
1217 * after changing the baudrate of the host port. It needs to in qca_recv_event()
1335 static int qca_set_baudrate(struct hci_dev *hdev, uint8_t baudrate) in qca_set_baudrate() argument
1342 if (baudrate > QCA_BAUDRATE_3200000) in qca_set_baudrate()
1345 cmd[4] = baudrate; in qca_set_baudrate()
1349 bt_dev_err(hdev, "Failed to allocate baudrate packet"); in qca_set_baudrate()
1353 /* Assign commands to change baudrate and packet type. */ in qca_set_baudrate()
1360 /* Wait for the baudrate change request to be sent */ in qca_set_baudrate()
1404 * at required baudrate to wcn3990. On wcn3990, we have an external in qca_send_power_pulse()
[all …]
/linux/arch/arm64/boot/dts/ti/
H A Dk3-am62p-verdin-wifi.dtsi19 fw-init-baudrate = <3000000>;
H A Dk3-am62-verdin-wifi.dtsi42 fw-init-baudrate = <3000000>;
/linux/net/nfc/nci/
H A Duart.c403 void nci_uart_set_config(struct nci_uart *nu, int baudrate, int flow_ctrl) in nci_uart_set_config() argument
413 tty_termios_encode_baud_rate(&new_termios, baudrate, baudrate); in nci_uart_set_config()
/linux/Documentation/devicetree/bindings/serial/
H A Darm,sbsa-uart.yaml13 PL011 driver. It's baudrate and other communication parameters cannot be
H A Damlogic,meson-uart.yaml75 - description: the source of the baudrate generator, can be either the xtal or the pclk
H A Dmediatek,uart.yaml63 - description: The clock the baudrate is derived from
/linux/Documentation/networking/device_drivers/hamradio/
H A 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
/linux/drivers/net/hamradio/
H A 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()
995 if (yi.cfg.baudrate > YAM_MAXBAUDRATE) in yam_siocdevprivate()
997 yp->baudrate = yi.cfg.baudrate; in yam_siocdevprivate()
1038 yi.cfg.baudrate = yp->baudrate; in yam_siocdevprivate()
1084 yp->baudrate = DEFAULT_BITRATE * 2; in yam_setup()
/linux/drivers/nfc/nfcmrvl/
H A Dfw_dnld.h29 uint32_t baudrate; member
/linux/Documentation/devicetree/bindings/sound/
H A Dserial-midi.yaml33 description: Baudrate to set the serial port to when this MIDI device is opened.
/linux/drivers/tty/serial/
H A DKconfig264 are enabled). This driver uses the APB DMA to achieve higher baudrate
722 int "Default baudrate for Coldfire serial ports"
726 This setting lets you define what the default baudrate is for the
850 console baudrate
1154 int "Default baudrate for Altera UART ports"
1158 This setting lets you define what the default baudrate is for the

1234