Lines Matching refs:ep_regs

341 	struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs;  in it82xx2_usb_extend_ep_ctrl()  local
440 ep_regs[ep_fifo].ep_ctrl.fields.ready_bit = enable; in it82xx2_usb_extend_ep_ctrl()
453 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_usb_ep_ctrl() local
461 ep_ctrl_value = ep_regs[ep_idx].ep_ctrl.value & ~ENDPOINT_READY_BIT; in it82xx2_usb_ep_ctrl()
479 return ep_regs[ep_idx].ep_ctrl.fields.send_stall_bit; in it82xx2_usb_ep_ctrl()
519 ep_regs[ep_idx].ep_ctrl.value = ep_ctrl_value; in it82xx2_usb_ep_ctrl()
580 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_check_setup_following_out() local
583 return ((ep_regs[EP0].ep_transtype_sts & DC_ALL_TRANS) == 0 || in it82xx2_check_setup_following_out()
591 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_handler_setup() local
596 if (ep_regs[ep_idx].ep_ctrl.fields.send_stall_bit) { in it82xx2_handler_setup()
626 ep_regs[fifo_idx].ep_ctrl.fields.outdata_sequence_bit = 1; in it82xx2_handler_setup()
639 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_handler_in() local
642 if (ep_regs[ep_idx].ep_ctrl.fields.send_stall_bit) { in it82xx2_handler_in()
782 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_usb_fake_token() local
791 enable_bit = (ep_regs[ep_idx].ep_ctrl.fields.enable_bit != 0); in it82xx2_usb_fake_token()
792 ready_bit = (ep_regs[ep_idx].ep_ctrl.fields.ready_bit != 0); in it82xx2_usb_fake_token()
802 *token_type = ep_regs[ep_fifo].ep_transtype_sts & DC_ALL_TRANS; in it82xx2_usb_fake_token()
1027 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in usb_dc_reset() local
1042 ep_regs[0].ep_ctrl.value = ENDPOINT_ENABLE_BIT; in usb_dc_reset()
1230 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in usb_dc_ep_set_stall() local
1247 !(ep_regs[ep_idx].ep_status & DC_STALL_SENT)) { in usb_dc_ep_set_stall()
1261 LOG_DBG("EP(%d) ctrl: 0x%02x", ep_idx, ep_regs[ep_idx].ep_ctrl.value); in usb_dc_ep_set_stall()
1386 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in usb_dc_ep_read() local
1397 if (ep_regs[ep_fifo].ep_status & EP_STATUS_ERROR) { in usb_dc_ep_read()
1398 LOG_WRN("fifo_%d error status: 0x%02x", ep_fifo, ep_regs[ep_fifo].ep_status); in usb_dc_ep_read()
1488 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in usb_dc_ep_read_wait() local
1505 if (ep_regs[ep_fifo].ep_status & EP_STATUS_ERROR) { in usb_dc_ep_read_wait()
1506 LOG_WRN("fifo_%d error status(%02x)", ep_fifo, ep_regs[ep_fifo].ep_status); in usb_dc_ep_read_wait()