/LevelX-v6.3.0/common/src/ |
D | lx_nand_flash_256byte_ecc_check.c | 89 USHORT *data; in _lx_nand_flash_256byte_ecc_check() 90 USHORT byte; in _lx_nand_flash_256byte_ecc_check() 91 USHORT bit; in _lx_nand_flash_256byte_ecc_check() 153 data = (USHORT *) page_buffer; in _lx_nand_flash_256byte_ecc_check() 159 byte = (USHORT) ((byte | ((correction_code >> (21+2)) & 1) << 6) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check() 160 byte = (USHORT) ((byte | ((correction_code >> (19+2)) & 1) << 5) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check() 161 byte = (USHORT) ((byte | ((correction_code >> (17+2)) & 1) << 4) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check() 162 byte = (USHORT) ((byte | ((correction_code >> (15+2)) & 1) << 3) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check() 163 byte = (USHORT) ((byte | ((correction_code >> (13+2)) & 1) << 2) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check() 164 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 | 88 USHORT i, j; in _lx_nand_flash_256byte_ecc_compute() 89 USHORT *data; in _lx_nand_flash_256byte_ecc_compute() 90 USHORT bits, mask; in _lx_nand_flash_256byte_ecc_compute() 91 USHORT bit_parity; in _lx_nand_flash_256byte_ecc_compute() 92 USHORT even_bit_parity; in _lx_nand_flash_256byte_ecc_compute() 93 USHORT odd_bit_parity; in _lx_nand_flash_256byte_ecc_compute() 94 USHORT even_byte_parity; in _lx_nand_flash_256byte_ecc_compute() 95 USHORT odd_byte_parity; in _lx_nand_flash_256byte_ecc_compute() 111 data = (USHORT *) page_buffer; in _lx_nand_flash_256byte_ecc_compute() 135 mask = (USHORT) ((mask << 1) & 0xFFFF); in _lx_nand_flash_256byte_ecc_compute() [all …]
|
D | lx_nand_flash_block_find.c | 83 …ash_block_find(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG *block, USHORT *block_status) in _lx_nand_flash_block_find() 87 USHORT block_number; in _lx_nand_flash_block_find()
|
D | lx_nand_flash_memory_initialize.c | 101 … nand_flash -> lx_nand_flash_block_mapping_table = (USHORT*)(((UCHAR*)memory_ptr) + memory_offset); in _lx_nand_flash_memory_initialize() 144 nand_flash -> lx_nand_flash_block_list = (USHORT*)(((UCHAR*)memory_ptr) + memory_offset); in _lx_nand_flash_memory_initialize() 174 … 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 | 276 …nand_flash -> lx_nand_flash_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_metadata_block… in _lx_nand_flash_metadata_allocate() 279 …nand_flash -> lx_nand_flash_backup_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_backup_… in _lx_nand_flash_metadata_allocate() 308 … -> lx_nand_flash_metadata_block[nand_flash -> lx_nand_flash_metadata_block_count] = (USHORT)block; in _lx_nand_flash_metadata_allocate() 344 …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 | 84 …_copy(LX_NAND_FLASH* nand_flash, ULONG logical_sector, ULONG source_block, USHORT src_block_status, in _lx_nand_flash_data_page_copy() 85 … ULONG destination_block, USHORT* dest_block_status_ptr, ULONG sectors) in _lx_nand_flash_data_page_copy() 247 …*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 | 101 USHORT block_status = 0; in _lx_nand_flash_sector_write() 102 USHORT new_block_status = LX_NAND_BLOCK_STATUS_ALLOCATED; in _lx_nand_flash_sector_write() 242 if (nand_flash -> lx_nand_flash_spare_data2_length >= sizeof(USHORT)) in _lx_nand_flash_sector_write() 298 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 | 94 USHORT block_status; in _lx_nand_flash_block_data_move() 95 USHORT new_block_status; in _lx_nand_flash_block_data_move()
|
D | lx_nand_flash_block_status_set.c | 85 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 | 97 USHORT block_status; in _lx_nand_flash_sector_release() 103 USHORT new_block_status; in _lx_nand_flash_sector_release() 407 if (nand_flash -> lx_nand_flash_spare_data2_length >= sizeof(USHORT)) in _lx_nand_flash_sector_release() 452 …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 | 97 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 | 116 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 | 116 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 | 260 …nand_flash -> lx_nand_flash_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_metadata_block… in _lx_nand_flash_open() 261 …nand_flash -> lx_nand_flash_backup_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_backup_… in _lx_nand_flash_open() 384 …lash_metadata_block[nand_flash -> lx_nand_flash_metadata_block_count] = (USHORT)LX_UTILITY_LONG_GE… in _lx_nand_flash_open() 385 …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 | 252 …tatus_table[nand_flash -> lx_nand_flash_backup_metadata_block_number] = (USHORT)nand_flash -> lx_n… in _lx_nand_flash_format() 253 …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 | 90 USHORT block_status; in _lx_nand_flash_sector_read()
|
/LevelX-v6.3.0/common/inc/ |
D | lx_api.h | 142 typedef unsigned short USHORT; typedef 312 #define LX_UTILITY_SHORT_SET(address, value) *((USHORT*)(address)) = (USHORT)(value) 320 #define LX_UTILITY_SHORT_GET(address) (*((USHORT*)(address))) 430 USHORT *lx_nand_flash_block_mapping_table; 432 USHORT *lx_nand_flash_block_status_table; 436 USHORT *lx_nand_flash_block_list; 446 USHORT lx_nand_flash_metadata_block[LX_NAND_FLASH_MAX_METADATA_BLOCKS]; 452 …USHORT lx_nand_flash_backup_metadata_block[LX_NAND_FLASH_MAX_METADATA_BLO… 775 …sh_block_find(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG *block, USHORT *block_status); 781 …_copy(LX_NAND_FLASH* nand_flash, ULONG logical_sector, ULONG source_block, USHORT src_block_status, [all …]
|