Home
last modified time | relevance | path

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

/openbmc/linux/drivers/mtd/nand/raw/
H A Dnand_onfi.c21 u16 onfi_crc16(u16 crc, u8 const *p, size_t len) in onfi_crc16() function
63 if ((onfi_crc16(ONFI_CRC_BASE, ((uint8_t *)ep) + 2, len - 2) in nand_flash_detect_ext_param_page()
188 crc = onfi_crc16(ONFI_CRC_BASE, (u8 *)&pbuf[i], 254); in nand_onfi_detect()
206 crc = onfi_crc16(ONFI_CRC_BASE, (u8 *)pbuf, 254); in nand_onfi_detect()
H A Dnand_jedec.c67 crc = onfi_crc16(ONFI_CRC_BASE, (u8 *)p, 510); in nand_jedec_detect()
H A Dinternals.h169 u16 onfi_crc16(u16 crc, u8 const *p, size_t len);
/openbmc/u-boot/drivers/mtd/nand/raw/
H A Dnand_base.c3100 static u16 onfi_crc16(u16 crc, u8 const *p, size_t len) in onfi_crc16() function
3139 if ((onfi_crc16(ONFI_CRC_BASE, ((uint8_t *)ep) + 2, len - 2) in nand_flash_detect_ext_param_page()
3228 if (onfi_crc16(ONFI_CRC_BASE, (uint8_t *)p, 254) == in nand_flash_detect_onfi()
3342 if (onfi_crc16(ONFI_CRC_BASE, (uint8_t *)p, 510) == in nand_flash_detect_jedec()