Lines Matching full:ep0
3 * mtu3_gadget_ep0.c - MediaTek USB3 DRD peripheral driver ep0 handling
17 /* ep0 is always mtu3->in_eps[0] */
18 #define next_ep0_request(mtu) next_request((mtu)->ep0)
59 mtu3_req_complete(mtu->ep0, req, 0); in ep0_req_giveback()
123 * because the length of test packet is less than max packet of HS ep0, in ep0_load_test_packet()
126 ep0_write_fifo(mtu->ep0, mtu3_test_packet, sizeof(mtu3_test_packet)); in ep0_load_test_packet()
152 dev_dbg(mtu->dev, "ep0: %s STALL, ep0_state: %s\n", in ep0_stall_set()
196 mtu->ep0_req.mep = mtu->ep0; in ep0_set_sel()
200 ret = ep0_queue(mtu->ep0, &mtu->ep0_req); in ep0_set_sel()
265 mtu->ep0_req.mep = mtu->ep0; in ep0_get_status()
269 ret = ep0_queue(mtu->ep0, &mtu->ep0_req); in ep0_get_status()
535 ep0_read_fifo(mtu->ep0, buf, count); in ep0_rx_state()
539 maxp = mtu->g.ep0->maxpacket; in ep0_rx_state()
542 dev_dbg(mtu->dev, "ep0 state: %s\n", in ep0_rx_state()
577 maxp = mtu->g.ep0->maxpacket; in ep0_tx_state()
584 ep0_write_fifo(mtu->ep0, src, count); in ep0_tx_state()
612 ep0_read_fifo(mtu->ep0, (u8 *)setup, count); in ep0_read_setup()
664 ep0_stall_set(mtu->ep0, true, in ep0_handle_setup()
709 /* only handle ep0's */ in mtu3_ep0_isr()
723 ep0_stall_set(mtu->ep0, false, 0); in mtu3_ep0_isr()
772 ep0_stall_set(mtu->ep0, true, 0); in mtu3_ep0_isr()
811 dev_err(mtu->dev, "%s, error in ep0 state %s\n", __func__, in ep0_queue()
895 ep0_stall_set(mtu->ep0, true, 0); in mtu3_ep0_halt()
898 dev_dbg(mtu->dev, "ep0 can't halt in state %s\n", in mtu3_ep0_halt()