/linux/drivers/usb/serial/ |
H A D | kl5kusb105.c | 102 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 D | f81232.c | 65 /* Maximum baudrate for F81232 */ 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() 474 static int f81232_find_clk(speed_t baudrate) in f81232_find_clk() argument 479 if (baudrate <= baudrate_table[idx] && in f81232_find_clk() 480 baudrate_table[idx] % baudrate == 0) in f81232_find_clk() 488 struct usb_serial_port *port, speed_t baudrate, in f81232_set_baudrate() argument 497 speed_t baud_list[] = { baudrate, old_baudrate, F81232_DEF_BAUDRATE }; in f81232_set_baudrate() 500 baudrate = baud_list[i]; in f81232_set_baudrate() 501 if (baudrate == 0) { in f81232_set_baudrate() [all …]
|
H A D | mos7840.c | 1045 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 D | f81534.c | 537 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 D | ark3116.c | 65 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 D | mos7720.c | 1238 __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 …]
|
H A D | ftdi_sio.h | 124 * - 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
|
/linux/sound/drivers/ |
H A D | serial-generic.c | 50 unsigned int baudrate; 138 drvdata->baudrate); in snd_serial_generic_ensure_serdev_open() 139 if (actual_baud != drvdata->baudrate) { in snd_serial_generic_ensure_serdev_open() 141 drvdata->baudrate, drvdata->card->shortname, actual_baud); in snd_serial_generic_ensure_serdev_open() 270 &drvdata->baudrate); in snd_serial_generic_parse_dt() 275 drvdata->baudrate = 38400; in snd_serial_generic_parse_dt() 48 unsigned int baudrate; global() member
|
/linux/Documentation/devicetree/bindings/net/bluetooth/ |
H A D | nxp,88w8987-bt.yaml | 29 fw-init-baudrate: 33 Chip baudrate after FW is downloaded and initialized. 95 fw-init-baudrate = <3000000>;
|
/linux/Documentation/admin-guide/ |
H A D | serial-console.rst | 29 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 D | early_printk.c | 221 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 D | btqca.h | 166 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 D | hci_bcm.c | 54 * @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() 498 /* If oper_speed is set, ldisc/serdev will set the baudrate in bcm_open()
|
H A D | hci_qca.c | 1213 /* 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/net/nfc/nci/ |
H A D | uart.c | 403 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/drivers/net/hamradio/ |
H A 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() 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/Documentation/networking/device_drivers/hamradio/ |
H A D | z8530drv.rst | 226 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/arch/arm64/boot/dts/ti/ |
H A D | k3-am62p-verdin-wifi.dtsi | 19 fw-init-baudrate = <3000000>;
|
H A D | k3-am62-verdin-wifi.dtsi | 42 fw-init-baudrate = <3000000>;
|
/linux/Documentation/devicetree/bindings/serial/ |
H A D | arm,sbsa-uart.yaml | 13 PL011 driver. It's baudrate and other communication parameters cannot be
|
H A D | amlogic,meson-uart.yaml | 75 - description: the source of the baudrate generator, can be either the xtal or the pclk
|
H A D | mediatek,uart.yaml | 63 - description: The clock the baudrate is derived from
|
/linux/drivers/nfc/nfcmrvl/ |
H A D | fw_dnld.h | 29 uint32_t baudrate; member
|
/linux/Documentation/devicetree/bindings/sound/ |
H A D | serial-midi.yaml | 33 description: Baudrate to set the serial port to when this MIDI device is opened.
|
/linux/include/linux/ |
H A D | yam.h | 49 unsigned int baudrate; /* Baud rate of the RS232 port */ member
|