• Home
  • Raw
  • Download

Lines Matching refs:urbs

96 	struct urb_list urbs;  member
1142 up(&unode->dev->urbs.limit_sem); in ufx_release_urb_work()
1756 if (dev->urbs.count > 0) in ufx_usb_probe()
1789 if (dev->urbs.count > 0) in ufx_usb_disconnect()
1825 urb->transfer_buffer_length = dev->urbs.size; /* reset to actual */ in ufx_urb_completion()
1827 spin_lock_irqsave(&dev->urbs.lock, flags); in ufx_urb_completion()
1828 list_add_tail(&unode->entry, &dev->urbs.list); in ufx_urb_completion()
1829 dev->urbs.available++; in ufx_urb_completion()
1830 spin_unlock_irqrestore(&dev->urbs.lock, flags); in ufx_urb_completion()
1837 up(&dev->urbs.limit_sem); in ufx_urb_completion()
1842 int count = dev->urbs.count; in ufx_free_urb_list()
1854 ret = down_interruptible(&dev->urbs.limit_sem); in ufx_free_urb_list()
1858 spin_lock_irqsave(&dev->urbs.lock, flags); in ufx_free_urb_list()
1860 node = dev->urbs.list.next; /* have reserved one with sem */ in ufx_free_urb_list()
1863 spin_unlock_irqrestore(&dev->urbs.lock, flags); in ufx_free_urb_list()
1869 usb_free_coherent(urb->dev, dev->urbs.size, in ufx_free_urb_list()
1883 spin_lock_init(&dev->urbs.lock); in ufx_alloc_urb_list()
1885 dev->urbs.size = size; in ufx_alloc_urb_list()
1886 INIT_LIST_HEAD(&dev->urbs.list); in ufx_alloc_urb_list()
1917 list_add_tail(&unode->entry, &dev->urbs.list); in ufx_alloc_urb_list()
1922 sema_init(&dev->urbs.limit_sem, i); in ufx_alloc_urb_list()
1923 dev->urbs.count = i; in ufx_alloc_urb_list()
1924 dev->urbs.available = i; in ufx_alloc_urb_list()
1940 ret = down_timeout(&dev->urbs.limit_sem, GET_URB_TIMEOUT); in ufx_get_urb()
1944 ret, dev->urbs.available); in ufx_get_urb()
1948 spin_lock_irqsave(&dev->urbs.lock, flags); in ufx_get_urb()
1950 BUG_ON(list_empty(&dev->urbs.list)); /* reserved one with limit_sem */ in ufx_get_urb()
1951 entry = dev->urbs.list.next; in ufx_get_urb()
1953 dev->urbs.available--; in ufx_get_urb()
1955 spin_unlock_irqrestore(&dev->urbs.lock, flags); in ufx_get_urb()
1968 BUG_ON(len > dev->urbs.size); in ufx_submit_urb()