hwarc 585 drivers/staging/uwb/hwa-rc.c struct hwarc *hwarc = uwb_rc->priv; hwarc 587 drivers/staging/uwb/hwa-rc.c hwarc->usb_dev, usb_sndctrlpipe(hwarc->usb_dev, 0), hwarc 589 drivers/staging/uwb/hwa-rc.c 0, hwarc->usb_iface->cur_altsetting->desc.bInterfaceNumber, hwarc 596 drivers/staging/uwb/hwa-rc.c struct hwarc *hwarc = uwb_rc->priv; hwarc 600 drivers/staging/uwb/hwa-rc.c result = usb_lock_device_for_reset(hwarc->usb_dev, NULL); hwarc 602 drivers/staging/uwb/hwa-rc.c result = usb_reset_device(hwarc->usb_dev); hwarc 603 drivers/staging/uwb/hwa-rc.c usb_unlock_device(hwarc->usb_dev); hwarc 618 drivers/staging/uwb/hwa-rc.c struct hwarc *hwarc = urb->context; hwarc 619 drivers/staging/uwb/hwa-rc.c struct usb_interface *usb_iface = hwarc->usb_iface; hwarc 625 drivers/staging/uwb/hwa-rc.c uwb_rc_neh_grok(hwarc->uwb_rc, urb->transfer_buffer, hwarc 634 drivers/staging/uwb/hwa-rc.c if (edc_inc(&hwarc->neep_edc, EDC_MAX_ERRORS, hwarc 653 drivers/staging/uwb/hwa-rc.c uwb_rc_neh_error(hwarc->uwb_rc, result); hwarc 654 drivers/staging/uwb/hwa-rc.c uwb_rc_reset_all(hwarc->uwb_rc); hwarc 658 drivers/staging/uwb/hwa-rc.c static void hwarc_init(struct hwarc *hwarc) hwarc 660 drivers/staging/uwb/hwa-rc.c edc_init(&hwarc->neep_edc); hwarc 673 drivers/staging/uwb/hwa-rc.c struct hwarc *hwarc = rc->priv; hwarc 674 drivers/staging/uwb/hwa-rc.c struct usb_interface *iface = hwarc->usb_iface; hwarc 681 drivers/staging/uwb/hwa-rc.c hwarc->rd_buffer = (void *) __get_free_page(GFP_KERNEL); hwarc 682 drivers/staging/uwb/hwa-rc.c if (hwarc->rd_buffer == NULL) { hwarc 686 drivers/staging/uwb/hwa-rc.c hwarc->neep_urb = usb_alloc_urb(0, GFP_KERNEL); hwarc 687 drivers/staging/uwb/hwa-rc.c if (hwarc->neep_urb == NULL) hwarc 689 drivers/staging/uwb/hwa-rc.c usb_fill_int_urb(hwarc->neep_urb, usb_dev, hwarc 691 drivers/staging/uwb/hwa-rc.c hwarc->rd_buffer, PAGE_SIZE, hwarc 692 drivers/staging/uwb/hwa-rc.c hwarc_neep_cb, hwarc, epd->bInterval); hwarc 693 drivers/staging/uwb/hwa-rc.c result = usb_submit_urb(hwarc->neep_urb, GFP_ATOMIC); hwarc 701 drivers/staging/uwb/hwa-rc.c usb_free_urb(hwarc->neep_urb); hwarc 702 drivers/staging/uwb/hwa-rc.c hwarc->neep_urb = NULL; hwarc 704 drivers/staging/uwb/hwa-rc.c free_page((unsigned long)hwarc->rd_buffer); hwarc 705 drivers/staging/uwb/hwa-rc.c hwarc->rd_buffer = NULL; hwarc 714 drivers/staging/uwb/hwa-rc.c struct hwarc *hwarc = rc->priv; hwarc 716 drivers/staging/uwb/hwa-rc.c usb_kill_urb(hwarc->neep_urb); hwarc 717 drivers/staging/uwb/hwa-rc.c usb_free_urb(hwarc->neep_urb); hwarc 718 drivers/staging/uwb/hwa-rc.c hwarc->neep_urb = NULL; hwarc 720 drivers/staging/uwb/hwa-rc.c free_page((unsigned long)hwarc->rd_buffer); hwarc 721 drivers/staging/uwb/hwa-rc.c hwarc->rd_buffer = NULL; hwarc 737 drivers/staging/uwb/hwa-rc.c struct hwarc *hwarc = rc->priv; hwarc 740 drivers/staging/uwb/hwa-rc.c struct usb_device *usb_dev = hwarc->usb_dev; hwarc 806 drivers/staging/uwb/hwa-rc.c struct hwarc *hwarc; hwarc 820 drivers/staging/uwb/hwa-rc.c hwarc = kzalloc(sizeof(*hwarc), GFP_KERNEL); hwarc 821 drivers/staging/uwb/hwa-rc.c if (hwarc == NULL) { hwarc 825 drivers/staging/uwb/hwa-rc.c hwarc_init(hwarc); hwarc 826 drivers/staging/uwb/hwa-rc.c hwarc->usb_dev = usb_get_dev(interface_to_usbdev(iface)); hwarc 827 drivers/staging/uwb/hwa-rc.c hwarc->usb_iface = usb_get_intf(iface); hwarc 828 drivers/staging/uwb/hwa-rc.c hwarc->uwb_rc = uwb_rc; hwarc 843 drivers/staging/uwb/hwa-rc.c result = uwb_rc_add(uwb_rc, dev, hwarc); hwarc 851 drivers/staging/uwb/hwa-rc.c usb_set_intfdata(iface, hwarc); hwarc 858 drivers/staging/uwb/hwa-rc.c usb_put_dev(hwarc->usb_dev); hwarc 859 drivers/staging/uwb/hwa-rc.c kfree(hwarc); hwarc 868 drivers/staging/uwb/hwa-rc.c struct hwarc *hwarc = usb_get_intfdata(iface); hwarc 869 drivers/staging/uwb/hwa-rc.c struct uwb_rc *uwb_rc = hwarc->uwb_rc; hwarc 871 drivers/staging/uwb/hwa-rc.c usb_set_intfdata(hwarc->usb_iface, NULL); hwarc 873 drivers/staging/uwb/hwa-rc.c usb_put_intf(hwarc->usb_iface); hwarc 874 drivers/staging/uwb/hwa-rc.c usb_put_dev(hwarc->usb_dev); hwarc 875 drivers/staging/uwb/hwa-rc.c kfree(hwarc); hwarc 881 drivers/staging/uwb/hwa-rc.c struct hwarc *hwarc = usb_get_intfdata(iface); hwarc 882 drivers/staging/uwb/hwa-rc.c struct uwb_rc *uwb_rc = hwarc->uwb_rc; hwarc 890 drivers/staging/uwb/hwa-rc.c struct hwarc *hwarc = usb_get_intfdata(iface); hwarc 891 drivers/staging/uwb/hwa-rc.c struct uwb_rc *uwb_rc = hwarc->uwb_rc;