Home
last modified time | relevance | path

Searched refs:epctrl (Results 1 – 9 of 9) sorted by relevance

/openbmc/linux/drivers/usb/gadget/udc/
H A Dgr_udc.c126 u32 epctrl = gr_read32(&ep->regs->epctrl); in gr_seq_ep_show() local
688 u32 epctrl; in gr_control_stall() local
690 epctrl = gr_read32(&dev->epo[0].regs->epctrl); in gr_control_stall()
692 epctrl = gr_read32(&dev->epi[0].regs->epctrl); in gr_control_stall()
705 u32 epctrl; in gr_ep_halt_wedge() local
728 epctrl = gr_read32(&ep->regs->epctrl); in gr_ep_halt_wedge()
731 gr_write32(&ep->regs->epctrl, epctrl | GR_EPCTRL_EH); in gr_ep_halt_wedge()
1490 epctrl = gr_read32(&ep->regs->epctrl); in gr_ep_enable()
1587 gr_write32(&ep->regs->epctrl, epctrl); in gr_ep_enable()
1819 epctrl = gr_read32(&ep->regs->epctrl); in gr_fifo_flush()
[all …]
H A Dfsl_udc_core.c459 u32 epctrl; in dr_ep_get_stall() local
461 epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]); in dr_ep_get_stall()
463 return (epctrl & EPCTRL_TX_EP_STALL) ? 1 : 0; in dr_ep_get_stall()
465 return (epctrl & EPCTRL_RX_EP_STALL) ? 1 : 0; in dr_ep_get_stall()
631 u32 epctrl; in fsl_ep_disable() local
642 epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]); in fsl_ep_disable()
924 u32 epctrl; in fsl_ep_dequeue() local
937 epctrl &= ~EPCTRL_TX_ENABLE; in fsl_ep_dequeue()
939 epctrl &= ~EPCTRL_RX_ENABLE; in fsl_ep_dequeue()
982 epctrl |= EPCTRL_TX_ENABLE; in fsl_ep_dequeue()
[all …]
H A Datmel_usba_udc.c1434 u32 epctrl; in usba_control_irq() local
1438 epctrl = usba_ep_readl(ep, CTL); in usba_control_irq()
1441 ep->ep.name, ep->state, epstatus, epctrl); in usba_control_irq()
1448 if ((epctrl & USBA_TX_PK_RDY) && !(epstatus & USBA_TX_PK_RDY)) { in usba_control_irq()
1460 if ((epstatus & epctrl) & USBA_TX_COMPLETE) { in usba_control_irq()
1501 if ((epstatus & epctrl) & USBA_RX_BK_RDY) { in usba_control_irq()
1622 u32 epctrl; in usba_ep_irq() local
1625 epctrl = usba_ep_readl(ep, CTL); in usba_ep_irq()
1629 while ((epctrl & USBA_TX_PK_RDY) && !(epstatus & USBA_TX_PK_RDY)) { in usba_ep_irq()
1663 epctrl = usba_ep_readl(ep, CTL); in usba_ep_irq()
[all …]
H A Dgr_udc.h23 u32 epctrl; member
/openbmc/u-boot/drivers/usb/gadget/
H A Dci_udc.h30 u32 epctrl[16]; /* 0x21c */ member
48 u32 epctrl[16]; /* 0x1c0 */ member
H A Datmel_usba_udc.c845 u32 epctrl; in usba_control_irq() local
849 epctrl = usba_ep_readl(ep, CTL); in usba_control_irq()
852 ep->ep.name, ep->state, epstatus, epctrl); in usba_control_irq()
859 if ((epctrl & USBA_TX_PK_RDY) && !(epstatus & USBA_TX_PK_RDY)) { in usba_control_irq()
871 if ((epstatus & epctrl) & USBA_TX_COMPLETE) { in usba_control_irq()
911 if ((epstatus & epctrl) & USBA_RX_BK_RDY) { in usba_control_irq()
1027 u32 epctrl; in usba_ep_irq() local
1030 epctrl = usba_ep_readl(ep, CTL); in usba_ep_irq()
1034 while ((epctrl & USBA_TX_PK_RDY) && !(epstatus & USBA_TX_PK_RDY)) { in usba_ep_irq()
1057 epctrl = usba_ep_readl(ep, CTL); in usba_ep_irq()
[all …]
H A Dci_udc.c312 n = readl(&udc->epctrl[num]); in ep_enable()
324 writel(n, &udc->epctrl[num]); in ep_enable()
763 writel((1<<16) | (1 << 0), &udc->epctrl[0]); in handle_setup()
781 writel(0, &udc->epctrl[i]); in stop_activity()
/openbmc/linux/drivers/usb/dwc2/
H A Dgadget.c3620 u32 epctrl; in dwc2_gadget_handle_incomplete_isoc_in() local
3637 epctrl |= DXEPCTL_SNAK; in dwc2_gadget_handle_incomplete_isoc_in()
3638 epctrl |= DXEPCTL_EPDIS; in dwc2_gadget_handle_incomplete_isoc_in()
3665 u32 epctrl; in dwc2_gadget_handle_incomplete_isoc_out() local
3841 u32 epctrl; in dwc2_hsotg_irq() local
3864 epctrl |= DXEPCTL_SNAK; in dwc2_hsotg_irq()
3865 epctrl |= DXEPCTL_EPDIS; in dwc2_hsotg_irq()
4022 u32 epctrl; in dwc2_hsotg_ep_enable() local
4129 epctrl |= DXEPCTL_SNAK; in dwc2_hsotg_ep_enable()
4213 epctrl |= DXEPCTL_CNAK; in dwc2_hsotg_ep_enable()
[all …]
/openbmc/linux/drivers/usb/class/
H A Dcdc-acm.c1180 struct usb_endpoint_descriptor *epctrl = NULL; in acm_probe() local
1299 &epread, &epwrite, &epctrl, NULL); in acm_probe()
1327 epctrl = &control_interface->cur_altsetting->endpoint[0].desc; in acm_probe()
1349 ctrlsize = usb_endpoint_maxp(epctrl); in acm_probe()
1492 usb_rcvintpipe(usb_dev, epctrl->bEndpointAddress), in acm_probe()
1495 epctrl->bInterval ? epctrl->bInterval : 16); in acm_probe()