Lines Matching refs:host

65 	struct musb *host = hcd->hcd_priv;  in submit_urb()  local
79 host->isr(0, host); in submit_urb()
89 static int _musb_submit_control_msg(struct musb_host_data *host, in _musb_submit_control_msg() argument
93 construct_urb(&host->urb, &host->hep, dev, USB_ENDPOINT_XFER_CONTROL, in _musb_submit_control_msg()
98 dev->speed = host->host_speed; in _musb_submit_control_msg()
100 return submit_urb(&host->hcd, &host->urb); in _musb_submit_control_msg()
103 static int _musb_submit_bulk_msg(struct musb_host_data *host, in _musb_submit_bulk_msg() argument
106 construct_urb(&host->urb, &host->hep, dev, USB_ENDPOINT_XFER_BULK, in _musb_submit_bulk_msg()
108 return submit_urb(&host->hcd, &host->urb); in _musb_submit_bulk_msg()
111 static int _musb_submit_int_msg(struct musb_host_data *host, in _musb_submit_int_msg() argument
115 construct_urb(&host->urb, &host->hep, dev, USB_ENDPOINT_XFER_INT, pipe, in _musb_submit_int_msg()
117 return submit_urb(&host->hcd, &host->urb); in _musb_submit_int_msg()
120 static struct int_queue *_musb_create_int_queue(struct musb_host_data *host, in _musb_create_int_queue() argument
144 ret = musb_urb_enqueue(&host->hcd, &queue->urb, 0); in _musb_create_int_queue()
155 static int _musb_destroy_int_queue(struct musb_host_data *host, in _musb_destroy_int_queue() argument
162 musb_urb_dequeue(&host->hcd, &queue->urb, -ETIME); in _musb_destroy_int_queue()
169 static void *_musb_poll_int_queue(struct musb_host_data *host, in _musb_poll_int_queue() argument
175 host->host->isr(0, host->host); in _musb_poll_int_queue()
183 static int _musb_reset_root_port(struct musb_host_data *host, in _musb_reset_root_port() argument
186 void *mbase = host->host->mregs; in _musb_reset_root_port()
194 if (host->host->ops->pre_root_reset_end) in _musb_reset_root_port()
195 host->host->ops->pre_root_reset_end(host->host); in _musb_reset_root_port()
200 if (host->host->ops->post_root_reset_end) in _musb_reset_root_port()
201 host->host->ops->post_root_reset_end(host->host); in _musb_reset_root_port()
203 host->host->isr(0, host->host); in _musb_reset_root_port()
204 host->host_speed = (musb_readb(mbase, MUSB_POWER) & MUSB_POWER_HSMODE) ? in _musb_reset_root_port()
208 mdelay((host->host_speed == USB_SPEED_LOW) ? 200 : 50); in _musb_reset_root_port()
213 int musb_lowlevel_init(struct musb_host_data *host) in musb_lowlevel_init() argument
220 if (!host->host) { in musb_lowlevel_init()
225 ret = musb_start(host->host); in musb_lowlevel_init()
229 mbase = host->host->mregs; in musb_lowlevel_init()
235 musb_stop(host->host); in musb_lowlevel_init()
239 _musb_reset_root_port(host, NULL); in musb_lowlevel_init()
240 host->host->is_active = 1; in musb_lowlevel_init()
241 host->hcd.hcd_priv = host->host; in musb_lowlevel_init()
249 if (!musb_host.host) { in usb_lowlevel_stop()
254 musb_stop(musb_host.host); in usb_lowlevel_stop()
310 struct musb_host_data *host = dev_get_priv(dev); in musb_submit_control_msg() local
311 return _musb_submit_control_msg(host, udev, pipe, buffer, length, setup); in musb_submit_control_msg()
317 struct musb_host_data *host = dev_get_priv(dev); in musb_submit_bulk_msg() local
318 return _musb_submit_bulk_msg(host, udev, pipe, buffer, length); in musb_submit_bulk_msg()
325 struct musb_host_data *host = dev_get_priv(dev); in musb_submit_int_msg() local
326 return _musb_submit_int_msg(host, udev, pipe, buffer, length, interval); in musb_submit_int_msg()
333 struct musb_host_data *host = dev_get_priv(dev); in musb_create_int_queue() local
334 return _musb_create_int_queue(host, udev, pipe, queuesize, elementsize, in musb_create_int_queue()
341 struct musb_host_data *host = dev_get_priv(dev); in musb_poll_int_queue() local
342 return _musb_poll_int_queue(host, udev, queue); in musb_poll_int_queue()
348 struct musb_host_data *host = dev_get_priv(dev); in musb_destroy_int_queue() local
349 return _musb_destroy_int_queue(host, udev, queue); in musb_destroy_int_queue()
354 struct musb_host_data *host = dev_get_priv(dev); in musb_reset_root_port() local
355 return _musb_reset_root_port(host, udev); in musb_reset_root_port()
430 musbp = &musb_host.host; in musb_register()