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()
1091 if (bulk.ep & 0x80) { in proc_bulk()
1134 struct usb_host_endpoint *ep; in check_reset_of_active_ep() local
1137 ep = eps[epnum & 0x0f]; in check_reset_of_active_ep()
1138 if (ep && !list_empty(&ep->urb_list)) in check_reset_of_active_ep()
1146 unsigned int ep; in proc_resetep() local
1149 if (get_user(ep, (unsigned int __user *)arg)) in proc_resetep()
1151 ret = findintfep(ps->dev, ep); in proc_resetep()
1157 check_reset_of_active_ep(ps->dev, ep, "RESETEP"); in proc_resetep()
1158 usb_reset_endpoint(ps->dev, ep); in proc_resetep()
1164 unsigned int ep; in proc_clearhalt() local
1168 if (get_user(ep, (unsigned int __user *)arg)) in proc_clearhalt()
1170 ret = findintfep(ps->dev, ep); in proc_clearhalt()
1176 check_reset_of_active_ep(ps->dev, ep, "CLEAR_HALT"); in proc_clearhalt()
1177 if (ep & USB_DIR_IN) in proc_clearhalt()
1178 pipe = usb_rcvbulkpipe(ps->dev, ep & 0x7f); in proc_clearhalt()
1180 pipe = usb_sndbulkpipe(ps->dev, ep & 0x7f); in proc_clearhalt()
1291 struct usb_host_endpoint *ep; in proc_do_submiturb() local
1318 ep = ep_to_host_endpoint(ps->dev, uurb->endpoint); in proc_do_submiturb()
1319 if (!ep) in proc_do_submiturb()
1326 if (!usb_endpoint_xfer_control(&ep->desc)) in proc_do_submiturb()
1366 switch (usb_endpoint_type(&ep->desc)) { in proc_do_submiturb()
1378 if (ep->streams) in proc_do_submiturb()
1383 if (!usb_endpoint_xfer_int(&ep->desc)) in proc_do_submiturb()
1393 if (!usb_endpoint_xfer_isoc(&ep->desc)) in proc_do_submiturb()
1534 as->urb->interval = 1 << min(15, ep->desc.bInterval - 1); in proc_do_submiturb()
1536 as->urb->interval = ep->desc.bInterval; in proc_do_submiturb()
1565 if (usb_endpoint_xfer_bulk(&ep->desc)) { in proc_do_submiturb()
1572 as->bulk_addr = usb_endpoint_num(&ep->desc) | in proc_do_submiturb()
1573 ((ep->desc.bEndpointAddress & USB_ENDPOINT_DIR_MASK) in proc_do_submiturb()
1667 if (usb_endpoint_xfer_isoc(&urb->ep->desc)) { in processcompl()
1760 if (get_user(n, &p32->ep) || put_user(n, &p->ep) || in proc_bulk_compat()
1836 if (usb_endpoint_xfer_isoc(&urb->ep->desc)) { in processcompl_compat()