Lines Matching refs:usb_regs

168 	struct usb_it82xx2_regs *const usb_regs = config->base;  in it82xx2_get_ext_ctrl()  local
170 usb_regs->fifo_regs[EP_EXT_REGS_9X].ext_4_15.epn0n1_ext_ctrl; in it82xx2_get_ext_ctrl()
172 usb_regs->fifo_regs[EP_EXT_REGS_DX].ext_0_3.epn_ext_ctrl; in it82xx2_get_ext_ctrl()
187 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_usb_extend_ep_ctrl() local
188 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_usb_extend_ep_ctrl()
190 usb_regs->fifo_regs[EP_EXT_REGS_DX].ext_0_3.epn_ext_ctrl; in it82xx2_usb_extend_ep_ctrl()
289 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_usb_ep_ctrl() local
290 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_usb_ep_ctrl()
428 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_usb_fifo_ctrl() local
429 volatile uint8_t *ep_fifo_ctrl = usb_regs->fifo_regs[EP_EXT_REGS_BX].fifo_ctrl.ep_fifo_ctrl; in it82xx2_usb_fifo_ctrl()
494 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_ep_dequeue() local
495 struct it82xx2_usb_ep_fifo_regs *ff_regs = usb_regs->fifo_regs; in it82xx2_ep_dequeue()
522 struct usb_it82xx2_regs *const usb_regs = config->base; in ctrl_ep_stall_workaround() local
523 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in ctrl_ep_stall_workaround()
640 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_host_wakeup() local
644 usb_regs->dc_control = DC_GLOBAL_ENABLE | DC_FULL_SPEED_LINE_POLARITY | in it82xx2_host_wakeup()
652 usb_regs->dc_control = DC_GLOBAL_ENABLE | DC_FULL_SPEED_LINE_POLARITY | in it82xx2_host_wakeup()
667 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_set_address() local
669 usb_regs->dc_address = addr & DC_ADDR_MASK; in it82xx2_set_address()
679 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_usb_dc_ip_init() local
682 usb_regs->host_device_control = RESET_CORE; in it82xx2_usb_dc_ip_init()
684 usb_regs->port0_misc_control &= ~(PULL_DOWN_EN); in it82xx2_usb_dc_ip_init()
685 usb_regs->port1_misc_control &= ~(PULL_DOWN_EN); in it82xx2_usb_dc_ip_init()
688 usb_regs->host_device_control = 0; in it82xx2_usb_dc_ip_init()
690 usb_regs->dc_interrupt_status = in it82xx2_usb_dc_ip_init()
693 usb_regs->dc_interrupt_mask = 0x00; in it82xx2_usb_dc_ip_init()
694 usb_regs->dc_interrupt_mask = in it82xx2_usb_dc_ip_init()
697 usb_regs->dc_address = DC_ADDR_NULL; in it82xx2_usb_dc_ip_init()
705 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_enable_resume_int() local
707 usb_regs->dc_interrupt_status = DC_RESUME_EVENT; in it82xx2_enable_resume_int()
709 usb_regs->dc_interrupt_mask |= DC_RESUME_EVENT; in it82xx2_enable_resume_int()
711 usb_regs->dc_interrupt_mask &= ~DC_RESUME_EVENT; in it82xx2_enable_resume_int()
718 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_enable_sof_int() local
720 usb_regs->dc_interrupt_status = DC_SOF_RECEIVED; in it82xx2_enable_sof_int()
722 usb_regs->dc_interrupt_mask |= DC_SOF_RECEIVED; in it82xx2_enable_sof_int()
724 usb_regs->dc_interrupt_mask &= ~DC_SOF_RECEIVED; in it82xx2_enable_sof_int()
731 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_dc_reset() local
732 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_dc_reset()
733 struct it82xx2_usb_ep_fifo_regs *ff_regs = usb_regs->fifo_regs; in it82xx2_dc_reset()
742 usb_regs->dc_address = DC_ADDR_NULL; in it82xx2_dc_reset()
743 usb_regs->dc_interrupt_status = DC_NAK_SENT_INT | DC_SOF_RECEIVED; in it82xx2_dc_reset()
756 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_xfer_in_data() local
757 struct it82xx2_usb_ep_fifo_regs *ff_regs = usb_regs->fifo_regs; in it82xx2_xfer_in_data()
792 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_xfer_out_data() local
793 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_xfer_out_data()
794 struct it82xx2_usb_ep_fifo_regs *ff_regs = usb_regs->fifo_regs; in it82xx2_xfer_out_data()
823 struct usb_it82xx2_regs *const usb_regs = config->base; in get_fifo_ctrl() local
824 volatile uint8_t *ep_fifo_ctrl = usb_regs->fifo_regs[EP_EXT_REGS_BX].fifo_ctrl.ep_fifo_ctrl; in get_fifo_ctrl()
917 struct usb_it82xx2_regs *const usb_regs = config->base; in get_extend_ready_bit() local
919 usb_regs->fifo_regs[EP_EXT_REGS_DX].ext_0_3.epn_ext_ctrl; in get_extend_ready_bit()
1102 struct usb_it82xx2_regs *const usb_regs = config->base; in work_handler_out() local
1103 struct it82xx2_usb_ep_fifo_regs *ff_regs = usb_regs->fifo_regs; in work_handler_out()
1221 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_check_ep0_stall() local
1222 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_check_ep0_stall()
1223 struct it82xx2_usb_ep_fifo_regs *ff_regs = usb_regs->fifo_regs; in it82xx2_check_ep0_stall()
1250 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_usb_xfer_done() local
1251 struct it82xx2_usb_ep_regs *ep_regs = usb_regs->usb_ep_regs; in it82xx2_usb_xfer_done()
1253 usb_regs->fifo_regs[EP_EXT_REGS_DX].ext_0_3.epn_ext_ctrl; in it82xx2_usb_xfer_done()
1332 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_usb_dc_isr() local
1335 uint8_t status = usb_regs->dc_interrupt_status & in it82xx2_usb_dc_isr()
1336 usb_regs->dc_interrupt_mask; /* mask non enable int */ in it82xx2_usb_dc_isr()
1340 if ((usb_regs->dc_line_status & RX_LINE_STATE_MASK) == RX_LINE_RESET) { in it82xx2_usb_dc_isr()
1342 usb_regs->dc_interrupt_status = DC_RESET_EVENT; in it82xx2_usb_dc_isr()
1347 usb_regs->dc_interrupt_status = DC_RESET_EVENT; in it82xx2_usb_dc_isr()
1355 usb_regs->dc_interrupt_status = DC_SOF_RECEIVED; in it82xx2_usb_dc_isr()
1373 usb_regs->dc_interrupt_status = DC_TRANS_DONE; in it82xx2_usb_dc_isr()
1385 struct usb_it82xx2_regs *const usb_regs = config->base; in suspended_handler() local
1388 if (usb_regs->dc_interrupt_status & DC_SOF_RECEIVED) { in suspended_handler()
1389 usb_regs->dc_interrupt_status = DC_SOF_RECEIVED; in suspended_handler()
1416 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_enable() local
1429 usb_regs->dc_control = DC_GLOBAL_ENABLE | DC_FULL_SPEED_LINE_POLARITY | in it82xx2_enable()
1442 struct usb_it82xx2_regs *const usb_regs = config->base; in it82xx2_disable() local
1447 usb_regs->dc_control &= ~DC_CONNECT_TO_HOST; in it82xx2_disable()