Lines Matching refs:purb
108 static void urb_completion(struct urb *purb) in urb_completion() argument
110 struct au0828_dev *dev = purb->context; in urb_completion()
111 int ptype = usb_pipetype(purb->pipe); in urb_completion()
114 dprintk(2, "%s: %d\n", __func__, purb->actual_length); in urb_completion()
134 ptr = purb->transfer_buffer; in urb_completion()
135 if (purb->actual_length > 0 && ptr[0] != 0x47) { in urb_completion()
137 ptr[0], purb->actual_length); in urb_completion()
151 purb->transfer_buffer, purb->actual_length / 188); in urb_completion()
154 memset(purb->transfer_buffer, 0, URB_BUFSIZE); in urb_completion()
157 usb_submit_urb(purb, GFP_ATOMIC); in urb_completion()
190 struct urb *purb; in start_urb_transfer() local
206 purb = dev->urbs[i]; in start_urb_transfer()
209 purb->transfer_buffer = dev->dig_transfer_buffer[i]; in start_urb_transfer()
211 purb->transfer_buffer = kzalloc(URB_BUFSIZE, in start_urb_transfer()
214 if (!purb->transfer_buffer) { in start_urb_transfer()
215 usb_free_urb(purb); in start_urb_transfer()
223 purb->status = -EINPROGRESS; in start_urb_transfer()
224 usb_fill_bulk_urb(purb, in start_urb_transfer()
228 purb->transfer_buffer, in start_urb_transfer()