Home
last modified time | relevance | path

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

/Zephyr-latest/drivers/i3c/
Di3c_cdns.c601 static uint8_t i3c_cdns_crc5(uint8_t crc5, uint16_t word) in i3c_cdns_crc5() argument
612 crc0 = ((word >> i) ^ (crc5 >> 4)) & 0x1; in i3c_cdns_crc5()
613 crc5 = ((crc5 << 1) & 0x1a) | (((crc5 >> 1) ^ crc0) << 2) | crc0; in i3c_cdns_crc5()
616 return crc5 & 0x1f; in i3c_cdns_crc5()
872 uint8_t crc5 = 0x1F; in cdns_i3c_read_rx_fifo_ddr_xfer() local
878 crc5 = i3c_cdns_crc5(crc5, (uint16_t)DDR_DATA(ddr_header)); in cdns_i3c_read_rx_fifo_ddr_xfer()
890 crc5 = i3c_cdns_crc5(crc5, (uint16_t)DDR_DATA(val)); in cdns_i3c_read_rx_fifo_ddr_xfer()
895 if (crc5 != crc) { in cdns_i3c_read_rx_fifo_ddr_xfer()
2264 uint8_t crc5 = 0x1F; in cdns_i3c_transfer() local
2272 crc5 = i3c_cdns_crc5(crc5, ddr_header_payload); in cdns_i3c_transfer()
[all …]