Lines Matching refs:whc
47 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_start() local
59 whc->base + WUSBINTR); in whc_start()
63 ret = whc_set_cluster_id(whc, bcid); in whc_start()
69 whc_write_wusbcmd(whc, WUSBCMD_RUN, WUSBCMD_RUN); in whc_start()
91 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_stop() local
96 le_writel(0, whc->base + WUSBINTR); in whc_stop()
97 whc_write_wusbcmd(whc, WUSBCMD_RUN, 0); in whc_stop()
98 whci_wait_for(&whc->umc->dev, whc->base + WUSBSTS, in whc_stop()
121 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_urb_enqueue() local
126 ret = pzl_urb_enqueue(whc, urb, mem_flags); in whc_urb_enqueue()
129 dev_err(&whc->umc->dev, "isochronous transfers unsupported\n"); in whc_urb_enqueue()
135 ret = asl_urb_enqueue(whc, urb, mem_flags); in whc_urb_enqueue()
148 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_urb_dequeue() local
153 ret = pzl_urb_dequeue(whc, urb, status); in whc_urb_dequeue()
161 ret = asl_urb_dequeue(whc, urb, status); in whc_urb_dequeue()
176 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_endpoint_disable() local
184 asl_qset_delete(whc, qset); in whc_endpoint_disable()
186 pzl_qset_delete(whc, qset); in whc_endpoint_disable()
194 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_endpoint_reset() local
198 spin_lock_irqsave(&whc->lock, flags); in whc_endpoint_reset()
207 queue_work(whc->workqueue, &whc->async_work); in whc_endpoint_reset()
209 queue_work(whc->workqueue, &whc->periodic_work); in whc_endpoint_reset()
212 spin_unlock_irqrestore(&whc->lock, flags); in whc_endpoint_reset()
219 .hcd_priv_size = sizeof(struct whc) - sizeof(struct usb_hcd),
242 struct whc *whc; in whc_probe() local
255 whc = wusbhc_to_whc(wusbhc); in whc_probe()
256 whc->umc = umc; in whc_probe()
258 ret = whc_init(whc); in whc_probe()
270 if (whc->n_devices > USB_MAXCHILDREN) { in whc_probe()
272 whc->n_devices); in whc_probe()
275 wusbhc->ports_max = whc->n_devices; in whc_probe()
276 wusbhc->mmcies_max = whc->n_mmc_ies; in whc_probe()
291 ret = usb_add_hcd(usb_hcd, whc->umc->irq, IRQF_SHARED); in whc_probe()
304 whc_dbg_init(whc); in whc_probe()
315 whc_clean_up(whc); in whc_probe()
325 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_remove() local
328 whc_dbg_clean_up(whc); in whc_remove()
333 whc_clean_up(whc); in whc_remove()