file_data 153 drivers/usb/class/usbtmc.c static void usbtmc_draw_down(struct usbtmc_file_data *file_data); file_data 167 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data; file_data 175 drivers/usb/class/usbtmc.c file_data = kzalloc(sizeof(*file_data), GFP_KERNEL); file_data 176 drivers/usb/class/usbtmc.c if (!file_data) file_data 179 drivers/usb/class/usbtmc.c spin_lock_init(&file_data->err_lock); file_data 180 drivers/usb/class/usbtmc.c sema_init(&file_data->limit_write_sem, MAX_URBS_IN_FLIGHT); file_data 181 drivers/usb/class/usbtmc.c init_usb_anchor(&file_data->submitted); file_data 182 drivers/usb/class/usbtmc.c init_usb_anchor(&file_data->in_anchor); file_data 183 drivers/usb/class/usbtmc.c init_waitqueue_head(&file_data->wait_bulk_in); file_data 190 drivers/usb/class/usbtmc.c file_data->data = data; file_data 192 drivers/usb/class/usbtmc.c atomic_set(&file_data->closing, 0); file_data 194 drivers/usb/class/usbtmc.c file_data->timeout = USBTMC_TIMEOUT; file_data 195 drivers/usb/class/usbtmc.c file_data->term_char = '\n'; file_data 196 drivers/usb/class/usbtmc.c file_data->term_char_enabled = 0; file_data 197 drivers/usb/class/usbtmc.c file_data->auto_abort = 0; file_data 198 drivers/usb/class/usbtmc.c file_data->eom_val = 1; file_data 200 drivers/usb/class/usbtmc.c INIT_LIST_HEAD(&file_data->file_elem); file_data 202 drivers/usb/class/usbtmc.c list_add_tail(&file_data->file_elem, &data->file_list); file_data 207 drivers/usb/class/usbtmc.c filp->private_data = file_data; file_data 217 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data; file_data 220 drivers/usb/class/usbtmc.c file_data = file->private_data; file_data 221 drivers/usb/class/usbtmc.c if (file_data == NULL) file_data 224 drivers/usb/class/usbtmc.c atomic_set(&file_data->closing, 1); file_data 225 drivers/usb/class/usbtmc.c data = file_data->data; file_data 230 drivers/usb/class/usbtmc.c usbtmc_draw_down(file_data); file_data 232 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 233 drivers/usb/class/usbtmc.c file_data->in_status = 0; file_data 234 drivers/usb/class/usbtmc.c file_data->in_transfer_size = 0; file_data 235 drivers/usb/class/usbtmc.c file_data->in_urbs_used = 0; file_data 236 drivers/usb/class/usbtmc.c file_data->out_status = 0; file_data 237 drivers/usb/class/usbtmc.c file_data->out_transfer_size = 0; file_data 238 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 248 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data = file->private_data; file_data 251 drivers/usb/class/usbtmc.c mutex_lock(&file_data->data->io_mutex); file_data 252 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->data->dev_lock); file_data 254 drivers/usb/class/usbtmc.c list_del(&file_data->file_elem); file_data 256 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->data->dev_lock); file_data 257 drivers/usb/class/usbtmc.c mutex_unlock(&file_data->data->io_mutex); file_data 259 drivers/usb/class/usbtmc.c kref_put(&file_data->data->kref, usbtmc_delete); file_data 260 drivers/usb/class/usbtmc.c file_data->data = NULL; file_data 261 drivers/usb/class/usbtmc.c kfree(file_data); file_data 478 drivers/usb/class/usbtmc.c static int usbtmc488_ioctl_read_stb(struct usbtmc_file_data *file_data, file_data 481 drivers/usb/class/usbtmc.c struct usbtmc_device_data *data = file_data->data; file_data 493 drivers/usb/class/usbtmc.c srq_asserted = atomic_xchg(&file_data->srq_asserted, srq_asserted); file_data 496 drivers/usb/class/usbtmc.c stb = file_data->srq_byte; file_data 533 drivers/usb/class/usbtmc.c file_data->timeout); file_data 570 drivers/usb/class/usbtmc.c static int usbtmc488_ioctl_wait_srq(struct usbtmc_file_data *file_data, file_data 573 drivers/usb/class/usbtmc.c struct usbtmc_device_data *data = file_data->data; file_data 593 drivers/usb/class/usbtmc.c atomic_read(&file_data->srq_asserted) != 0 || file_data 594 drivers/usb/class/usbtmc.c atomic_read(&file_data->closing), file_data 600 drivers/usb/class/usbtmc.c if (atomic_read(&file_data->closing) || data->zombie) file_data 679 drivers/usb/class/usbtmc.c static int usbtmc488_ioctl_trigger(struct usbtmc_file_data *file_data) file_data 681 drivers/usb/class/usbtmc.c struct usbtmc_device_data *data = file_data->data; file_data 698 drivers/usb/class/usbtmc.c &actual, file_data->timeout); file_data 741 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data = urb->context; file_data 751 drivers/usb/class/usbtmc.c dev_err(&file_data->data->intf->dev, file_data 755 drivers/usb/class/usbtmc.c spin_lock_irqsave(&file_data->err_lock, flags); file_data 756 drivers/usb/class/usbtmc.c if (!file_data->in_status) file_data 757 drivers/usb/class/usbtmc.c file_data->in_status = status; file_data 758 drivers/usb/class/usbtmc.c spin_unlock_irqrestore(&file_data->err_lock, flags); file_data 761 drivers/usb/class/usbtmc.c spin_lock_irqsave(&file_data->err_lock, flags); file_data 762 drivers/usb/class/usbtmc.c file_data->in_transfer_size += urb->actual_length; file_data 763 drivers/usb/class/usbtmc.c dev_dbg(&file_data->data->intf->dev, file_data 765 drivers/usb/class/usbtmc.c __func__, file_data->in_transfer_size, file_data 767 drivers/usb/class/usbtmc.c spin_unlock_irqrestore(&file_data->err_lock, flags); file_data 768 drivers/usb/class/usbtmc.c usb_anchor_urb(urb, &file_data->in_anchor); file_data 770 drivers/usb/class/usbtmc.c wake_up_interruptible(&file_data->wait_bulk_in); file_data 771 drivers/usb/class/usbtmc.c wake_up_interruptible(&file_data->data->waitq); file_data 774 drivers/usb/class/usbtmc.c static inline bool usbtmc_do_transfer(struct usbtmc_file_data *file_data) file_data 778 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 779 drivers/usb/class/usbtmc.c data_or_error = !usb_anchor_empty(&file_data->in_anchor) file_data 780 drivers/usb/class/usbtmc.c || file_data->in_status; file_data 781 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 782 drivers/usb/class/usbtmc.c dev_dbg(&file_data->data->intf->dev, "%s: returns %d\n", __func__, file_data 787 drivers/usb/class/usbtmc.c static ssize_t usbtmc_generic_read(struct usbtmc_file_data *file_data, file_data 793 drivers/usb/class/usbtmc.c struct usbtmc_device_data *data = file_data->data; file_data 828 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 830 drivers/usb/class/usbtmc.c if (file_data->in_status) { file_data 832 drivers/usb/class/usbtmc.c retval = file_data->in_status; file_data 833 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 838 drivers/usb/class/usbtmc.c if (usb_anchor_empty(&file_data->in_anchor)) file_data 841 drivers/usb/class/usbtmc.c if (file_data->in_urbs_used == 0) { file_data 842 drivers/usb/class/usbtmc.c file_data->in_transfer_size = 0; file_data 843 drivers/usb/class/usbtmc.c file_data->in_status = 0; file_data 846 drivers/usb/class/usbtmc.c file_data->in_transfer_size = 0; file_data 847 drivers/usb/class/usbtmc.c file_data->in_status = 0; file_data 854 drivers/usb/class/usbtmc.c if (bufcount > file_data->in_urbs_used) file_data 855 drivers/usb/class/usbtmc.c bufcount -= file_data->in_urbs_used; file_data 859 drivers/usb/class/usbtmc.c if (bufcount + file_data->in_urbs_used > MAX_URBS_IN_FLIGHT) { file_data 861 drivers/usb/class/usbtmc.c file_data->in_urbs_used; file_data 864 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 868 drivers/usb/class/usbtmc.c max_transfer_size, bufcount, file_data->in_urbs_used); file_data 884 drivers/usb/class/usbtmc.c usbtmc_read_bulk_cb, file_data); file_data 886 drivers/usb/class/usbtmc.c usb_anchor_urb(urb, &file_data->submitted); file_data 894 drivers/usb/class/usbtmc.c file_data->in_urbs_used++; file_data 906 drivers/usb/class/usbtmc.c expire = msecs_to_jiffies(file_data->timeout); file_data 916 drivers/usb/class/usbtmc.c file_data->wait_bulk_in, file_data 917 drivers/usb/class/usbtmc.c usbtmc_do_transfer(file_data), file_data 930 drivers/usb/class/usbtmc.c urb = usb_get_from_anchor(&file_data->in_anchor); file_data 945 drivers/usb/class/usbtmc.c file_data->in_urbs_used--; file_data 970 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 973 drivers/usb/class/usbtmc.c retval = file_data->in_status; file_data 974 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 978 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 988 drivers/usb/class/usbtmc.c max_transfer_size > (bufsize * file_data->in_urbs_used)) { file_data 990 drivers/usb/class/usbtmc.c usb_anchor_urb(urb, &file_data->submitted); file_data 997 drivers/usb/class/usbtmc.c file_data->in_urbs_used++; file_data 1008 drivers/usb/class/usbtmc.c usb_kill_anchored_urbs(&file_data->submitted); file_data 1010 drivers/usb/class/usbtmc.c usb_scuttle_anchored_urbs(&file_data->in_anchor); file_data 1011 drivers/usb/class/usbtmc.c file_data->in_urbs_used = 0; file_data 1012 drivers/usb/class/usbtmc.c file_data->in_status = 0; /* no spinlock needed here */ file_data 1018 drivers/usb/class/usbtmc.c static ssize_t usbtmc_ioctl_generic_read(struct usbtmc_file_data *file_data, file_data 1029 drivers/usb/class/usbtmc.c retval = usbtmc_generic_read(file_data, msg.message, file_data 1042 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data = urb->context; file_data 1046 drivers/usb/class/usbtmc.c spin_lock_irqsave(&file_data->err_lock, flags); file_data 1047 drivers/usb/class/usbtmc.c file_data->out_transfer_size += urb->actual_length; file_data 1054 drivers/usb/class/usbtmc.c dev_err(&file_data->data->intf->dev, file_data 1058 drivers/usb/class/usbtmc.c if (!file_data->out_status) { file_data 1059 drivers/usb/class/usbtmc.c file_data->out_status = urb->status; file_data 1063 drivers/usb/class/usbtmc.c spin_unlock_irqrestore(&file_data->err_lock, flags); file_data 1065 drivers/usb/class/usbtmc.c dev_dbg(&file_data->data->intf->dev, file_data 1067 drivers/usb/class/usbtmc.c __func__, file_data->out_transfer_size); file_data 1069 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); file_data 1070 drivers/usb/class/usbtmc.c if (usb_anchor_empty(&file_data->submitted) || wakeup) file_data 1071 drivers/usb/class/usbtmc.c wake_up_interruptible(&file_data->data->waitq); file_data 1074 drivers/usb/class/usbtmc.c static ssize_t usbtmc_generic_write(struct usbtmc_file_data *file_data, file_data 1080 drivers/usb/class/usbtmc.c struct usbtmc_device_data *data = file_data->data; file_data 1097 drivers/usb/class/usbtmc.c file_data->limit_write_sem.count); file_data 1100 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 1101 drivers/usb/class/usbtmc.c retval = file_data->out_status; file_data 1102 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 1106 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 1107 drivers/usb/class/usbtmc.c file_data->out_transfer_size = 0; file_data 1108 drivers/usb/class/usbtmc.c file_data->out_status = 0; file_data 1109 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 1116 drivers/usb/class/usbtmc.c timeout = file_data->timeout; file_data 1124 drivers/usb/class/usbtmc.c if (down_trylock(&file_data->limit_write_sem)) { file_data 1129 drivers/usb/class/usbtmc.c retval = down_timeout(&file_data->limit_write_sem, file_data 1137 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 1138 drivers/usb/class/usbtmc.c retval = file_data->out_status; file_data 1139 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 1141 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); file_data 1149 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); file_data 1161 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); file_data 1180 drivers/usb/class/usbtmc.c usbtmc_write_bulk_cb, file_data); file_data 1182 drivers/usb/class/usbtmc.c usb_anchor_urb(urb, &file_data->submitted); file_data 1186 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); file_data 1199 drivers/usb/class/usbtmc.c if (!usb_wait_anchor_empty_timeout(&file_data->submitted, file_data 1210 drivers/usb/class/usbtmc.c usb_kill_anchored_urbs(&file_data->submitted); file_data 1214 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 1216 drivers/usb/class/usbtmc.c done = file_data->out_transfer_size; file_data 1217 drivers/usb/class/usbtmc.c if (!retval && file_data->out_status) file_data 1218 drivers/usb/class/usbtmc.c retval = file_data->out_status; file_data 1219 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 1224 drivers/usb/class/usbtmc.c __func__, done, retval, file_data->out_status); file_data 1229 drivers/usb/class/usbtmc.c static ssize_t usbtmc_ioctl_generic_write(struct usbtmc_file_data *file_data, file_data 1240 drivers/usb/class/usbtmc.c retval = usbtmc_generic_write(file_data, msg.message, file_data 1254 drivers/usb/class/usbtmc.c static ssize_t usbtmc_ioctl_write_result(struct usbtmc_file_data *file_data, file_data 1260 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 1261 drivers/usb/class/usbtmc.c transferred = file_data->out_transfer_size; file_data 1262 drivers/usb/class/usbtmc.c retval = file_data->out_status; file_data 1263 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 1279 drivers/usb/class/usbtmc.c static int send_request_dev_dep_msg_in(struct usbtmc_file_data *file_data, file_data 1282 drivers/usb/class/usbtmc.c struct usbtmc_device_data *data = file_data->data; file_data 1301 drivers/usb/class/usbtmc.c buffer[8] = file_data->term_char_enabled * 2; file_data 1303 drivers/usb/class/usbtmc.c buffer[9] = file_data->term_char; file_data 1312 drivers/usb/class/usbtmc.c &actual, file_data->timeout); file_data 1333 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data; file_data 1345 drivers/usb/class/usbtmc.c file_data = filp->private_data; file_data 1346 drivers/usb/class/usbtmc.c data = file_data->data; file_data 1364 drivers/usb/class/usbtmc.c retval = send_request_dev_dep_msg_in(file_data, count); file_data 1367 drivers/usb/class/usbtmc.c if (file_data->auto_abort) file_data 1381 drivers/usb/class/usbtmc.c file_data->timeout); file_data 1390 drivers/usb/class/usbtmc.c if (file_data->auto_abort) file_data 1399 drivers/usb/class/usbtmc.c if (file_data->auto_abort) file_data 1407 drivers/usb/class/usbtmc.c if (file_data->auto_abort) file_data 1415 drivers/usb/class/usbtmc.c if (file_data->auto_abort) file_data 1426 drivers/usb/class/usbtmc.c file_data->bmTransferAttributes = buffer[8]; file_data 1434 drivers/usb/class/usbtmc.c if (file_data->auto_abort) file_data 1461 drivers/usb/class/usbtmc.c retval = usbtmc_generic_read(file_data, buf + actual, file_data 1483 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data; file_data 1491 drivers/usb/class/usbtmc.c file_data = filp->private_data; file_data 1492 drivers/usb/class/usbtmc.c data = file_data->data; file_data 1503 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 1504 drivers/usb/class/usbtmc.c file_data->out_transfer_size = 0; file_data 1505 drivers/usb/class/usbtmc.c file_data->out_status = 0; file_data 1506 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 1511 drivers/usb/class/usbtmc.c if (down_trylock(&file_data->limit_write_sem)) { file_data 1520 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); file_data 1532 drivers/usb/class/usbtmc.c buffer[8] = file_data->eom_val; file_data 1560 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); file_data 1573 drivers/usb/class/usbtmc.c usbtmc_write_bulk_cb, file_data); file_data 1575 drivers/usb/class/usbtmc.c usb_anchor_urb(urb, &file_data->submitted); file_data 1579 drivers/usb/class/usbtmc.c up(&file_data->limit_write_sem); file_data 1592 drivers/usb/class/usbtmc.c retval = usbtmc_generic_write(file_data, buf + transfersize, remaining, file_data 1602 drivers/usb/class/usbtmc.c usb_kill_anchored_urbs(&file_data->submitted); file_data 1606 drivers/usb/class/usbtmc.c if (file_data->auto_abort) file_data 1756 drivers/usb/class/usbtmc.c static int usbtmc_ioctl_cancel_io(struct usbtmc_file_data *file_data) file_data 1758 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 1759 drivers/usb/class/usbtmc.c file_data->in_status = -ECANCELED; file_data 1760 drivers/usb/class/usbtmc.c file_data->out_status = -ECANCELED; file_data 1761 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 1762 drivers/usb/class/usbtmc.c usb_kill_anchored_urbs(&file_data->submitted); file_data 1766 drivers/usb/class/usbtmc.c static int usbtmc_ioctl_cleanup_io(struct usbtmc_file_data *file_data) file_data 1768 drivers/usb/class/usbtmc.c usb_kill_anchored_urbs(&file_data->submitted); file_data 1769 drivers/usb/class/usbtmc.c usb_scuttle_anchored_urbs(&file_data->in_anchor); file_data 1770 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 1771 drivers/usb/class/usbtmc.c file_data->in_status = 0; file_data 1772 drivers/usb/class/usbtmc.c file_data->in_transfer_size = 0; file_data 1773 drivers/usb/class/usbtmc.c file_data->out_status = 0; file_data 1774 drivers/usb/class/usbtmc.c file_data->out_transfer_size = 0; file_data 1775 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 1777 drivers/usb/class/usbtmc.c file_data->in_urbs_used = 0; file_data 1945 drivers/usb/class/usbtmc.c static int usbtmc_ioctl_get_timeout(struct usbtmc_file_data *file_data, file_data 1950 drivers/usb/class/usbtmc.c timeout = file_data->timeout; file_data 1958 drivers/usb/class/usbtmc.c static int usbtmc_ioctl_set_timeout(struct usbtmc_file_data *file_data, file_data 1972 drivers/usb/class/usbtmc.c file_data->timeout = timeout; file_data 1980 drivers/usb/class/usbtmc.c static int usbtmc_ioctl_eom_enable(struct usbtmc_file_data *file_data, file_data 1991 drivers/usb/class/usbtmc.c file_data->eom_val = eom_enable; file_data 1999 drivers/usb/class/usbtmc.c static int usbtmc_ioctl_config_termc(struct usbtmc_file_data *file_data, file_data 2009 drivers/usb/class/usbtmc.c !(file_data->data->capabilities.device_capabilities & 1))) file_data 2012 drivers/usb/class/usbtmc.c file_data->term_char = termc.term_char; file_data 2013 drivers/usb/class/usbtmc.c file_data->term_char_enabled = termc.term_char_enabled; file_data 2020 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data; file_data 2025 drivers/usb/class/usbtmc.c file_data = file->private_data; file_data 2026 drivers/usb/class/usbtmc.c data = file_data->data; file_data 2064 drivers/usb/class/usbtmc.c retval = usbtmc_ioctl_get_timeout(file_data, file_data 2069 drivers/usb/class/usbtmc.c retval = usbtmc_ioctl_set_timeout(file_data, file_data 2074 drivers/usb/class/usbtmc.c retval = usbtmc_ioctl_eom_enable(file_data, file_data 2079 drivers/usb/class/usbtmc.c retval = usbtmc_ioctl_config_termc(file_data, file_data 2084 drivers/usb/class/usbtmc.c retval = usbtmc_ioctl_generic_write(file_data, file_data 2089 drivers/usb/class/usbtmc.c retval = usbtmc_ioctl_generic_read(file_data, file_data 2094 drivers/usb/class/usbtmc.c retval = usbtmc_ioctl_write_result(file_data, file_data 2109 drivers/usb/class/usbtmc.c retval = usbtmc488_ioctl_read_stb(file_data, file_data 2129 drivers/usb/class/usbtmc.c retval = usbtmc488_ioctl_trigger(file_data); file_data 2133 drivers/usb/class/usbtmc.c retval = usbtmc488_ioctl_wait_srq(file_data, file_data 2138 drivers/usb/class/usbtmc.c retval = put_user(file_data->bmTransferAttributes, file_data 2145 drivers/usb/class/usbtmc.c file_data->auto_abort = !!tmp_byte; file_data 2149 drivers/usb/class/usbtmc.c retval = usbtmc_ioctl_cancel_io(file_data); file_data 2153 drivers/usb/class/usbtmc.c retval = usbtmc_ioctl_cleanup_io(file_data); file_data 2164 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data = file->private_data; file_data 2166 drivers/usb/class/usbtmc.c return fasync_helper(fd, file, on, &file_data->data->fasync); file_data 2171 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data = file->private_data; file_data 2172 drivers/usb/class/usbtmc.c struct usbtmc_device_data *data = file_data->data; file_data 2188 drivers/usb/class/usbtmc.c if (atomic_read(&file_data->srq_asserted)) file_data 2195 drivers/usb/class/usbtmc.c if (usb_anchor_empty(&file_data->submitted)) file_data 2197 drivers/usb/class/usbtmc.c if (!usb_anchor_empty(&file_data->in_anchor)) file_data 2200 drivers/usb/class/usbtmc.c spin_lock_irq(&file_data->err_lock); file_data 2201 drivers/usb/class/usbtmc.c if (file_data->in_status || file_data->out_status) file_data 2203 drivers/usb/class/usbtmc.c spin_unlock_irq(&file_data->err_lock); file_data 2265 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data; file_data 2267 drivers/usb/class/usbtmc.c file_data = list_entry(elem, file_data 2270 drivers/usb/class/usbtmc.c file_data->srq_byte = data->iin_buffer[1]; file_data 2271 drivers/usb/class/usbtmc.c atomic_set(&file_data->srq_asserted, 1); file_data 2448 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data; file_data 2450 drivers/usb/class/usbtmc.c file_data = list_entry(elem, file_data 2453 drivers/usb/class/usbtmc.c usb_kill_anchored_urbs(&file_data->submitted); file_data 2454 drivers/usb/class/usbtmc.c usb_scuttle_anchored_urbs(&file_data->in_anchor); file_data 2461 drivers/usb/class/usbtmc.c static void usbtmc_draw_down(struct usbtmc_file_data *file_data) file_data 2465 drivers/usb/class/usbtmc.c time = usb_wait_anchor_empty_timeout(&file_data->submitted, 1000); file_data 2467 drivers/usb/class/usbtmc.c usb_kill_anchored_urbs(&file_data->submitted); file_data 2468 drivers/usb/class/usbtmc.c usb_scuttle_anchored_urbs(&file_data->in_anchor); file_data 2481 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data; file_data 2483 drivers/usb/class/usbtmc.c file_data = list_entry(elem, file_data 2486 drivers/usb/class/usbtmc.c usbtmc_draw_down(file_data); file_data 2520 drivers/usb/class/usbtmc.c struct usbtmc_file_data *file_data; file_data 2522 drivers/usb/class/usbtmc.c file_data = list_entry(elem, file_data 2525 drivers/usb/class/usbtmc.c usbtmc_ioctl_cancel_io(file_data);