Lines Matching refs:uep
248 struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); in usbhsh_pipe_attach() local
266 if (usbhsh_uep_to_pipe(uep)) { in usbhsh_pipe_attach()
296 usbhsh_uep_to_pipe(uep) = pipe; in usbhsh_pipe_attach()
297 usbhsh_pipe_to_uep(pipe) = uep; in usbhsh_pipe_attach()
316 uep->counter++; in usbhsh_pipe_attach()
325 struct usbhsh_ep *uep) in usbhsh_pipe_detach() argument
332 if (unlikely(!uep)) { in usbhsh_pipe_detach()
340 pipe = usbhsh_uep_to_pipe(uep); in usbhsh_pipe_detach()
344 } else if (1 == uep->counter--) { /* last user */ in usbhsh_pipe_detach()
345 struct usb_host_endpoint *ep = usbhsh_uep_to_ep(uep); in usbhsh_pipe_detach()
346 struct usbhsh_device *udev = usbhsh_uep_to_udev(uep); in usbhsh_pipe_detach()
349 usbhsh_uep_to_pipe(uep) = NULL; in usbhsh_pipe_detach()
372 struct usbhsh_ep *uep; in usbhsh_endpoint_attach() local
377 uep = kzalloc(sizeof(struct usbhsh_ep), mem_flags); in usbhsh_endpoint_attach()
378 if (!uep) in usbhsh_endpoint_attach()
387 uep->counter = 0; in usbhsh_endpoint_attach()
388 INIT_LIST_HEAD(&uep->ep_list); in usbhsh_endpoint_attach()
389 list_add_tail(&uep->ep_list, &udev->ep_list_head); in usbhsh_endpoint_attach()
391 usbhsh_uep_to_udev(uep) = udev; in usbhsh_endpoint_attach()
392 usbhsh_uep_to_ep(uep) = ep; in usbhsh_endpoint_attach()
393 usbhsh_ep_to_uep(ep) = uep; in usbhsh_endpoint_attach()
410 struct usbhsh_ep *uep = usbhsh_ep_to_uep(ep); in usbhsh_endpoint_detach() local
413 if (!uep) in usbhsh_endpoint_detach()
417 usbhsh_device_number(hpriv, usbhsh_uep_to_udev(uep)), in usbhsh_endpoint_detach()
420 if (usbhsh_uep_to_pipe(uep)) in usbhsh_endpoint_detach()
421 usbhsh_pipe_detach(hpriv, uep); in usbhsh_endpoint_detach()
427 list_del_init(&uep->ep_list); in usbhsh_endpoint_detach()
429 usbhsh_uep_to_udev(uep) = NULL; in usbhsh_endpoint_detach()
430 usbhsh_uep_to_ep(uep) = NULL; in usbhsh_endpoint_detach()
436 kfree(uep); in usbhsh_endpoint_detach()
442 struct usbhsh_ep *uep, *next; in usbhsh_endpoint_detach_all() local
444 list_for_each_entry_safe(uep, next, &udev->ep_list_head, ep_list) in usbhsh_endpoint_detach_all()
445 usbhsh_endpoint_detach(hpriv, usbhsh_uep_to_ep(uep)); in usbhsh_endpoint_detach_all()
664 struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); in usbhsh_queue_push() local
665 struct usbhs_pipe *pipe = usbhsh_uep_to_pipe(uep); in usbhsh_queue_push()
870 struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); in usbhsh_dcp_queue_push() local
871 struct usbhs_pipe *pipe = usbhsh_uep_to_pipe(uep); in usbhsh_dcp_queue_push()
1050 struct usbhsh_ep *uep = usbhsh_ep_to_uep(ep); in usbhsh_endpoint_disable() local
1058 if (!uep) in usbhsh_endpoint_disable()
1061 udev = usbhsh_uep_to_udev(uep); in usbhsh_endpoint_disable()