Home
last modified time | relevance | path

Searched refs:baud (Results 1 – 25 of 38) sorted by relevance

12

/device/board/osware/imx8mm/drivers/bluetooth/source/src/
Duserial_vendor.c93 uint8_t userial_to_tcio_baud(uint8_t cfg_baud, uint32_t *baud) in userial_to_tcio_baud() argument
96 *baud = B115200; in userial_to_tcio_baud()
98 *baud = B4000000; in userial_to_tcio_baud()
100 *baud = B3000000; in userial_to_tcio_baud()
102 *baud = B2000000; in userial_to_tcio_baud()
104 *baud = B1500000; in userial_to_tcio_baud()
106 *baud = B1000000; in userial_to_tcio_baud()
108 *baud = B921600; in userial_to_tcio_baud()
110 *baud = B460800; in userial_to_tcio_baud()
112 *baud = B230400; in userial_to_tcio_baud()
[all …]
Dhardware.c405 uint8_t baud; in line_speed_to_userial_baud() local
408 baud = USERIAL_BAUD_4M; in line_speed_to_userial_baud()
410 baud = USERIAL_BAUD_3M; in line_speed_to_userial_baud()
412 baud = USERIAL_BAUD_2M; in line_speed_to_userial_baud()
414 baud = USERIAL_BAUD_1_5M; in line_speed_to_userial_baud()
416 baud = USERIAL_BAUD_1M; in line_speed_to_userial_baud()
418 baud = USERIAL_BAUD_921600; in line_speed_to_userial_baud()
420 baud = USERIAL_BAUD_460800; in line_speed_to_userial_baud()
422 baud = USERIAL_BAUD_230400; in line_speed_to_userial_baud()
424 baud = USERIAL_BAUD_115200; in line_speed_to_userial_baud()
[all …]
/device/board/kaihong/khdvk_3566b/kernel/bluetooth/src/
Duserial_vendor.c93 uint8_t userial_to_tcio_baud(uint8_t cfg_baud, uint32_t *baud) in userial_to_tcio_baud() argument
96 *baud = B115200; in userial_to_tcio_baud()
98 *baud = B4000000; in userial_to_tcio_baud()
100 *baud = B3000000; in userial_to_tcio_baud()
102 *baud = B2000000; in userial_to_tcio_baud()
104 *baud = B1500000; in userial_to_tcio_baud()
106 *baud = B1000000; in userial_to_tcio_baud()
108 *baud = B921600; in userial_to_tcio_baud()
110 *baud = B460800; in userial_to_tcio_baud()
112 *baud = B230400; in userial_to_tcio_baud()
[all …]
Dhardware.c401 uint8_t baud; in line_speed_to_userial_baud() local
404 baud = USERIAL_BAUD_4M; in line_speed_to_userial_baud()
406 baud = USERIAL_BAUD_3M; in line_speed_to_userial_baud()
408 baud = USERIAL_BAUD_2M; in line_speed_to_userial_baud()
410 baud = USERIAL_BAUD_1_5M; in line_speed_to_userial_baud()
412 baud = USERIAL_BAUD_1M; in line_speed_to_userial_baud()
414 baud = USERIAL_BAUD_921600; in line_speed_to_userial_baud()
416 baud = USERIAL_BAUD_460800; in line_speed_to_userial_baud()
418 baud = USERIAL_BAUD_230400; in line_speed_to_userial_baud()
420 baud = USERIAL_BAUD_115200; in line_speed_to_userial_baud()
[all …]
/device/soc/amlogic/a311d/soc/amlogic/uart/
Dmeson_uart.c93 unsigned long baud; member
336 static void meson_uart_change_speed(struct uart_port *port, unsigned long baud) in meson_uart_change_speed() argument
349 val = (port->uartclk / 2L + baud / 2L) / baud - 1; in meson_uart_change_speed()
352 val = ((port->uartclk / 3L) + baud / 2L) / baud - 1; in meson_uart_change_speed()
357 …&pdev->dev, "ttyS%d use clk81 %d change %ld to %ld\n", port->line, port->uartclk, mup->baud, baud); in meson_uart_change_speed()
358 val = ((port->uartclk * 10L / (baud * 4L) + 5L) / 10L) - 1; in meson_uart_change_speed()
364 mup->baud = baud; in meson_uart_change_speed()
369 unsigned int cflags, iflags, baud; in meson_uart_set_termios() local
424 baud = uart_get_baud_rate(port, termios, old, 2400L, 4000000L); in meson_uart_set_termios()
425 meson_uart_change_speed(port, baud); in meson_uart_set_termios()
[all …]
/device/soc/rockchip/common/sdk_linux/drivers/tty/serial/8250/
D8250_dwlib.c68 static unsigned int dw8250_get_divisor(struct uart_port *p, unsigned int baud, unsigned int *frac) in dw8250_get_divisor() argument
70 unsigned int quot, rem, base_baud = baud * 16; in dw8250_get_divisor()
80 static void dw8250_set_divisor(struct uart_port *p, unsigned int baud, unsigned int quot, unsigned … in dw8250_set_divisor() argument
83 serial8250_do_set_divisor(p, baud, quot, quot_frac); in dw8250_set_divisor()
D8250_port.c2632 static unsigned int npcm_get_divisor(struct uart_8250_port *up, unsigned int baud) in npcm_get_divisor() argument
2636 return DIV_ROUND_CLOSEST(port->uartclk, PORT_SIXTEEN * baud + 0x2) - 0x2; in npcm_get_divisor()
2639 static unsigned int serial8250_do_get_divisor(struct uart_port *port, unsigned int baud, unsigned i… in serial8250_do_get_divisor() argument
2649 if ((port->flags & UPF_MAGIC_MULTIPLIER) && baud == (port->uartclk / 0x4)) { in serial8250_do_get_divisor()
2651 } else if ((port->flags & UPF_MAGIC_MULTIPLIER) && baud == (port->uartclk / 0x8)) { in serial8250_do_get_divisor()
2654 quot = npcm_get_divisor(up, baud); in serial8250_do_get_divisor()
2656 quot = uart_get_divisor(port, baud); in serial8250_do_get_divisor()
2669 static unsigned int serial8250_get_divisor(struct uart_port *port, unsigned int baud, unsigned int … in serial8250_get_divisor() argument
2672 return port->get_divisor(port, baud, frac); in serial8250_get_divisor()
2675 return serial8250_do_get_divisor(port, baud, frac); in serial8250_get_divisor()
[all …]
D8250_dw.c352 unsigned int baud = tty_termios_baud_rate(termios); in dw8250_set_termios() local
359 if (baud <= 0x1c200) { in dw8250_set_termios()
361 } else if (baud == 0x38400) { in dw8250_set_termios()
362 rate = baud * 0x20; in dw8250_set_termios()
363 } else if (baud == 0x119400) { in dw8250_set_termios()
364 rate = baud * 0x20; in dw8250_set_termios()
366 rate = baud * 0x10; in dw8250_set_termios()
/device/soc/esp/esp32/components/partition_table/
Dparttool.py72 …def __init__(self, port=None, baud=None, partition_table_offset=PARTITION_TABLE_OFFSET, partition_… argument
75 self.baud = baud
131 if self.baud:
132 esptool_args += ['--baud', str(self.baud)]
313 if args.baud:
314 target_args['baud'] = args.baud
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/libbt-vendor/src/
Dhardware_uart.c337 uint8_t baud; in line_speed_to_userial_baud() local
340 baud = USERIAL_BAUD_4M; in line_speed_to_userial_baud()
342 baud = USERIAL_BAUD_3M; in line_speed_to_userial_baud()
344 baud = USERIAL_BAUD_2M; in line_speed_to_userial_baud()
346 baud = USERIAL_BAUD_1_5M; in line_speed_to_userial_baud()
348 baud = USERIAL_BAUD_1M; in line_speed_to_userial_baud()
350 baud = USERIAL_BAUD_921600; in line_speed_to_userial_baud()
352 baud = USERIAL_BAUD_460800; in line_speed_to_userial_baud()
354 baud = USERIAL_BAUD_230400; in line_speed_to_userial_baud()
356 baud = USERIAL_BAUD_115200; in line_speed_to_userial_baud()
[all …]
Duserial_vendor.c209 uint8_t userial_to_tcio_baud(uint8_t cfg_baud, uint32_t *baud) in userial_to_tcio_baud() argument
212 *baud = B115200; in userial_to_tcio_baud()
214 *baud = B4000000; in userial_to_tcio_baud()
216 *baud = B3000000; in userial_to_tcio_baud()
218 *baud = B2000000; in userial_to_tcio_baud()
220 *baud = B1000000; in userial_to_tcio_baud()
222 *baud = B1500000; in userial_to_tcio_baud()
224 *baud = B921600; in userial_to_tcio_baud()
226 *baud = B460800; in userial_to_tcio_baud()
228 *baud = B230400; in userial_to_tcio_baud()
[all …]
/device/board/unionman/unionpi_tiger/hardware/bt/src/
Dhardware_uart.c331 uint8_t baud; in line_speed_to_userial_baud() local
334 baud = USERIAL_BAUD_4M; in line_speed_to_userial_baud()
336 baud = USERIAL_BAUD_3M; in line_speed_to_userial_baud()
338 baud = USERIAL_BAUD_2M; in line_speed_to_userial_baud()
340 baud = USERIAL_BAUD_1_5M; in line_speed_to_userial_baud()
342 baud = USERIAL_BAUD_1M; in line_speed_to_userial_baud()
344 baud = USERIAL_BAUD_921600; in line_speed_to_userial_baud()
346 baud = USERIAL_BAUD_460800; in line_speed_to_userial_baud()
348 baud = USERIAL_BAUD_230400; in line_speed_to_userial_baud()
350 baud = USERIAL_BAUD_115200; in line_speed_to_userial_baud()
[all …]
Duserial_vendor.c202 uint8_t userial_to_tcio_baud(uint8_t cfg_baud, uint32_t *baud) in userial_to_tcio_baud() argument
205 *baud = B115200; in userial_to_tcio_baud()
207 *baud = B4000000; in userial_to_tcio_baud()
209 *baud = B3000000; in userial_to_tcio_baud()
211 *baud = B2000000; in userial_to_tcio_baud()
213 *baud = B1000000; in userial_to_tcio_baud()
215 *baud = B1500000; in userial_to_tcio_baud()
217 *baud = B921600; in userial_to_tcio_baud()
219 *baud = B460800; in userial_to_tcio_baud()
221 *baud = B230400; in userial_to_tcio_baud()
[all …]
/device/soc/chipsea/cst85/liteos_m/sdk/bsp/driver/stdio_uart/
Dstdio_uart.c99 void stdio_uart_baud_set(uint32_t baud) in stdio_uart_baud_set() argument
101 if (stdio_uart_baudrate != baud) { in stdio_uart_baud_set()
106 stdio_uart_baudrate = baud; in stdio_uart_baud_set()
Duart.h40 void stdio_uart_baud_set(uint32_t baud);
/device/soc/telink/b91/b91_ble_sdk/drivers/B91/
Ds7816.c98 int baud = clock * 1000000 * d / f; in s7816_init() local
107 uart_cal_div_and_bwpc(baud, 24 * 1000 * 1000, &div, &bwpc); in s7816_init()
/device/board/isoftstone/zhiyuan/kernel/driver/drivers/uart/
Dsunxi-uart.c782 u32 baud; member
787 static inline int sw_uart_check_baudset(struct uart_port *port, unsigned int baud) in sw_uart_check_baudset() argument
809 if (baud < 115200) { in sw_uart_check_baudset()
812 sw_uport->id, port->uartclk, baud); in sw_uart_check_baudset()
817 if (baud == baud_set[i].baud) in sw_uart_check_baudset()
822 SERIAL_MSG("uart%d, baud %d beyond rance\n", sw_uport->id, baud); in sw_uart_check_baudset()
830 sw_uport->id, i, baud, port->uartclk, in sw_uart_check_baudset()
1095 unsigned int baud, quot, lcr = 0, dll, dlh; in sw_uart_set_termios() local
1129 baud = uart_get_baud_rate(port, termios, old, in sw_uart_set_termios()
1132 sw_uart_check_baudset(port, baud); in sw_uart_set_termios()
[all …]
/device/qemu/SmartL_E802/liteos_m/board/hals/csky_driver/include/
Ddrv_spi.h154 int32_t baud,
238 int32_t csi_spi_config_baudrate(spi_handle_t handle, uint32_t baud);
Ddrv_usart.h226 uint32_t baud,
327 int32_t csi_usart_config_baudrate(usart_handle_t handle, uint32_t baud);
/device/soc/goodix/gr551x/sdk_liteos/gr551x_sdk/components/libraries/log/
Ddbg_printf.c80 uint32_t baud; in dbg_uart_init() local
109 baud = DBG_UART_BAUDRATE; in dbg_uart_init()
110 ll_uart_set_baud_rate(UARTx, uart_pclk, baud); in dbg_uart_init()
/device/soc/asrmicro/asr582x/liteos_m/sdk/drivers/driver/src/
Dduet_uart.c57 uint32_t duet_uart_calc_baud(uint32_t baud) in duet_uart_calc_baud() argument
65 temp = 16 * baud; in duet_uart_calc_baud()
66 if ((0 == baud) || uart_clk < temp) { in duet_uart_calc_baud()
71 temp = 8 * remainder / baud; in duet_uart_calc_baud()
/device/soc/esp/esp32/components/app_update/
Dotatool.py53 …def __init__(self, port=None, baud=None, partition_table_offset=PARTITION_TABLE_OFFSET, partition_… argument
56 …self.target = ParttoolTarget(port, baud, partition_table_offset, partition_table_file, esptool_arg…
336 if args.baud:
337 target_args['baud'] = args.baud
/device/board/kaihong/khdvk_3566b/kernel/bluetooth/include/
Duserial_vendor.h113 uint8_t baud; /* Baud rate */ member
/device/board/osware/imx8mm/drivers/bluetooth/source/include/
Duserial_vendor.h113 uint8_t baud; /* Baud rate */ member
/device/board/hisilicon/hispark_phoenix/peripherals/bluetooth/rtkbt/code/libbt-vendor/include/
Duserial_vendor.h109 uint8_t baud; /* Baud rate */ member

12