Lines Matching refs:fifo_idx
588 static inline void it82xx2_handler_setup(uint8_t fifo_idx) in it82xx2_handler_setup() argument
593 uint8_t ep_idx = fifo_idx; in it82xx2_handler_setup()
597 it82xx2_usb_set_ep_ctrl(fifo_idx, EP_STALL_SEND, false); in it82xx2_handler_setup()
599 ff_regs[fifo_idx].ep_rx_fifo_ctrl = FIFO_FORCE_EMPTY; in it82xx2_handler_setup()
626 ep_regs[fifo_idx].ep_ctrl.fields.outdata_sequence_bit = 1; in it82xx2_handler_setup()
765 static uint16_t get_fifo_ctrl(const uint8_t fifo_idx) in get_fifo_ctrl() argument
769 uint8_t fifon_ctrl = (fifo_idx - 1) * 2; in get_fifo_ctrl()
771 if (fifo_idx == 0) { in get_fifo_ctrl()
772 LOG_ERR("Invalid fifo_idx 0x%x", fifo_idx); in get_fifo_ctrl()
839 for (uint8_t fifo_idx = 0; fifo_idx < 4; fifo_idx++) { in it82xx2_usb_dc_trans_done() local
842 if (fifo_idx == 0) { in it82xx2_usb_dc_trans_done()
845 ep_idx = (epn_ext_ctrl[fifo_idx].epn_ext_ctrl2 & COMPLETED_TRANS) >> 4; in it82xx2_usb_dc_trans_done()
854 it82xx2_handler_setup(fifo_idx); in it82xx2_usb_dc_trans_done()