Lines Matching refs:epctrl
60 #define GR_BUFFER_SIZE(epctrl) \ argument
61 ((((epctrl) & GR_EPCTRL_BUFSZ_MASK) >> GR_EPCTRL_BUFSZ_POS) * \
126 u32 epctrl = gr_read32(&ep->regs->epctrl); in gr_seq_ep_show() local
128 int mode = (epctrl & GR_EPCTRL_TT_MASK) >> GR_EPCTRL_TT_POS; in gr_seq_ep_show()
133 seq_printf(seq, " halted: %d\n", !!(epctrl & GR_EPCTRL_EH)); in gr_seq_ep_show()
134 seq_printf(seq, " disabled: %d\n", !!(epctrl & GR_EPCTRL_ED)); in gr_seq_ep_show()
135 seq_printf(seq, " valid: %d\n", !!(epctrl & GR_EPCTRL_EV)); in gr_seq_ep_show()
145 (epctrl & GR_EPCTRL_NT_MASK) >> GR_EPCTRL_NT_POS); in gr_seq_ep_show()
672 gr_write32(&ep->regs->epctrl, 0); in gr_ep_reset()
688 u32 epctrl; in gr_control_stall() local
690 epctrl = gr_read32(&dev->epo[0].regs->epctrl); in gr_control_stall()
691 gr_write32(&dev->epo[0].regs->epctrl, epctrl | GR_EPCTRL_CS); in gr_control_stall()
692 epctrl = gr_read32(&dev->epi[0].regs->epctrl); in gr_control_stall()
693 gr_write32(&dev->epi[0].regs->epctrl, epctrl | GR_EPCTRL_CS); 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()
736 gr_write32(&ep->regs->epctrl, epctrl & ~GR_EPCTRL_EH); in gr_ep_halt_wedge()
997 halted = gr_read32(&ep->regs->epctrl) & GR_EPCTRL_EH; in gr_endpoint_request()
1474 u32 epctrl; in gr_ep_enable() local
1490 epctrl = gr_read32(&ep->regs->epctrl); in gr_ep_enable()
1491 if (epctrl & GR_EPCTRL_EV) in gr_ep_enable()
1523 buffer_size = GR_BUFFER_SIZE(epctrl); in gr_ep_enable()
1581 epctrl = (max << GR_EPCTRL_MAXPL_POS) in gr_ep_enable()
1586 epctrl |= GR_EPCTRL_PI; in gr_ep_enable()
1587 gr_write32(&ep->regs->epctrl, epctrl); in gr_ep_enable()
1810 u32 epctrl; in gr_fifo_flush() local
1819 epctrl = gr_read32(&ep->regs->epctrl); in gr_fifo_flush()
1820 epctrl |= GR_EPCTRL_CB; in gr_fifo_flush()
1821 gr_write32(&ep->regs->epctrl, epctrl); in gr_fifo_flush()
2070 gr_write32(&dev->epo[0].regs->epctrl, epctrl_val); in gr_udc_init()
2071 gr_write32(&dev->epi[0].regs->epctrl, epctrl_val | GR_EPCTRL_PI); in gr_udc_init()