/LevelX-v6.3.0/common/src/ |
D | lx_nand_flash_metadata_allocate.c | 91 UINT j; in _lx_nand_flash_metadata_allocate() local 123 for (j = 0; j < LX_NAND_FLASH_MAX_METADATA_BLOCKS - 1; j++) in _lx_nand_flash_metadata_allocate() 127 …lx_nand_flash_block_status_table[nand_flash -> lx_nand_flash_metadata_block[j]] = LX_NAND_BLOCK_ST… in _lx_nand_flash_metadata_allocate() 130 …_flash_block_status_table[nand_flash -> lx_nand_flash_backup_metadata_block[j]] = LX_NAND_BLOCK_ST… in _lx_nand_flash_metadata_allocate() 133 … nand_flash -> lx_nand_flash_erase_count_table[nand_flash -> lx_nand_flash_metadata_block[j]]++; in _lx_nand_flash_metadata_allocate() 136 …d_flash -> lx_nand_flash_erase_count_table[nand_flash -> lx_nand_flash_backup_metadata_block[j]]++; in _lx_nand_flash_metadata_allocate() 149 for (j = 0; j < nand_flash -> lx_nand_flash_total_blocks; j++) in _lx_nand_flash_metadata_allocate() 153 if(nand_flash -> lx_nand_flash_block_status_table[j] != LX_NAND_BLOCK_STATUS_BAD) in _lx_nand_flash_metadata_allocate() 157 if (nand_flash -> lx_nand_flash_erase_count_table[j] < min_erase_count) in _lx_nand_flash_metadata_allocate() 161 min_erase_count = nand_flash -> lx_nand_flash_erase_count_table[j]; in _lx_nand_flash_metadata_allocate() [all …]
|
D | lx_nor_flash_physical_sector_allocate.c | 95 ULONG i, j, k, l; in _lx_nor_flash_physical_sector_allocate() local 128 for (j = 0; j < nor_flash -> lx_nor_flash_block_bit_map_words; j++) in _lx_nor_flash_physical_sector_allocate() 135 … block_word = *(block_word_ptr + nor_flash -> lx_nor_flash_block_free_bit_map_offset + j); in _lx_nor_flash_physical_sector_allocate() 137 …flash, (block_word_ptr + nor_flash -> lx_nor_flash_block_free_bit_map_offset + j), &block_word, 1); in _lx_nor_flash_physical_sector_allocate() 169 … block_word = *(block_word_ptr + nor_flash -> lx_nor_flash_block_free_bit_map_offset + j); in _lx_nor_flash_physical_sector_allocate() 171 …flash, (block_word_ptr + nor_flash -> lx_nor_flash_block_free_bit_map_offset + j), &block_word, 1); in _lx_nor_flash_physical_sector_allocate() 189 …flash, (block_word_ptr + nor_flash -> lx_nor_flash_block_free_bit_map_offset + j), &block_word, 1); in _lx_nor_flash_physical_sector_allocate() 203 … if (((block_word >> 1) == 0) && (j == (nor_flash -> lx_nor_flash_block_bit_map_words - 1))) in _lx_nor_flash_physical_sector_allocate() 306 … block_word_ptr + (nor_flash -> lx_nor_flash_block_physical_sector_mapping_offset + (j * 32)) + k; in _lx_nor_flash_physical_sector_allocate() 307 …ck_word_ptr + (nor_flash -> lx_nor_flash_block_physical_sector_offset) + (((j * 32) + k) * LX_NOR_… in _lx_nor_flash_physical_sector_allocate()
|
D | lx_nor_flash_logical_sector_find.c | 108 ULONG i, j; in _lx_nor_flash_logical_sector_find() local 246 j = nor_flash -> lx_nor_flash_found_sector_search; in _lx_nor_flash_logical_sector_find() 276 j = 0; in _lx_nor_flash_logical_sector_find() 353 j = 0; in _lx_nor_flash_logical_sector_find() 376 search_start = j; in _lx_nor_flash_logical_sector_find() 383 …st_word_ptr = block_word_ptr + nor_flash -> lx_nor_flash_block_physical_sector_mapping_offset + j; in _lx_nor_flash_logical_sector_find() 430 j = 0; in _lx_nor_flash_logical_sector_find() 452 … block_word_ptr + nor_flash -> lx_nor_flash_block_physical_sector_offset + (j * LX_NOR_SECTOR_SIZE… in _lx_nor_flash_logical_sector_find() 475 nor_flash -> lx_nor_flash_found_sector_search = j+1; in _lx_nor_flash_logical_sector_find() 495 … block_word_ptr + nor_flash -> lx_nor_flash_block_physical_sector_offset + (j * LX_NOR_SECTOR_SIZE… in _lx_nor_flash_logical_sector_find() [all …]
|
D | lx_nor_flash_open.c | 124 ULONG j, k, l; in _lx_nor_flash_open() local 513 for (j = 0; j < bit_map_words; j++) in _lx_nor_flash_open() 520 … block_word = *(block_word_ptr + nor_flash -> lx_nor_flash_block_free_bit_map_offset + j); in _lx_nor_flash_open() 522 …flash, (block_word_ptr + nor_flash -> lx_nor_flash_block_free_bit_map_offset + j), &block_word, 1); in _lx_nor_flash_open() 569 for (j = 0; j < sectors_per_block; j++) in _lx_nor_flash_open() 576 …ock_word = *(block_word_ptr + nor_flash -> lx_nor_flash_block_physical_sector_mapping_offset + j); in _lx_nor_flash_open() 578 …ck_word_ptr + nor_flash -> lx_nor_flash_block_physical_sector_mapping_offset + j), &block_word, 1); in _lx_nor_flash_open() 630 …ck_word_ptr + nor_flash -> lx_nor_flash_block_physical_sector_mapping_offset + j), &block_word, 1); in _lx_nor_flash_open() 682 …ck_word_ptr + nor_flash -> lx_nor_flash_block_physical_sector_mapping_offset + j), &block_word, 1); in _lx_nor_flash_open() 721 …ck_word_ptr + nor_flash -> lx_nor_flash_block_physical_sector_mapping_offset + j), &block_word, 1); in _lx_nor_flash_open() [all …]
|
D | lx_nand_flash_256byte_ecc_check.c | 84 INT i, j; in _lx_nand_flash_256byte_ecc_check() local 119 for (j = 0; j < 8; j++) in _lx_nand_flash_256byte_ecc_check()
|
D | lx_nor_flash_extended_cache_enable.c | 112 UINT j; in _lx_nor_flash_extended_cache_enable() local 220 for (j = 0; j < nor_flash ->lx_nor_flash_physical_sectors_per_block; j++) in _lx_nor_flash_extended_cache_enable() 227 …ock_word = *(block_word_ptr + nor_flash -> lx_nor_flash_block_physical_sector_mapping_offset + j); in _lx_nor_flash_extended_cache_enable() 229 …ck_word_ptr + nor_flash -> lx_nor_flash_block_physical_sector_mapping_offset + j), &block_word, 1); in _lx_nor_flash_extended_cache_enable()
|
D | lx_nand_flash_256byte_ecc_compute.c | 88 USHORT i, j; in _lx_nand_flash_256byte_ecc_compute() local 123 for (j = 0; j < 16; j++) in _lx_nand_flash_256byte_ecc_compute()
|
D | lx_nor_flash_next_block_to_erase_find.c | 98 ULONG i, j; in _lx_nor_flash_next_block_to_erase_find() local 282 for (j = 0; j < nor_flash -> lx_nor_flash_physical_sectors_per_block; j++) in _lx_nor_flash_next_block_to_erase_find() 438 for (j = 0; j < nor_flash -> lx_nor_flash_physical_sectors_per_block; j++) in _lx_nor_flash_next_block_to_erase_find()
|
D | lx_nand_flash_simulator.c | 477 UINT i, j; in _lx_nand_flash_simulator_erase_all() local 484 for (j = 0; j < PHYSICAL_PAGES_PER_BLOCK;j++) in _lx_nand_flash_simulator_erase_all() 485 nand_block_diag[i].page_writes[j] = 0; in _lx_nand_flash_simulator_erase_all()
|