Searched refs:GET_BIT (Results 1 – 2 of 2) sorted by relevance
/Zephyr-latest/drivers/usb/device/ |
D | usb_dc_smartbond.c | 178 #define GET_BIT(val, field) (val & field ## _Msk) >> field ## _Pos macro 552 fifo_bytes = GET_BIT(rxs0, USB_USB_RXS0_REG_USB_RCOUNT); in handle_ep0_rx() 575 if (GET_BIT(rxs0, USB_USB_RXS0_REG_USB_TOGGLE_RX0) != in handle_ep0_rx() 601 if (GET_BIT(txs0, USB_USB_TXS0_REG_USB_TX_DONE)) { in handle_ep0_tx() 603 if (GET_BIT(txs0, USB_USB_TXS0_REG_USB_ACK_STAT)) { in handle_ep0_tx() 642 if (GET_BIT(rxs, USB_USB_RXS1_REG_USB_RX_ERR)) { in handle_epx_rx_ev() 680 fifo_bytes = GET_BIT(rxs, USB_USB_RXS1_REG_USB_RXCOUNT); in handle_epx_rx_ev() 690 if (GET_BIT(rxs, USB_USB_RXS1_REG_USB_RX_LAST)) { in handle_epx_rx_ev() 692 GET_BIT(rxs, USB_USB_RXS1_REG_USB_TOGGLE_RX) != in handle_epx_rx_ev() 730 if (GET_BIT(txs, USB_USB_TXS1_REG_USB_TX_DONE)) { in handle_epx_tx_ev() [all …]
|
/Zephyr-latest/drivers/usb/udc/ |
D | udc_smartbond.c | 38 #define GET_BIT(val, field) (val & field##_Msk) >> field##_Pos macro 485 fifo_bytes = GET_BIT(rxs0, USB_USB_RXS0_REG_USB_RCOUNT); in handle_ep0_rx() 506 if (GET_BIT(rxs0, USB_USB_RXS0_REG_USB_TOGGLE_RX0) != ep0_out_config->stat.data1) { in handle_ep0_rx() 834 if (GET_BIT(alt_ev, USB_USB_ALTEV_REG_USB_RESET)) { in check_reset_end() 847 if (GET_BIT(alt_ev, USB_USB_ALTEV_REG_USB_RESET) == 0) { in check_reset_end() 874 if (GET_BIT(txs0, USB_USB_TXS0_REG_USB_TX_DONE)) { in handle_ep0_tx() 876 if (GET_BIT(txs0, USB_USB_TXS0_REG_USB_ACK_STAT)) { in handle_ep0_tx() 927 if (GET_BIT(rxs, USB_USB_RXS1_REG_USB_RX_ERR)) { in handle_epx_rx_ev() 966 fifo_bytes = GET_BIT(rxs, USB_USB_RXS1_REG_USB_RXCOUNT); in handle_epx_rx_ev() 978 if (GET_BIT(rxs, USB_USB_RXS1_REG_USB_RX_LAST)) { in handle_epx_rx_ev() [all …]
|