Lines Matching refs:ep
364 int ep; in snoop_urb() local
370 ep = usb_pipeendpoint(pipe); in snoop_urb()
378 userurb, ep, t, d, length); in snoop_urb()
382 userurb, ep, t, d, length, in snoop_urb()
388 ep, t, d, length, timeout_or_status); in snoop_urb()
392 ep, t, d, length, timeout_or_status); in snoop_urb()
689 static int findintfep(struct usb_device *dev, unsigned int ep) in findintfep() argument
696 if (ep & ~(USB_DIR_IN|0xf)) in findintfep()
706 if (endpt->bEndpointAddress == ep) in findintfep()
774 unsigned char ep) in ep_to_host_endpoint() argument
776 if (ep & USB_ENDPOINT_DIR_MASK) in ep_to_host_endpoint()
777 return dev->ep_in[ep & USB_ENDPOINT_NUMBER_MASK]; in ep_to_host_endpoint()
779 return dev->ep_out[ep & USB_ENDPOINT_NUMBER_MASK]; in ep_to_host_endpoint()
792 unsigned char ep; in parse_usbdevfs_streams() local
811 if (get_user(ep, &streams->eps[i])) { in parse_usbdevfs_streams()
815 eps[i] = ep_to_host_endpoint(ps->dev, ep); in parse_usbdevfs_streams()
822 ifnum = findintfep(ps->dev, ep); in parse_usbdevfs_streams()
1067 ret = findintfep(ps->dev, bulk.ep); in proc_bulk()
1073 if (bulk.ep & USB_DIR_IN) in proc_bulk()
1074 pipe = usb_rcvbulkpipe(dev, bulk.ep & 0x7f); in proc_bulk()
1076 pipe = usb_sndbulkpipe(dev, bulk.ep & 0x7f); in proc_bulk()
1077 if (!usb_maxpacket(dev, pipe, !(bulk.ep & USB_DIR_IN))) in proc_bulk()
1090 if (bulk.ep & 0x80) { in proc_bulk()
1133 struct usb_host_endpoint *ep; in check_reset_of_active_ep() local
1136 ep = eps[epnum & 0x0f]; in check_reset_of_active_ep()
1137 if (ep && !list_empty(&ep->urb_list)) in check_reset_of_active_ep()
1145 unsigned int ep; in proc_resetep() local
1148 if (get_user(ep, (unsigned int __user *)arg)) in proc_resetep()
1150 ret = findintfep(ps->dev, ep); in proc_resetep()
1156 check_reset_of_active_ep(ps->dev, ep, "RESETEP"); in proc_resetep()
1157 usb_reset_endpoint(ps->dev, ep); in proc_resetep()
1163 unsigned int ep; in proc_clearhalt() local
1167 if (get_user(ep, (unsigned int __user *)arg)) in proc_clearhalt()
1169 ret = findintfep(ps->dev, ep); in proc_clearhalt()
1175 check_reset_of_active_ep(ps->dev, ep, "CLEAR_HALT"); in proc_clearhalt()
1176 if (ep & USB_DIR_IN) in proc_clearhalt()
1177 pipe = usb_rcvbulkpipe(ps->dev, ep & 0x7f); in proc_clearhalt()
1179 pipe = usb_sndbulkpipe(ps->dev, ep & 0x7f); in proc_clearhalt()
1289 struct usb_host_endpoint *ep; in proc_do_submiturb() local
1316 ep = ep_to_host_endpoint(ps->dev, uurb->endpoint); in proc_do_submiturb()
1317 if (!ep) in proc_do_submiturb()
1324 if (!usb_endpoint_xfer_control(&ep->desc)) in proc_do_submiturb()
1364 switch (usb_endpoint_type(&ep->desc)) { in proc_do_submiturb()
1376 if (ep->streams) in proc_do_submiturb()
1381 if (!usb_endpoint_xfer_int(&ep->desc)) in proc_do_submiturb()
1391 if (!usb_endpoint_xfer_isoc(&ep->desc)) in proc_do_submiturb()
1531 as->urb->interval = 1 << min(15, ep->desc.bInterval - 1); in proc_do_submiturb()
1533 as->urb->interval = ep->desc.bInterval; in proc_do_submiturb()
1562 if (usb_endpoint_xfer_bulk(&ep->desc)) { in proc_do_submiturb()
1569 as->bulk_addr = usb_endpoint_num(&ep->desc) | in proc_do_submiturb()
1570 ((ep->desc.bEndpointAddress & USB_ENDPOINT_DIR_MASK) in proc_do_submiturb()
1664 if (usb_endpoint_xfer_isoc(&urb->ep->desc)) { in processcompl()
1757 if (get_user(n, &p32->ep) || put_user(n, &p->ep) || in proc_bulk_compat()
1833 if (usb_endpoint_xfer_isoc(&urb->ep->desc)) { in processcompl_compat()