Lines Matching refs:uep
261 struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); in usbhsh_pipe_attach() local
279 if (usbhsh_uep_to_pipe(uep)) { in usbhsh_pipe_attach()
309 usbhsh_uep_to_pipe(uep) = pipe; in usbhsh_pipe_attach()
310 usbhsh_pipe_to_uep(pipe) = uep; in usbhsh_pipe_attach()
329 uep->counter++; in usbhsh_pipe_attach()
338 struct usbhsh_ep *uep) in usbhsh_pipe_detach() argument
345 if (unlikely(!uep)) { in usbhsh_pipe_detach()
353 pipe = usbhsh_uep_to_pipe(uep); in usbhsh_pipe_detach()
357 } else if (1 == uep->counter--) { /* last user */ in usbhsh_pipe_detach()
358 struct usb_host_endpoint *ep = usbhsh_uep_to_ep(uep); in usbhsh_pipe_detach()
359 struct usbhsh_device *udev = usbhsh_uep_to_udev(uep); in usbhsh_pipe_detach()
362 usbhsh_uep_to_pipe(uep) = NULL; in usbhsh_pipe_detach()
385 struct usbhsh_ep *uep; in usbhsh_endpoint_attach() local
390 uep = kzalloc(sizeof(struct usbhsh_ep), mem_flags); in usbhsh_endpoint_attach()
391 if (!uep) { in usbhsh_endpoint_attach()
402 uep->counter = 0; in usbhsh_endpoint_attach()
403 INIT_LIST_HEAD(&uep->ep_list); in usbhsh_endpoint_attach()
404 list_add_tail(&uep->ep_list, &udev->ep_list_head); in usbhsh_endpoint_attach()
406 usbhsh_uep_to_udev(uep) = udev; in usbhsh_endpoint_attach()
407 usbhsh_uep_to_ep(uep) = ep; in usbhsh_endpoint_attach()
408 usbhsh_ep_to_uep(ep) = uep; in usbhsh_endpoint_attach()
425 struct usbhsh_ep *uep = usbhsh_ep_to_uep(ep); in usbhsh_endpoint_detach() local
428 if (!uep) in usbhsh_endpoint_detach()
432 usbhsh_device_number(hpriv, usbhsh_uep_to_udev(uep)), in usbhsh_endpoint_detach()
435 if (usbhsh_uep_to_pipe(uep)) in usbhsh_endpoint_detach()
436 usbhsh_pipe_detach(hpriv, uep); in usbhsh_endpoint_detach()
442 list_del_init(&uep->ep_list); in usbhsh_endpoint_detach()
444 usbhsh_uep_to_udev(uep) = NULL; in usbhsh_endpoint_detach()
445 usbhsh_uep_to_ep(uep) = NULL; in usbhsh_endpoint_detach()
451 kfree(uep); in usbhsh_endpoint_detach()
457 struct usbhsh_ep *uep, *next; in usbhsh_endpoint_detach_all() local
459 list_for_each_entry_safe(uep, next, &udev->ep_list_head, ep_list) in usbhsh_endpoint_detach_all()
460 usbhsh_endpoint_detach(hpriv, usbhsh_uep_to_ep(uep)); in usbhsh_endpoint_detach_all()
679 struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); in usbhsh_queue_push() local
680 struct usbhs_pipe *pipe = usbhsh_uep_to_pipe(uep); in usbhsh_queue_push()
885 struct usbhsh_ep *uep = usbhsh_ep_to_uep(urb->ep); in usbhsh_dcp_queue_push() local
886 struct usbhs_pipe *pipe = usbhsh_uep_to_pipe(uep); in usbhsh_dcp_queue_push()
1064 struct usbhsh_ep *uep = usbhsh_ep_to_uep(ep); in usbhsh_endpoint_disable() local
1072 if (!uep) in usbhsh_endpoint_disable()
1075 udev = usbhsh_uep_to_udev(uep); in usbhsh_endpoint_disable()