Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/can/
Dcan_mcp251xfd.c748 uint32_t fifo_tail_index, fifo_tail_addr; in mcp251xfd_handle_fifo_read() local
769 fifo_tail_index = (fifo_tail_addr - fifo->ram_start_addr) / fifo->item_size; in mcp251xfd_handle_fifo_read()
783 if (fifo_tail_index > fifo_head_index) { in mcp251xfd_handle_fifo_read()
785 fetch_total = fifo->capacity - 1 - fifo_tail_index + 1; in mcp251xfd_handle_fifo_read()
788 fetch_total = fifo_head_index - fifo_tail_index + 1; in mcp251xfd_handle_fifo_read()
792 fifo_head_index = fifo_tail_index; in mcp251xfd_handle_fifo_read()
803 if (fifo_tail_index > fifo_head_index) { in mcp251xfd_handle_fifo_read()
804 len = fifo->capacity - 1 - fifo_tail_index + 1; in mcp251xfd_handle_fifo_read()
806 len = fifo_head_index - fifo_tail_index + 1; in mcp251xfd_handle_fifo_read()
810 fifo_tail_index * fifo->item_size; in mcp251xfd_handle_fifo_read()
[all …]