• Home
  • Raw
  • Download

Lines Matching refs:urbtrack

272 	struct urbtracker *urbtrack =  in destroy_urbtracker()  local
274 struct mos7715_parport *mos_parport = urbtrack->mos_parport; in destroy_urbtracker()
276 usb_free_urb(urbtrack->urb); in destroy_urbtracker()
277 kfree(urbtrack->setup); in destroy_urbtracker()
278 kfree(urbtrack); in destroy_urbtracker()
293 struct urbtracker *urbtrack, *tmp; in send_deferred_urbs() local
327 list_for_each_entry_safe(urbtrack, tmp, &mos_parport->active_urbs, in send_deferred_urbs()
329 ret_val = usb_submit_urb(urbtrack->urb, GFP_ATOMIC); in send_deferred_urbs()
333 list_del(&urbtrack->urblist_entry); in send_deferred_urbs()
334 kref_put(&urbtrack->ref_count, destroy_urbtracker); in send_deferred_urbs()
344 struct urbtracker *urbtrack = urb->context; in async_complete() local
352 spin_lock_irqsave(&urbtrack->mos_parport->listlock, flags); in async_complete()
353 list_del(&urbtrack->urblist_entry); in async_complete()
354 spin_unlock_irqrestore(&urbtrack->mos_parport->listlock, flags); in async_complete()
355 kref_put(&urbtrack->ref_count, destroy_urbtracker); in async_complete()
361 struct urbtracker *urbtrack; in write_parport_reg_nonblock() local
368 urbtrack = kmalloc(sizeof(struct urbtracker), GFP_ATOMIC); in write_parport_reg_nonblock()
369 if (!urbtrack) in write_parport_reg_nonblock()
372 urbtrack->urb = usb_alloc_urb(0, GFP_ATOMIC); in write_parport_reg_nonblock()
373 if (!urbtrack->urb) { in write_parport_reg_nonblock()
374 kfree(urbtrack); in write_parport_reg_nonblock()
377 urbtrack->setup = kmalloc(sizeof(*urbtrack->setup), GFP_ATOMIC); in write_parport_reg_nonblock()
378 if (!urbtrack->setup) { in write_parport_reg_nonblock()
379 usb_free_urb(urbtrack->urb); in write_parport_reg_nonblock()
380 kfree(urbtrack); in write_parport_reg_nonblock()
383 urbtrack->setup->bRequestType = (__u8)0x40; in write_parport_reg_nonblock()
384 urbtrack->setup->bRequest = (__u8)0x0e; in write_parport_reg_nonblock()
385 urbtrack->setup->wValue = cpu_to_le16(get_reg_value(reg, dummy)); in write_parport_reg_nonblock()
386 urbtrack->setup->wIndex = cpu_to_le16(get_reg_index(reg)); in write_parport_reg_nonblock()
387 urbtrack->setup->wLength = 0; in write_parport_reg_nonblock()
388 usb_fill_control_urb(urbtrack->urb, usbdev, in write_parport_reg_nonblock()
390 (unsigned char *)urbtrack->setup, in write_parport_reg_nonblock()
391 NULL, 0, async_complete, urbtrack); in write_parport_reg_nonblock()
393 urbtrack->mos_parport = mos_parport; in write_parport_reg_nonblock()
394 kref_init(&urbtrack->ref_count); in write_parport_reg_nonblock()
395 INIT_LIST_HEAD(&urbtrack->urblist_entry); in write_parport_reg_nonblock()
403 list_add_tail(&urbtrack->urblist_entry, in write_parport_reg_nonblock()
413 kref_put(&urbtrack->ref_count, destroy_urbtracker); in write_parport_reg_nonblock()
420 list_add_tail(&urbtrack->urblist_entry, &mos_parport->active_urbs); in write_parport_reg_nonblock()
422 ret_val = usb_submit_urb(urbtrack->urb, GFP_ATOMIC); in write_parport_reg_nonblock()
428 list_del(&urbtrack->urblist_entry); in write_parport_reg_nonblock()
430 kref_put(&urbtrack->ref_count, destroy_urbtracker); in write_parport_reg_nonblock()
1876 struct urbtracker *urbtrack; in mos7720_release() local
1900 list_for_each_entry(urbtrack, in mos7720_release()
1903 usb_unlink_urb(urbtrack->urb); in mos7720_release()