Home
last modified time | relevance | path

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

/drivers/usb/gadget/udc/
Dgr_udc.c61 #define GR_BUFFER_SIZE(epctrl) \ argument
62 ((((epctrl) & GR_EPCTRL_BUFSZ_MASK) >> GR_EPCTRL_BUFSZ_POS) * \
127 u32 epctrl = gr_read32(&ep->regs->epctrl); in gr_seq_ep_show() local
129 int mode = (epctrl & GR_EPCTRL_TT_MASK) >> GR_EPCTRL_TT_POS; in gr_seq_ep_show()
134 seq_printf(seq, " halted: %d\n", !!(epctrl & GR_EPCTRL_EH)); in gr_seq_ep_show()
135 seq_printf(seq, " disabled: %d\n", !!(epctrl & GR_EPCTRL_ED)); in gr_seq_ep_show()
136 seq_printf(seq, " valid: %d\n", !!(epctrl & GR_EPCTRL_EV)); in gr_seq_ep_show()
146 (epctrl & GR_EPCTRL_NT_MASK) >> GR_EPCTRL_NT_POS); in gr_seq_ep_show()
673 gr_write32(&ep->regs->epctrl, 0); in gr_ep_reset()
689 u32 epctrl; in gr_control_stall() local
[all …]
Dfsl_udc_core.c460 u32 epctrl; in dr_ep_get_stall() local
462 epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]); in dr_ep_get_stall()
464 return (epctrl & EPCTRL_TX_EP_STALL) ? 1 : 0; in dr_ep_get_stall()
466 return (epctrl & EPCTRL_RX_EP_STALL) ? 1 : 0; in dr_ep_get_stall()
632 u32 epctrl; in fsl_ep_disable() local
643 epctrl = fsl_readl(&dr_regs->endptctrl[ep_num]); in fsl_ep_disable()
645 epctrl &= ~(EPCTRL_TX_ENABLE | EPCTRL_TX_TYPE); in fsl_ep_disable()
646 epctrl |= EPCTRL_EP_TYPE_BULK << EPCTRL_TX_EP_TYPE_SHIFT; in fsl_ep_disable()
648 epctrl &= ~(EPCTRL_RX_ENABLE | EPCTRL_TX_TYPE); in fsl_ep_disable()
649 epctrl |= EPCTRL_EP_TYPE_BULK << EPCTRL_RX_EP_TYPE_SHIFT; in fsl_ep_disable()
[all …]
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 …]
Dgr_udc.h23 u32 epctrl; member
/drivers/usb/dwc2/
Dgadget.c3617 u32 epctrl; in dwc2_gadget_handle_incomplete_isoc_in() local
3631 epctrl = dwc2_readl(hsotg, DIEPCTL(idx)); in dwc2_gadget_handle_incomplete_isoc_in()
3632 if ((epctrl & DXEPCTL_EPENA) && in dwc2_gadget_handle_incomplete_isoc_in()
3634 epctrl |= DXEPCTL_SNAK; in dwc2_gadget_handle_incomplete_isoc_in()
3635 epctrl |= DXEPCTL_EPDIS; in dwc2_gadget_handle_incomplete_isoc_in()
3636 dwc2_writel(hsotg, epctrl, DIEPCTL(idx)); in dwc2_gadget_handle_incomplete_isoc_in()
3662 u32 epctrl; in dwc2_gadget_handle_incomplete_isoc_out() local
3677 epctrl = dwc2_readl(hsotg, DOEPCTL(idx)); in dwc2_gadget_handle_incomplete_isoc_out()
3678 if ((epctrl & DXEPCTL_EPENA) && in dwc2_gadget_handle_incomplete_isoc_out()
3832 u32 epctrl; in dwc2_hsotg_irq() local
[all …]
/drivers/usb/class/
Dcdc-acm.c1154 struct usb_endpoint_descriptor *epctrl = NULL; in acm_probe() local
1273 &epread, &epwrite, &epctrl, NULL); in acm_probe()
1301 epctrl = &control_interface->cur_altsetting->endpoint[0].desc; in acm_probe()
1323 ctrlsize = usb_endpoint_maxp(epctrl); in acm_probe()
1466 usb_rcvintpipe(usb_dev, epctrl->bEndpointAddress), in acm_probe()
1469 epctrl->bInterval ? epctrl->bInterval : 16); in acm_probe()