Lines Matching refs:u
73 int (*init) (int fd, struct uart_t *u, struct termios *ti);
74 int (*post) (int fd, struct uart_t *u, struct termios *ti);
173 static int realtek_init(int fd, struct uart_t *u, struct termios *ti) in realtek_init() argument
177 u->init_speed, in realtek_init()
178 (u->proto == HCI_UART_H4) ? "H4" : "H5"); in realtek_init()
179 return rtb_init(fd, u->proto, u->speed, ti); in realtek_init()
182 static int realtek_post(int fd, struct uart_t *u, struct termios *ti) in realtek_post() argument
185 return rtb_post(fd, u->proto, ti); in realtek_post()
221 static int init_uart(char *dev, struct uart_t *u, int send_break, int raw) in init_uart() argument
248 if (u->flags & FLOW_CTL) in init_uart()
260 if (set_speed(fd, &ti, u->init_speed) < 0) { in init_uart()
273 if (u->init && u->init(fd, u, &ti) < 0) in init_uart()
300 if (ioctl(fd, HCIUARTSETPROTO, u->proto) < 0) { in init_uart()
305 if (u->post && u->post(fd, u, &ti) < 0) in init_uart()
363 struct uart_t *u = NULL; in main() local
443 u = get_by_id(m_id, p_id); in main()
445 u = get_by_type(opt); in main()
448 if (!u) { in main()
456 u->speed = atoi(argv[optind]); in main()
461 u->flags |= FLOW_CTL; in main()
463 u->flags &= ~FLOW_CTL; in main()
468 u->pm = ENABLE_PM; in main()
470 u->pm = DISABLE_PM; in main()
474 u->bdaddr = argv[optind]; in main()
479 if (!u) { in main()
507 u->init_speed = init_speed; in main()
517 n = init_uart(dev, u, send_break, raw); in main()