Lines Matching refs:fifo_header
560 struct id_and_dlc fifo_header; in m_can_read_fifo() local
564 err = m_can_fifo_read(cdev, fgi, M_CAN_FIFO_ID, &fifo_header, 2); in m_can_read_fifo()
568 if (fifo_header.dlc & RX_BUF_FDF) in m_can_read_fifo()
577 if (fifo_header.dlc & RX_BUF_FDF) in m_can_read_fifo()
578 cf->len = can_fd_dlc2len((fifo_header.dlc >> 16) & 0x0F); in m_can_read_fifo()
580 cf->len = can_cc_dlc2len((fifo_header.dlc >> 16) & 0x0F); in m_can_read_fifo()
582 if (fifo_header.id & RX_BUF_XTD) in m_can_read_fifo()
583 cf->can_id = (fifo_header.id & CAN_EFF_MASK) | CAN_EFF_FLAG; in m_can_read_fifo()
585 cf->can_id = (fifo_header.id >> 18) & CAN_SFF_MASK; in m_can_read_fifo()
587 if (fifo_header.id & RX_BUF_ESI) { in m_can_read_fifo()
592 if (!(fifo_header.dlc & RX_BUF_FDF) && (fifo_header.id & RX_BUF_RTR)) { in m_can_read_fifo()
595 if (fifo_header.dlc & RX_BUF_BRS) in m_can_read_fifo()
607 timestamp = FIELD_GET(RX_BUF_RXTS_MASK, fifo_header.dlc) << 16; in m_can_read_fifo()