Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/can/spi/mcp251xfd/
H A Dmcp251xfd-tef.c19 static inline bool mcp251xfd_tx_fifo_sta_empty(u32 fifo_sta) in mcp251xfd_tx_fifo_sta_empty() argument
21 return fifo_sta & MCP251XFD_REG_FIFOSTA_TFERFFIF; in mcp251xfd_tx_fifo_sta_empty()
24 static inline bool mcp251xfd_tx_fifo_sta_less_than_half_full(u32 fifo_sta) in mcp251xfd_tx_fifo_sta_less_than_half_full() argument
26 return fifo_sta & MCP251XFD_REG_FIFOSTA_TFHRFHIF; in mcp251xfd_tx_fifo_sta_less_than_half_full()
122 u32 fifo_sta; in mcp251xfd_get_tef_len() local
126 &fifo_sta); in mcp251xfd_get_tef_len()
133 if (mcp251xfd_tx_fifo_sta_empty(fifo_sta) && in mcp251xfd_get_tef_len()
139 chip_tx_tail = FIELD_GET(MCP251XFD_REG_FIFOSTA_FIFOCI_MASK, fifo_sta); in mcp251xfd_get_tef_len()
173 if (len == 0 && mcp251xfd_tx_fifo_sta_less_than_half_full(fifo_sta) && in mcp251xfd_get_tef_len()
H A Dmcp251xfd-rx.c19 static inline bool mcp251xfd_rx_fifo_sta_empty(const u32 fifo_sta) in mcp251xfd_rx_fifo_sta_empty() argument
21 return !(fifo_sta & MCP251XFD_REG_FIFOSTA_TFNRFNIF); in mcp251xfd_rx_fifo_sta_empty()
24 static inline bool mcp251xfd_rx_fifo_sta_full(const u32 fifo_sta) in mcp251xfd_rx_fifo_sta_full() argument
26 return fifo_sta & MCP251XFD_REG_FIFOSTA_TFERFFIF; in mcp251xfd_rx_fifo_sta_full()
80 u32 fifo_sta; in mcp251xfd_get_rx_len() local
84 &fifo_sta); in mcp251xfd_get_rx_len()
88 if (mcp251xfd_rx_fifo_sta_empty(fifo_sta)) { in mcp251xfd_get_rx_len()
93 if (mcp251xfd_rx_fifo_sta_full(fifo_sta)) { in mcp251xfd_get_rx_len()
98 chip_head = FIELD_GET(MCP251XFD_REG_FIFOSTA_FIFOCI_MASK, fifo_sta); in mcp251xfd_get_rx_len()
H A Dmcp251xfd.h863 u32 fifo_sta; in mcp251xfd_tx_tail_get_from_chip() local
868 &fifo_sta); in mcp251xfd_tx_tail_get_from_chip()
872 *tx_tail = FIELD_GET(MCP251XFD_REG_FIFOSTA_FIFOCI_MASK, fifo_sta); in mcp251xfd_tx_tail_get_from_chip()