Searched refs:fifo_sta (Results 1 – 3 of 3) sorted by relevance
19 static inline bool mcp251xfd_tx_fifo_sta_empty(u32 fifo_sta) in mcp251xfd_tx_fifo_sta_empty() argument21 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() argument26 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() local126 &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()
19 static inline bool mcp251xfd_rx_fifo_sta_empty(const u32 fifo_sta) in mcp251xfd_rx_fifo_sta_empty() argument21 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() argument26 return fifo_sta & MCP251XFD_REG_FIFOSTA_TFERFFIF; in mcp251xfd_rx_fifo_sta_full()80 u32 fifo_sta; in mcp251xfd_get_rx_len() local84 &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()
863 u32 fifo_sta; in mcp251xfd_tx_tail_get_from_chip() local868 &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()