Lines Matching refs:whc
46 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_start() local
58 whc->base + WUSBINTR); in whc_start()
62 ret = whc_set_cluster_id(whc, bcid); in whc_start()
68 whc_write_wusbcmd(whc, WUSBCMD_RUN, WUSBCMD_RUN); in whc_start()
90 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_stop() local
95 le_writel(0, whc->base + WUSBINTR); in whc_stop()
96 whc_write_wusbcmd(whc, WUSBCMD_RUN, 0); in whc_stop()
97 whci_wait_for(&whc->umc->dev, whc->base + WUSBSTS, in whc_stop()
120 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_urb_enqueue() local
125 ret = pzl_urb_enqueue(whc, urb, mem_flags); in whc_urb_enqueue()
128 dev_err(&whc->umc->dev, "isochronous transfers unsupported\n"); in whc_urb_enqueue()
134 ret = asl_urb_enqueue(whc, urb, mem_flags); in whc_urb_enqueue()
147 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_urb_dequeue() local
152 ret = pzl_urb_dequeue(whc, urb, status); in whc_urb_dequeue()
160 ret = asl_urb_dequeue(whc, urb, status); in whc_urb_dequeue()
175 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_endpoint_disable() local
183 asl_qset_delete(whc, qset); in whc_endpoint_disable()
185 pzl_qset_delete(whc, qset); in whc_endpoint_disable()
193 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_endpoint_reset() local
197 spin_lock_irqsave(&whc->lock, flags); in whc_endpoint_reset()
206 queue_work(whc->workqueue, &whc->async_work); in whc_endpoint_reset()
208 queue_work(whc->workqueue, &whc->periodic_work); in whc_endpoint_reset()
211 spin_unlock_irqrestore(&whc->lock, flags); in whc_endpoint_reset()
218 .hcd_priv_size = sizeof(struct whc) - sizeof(struct usb_hcd),
243 struct whc *whc = NULL; in whc_probe() local
256 whc = wusbhc_to_whc(wusbhc); in whc_probe()
257 whc->umc = umc; in whc_probe()
259 ret = whc_init(whc); in whc_probe()
271 if (whc->n_devices > USB_MAXCHILDREN) { in whc_probe()
273 whc->n_devices); in whc_probe()
276 wusbhc->ports_max = whc->n_devices; in whc_probe()
277 wusbhc->mmcies_max = whc->n_mmc_ies; in whc_probe()
292 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()
326 struct whc *whc = wusbhc_to_whc(wusbhc); in whc_remove() local
329 whc_dbg_clean_up(whc); in whc_remove()
334 whc_clean_up(whc); in whc_remove()