Lines Matching full:oob
27 * 1024 * n data + m Bytes oob
29 * First byte of oob(spare).
82 #define NFC_SYS_DATA_SIZE (4) /* 4 bytes sys data in oob pre 1024 data.*/
536 * The first four bytes of OOB are reserved for the in rk_nfc_write_page_raw()
539 * in OOB also need to be written back. in rk_nfc_write_page_raw()
548 * The OOB data layout on the NFC is: in rk_nfc_write_page_raw()
601 u8 *oob; in rk_nfc_write_page_hwecc() local
612 * by the boot ROM and the first 32 bits of OOB need to link to in rk_nfc_write_page_hwecc()
614 * OOB data from the MTD framework, because this page address in rk_nfc_write_page_hwecc()
616 * so we shift all OOB data including the BBM with 4 byte positions. in rk_nfc_write_page_hwecc()
617 * As a consequence the OOB size available to the MTD framework is in rk_nfc_write_page_hwecc()
645 oob = chip->oob_poi + (ecc->steps - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_write_page_hwecc()
647 oob = chip->oob_poi + (i - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_write_page_hwecc()
649 tmp = oob[0] | oob[1] << 8 | oob[2] << 16 | oob[3] << 24; in rk_nfc_write_page_hwecc()
724 * The first four bytes of OOB are reserved for the in rk_nfc_read_page_raw()
767 u8 *oob; in rk_nfc_read_page_hwecc() local
819 oob = chip->oob_poi + (ecc->steps - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_read_page_hwecc()
821 oob = chip->oob_poi + (i - 1) * NFC_SYS_DATA_SIZE; in rk_nfc_read_page_hwecc()
828 *oob++ = (u8)tmp; in rk_nfc_read_page_hwecc()
829 *oob++ = (u8)(tmp >> 8); in rk_nfc_read_page_hwecc()
830 *oob++ = (u8)(tmp >> 16); in rk_nfc_read_page_hwecc()
831 *oob++ = (u8)(tmp >> 24); in rk_nfc_read_page_hwecc()
988 * blocks. The first 4 OOB bytes are reserved for sys data. in rk_nfc_ecc_init()