Home
last modified time | relevance | path

Searched refs:fifo_idx (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/drivers/usb/udc/
Dudc_it82xx2.c194 uint8_t fifo_idx = (ep_idx > 0) ? (ep_fifo_res[ep_idx % SHARED_FIFO_NUM]) : 0; in it82xx2_usb_extend_ep_ctrl() local
275 ep_regs[fifo_idx].ep_ctrl.fields.ready_bit = enable; in it82xx2_usb_extend_ep_ctrl()
498 uint8_t fifo_idx; in it82xx2_ep_dequeue() local
500 fifo_idx = ep_idx > 0 ? ep_fifo_res[ep_idx % SHARED_FIFO_NUM] : 0; in it82xx2_ep_dequeue()
503 ff_regs[fifo_idx].ep_tx_fifo_ctrl = FIFO_FORCE_EMPTY; in it82xx2_ep_dequeue()
505 ff_regs[fifo_idx].ep_rx_fifo_ctrl = FIFO_FORCE_EMPTY; in it82xx2_ep_dequeue()
612 uint8_t fifo_idx; in it82xx2_ep_enable() local
614 fifo_idx = ep_fifo_res[ep_idx % SHARED_FIFO_NUM]; in it82xx2_ep_enable()
615 it82xx2_usb_set_ep_ctrl(dev, fifo_idx, EP_ENABLE, true); in it82xx2_ep_enable()
761 uint8_t fifo_idx; in it82xx2_xfer_in_data() local
[all …]
/Zephyr-latest/drivers/usb/device/
Dusb_dc_it82xx2.c588 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
[all …]
/Zephyr-latest/drivers/sensor/tdk/icm42670/
Dicm42670.c650 uint16_t fifo_idx = 0; in icm42670_fetch_from_fifo() local
689 &data->driver, &data->driver.fifo_data[fifo_idx], &event); in icm42670_fetch_from_fifo()
690 fifo_idx += packet_size; in icm42670_fetch_from_fifo()