Lines Matching defs:halt
699 * Halts, halts and wedges, or clears halt for an endpoint.
703 static int gr_ep_halt_wedge(struct gr_ep *ep, int halt, int wedge, int fromhost)
714 /* Never actually halt ep0, and therefore never clear halt for ep0 */
716 if (halt && !fromhost) {
717 /* ep0 halt from gadget - generate protocol stall */
725 dev_dbg(ep->dev->dev, "EP: %s halt %s\n",
726 (halt ? (wedge ? "wedge" : "set") : "clear"), ep->ep.name);
729 if (halt) {
1058 /* Restore from ep0 halt */
1744 static int gr_set_halt_wedge(struct usb_ep *_ep, int halt, int wedge)
1756 if (halt && ep->is_in && !list_empty(&ep->queue)) {
1761 ret = gr_ep_halt_wedge(ep, halt, wedge, 0);
1770 static int gr_set_halt(struct usb_ep *_ep, int halt)
1772 return gr_set_halt_wedge(_ep, halt, 0);