/linux-6.14.4/drivers/w1/masters/ |
D | w1-uart.c | 32 * @baudrate: baud-rate returned from serdev 37 unsigned int baudrate; member 74 * @baudrate: Requested baud-rate to create 1-Wire timing pattern 81 unsigned int baudrate; member 115 w1cfg->baudrate = serdev_device_set_baudrate(serdev, limits->baudrate); in w1_uart_set_config() 116 if (w1cfg->baudrate == 0) in w1_uart_set_config() 120 bit_ns = baud_to_bit_ns(w1cfg->baudrate); in w1_uart_set_config() 159 struct w1_uart_limits limits = { .baudrate = 9600, in w1_uart_set_config_reset() 165 of_property_read_u32(np, "reset-bps", &limits.baudrate); in w1_uart_set_config_reset() 180 struct w1_uart_limits limits = { .baudrate = 115200, in w1_uart_set_config_touch_0() [all …]
|
/linux-6.14.4/drivers/usb/serial/ |
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 …]
|
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 …]
|
D | mos7840.c | 1058 int baudRate, int *divisor, in mos7840_calc_baud_rate_divisor() argument 1061 dev_dbg(&port->dev, "%s - %d\n", __func__, baudRate); in mos7840_calc_baud_rate_divisor() 1063 if (baudRate <= 115200) { in mos7840_calc_baud_rate_divisor() 1064 *divisor = 115200 / baudRate; in mos7840_calc_baud_rate_divisor() 1067 if ((baudRate > 115200) && (baudRate <= 230400)) { in mos7840_calc_baud_rate_divisor() 1068 *divisor = 230400 / baudRate; in mos7840_calc_baud_rate_divisor() 1070 } else if ((baudRate > 230400) && (baudRate <= 403200)) { in mos7840_calc_baud_rate_divisor() 1071 *divisor = 403200 / baudRate; in mos7840_calc_baud_rate_divisor() 1073 } else if ((baudRate > 403200) && (baudRate <= 460800)) { in mos7840_calc_baud_rate_divisor() 1074 *divisor = 460800 / baudRate; in mos7840_calc_baud_rate_divisor() [all …]
|
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 …]
|
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
|
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
|
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 …]
|
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()
|
/linux-6.14.4/Documentation/devicetree/bindings/net/bluetooth/ |
D | nxp,88w8987-bt.yaml | 26 fw-init-baudrate: 30 Chip baudrate after FW is downloaded and initialized. 54 fw-init-baudrate = <3000000>;
|
/linux-6.14.4/drivers/platform/chrome/ |
D | cros_ec_uart.c | 70 * @baudrate: UART baudrate of attached EC device. 78 u32 baudrate; member 214 ec_uart->baudrate = sb->default_baud_rate; in cros_ec_uart_resource() 215 dev_dbg(&ec_uart->serdev->dev, "Baudrate %d\n", ec_uart->baudrate); in cros_ec_uart_resource() 296 ret = serdev_device_set_baudrate(serdev, ec_uart->baudrate); in cros_ec_uart_probe()
|
/linux-6.14.4/sound/drivers/ |
D | serial-generic.c | 48 unsigned int baudrate; member 136 drvdata->baudrate); in snd_serial_generic_ensure_serdev_open() 137 if (actual_baud != drvdata->baudrate) { in snd_serial_generic_ensure_serdev_open() 139 drvdata->baudrate, drvdata->card->shortname, actual_baud); in snd_serial_generic_ensure_serdev_open() 268 &drvdata->baudrate); in snd_serial_generic_parse_dt() 273 drvdata->baudrate = 38400; in snd_serial_generic_parse_dt()
|
/linux-6.14.4/Documentation/devicetree/bindings/serial/ |
D | mvebu-uart.txt | 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
|
D | arm_sbsa_uart.txt | 3 in the PL011 driver. It's baudrate and other communication parameters
|
/linux-6.14.4/Documentation/admin-guide/ |
D | serial-console.rst | 29 defines the baudrate/parity/bits/flow control of 33 9600n8. The maximum baudrate is 115200. 122 set the baudrate to 38400 (baudrate of the virtual console).
|
/linux-6.14.4/drivers/bluetooth/ |
D | btmtkuart.c | 433 bt_dev_err(hdev, "Unable to set baudrate UART device %s", in btmtkuart_open() 528 __le32 baudrate; in btmtkuart_change_baudrate() local 533 * ready to change a new baudrate. in btmtkuart_change_baudrate() 535 baudrate = cpu_to_le32(bdev->desired_speed); in btmtkuart_change_baudrate() 539 wmt_params.data = &baudrate; in btmtkuart_change_baudrate() 544 bt_dev_err(hdev, "Failed to device baudrate (%d)", err); in btmtkuart_change_baudrate() 551 bt_dev_err(hdev, "Failed to set up host baudrate (%d)", in btmtkuart_change_baudrate() 558 /* Send a dummy byte 0xff to activate the new baudrate */ in btmtkuart_change_baudrate() 566 /* Wait some time for the device changing baudrate done */ in btmtkuart_change_baudrate() 569 /* Test the new baudrate */ in btmtkuart_change_baudrate() [all …]
|
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
|
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()
|
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() 1334 static int qca_set_baudrate(struct hci_dev *hdev, uint8_t baudrate) in qca_set_baudrate() argument 1341 if (baudrate > QCA_BAUDRATE_3200000) in qca_set_baudrate() 1344 cmd[4] = baudrate; in qca_set_baudrate() 1348 bt_dev_err(hdev, "Failed to allocate baudrate packet"); in qca_set_baudrate() 1352 /* Assign commands to change baudrate and packet type. */ in qca_set_baudrate() 1359 /* Wait for the baudrate change request to be sent */ in qca_set_baudrate() 1403 * at required baudrate to wcn3990. On wcn3990, we have an external in qca_send_power_pulse() [all …]
|
/linux-6.14.4/drivers/tty/serial/ |
D | mvebu-uart.c | 463 * The baudrate is derived from the UART clock thanks to divisors: in mvebu_uart_baud_rate_set() 468 * Exact formulas for calculating baudrate: in mvebu_uart_baud_rate_set() 471 * baudrate = xtal / (d * 16) in mvebu_uart_baud_rate_set() 472 * baudrate = tbg / (d1 * d2 * d * 16) in mvebu_uart_baud_rate_set() 475 * baudrate = 10 * xtal / (d * (3 * (m1 + m2) + 2 * (m3 + m4))) in mvebu_uart_baud_rate_set() 476 * baudrate = 10 * tbg / (d1*d2 * d * (3 * (m1 + m2) + 2 * (m3 + m4))) in mvebu_uart_baud_rate_set() 484 * To simplify baudrate setup set all the M prescalers to the same in mvebu_uart_baud_rate_set() 492 * so use M only when D divisor is not enough to derive baudrate. in mvebu_uart_baud_rate_set() 572 /* In case baudrate cannot be changed, report previous old value */ in mvebu_uart_set_termios() 1076 * divisors in their address spaces, so that final baudrate will not be in mvebu_uart_clock_prepare() [all …]
|
/linux-6.14.4/net/nfc/nci/ |
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-6.14.4/Documentation/networking/device_drivers/hamradio/ |
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-6.14.4/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() 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-6.14.4/include/linux/can/dev/ |
D | peak_canfd.h | 76 __le16 brp; /* BaudRate Prescaler */ 103 __le16 brp; /* BaudRate Prescaler */
|
/linux-6.14.4/arch/arm64/boot/dts/ti/ |
D | k3-am62-verdin-wifi.dtsi | 42 fw-init-baudrate = <3000000>;
|