/LevelX-v6.4.1/common/src/ |
D | lx_nand_flash_256byte_ecc_check.c | 88 USHORT *data; in _lx_nand_flash_256byte_ecc_check() 89 USHORT byte; in _lx_nand_flash_256byte_ecc_check() 90 USHORT bit; in _lx_nand_flash_256byte_ecc_check() 152 data = (USHORT *) page_buffer; in _lx_nand_flash_256byte_ecc_check() 158 byte = (USHORT) ((byte | ((correction_code >> (21+2)) & 1) << 6) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check() 159 byte = (USHORT) ((byte | ((correction_code >> (19+2)) & 1) << 5) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check() 160 byte = (USHORT) ((byte | ((correction_code >> (17+2)) & 1) << 4) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check() 161 byte = (USHORT) ((byte | ((correction_code >> (15+2)) & 1) << 3) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check() 162 byte = (USHORT) ((byte | ((correction_code >> (13+2)) & 1) << 2) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check() 163 byte = (USHORT) ((byte | ((correction_code >> (11+2)) & 1) << 1) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check() [all …]
|
D | lx_nand_flash_256byte_ecc_compute.c | 87 USHORT i, j; in _lx_nand_flash_256byte_ecc_compute() 88 USHORT *data; in _lx_nand_flash_256byte_ecc_compute() 89 USHORT bits, mask; in _lx_nand_flash_256byte_ecc_compute() 90 USHORT bit_parity; in _lx_nand_flash_256byte_ecc_compute() 91 USHORT even_bit_parity; in _lx_nand_flash_256byte_ecc_compute() 92 USHORT odd_bit_parity; in _lx_nand_flash_256byte_ecc_compute() 93 USHORT even_byte_parity; in _lx_nand_flash_256byte_ecc_compute() 94 USHORT odd_byte_parity; in _lx_nand_flash_256byte_ecc_compute() 110 data = (USHORT *) page_buffer; in _lx_nand_flash_256byte_ecc_compute() 134 mask = (USHORT) ((mask << 1) & 0xFFFF); in _lx_nand_flash_256byte_ecc_compute() [all …]
|
D | lx_nand_flash_block_find.c | 82 …ash_block_find(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG *block, USHORT *block_status) in _lx_nand_flash_block_find() 86 USHORT block_number; in _lx_nand_flash_block_find()
|
D | lx_nand_flash_memory_initialize.c | 100 … nand_flash -> lx_nand_flash_block_mapping_table = (USHORT*)(((UCHAR*)memory_ptr) + memory_offset); in _lx_nand_flash_memory_initialize() 143 nand_flash -> lx_nand_flash_block_list = (USHORT*)(((UCHAR*)memory_ptr) + memory_offset); in _lx_nand_flash_memory_initialize() 173 … nand_flash -> lx_nand_flash_block_status_table = (USHORT*)(((UCHAR*)memory_ptr) + memory_offset); in _lx_nand_flash_memory_initialize()
|
D | lx_nand_flash_metadata_allocate.c | 275 …nand_flash -> lx_nand_flash_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_metadata_block… in _lx_nand_flash_metadata_allocate() 278 …nand_flash -> lx_nand_flash_backup_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_backup_… in _lx_nand_flash_metadata_allocate() 307 … -> lx_nand_flash_metadata_block[nand_flash -> lx_nand_flash_metadata_block_count] = (USHORT)block; in _lx_nand_flash_metadata_allocate() 343 …nand_flash_backup_metadata_block[nand_flash -> lx_nand_flash_metadata_block_count] = (USHORT)block; in _lx_nand_flash_metadata_allocate()
|
D | lx_nand_flash_data_page_copy.c | 87 …_copy(LX_NAND_FLASH* nand_flash, ULONG logical_sector, ULONG source_block, USHORT src_block_status, in _lx_nand_flash_data_page_copy() 88 … ULONG destination_block, USHORT* dest_block_status_ptr, ULONG sectors) in _lx_nand_flash_data_page_copy() 250 …*dest_block_status_ptr = (USHORT)(destination_page | (dest_block_status & ~LX_NAND_BLOCK_STATUS_PA… in _lx_nand_flash_data_page_copy()
|
D | lx_nand_flash_sector_write.c | 100 USHORT block_status = 0; in _lx_nand_flash_sector_write() 101 USHORT new_block_status = LX_NAND_BLOCK_STATUS_ALLOCATED; in _lx_nand_flash_sector_write() 241 if (nand_flash -> lx_nand_flash_spare_data2_length >= sizeof(USHORT)) in _lx_nand_flash_sector_write() 297 new_block_status = (USHORT)(page | (new_block_status & ~LX_NAND_BLOCK_STATUS_PAGE_NUMBER_MASK)); in _lx_nand_flash_sector_write()
|
D | lx_nand_flash_block_data_move.c | 93 USHORT block_status; in _lx_nand_flash_block_data_move() 94 USHORT new_block_status; in _lx_nand_flash_block_data_move()
|
D | lx_nand_flash_block_status_set.c | 84 nand_flash -> lx_nand_flash_block_status_table[block] = (USHORT)block_status; in _lx_nand_flash_block_status_set()
|
D | lx_nand_flash_sector_release.c | 96 USHORT block_status; in _lx_nand_flash_sector_release() 102 USHORT new_block_status; in _lx_nand_flash_sector_release() 406 if (nand_flash -> lx_nand_flash_spare_data2_length >= sizeof(USHORT)) in _lx_nand_flash_sector_release() 451 …block_status = (USHORT)(available_pages | (block_status & ~LX_NAND_BLOCK_STATUS_PAGE_NUMBER_MASK)); in _lx_nand_flash_sector_release()
|
D | lx_nand_flash_block_mapping_set.c | 96 nand_flash -> lx_nand_flash_block_mapping_table[block_mapping_index] = (USHORT)block; in _lx_nand_flash_block_mapping_set()
|
D | lx_nand_flash_free_block_list_add.c | 115 nand_flash -> lx_nand_flash_block_list[insert_position] = (USHORT)block; in _lx_nand_flash_free_block_list_add()
|
D | lx_nand_flash_mapped_block_list_add.c | 115 nand_flash -> lx_nand_flash_block_list[insert_position] = (USHORT)block_mapping_index; in _lx_nand_flash_mapped_block_list_add()
|
D | lx_nand_flash_open.c | 259 …nand_flash -> lx_nand_flash_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_metadata_block… in _lx_nand_flash_open() 260 …nand_flash -> lx_nand_flash_backup_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_backup_… in _lx_nand_flash_open() 383 …lash_metadata_block[nand_flash -> lx_nand_flash_metadata_block_count] = (USHORT)LX_UTILITY_LONG_GE… in _lx_nand_flash_open() 384 …ckup_metadata_block[nand_flash -> lx_nand_flash_metadata_block_count] = (USHORT)LX_UTILITY_LONG_GE… in _lx_nand_flash_open()
|
D | lx_nand_flash_format.c | 251 …tatus_table[nand_flash -> lx_nand_flash_backup_metadata_block_number] = (USHORT)nand_flash -> lx_n… in _lx_nand_flash_format() 252 …block_status_table[nand_flash -> lx_nand_flash_metadata_block_number] = (USHORT)nand_flash -> lx_n… in _lx_nand_flash_format()
|
D | lx_nand_flash_sector_read.c | 89 USHORT block_status; in _lx_nand_flash_sector_read()
|
/LevelX-v6.4.1/common/inc/ |
D | lx_api.h | 147 typedef unsigned short USHORT; typedef 330 #define LX_UTILITY_SHORT_SET(address, value) *((USHORT*)(address)) = (USHORT)(value) 338 #define LX_UTILITY_SHORT_GET(address) (*((USHORT*)(address))) 448 USHORT *lx_nand_flash_block_mapping_table; 450 USHORT *lx_nand_flash_block_status_table; 454 USHORT *lx_nand_flash_block_list; 464 USHORT lx_nand_flash_metadata_block[LX_NAND_FLASH_MAX_METADATA_BLOCKS]; 470 …USHORT lx_nand_flash_backup_metadata_block[LX_NAND_FLASH_MAX_METADATA_BLO… 793 …sh_block_find(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG *block, USHORT *block_status); 799 …_copy(LX_NAND_FLASH* nand_flash, ULONG logical_sector, ULONG source_block, USHORT src_block_status, [all …]
|