Lines Matching refs:regs
131 struct smartbond_ep_reg_set *regs; member
369 struct smartbond_ep_reg_set *regs = ep_state->regs; in fill_tx_fifo() local
381 while ((regs->txs & USB_USB_TXS1_REG_USB_TCOUNT_Msk) > 0 && in fill_tx_fifo()
383 regs->txd = *src++; in fill_tx_fifo()
394 regs->txc |= (3 << USB_USB_TXC1_REG_USB_TFWL_Pos); in fill_tx_fifo()
398 regs->txc &= ~USB_USB_TXC1_REG_USB_TFWL_Msk; in fill_tx_fifo()
404 regs->txc |= USB_USB_TXC1_REG_USB_LAST_Msk; in fill_tx_fifo()
444 struct smartbond_ep_reg_set *regs = ep_state->regs; in start_rx_packet() local
454 start_rx_dma(®s->rxd, in start_rx_packet()
465 regs->rxc |= USB_USB_RXC1_REG_USB_RFWL_Msk; in start_rx_packet()
473 regs->rxc &= ~USB_USB_RXC1_REG_USB_RFWL_Msk; in start_rx_packet()
477 regs->rxc |= USB_USB_RXC1_REG_USB_RX_EN_Msk; in start_rx_packet()
492 struct smartbond_ep_reg_set *regs = ep_state->regs; in start_tx_packet() local
500 regs->txc = USB_USB_TXC1_REG_USB_FLUSH_Msk; in start_tx_packet()
501 regs->txc = USB_USB_TXC1_REG_USB_IGN_ISOMSK_Msk; in start_tx_packet()
503 regs->txc |= USB_USB_TXC1_REG_USB_TOGGLE_TX_Msk; in start_tx_packet()
515 ®s->txd, size); in start_tx_packet()
516 regs->txc |= USB_USB_TXC1_REG_USB_LAST_Msk; in start_tx_packet()
521 regs->txc |= USB_USB_TXC1_REG_USB_TX_EN_Msk; in start_tx_packet()
527 struct smartbond_ep_reg_set *regs = ep_state->regs; in read_rx_fifo() local
537 buf[i] = regs->rxd; in read_rx_fifo()
595 struct smartbond_ep_reg_set *regs = ep0_in_state->regs; in handle_ep0_tx() local
597 txs0 = regs->txs; in handle_ep0_tx()
637 struct smartbond_ep_reg_set *regs = ep_state->regs; in handle_epx_rx_ev() local
640 rxs = regs->rxs; in handle_epx_rx_ev()
643 regs->rxc |= USB_USB_RXC1_REG_USB_FLUSH_Msk; in handle_epx_rx_ev()
695 regs->rxc |= USB_USB_RXC1_REG_USB_FLUSH_Msk; in handle_epx_rx_ev()
726 struct smartbond_ep_reg_set *regs = ep_state->regs; in handle_epx_tx_ev() local
728 txs = regs->txs; in handle_epx_tx_ev()
756 } else if (regs->epc_in & USB_USB_EPC1_REG_USB_STALL_Msk) { in handle_epx_tx_ev()
1142 dev_state.ep_state[0][i].regs = reg_sets[i]; in usb_init()
1145 dev_state.ep_state[1][i].regs = reg_sets[i]; in usb_init()
1185 ep_state->regs->epc_out &= ~USB_USB_EPC2_REG_USB_EP_EN_Msk; in usb_dc_ep_disable()
1187 ep_state->regs->epc_in &= ~USB_USB_EPC1_REG_USB_EP_EN_Msk; in usb_dc_ep_disable()
1365 struct smartbond_ep_reg_set *regs; in usb_dc_ep_clear_stall() local
1373 regs = ep_state->regs; in usb_dc_ep_clear_stall()
1382 regs->epc_out &= ~USB_USB_EPC1_REG_USB_STALL_Msk; in usb_dc_ep_clear_stall()
1384 regs->epc_in &= ~USB_USB_EPC1_REG_USB_STALL_Msk; in usb_dc_ep_clear_stall()
1418 ep_state->regs->epc_out |= USB_USB_EPC1_REG_USB_EP_EN_Msk; in usb_dc_ep_enable()
1428 ep_state->regs->epc_in |= USB_USB_EPC2_REG_USB_EP_EN_Msk; in usb_dc_ep_enable()
1464 ep_state->regs->epc_out = ep_idx | iso_mask; in usb_dc_ep_configure()
1466 ep_state->regs->epc_in = ep_idx | iso_mask; in usb_dc_ep_configure()
1536 struct smartbond_ep_reg_set *regs; in usb_dc_ep_set_stall() local
1549 regs = ep_state->regs; in usb_dc_ep_set_stall()
1555 regs->rxc = USB_USB_RXC0_REG_USB_RX_EN_Msk; in usb_dc_ep_set_stall()
1558 regs->rxc = 0; in usb_dc_ep_set_stall()
1559 regs->txc = USB_USB_TXC0_REG_USB_TX_EN_Msk; in usb_dc_ep_set_stall()
1564 regs->epc_out |= USB_USB_EPC1_REG_USB_STALL_Msk; in usb_dc_ep_set_stall()
1565 regs->rxc |= USB_USB_RXC1_REG_USB_RX_EN_Msk; in usb_dc_ep_set_stall()
1567 regs->epc_in |= USB_USB_EPC1_REG_USB_STALL_Msk; in usb_dc_ep_set_stall()
1568 regs->txc |= USB_USB_TXC1_REG_USB_TX_EN_Msk | USB_USB_TXC1_REG_USB_LAST_Msk; in usb_dc_ep_set_stall()