Lines Matching refs:ep_regs
188 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_usb_extend_ep_ctrl() local
275 ep_regs[fifo_idx].ep_ctrl.fields.ready_bit = enable; in it82xx2_usb_extend_ep_ctrl()
290 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_usb_ep_ctrl() local
298 ep_ctrl_value = ep_regs[ep_idx].ep_ctrl.value & ~ENDPOINT_READY_BIT; in it82xx2_usb_ep_ctrl()
354 ep_regs[ep_idx].ep_ctrl.value = ep_ctrl_value; in it82xx2_usb_ep_ctrl()
523 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in ctrl_ep_stall_workaround() local
540 while (idx < 198 && !(ep_regs[0].ep_status & DC_STALL_SENT)) { in ctrl_ep_stall_workaround()
732 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_dc_reset() local
741 ep_regs[0].ep_ctrl.value = ENDPOINT_EN; in it82xx2_dc_reset()
793 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_xfer_out_data() local
800 if (ep_regs[fifo_idx].ep_status & EP_STATUS_ERROR) { in it82xx2_xfer_out_data()
801 LOG_WRN("endpoint%d error status 0x%02x", ep_idx, ep_regs[fifo_idx].ep_status); in it82xx2_xfer_out_data()
1222 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_check_ep0_stall() local
1230 if (ep_regs[ep_idx].ep_ctrl.fields.send_stall_bit) { in it82xx2_check_ep0_stall()
1240 if ((transtype == DC_IN_TRANS) && (ep_regs[ep_idx].ep_status & DC_STALL_SENT)) { in it82xx2_check_ep0_stall()
1251 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_usb_xfer_done() local
1259 ep_ctrl = ep_regs[fifo_idx].ep_ctrl.value; in it82xx2_usb_xfer_done()
1260 transtype = ep_regs[fifo_idx].ep_transtype_sts & DC_ALL_TRANS; in it82xx2_usb_xfer_done()
1278 enable_bit = (ep_regs[ep_idx].ep_ctrl.fields.enable_bit != 0); in it82xx2_usb_xfer_done()
1279 ready_bit = (ep_regs[ep_idx].ep_ctrl.fields.ready_bit != 0); in it82xx2_usb_xfer_done()