Lines Matching refs:u

64 	int  (*init) (int fd, struct uart_t *u, struct termios *ti);
65 int (*post) (int fd, struct uart_t *u, struct termios *ti);
214 static int ericsson(int fd, struct uart_t *u, struct termios *ti)
224 switch (u->speed) {
251 u->speed = 57600;
252 fprintf(stderr, "Invalid speed requested, using %d bps instead\n", u->speed);
269 static int digi(int fd, struct uart_t *u, struct termios *ti)
280 switch (u->speed) {
289 u->speed = 115200;
303 static int texas(int fd, struct uart_t *u, struct termios *ti)
308 static int texas2(int fd, struct uart_t *u, struct termios *ti)
313 static int texasalt(int fd, struct uart_t *u, struct termios *ti)
315 return texasalt_init(fd, u->speed, ti);
381 static int bcsp(int fd, struct uart_t *u, struct termios *ti) in bcsp() argument
393 if (set_speed(fd, ti, u->speed) < 0) { in bcsp()
517 static int csr(int fd, struct uart_t *u, struct termios *ti)
632 if (u->speed > 1500000) {
634 u->speed, u->init_speed);
635 u->speed = u->init_speed;
636 } else if (u->speed != 57600 && uart_speed(u->speed) == B57600) {
639 u->speed, u->init_speed);
640 u->speed = u->init_speed;
642 if (u->speed == u->init_speed)
653 divisor = (u->speed*64+7812)/15625;
687 static int swave(int fd, struct uart_t *u, struct termios *ti)
709 switch (u->speed) {
723 u->speed = 115200;
792 static int st(int fd, struct uart_t *u, struct termios *ti)
803 switch (u->speed) {
830 u->speed = 115200;
844 static int stlc2500(int fd, struct uart_t *u, struct termios *ti)
852 rvalue = ericsson(fd, u, ti);
859 if (set_speed(fd, ti, u->speed) < 0) {
880 str2ba(u->bdaddr, &bdaddr);
884 static int bgb2xx(int fd, struct uart_t *u, struct termios *ti)
888 str2ba(u->bdaddr, &bdaddr);
897 static int bcm2035(int fd, struct uart_t *u, struct termios *ti)
922 if (u->bdaddr != NULL) {
930 str2ba(u->bdaddr, (bdaddr_t *) (cmd + 4));
994 switch (u->speed) {
1035 static int realtek_init(int fd, struct uart_t *u, struct termios *ti) in realtek_init() argument
1038 … uart with init speed:%d, final_speed:%d, type:HCI UART %s\n", u->init_speed, u->speed, (u->proto … in realtek_init()
1039 return rtk_init(fd, u->proto, u->speed, ti); in realtek_init()
1042 static int realtek_post(int fd, struct uart_t *u, struct termios *ti) in realtek_post() argument
1045 return rtk_post(fd, u->proto, ti); in realtek_post()
1152 static int init_uart(char *dev, struct uart_t *u, int send_break, int raw) in init_uart() argument
1177 if (u->flags & FLOW_CTL) in init_uart()
1188 if (set_speed(fd, &ti, u->init_speed) < 0) { in init_uart()
1200 if (u->init && u->init(fd, u, &ti) < 0) in init_uart()
1206 if (set_speed(fd, &ti, u->speed) < 0) { in init_uart()
1223 if (ioctl(fd, HCIUARTSETPROTO, u->proto) < 0) { in init_uart()
1228 if (u->post && u->post(fd, u, &ti) < 0) in init_uart()
1244 struct uart_t *u = NULL; in main() local
1321 u = get_by_id(m_id, p_id); in main()
1323 u = get_by_type(opt); in main()
1326 if (!u) { in main()
1334 u->speed = atoi(argv[optind]); in main()
1339 u->flags |= FLOW_CTL; in main()
1341 u->flags &= ~FLOW_CTL; in main()
1346 u->pm = ENABLE_PM; in main()
1348 u->pm = DISABLE_PM; in main()
1352 u->bdaddr = argv[optind]; in main()
1357 if (!u) { in main()
1365 u->init_speed = init_speed; in main()
1376 n = init_uart(dev, u, send_break, raw); in main()