Lines Matching refs:tiocmget
231 struct hso_tiocmget *tiocmget; member
1417 struct hso_tiocmget *tiocmget, in tiocmget_submit_urb() argument
1424 usb_fill_int_urb(tiocmget->urb, usb, in tiocmget_submit_urb()
1426 tiocmget->endp-> in tiocmget_submit_urb()
1428 tiocmget->serial_state_notification, in tiocmget_submit_urb()
1431 tiocmget->endp->bInterval); in tiocmget_submit_urb()
1432 result = usb_submit_urb(tiocmget->urb, GFP_ATOMIC); in tiocmget_submit_urb()
1444 struct hso_tiocmget *tiocmget; in tiocmget_intr_callback() local
1462 tiocmget = serial->tiocmget; in tiocmget_intr_callback()
1463 if (!tiocmget) in tiocmget_intr_callback()
1475 serial_state_notification = tiocmget->serial_state_notification; in tiocmget_intr_callback()
1490 prev_UART_state_bitmap = tiocmget->prev_UART_state_bitmap; in tiocmget_intr_callback()
1491 icount = &tiocmget->icount; in tiocmget_intr_callback()
1514 tiocmget->prev_UART_state_bitmap = UART_state_bitmap; in tiocmget_intr_callback()
1516 tiocmget->intr_completed = 1; in tiocmget_intr_callback()
1517 wake_up_interruptible(&tiocmget->waitq); in tiocmget_intr_callback()
1522 tiocmget, in tiocmget_intr_callback()
1539 struct hso_tiocmget *tiocmget; in hso_wait_modem_status() local
1542 tiocmget = serial->tiocmget; in hso_wait_modem_status()
1543 if (!tiocmget) in hso_wait_modem_status()
1549 memcpy(&cprev, &tiocmget->icount, sizeof(struct uart_icount)); in hso_wait_modem_status()
1551 add_wait_queue(&tiocmget->waitq, &wait); in hso_wait_modem_status()
1554 memcpy(&cnow, &tiocmget->icount, sizeof(struct uart_icount)); in hso_wait_modem_status()
1572 remove_wait_queue(&tiocmget->waitq, &wait); in hso_wait_modem_status()
1588 struct hso_tiocmget *tiocmget = serial->tiocmget; in hso_get_count() local
1592 if (!tiocmget) in hso_get_count()
1595 memcpy(&cnow, &tiocmget->icount, sizeof(struct uart_icount)); in hso_get_count()
1618 struct hso_tiocmget *tiocmget; in hso_serial_tiocmget() local
1629 tiocmget = serial->tiocmget; in hso_serial_tiocmget()
1630 if (tiocmget) { in hso_serial_tiocmget()
1633 tiocmget->prev_UART_state_bitmap); in hso_serial_tiocmget()
2174 if (serial->tiocmget) in hso_start_serial_device()
2176 serial->tiocmget, in hso_start_serial_device()
2185 struct hso_tiocmget *tiocmget; in hso_stop_serial_device() local
2213 tiocmget = serial->tiocmget; in hso_stop_serial_device()
2214 if (tiocmget) { in hso_stop_serial_device()
2215 wake_up_interruptible(&tiocmget->waitq); in hso_stop_serial_device()
2216 usb_kill_urb(tiocmget->urb); in hso_stop_serial_device()
2572 struct hso_tiocmget *tiocmget; in hso_free_tiomget() local
2575 tiocmget = serial->tiocmget; in hso_free_tiomget()
2576 if (tiocmget) { in hso_free_tiomget()
2577 usb_free_urb(tiocmget->urb); in hso_free_tiomget()
2578 tiocmget->urb = NULL; in hso_free_tiomget()
2579 serial->tiocmget = NULL; in hso_free_tiomget()
2580 kfree(tiocmget->serial_state_notification); in hso_free_tiomget()
2581 tiocmget->serial_state_notification = NULL; in hso_free_tiomget()
2582 kfree(tiocmget); in hso_free_tiomget()
2615 struct hso_tiocmget *tiocmget; in hso_create_bulk_serial_device() local
2630 serial->tiocmget = kzalloc(sizeof(struct hso_tiocmget), in hso_create_bulk_serial_device()
2632 if (!serial->tiocmget) in hso_create_bulk_serial_device()
2634 serial->tiocmget->serial_state_notification in hso_create_bulk_serial_device()
2637 if (!serial->tiocmget->serial_state_notification) in hso_create_bulk_serial_device()
2639 tiocmget = serial->tiocmget; in hso_create_bulk_serial_device()
2640 tiocmget->endp = hso_get_ep(interface, in hso_create_bulk_serial_device()
2643 if (!tiocmget->endp) { in hso_create_bulk_serial_device()
2648 tiocmget->urb = usb_alloc_urb(0, GFP_KERNEL); in hso_create_bulk_serial_device()
2649 if (!tiocmget->urb) in hso_create_bulk_serial_device()
2652 mutex_init(&tiocmget->mutex); in hso_create_bulk_serial_device()
2653 init_waitqueue_head(&tiocmget->waitq); in hso_create_bulk_serial_device()
3211 .tiocmget = hso_serial_tiocmget,