Lines Matching refs:ep
112 unsigned ep; in get_endpoints() local
126 for (ep = 0; ep < alt->desc.bNumEndpoints; ep++) { in get_endpoints()
129 e = alt->endpoint + ep; in get_endpoints()
308 struct usb_host_endpoint *ep; in get_maxpacket() local
310 ep = usb_pipe_endpoint(udev, pipe); in get_maxpacket()
311 return le16_to_cpup(&ep->desc.wMaxPacketSize); in get_maxpacket()
1575 static int verify_not_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) in verify_not_halted() argument
1581 retval = usb_get_status(urb->dev, USB_RECIP_ENDPOINT, ep, &status); in verify_not_halted()
1584 ep, retval); in verify_not_halted()
1588 ERROR(tdev, "ep %02x bogus status: %04x != 0\n", ep, status); in verify_not_halted()
1597 static int verify_halted(struct usbtest_dev *tdev, int ep, struct urb *urb) in verify_halted() argument
1603 retval = usb_get_status(urb->dev, USB_RECIP_ENDPOINT, ep, &status); in verify_halted()
1606 ep, retval); in verify_halted()
1610 ERROR(tdev, "ep %02x bogus status: %04x != 1\n", ep, status); in verify_halted()
1622 static int test_halt(struct usbtest_dev *tdev, int ep, struct urb *urb) in test_halt() argument
1627 retval = verify_not_halted(tdev, ep, urb); in test_halt()
1634 USB_ENDPOINT_HALT, ep, in test_halt()
1637 ERROR(tdev, "ep %02x couldn't set halt, %d\n", ep, retval); in test_halt()
1640 retval = verify_halted(tdev, ep, urb); in test_halt()
1648 ep, ret); in test_halt()
1656 ERROR(tdev, "ep %02x couldn't clear halt, %d\n", ep, retval); in test_halt()
1659 retval = verify_not_halted(tdev, ep, urb); in test_halt()
1670 int ep; in halt_simple() local
1683 ep = usb_pipeendpoint(dev->in_pipe) | USB_DIR_IN; in halt_simple()
1685 retval = test_halt(dev, ep, urb); in halt_simple()
1691 ep = usb_pipeendpoint(dev->out_pipe); in halt_simple()
1693 retval = test_halt(dev, ep, urb); in halt_simple()