Lines Matching refs:purb
118 static void urb_completion(struct urb *purb) in urb_completion() argument
120 struct au0828_dev *dev = purb->context; in urb_completion()
121 int ptype = usb_pipetype(purb->pipe); in urb_completion()
124 dprintk(2, "%s: %d\n", __func__, purb->actual_length); in urb_completion()
144 ptr = purb->transfer_buffer; in urb_completion()
145 if (purb->actual_length > 0 && ptr[0] != 0x47) { in urb_completion()
147 ptr[0], purb->actual_length); in urb_completion()
161 purb->transfer_buffer, purb->actual_length / 188); in urb_completion()
164 memset(purb->transfer_buffer, 0, URB_BUFSIZE); in urb_completion()
167 usb_submit_urb(purb, GFP_ATOMIC); in urb_completion()
200 struct urb *purb; in start_urb_transfer() local
216 purb = dev->urbs[i]; in start_urb_transfer()
219 purb->transfer_buffer = dev->dig_transfer_buffer[i]; in start_urb_transfer()
221 purb->transfer_buffer = kzalloc(URB_BUFSIZE, in start_urb_transfer()
224 if (!purb->transfer_buffer) { in start_urb_transfer()
225 usb_free_urb(purb); in start_urb_transfer()
233 purb->status = -EINPROGRESS; in start_urb_transfer()
234 usb_fill_bulk_urb(purb, in start_urb_transfer()
238 purb->transfer_buffer, in start_urb_transfer()