Home
last modified time | relevance | path

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

/drivers/net/can/m_can/
Dm_can.c482 struct id_and_dlc fifo_header; in m_can_read_fifo() local
489 err = m_can_fifo_read(cdev, fgi, M_CAN_FIFO_ID, &fifo_header, 2); in m_can_read_fifo()
493 if (fifo_header.dlc & RX_BUF_FDF) in m_can_read_fifo()
502 if (fifo_header.dlc & RX_BUF_FDF) in m_can_read_fifo()
503 cf->len = can_fd_dlc2len((fifo_header.dlc >> 16) & 0x0F); in m_can_read_fifo()
505 cf->len = can_cc_dlc2len((fifo_header.dlc >> 16) & 0x0F); in m_can_read_fifo()
507 if (fifo_header.id & RX_BUF_XTD) in m_can_read_fifo()
508 cf->can_id = (fifo_header.id & CAN_EFF_MASK) | CAN_EFF_FLAG; in m_can_read_fifo()
510 cf->can_id = (fifo_header.id >> 18) & CAN_SFF_MASK; in m_can_read_fifo()
512 if (fifo_header.id & RX_BUF_ESI) { in m_can_read_fifo()
[all …]