Lines Matching refs:ep0

951 	endpoint_t *ep0 = &dev->ep[0];  in process_ep0_receive()  local
954 spin_lock(&ep0->lock); in process_ep0_receive()
957 pkt = receive_packet_complete(ep0); in process_ep0_receive()
960 spin_unlock(&ep0->lock); in process_ep0_receive()
965 unlink_head(&ep0->outlist); in process_ep0_receive()
998 au_writel(0, ep0->reg->write_fifo); in process_ep0_receive()
1015 spin_unlock(&ep0->lock); in process_ep0_receive()
1063 endpoint_t *ep0 = &dev->ep[0]; in dma_done_ep0_intr() local
1066 spin_lock(&ep0->lock); in dma_done_ep0_intr()
1067 cs0 = au_readl(ep0->reg->ctrl_stat); in dma_done_ep0_intr()
1070 if ((buff_done = get_dma_buffer_done(ep0->indma)) != 0) { in dma_done_ep0_intr()
1075 clear_dma_done0(ep0->indma); in dma_done_ep0_intr()
1077 clear_dma_done1(ep0->indma); in dma_done_ep0_intr()
1079 pkt = send_packet_complete(ep0); in dma_done_ep0_intr()
1089 if ((buff_done = get_dma_buffer_done(ep0->outdma)) != 0) { in dma_done_ep0_intr()
1092 clear_dma_done0(ep0->outdma); in dma_done_ep0_intr()
1094 clear_dma_done1(ep0->outdma); in dma_done_ep0_intr()
1099 spin_unlock(&ep0->lock); in dma_done_ep0_intr()
1323 endpoint_t *ep0; in usbdev_init() local
1360 ep0 = &usbdev.ep[0]; in usbdev_init()
1361 ep0->active = 1; in usbdev_init()
1362 ep0->type = CONTROL_EP; in usbdev_init()
1363 ep0->max_pkt_size = USBDEV_EP0_MAX_PACKET_SIZE; in usbdev_init()
1364 spin_lock_init(&ep0->lock); in usbdev_init()
1365 ep0->desc = NULL; // ep0 has no descriptor in usbdev_init()
1366 ep0->address = 0; in usbdev_init()
1367 ep0->direction = 0; in usbdev_init()
1368 ep0->reg = &ep_reg[0]; in usbdev_init()
1490 if ((ep0->indma = request_au1000_dma(ep_dma_id[0].id, in usbdev_init()
1499 if ((ep0->outdma = request_au1000_dma(ep_dma_id[1].id, in usbdev_init()
1508 endpoint_flush(ep0); in usbdev_init()
1510 kickstart_receive_packet(ep0); in usbdev_init()