Lines Matching refs:cfi_table

93     uint8_t cfi_table[0x4d];  member
195 return pfl->cfi_table[0x2c]; in pflash_regions_count()
210 return ((1ULL << pfl->cfi_table[0x21]) * pfl->sectors_to_erase) * SCALE_US; in pflash_erase_time()
381 if (boff < sizeof(pfl->cfi_table)) { in pflash_read()
382 ret = pfl->cfi_table[boff]; in pflash_read()
624 (1ULL << pfl->cfi_table[0x22]) * SCALE_MS); in pflash_write()
722 pfl->cfi_table[0x10] = 'Q'; in pflash_cfi02_fill_cfi_table()
723 pfl->cfi_table[0x11] = 'R'; in pflash_cfi02_fill_cfi_table()
724 pfl->cfi_table[0x12] = 'Y'; in pflash_cfi02_fill_cfi_table()
726 pfl->cfi_table[0x13] = 0x02; in pflash_cfi02_fill_cfi_table()
727 pfl->cfi_table[0x14] = 0x00; in pflash_cfi02_fill_cfi_table()
729 pfl->cfi_table[0x15] = pri_ofs; in pflash_cfi02_fill_cfi_table()
730 pfl->cfi_table[0x16] = pri_ofs >> 8; in pflash_cfi02_fill_cfi_table()
732 pfl->cfi_table[0x17] = 0x00; in pflash_cfi02_fill_cfi_table()
733 pfl->cfi_table[0x18] = 0x00; in pflash_cfi02_fill_cfi_table()
735 pfl->cfi_table[0x19] = 0x00; in pflash_cfi02_fill_cfi_table()
736 pfl->cfi_table[0x1A] = 0x00; in pflash_cfi02_fill_cfi_table()
738 pfl->cfi_table[0x1B] = 0x27; in pflash_cfi02_fill_cfi_table()
740 pfl->cfi_table[0x1C] = 0x36; in pflash_cfi02_fill_cfi_table()
742 pfl->cfi_table[0x1D] = 0x00; in pflash_cfi02_fill_cfi_table()
744 pfl->cfi_table[0x1E] = 0x00; in pflash_cfi02_fill_cfi_table()
746 pfl->cfi_table[0x1F] = 0x07; in pflash_cfi02_fill_cfi_table()
748 pfl->cfi_table[0x20] = 0x00; in pflash_cfi02_fill_cfi_table()
750 pfl->cfi_table[0x21] = 0x09; in pflash_cfi02_fill_cfi_table()
752 pfl->cfi_table[0x22] = 0x0C; in pflash_cfi02_fill_cfi_table()
754 pfl->cfi_table[0x23] = 0x01; in pflash_cfi02_fill_cfi_table()
756 pfl->cfi_table[0x24] = 0x00; in pflash_cfi02_fill_cfi_table()
758 pfl->cfi_table[0x25] = 0x0A; in pflash_cfi02_fill_cfi_table()
760 pfl->cfi_table[0x26] = 0x0D; in pflash_cfi02_fill_cfi_table()
762 pfl->cfi_table[0x27] = ctz32(pfl->chip_len); in pflash_cfi02_fill_cfi_table()
764 pfl->cfi_table[0x28] = 0x02; in pflash_cfi02_fill_cfi_table()
765 pfl->cfi_table[0x29] = 0x00; in pflash_cfi02_fill_cfi_table()
771 pfl->cfi_table[0x2A] = 0x00; in pflash_cfi02_fill_cfi_table()
772 pfl->cfi_table[0x2B] = 0x00; in pflash_cfi02_fill_cfi_table()
774 pfl->cfi_table[0x2c] = nb_regions; in pflash_cfi02_fill_cfi_table()
778 pfl->cfi_table[0x2d + 4 * i] = pfl->nb_blocs[i] - 1; in pflash_cfi02_fill_cfi_table()
779 pfl->cfi_table[0x2e + 4 * i] = (pfl->nb_blocs[i] - 1) >> 8; in pflash_cfi02_fill_cfi_table()
780 pfl->cfi_table[0x2f + 4 * i] = sector_len_per_device >> 8; in pflash_cfi02_fill_cfi_table()
781 pfl->cfi_table[0x30 + 4 * i] = sector_len_per_device >> 16; in pflash_cfi02_fill_cfi_table()
786 pfl->cfi_table[0x00 + pri_ofs] = 'P'; in pflash_cfi02_fill_cfi_table()
787 pfl->cfi_table[0x01 + pri_ofs] = 'R'; in pflash_cfi02_fill_cfi_table()
788 pfl->cfi_table[0x02 + pri_ofs] = 'I'; in pflash_cfi02_fill_cfi_table()
791 pfl->cfi_table[0x03 + pri_ofs] = '1'; in pflash_cfi02_fill_cfi_table()
792 pfl->cfi_table[0x04 + pri_ofs] = '0'; in pflash_cfi02_fill_cfi_table()
795 pfl->cfi_table[0x05 + pri_ofs] = 0x00; in pflash_cfi02_fill_cfi_table()
797 pfl->cfi_table[0x06 + pri_ofs] = 0x02; in pflash_cfi02_fill_cfi_table()
799 pfl->cfi_table[0x07 + pri_ofs] = 0x00; in pflash_cfi02_fill_cfi_table()
801 pfl->cfi_table[0x08 + pri_ofs] = 0x00; in pflash_cfi02_fill_cfi_table()
804 pfl->cfi_table[0x09 + pri_ofs] = 0x00; in pflash_cfi02_fill_cfi_table()
807 pfl->cfi_table[0x0a + pri_ofs] = 0x00; in pflash_cfi02_fill_cfi_table()
809 pfl->cfi_table[0x0b + pri_ofs] = 0x00; in pflash_cfi02_fill_cfi_table()
811 pfl->cfi_table[0x0c + pri_ofs] = 0x00; in pflash_cfi02_fill_cfi_table()
812 assert(0x0c + pri_ofs < ARRAY_SIZE(pfl->cfi_table)); in pflash_cfi02_fill_cfi_table()