Searched refs:fifo_head_index (Results 1 – 1 of 1) sorted by relevance
749 uint8_t fifo_head_index; in mcp251xfd_handle_fifo_read() local776 fifo_head_index = FIELD_GET(MCP251XFD_REG_FIFOSTA_FIFOCI_MASK, fifosta); in mcp251xfd_handle_fifo_read()777 if (fifo_head_index == 0) { in mcp251xfd_handle_fifo_read()778 fifo_head_index = fifo->capacity - 1; in mcp251xfd_handle_fifo_read()780 fifo_head_index -= 1; in mcp251xfd_handle_fifo_read()783 if (fifo_tail_index > fifo_head_index) { in mcp251xfd_handle_fifo_read()786 fetch_total += fifo_head_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()[all …]