Lines Matching full:ep0

383 /* Setup the first bd for ep0 transfer */
400 (req_len % bdc->gadget.ep0->maxpacket == 0)) { in setup_first_bd_ep0()
403 bdc->gadget.ep0->maxpacket); in setup_first_bd_ep0()
416 "Unknown ep0 state for queueing bd ep0_state:%s\n", in setup_first_bd_ep0()
455 /* format of first bd for ep0 is different than other */ in setup_bd_list_xfr()
587 /* ep0 memory is not freed, but reused on next connect sr */ in bdc_ep_disable()
617 /* only for ep0: config ep is called for ep0 from connect event */ in bdc_ep_enable()
635 /* EP0 related code */
655 /* Queue xfr on ep0 */
915 /* ep0 is not in this gadget list */ in bdc_free_ep()
1058 /* EP0 setup related packet handlers */
1087 /* Stall ep0 */
1278 epnum = 1; /*EP0*/ in ep0_handle_feature()
1281 * If CLEAR_FEATURE on ep0 then don't do anything as the stall in ep0_handle_feature()
1282 * condition on ep0 has already been cleared when SETUP packet in ep0_handle_feature()
1286 dev_dbg(bdc->dev, "ep0 stall already cleared\n"); in ep0_handle_feature()
1353 epnum = 1; /* EP0 */ in ep0_handle_status()
1509 /* EP0: Data stage started */
1517 /* If ep0 was stalled, the clear it first */ in bdc_xsf_ep0_data_start()
1531 * The ep0 state will remain WAIT_FOR_DATA_START till in bdc_xsf_ep0_data_start()
1532 * we received ep_queue on ep0 in bdc_xsf_ep0_data_start()
1547 /* EP0: status stage started */
1609 /* Helper function to update ep0 upon SR with xsf_succ or xsf_short */
1682 "ep0 related packets on non ep0 endpoint"); in bdc_sr_xsf()
1690 dev_dbg(bdc->dev, "Babble on ep0 zlp_need:%d\n", in bdc_sr_xsf()
1878 /* Sanity check, upper layer will not send enable for ep0 */ in bdc_gadget_ep_enable()
1911 /* Upper layer will not call this for ep0, but do a sanity check */ in bdc_gadget_ep_disable()
1913 dev_warn(bdc->dev, "%s called for ep0\n", __func__); in bdc_gadget_ep_disable()
1969 bdc->gadget.ep0 = &ep->usb_ep; in init_ep()
2007 /* init ep0 */ in bdc_init_ep()
2010 dev_err(bdc->dev, "init ep ep0 fail %d\n", ret); in bdc_init_ep()