/LevelX-v6.3.0/common/src/ |
D | lx_nand_flash_256byte_ecc_compute.c | 85 UINT _lx_nand_flash_256byte_ecc_compute(UCHAR *page_buffer, UCHAR *ecc_buffer) in _lx_nand_flash_256byte_ecc_compute() 168 …ecc_buffer[(21+2)/8] = ((UCHAR)(ecc_buffer[(21+2)/8] | ((odd_byte_parity >> 6) & 1) << (21+2)%8) &… in _lx_nand_flash_256byte_ecc_compute() 171 …ecc_buffer[(20+2)/8] = ((UCHAR)(ecc_buffer[(20+2)/8] | ((even_byte_parity >> 6) & 1) << (20+2)%8) … in _lx_nand_flash_256byte_ecc_compute() 174 …ecc_buffer[(19+2)/8] = ((UCHAR)(ecc_buffer[(19+2)/8] | ((odd_byte_parity >> 5) & 1) << (19+2)%8) &… in _lx_nand_flash_256byte_ecc_compute() 177 …ecc_buffer[(18+2)/8] = ((UCHAR)(ecc_buffer[(18+2)/8] | ((even_byte_parity >> 5) & 1) << (18+2)%8) … in _lx_nand_flash_256byte_ecc_compute() 180 …ecc_buffer[(17+2)/8] = ((UCHAR)(ecc_buffer[(17+2)/8] | ((odd_byte_parity >> 4) & 1) << (17+2)%8) &… in _lx_nand_flash_256byte_ecc_compute() 183 …ecc_buffer[(16+2)/8] = ((UCHAR)(ecc_buffer[(16+2)/8] | ((even_byte_parity >> 4) & 1) << (16+2)%8) … in _lx_nand_flash_256byte_ecc_compute() 186 …ecc_buffer[(15+2)/8] = ((UCHAR)(ecc_buffer[(15+2)/8] | ((odd_byte_parity >> 3) & 1) << (15+2)%8) &… in _lx_nand_flash_256byte_ecc_compute() 189 …ecc_buffer[(14+2)/8] = ((UCHAR)(ecc_buffer[(14+2)/8] | ((even_byte_parity >> 3) & 1) << (14+2)%8) … in _lx_nand_flash_256byte_ecc_compute() 192 …ecc_buffer[(13+2)/8] = ((UCHAR)(ecc_buffer[(13+2)/8] | ((odd_byte_parity >> 2) & 1) << (13+2)%8) &… in _lx_nand_flash_256byte_ecc_compute() [all …]
|
D | lx_nand_flash_simulator.c | 116 UINT _lx_nand_flash_simulator_block_status_get(LX_NAND_FLASH *nand_flash, ULONG block, UCHAR *bad_… 117 UINT _lx_nand_flash_simulator_block_status_set(LX_NAND_FLASH *nand_flash, ULONG block, UCHAR bad_b… 118 …lator_extra_bytes_get(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page, UCHAR *destination, UINT… 119 …lator_extra_bytes_set(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page, UCHAR *source, UINT size… 122 …_pages_read(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page, UCHAR* main_buffer, UCHAR* spare_b… 123 …pages_write(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page, UCHAR* main_buffer, UCHAR* spare_b… 124 …ONG source_page, ULONG destination_block, ULONG destination_page, ULONG pages, UCHAR* data_buffer); 131 UINT _lx_nand_flash_simulator_block_status_get(ULONG block, UCHAR *bad_block_byte); 132 UINT _lx_nand_flash_simulator_block_status_set(ULONG block, UCHAR bad_block_byte); 133 UINT _lx_nand_flash_simulator_extra_bytes_get(ULONG block, ULONG page, UCHAR *destination, UINT si… [all …]
|
D | lx_nand_flash_erase_count_set.c | 77 UINT _lx_nand_flash_erase_count_set(LX_NAND_FLASH *nand_flash, ULONG block, UCHAR erase_count) in _lx_nand_flash_erase_count_set() 80 UCHAR page_number; in _lx_nand_flash_erase_count_set() 88 …page_number = (UCHAR)(block * sizeof(*nand_flash -> lx_nand_flash_erase_count_table) / nand_flash … in _lx_nand_flash_erase_count_set() 91 …status = _lx_nand_flash_metadata_write(nand_flash, ((UCHAR*)nand_flash -> lx_nand_flash_erase_coun… in _lx_nand_flash_erase_count_set()
|
D | fx_nor_flash_simulator_driver.c | 127 UCHAR *source_buffer; in _fx_nor_flash_simulator_driver() 128 UCHAR *destination_buffer; in _fx_nor_flash_simulator_driver() 213 destination_buffer = (UCHAR *) media_ptr -> fx_media_driver_buffer; in _fx_nor_flash_simulator_driver() 247 source_buffer = (UCHAR *) media_ptr -> fx_media_driver_buffer; in _fx_nor_flash_simulator_driver() 397 destination_buffer = (UCHAR *) media_ptr -> fx_media_driver_buffer; in _fx_nor_flash_simulator_driver() 403 if ((destination_buffer[0] != (UCHAR) 0xEB) || in _fx_nor_flash_simulator_driver() 404 (destination_buffer[1] != (UCHAR) 0x34) || in _fx_nor_flash_simulator_driver() 405 (destination_buffer[2] != (UCHAR) 0x90)) in _fx_nor_flash_simulator_driver() 443 source_buffer = (UCHAR *) media_ptr -> fx_media_driver_buffer; in _fx_nor_flash_simulator_driver()
|
D | lx_nand_flash_256byte_ecc_check.c | 81 UINT _lx_nand_flash_256byte_ecc_check(UCHAR *page_buffer, UCHAR *ecc_buffer) in _lx_nand_flash_256byte_ecc_check() 85 UCHAR mask; in _lx_nand_flash_256byte_ecc_check() 86 UCHAR new_ecc_buffer[3]; in _lx_nand_flash_256byte_ecc_check() 87 UCHAR ecc_errors[3]; in _lx_nand_flash_256byte_ecc_check() 131 mask = (UCHAR) ((mask << 1) & 0xFF); in _lx_nand_flash_256byte_ecc_check()
|
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() 127 nand_flash -> lx_nand_flash_erase_count_table = (UCHAR*)(((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() 191 nand_flash -> lx_nand_flash_page_buffer = ((UCHAR*)memory_ptr) + memory_offset; in _lx_nand_flash_memory_initialize()
|
D | lx_nand_flash_block_status_set.c | 80 UCHAR page_number; in _lx_nand_flash_block_status_set() 88 …page_number = (UCHAR)(block * sizeof(*nand_flash -> lx_nand_flash_block_status_table) / nand_flash… in _lx_nand_flash_block_status_set() 91 …status = _lx_nand_flash_metadata_write(nand_flash, ((UCHAR*)nand_flash -> lx_nand_flash_block_stat… in _lx_nand_flash_block_status_set()
|
D | fx_nand_flash_simulated_driver.c | 41 VOID _fx_nand_flash_read_sectors(ULONG logical_sector, ULONG sectors, UCHAR *destination_buffer); 42 VOID _fx_nand_flash_write_sectors(ULONG logical_sector, ULONG sectors, UCHAR *source_buffer); 139 UCHAR *buffer; in _fx_nand_flash_simulator_driver() 223 buffer = (UCHAR *) media_ptr -> fx_media_driver_buffer; in _fx_nand_flash_simulator_driver() 256 buffer = (UCHAR *) media_ptr -> fx_media_driver_buffer; in _fx_nand_flash_simulator_driver() 403 …status = _lx_nand_flash_sector_read(&nand_flash, 0, (UCHAR *) media_ptr -> fx_media_driver_buffer… in _fx_nand_flash_simulator_driver() 424 …status = _lx_nand_flash_sector_write(&nand_flash, 0, (UCHAR *) media_ptr -> fx_media_driver_buffe… in _fx_nand_flash_simulator_driver()
|
D | lx_nand_flash_block_mapping_set.c | 81 UCHAR page_number; in _lx_nand_flash_block_mapping_set() 100 …page_number = (UCHAR)(block_mapping_index * sizeof(*nand_flash -> lx_nand_flash_block_mapping_tabl… in _lx_nand_flash_block_mapping_set() 103 …status = _lx_nand_flash_metadata_write(nand_flash, ((UCHAR*)nand_flash -> lx_nand_flash_block_mapp… in _lx_nand_flash_block_mapping_set()
|
D | lx_nand_flash_sector_read.c | 91 UCHAR *spare_buffer_ptr; in _lx_nand_flash_sector_read() 132 spare_buffer_ptr = (UCHAR*)nand_flash -> lx_nand_flash_page_buffer; in _lx_nand_flash_sector_read() 147 …lash -> lx_nand_flash_driver_pages_read)(nand_flash, block, (ULONG)page, (UCHAR*)buffer, spare_buf… in _lx_nand_flash_sector_read() 149 …status = (nand_flash -> lx_nand_flash_driver_pages_read)(block, (ULONG)page, (UCHAR*)buffer, spare… in _lx_nand_flash_sector_read() 189 …sh, block, logical_sector % nand_flash -> lx_nand_flash_pages_per_block, (UCHAR*)buffer, spare_buf… in _lx_nand_flash_sector_read() 191 …ad)(block, logical_sector % nand_flash -> lx_nand_flash_pages_per_block, (UCHAR*)buffer, spare_buf… in _lx_nand_flash_sector_read()
|
D | lx_nand_flash_page_ecc_compute.c | 81 UINT _lx_nand_flash_page_ecc_compute(LX_NAND_FLASH *nand_flash, UCHAR *page_buffer, UCHAR *ecc_buf… in _lx_nand_flash_page_ecc_compute()
|
D | lx_nand_flash_metadata_build.c | 95 …status = _lx_nand_flash_metadata_write(nand_flash, (UCHAR*)nand_device_info_page, LX_NAND_PAGE_TYP… in _lx_nand_flash_metadata_build() 113 …status = _lx_nand_flash_metadata_write(nand_flash, (UCHAR*)(nand_flash -> lx_nand_flash_erase_coun… in _lx_nand_flash_metadata_build() 134 …status = _lx_nand_flash_metadata_write(nand_flash, (UCHAR*)(nand_flash -> lx_nand_flash_block_mapp… in _lx_nand_flash_metadata_build() 154 …status = _lx_nand_flash_metadata_write(nand_flash, (UCHAR*)(nand_flash -> lx_nand_flash_block_stat… in _lx_nand_flash_metadata_build()
|
D | lx_nand_flash_page_ecc_check.c | 82 UINT _lx_nand_flash_page_ecc_check(LX_NAND_FLASH *nand_flash, UCHAR *page_buffer, UCHAR *ecc_buffe… in _lx_nand_flash_page_ecc_check()
|
D | lx_nand_flash_format.c | 104 UCHAR block_status; in _lx_nand_flash_format() 106 UCHAR *page_buffer_ptr; in _lx_nand_flash_format() 111 …LX_MEMSET(nand_flash, 0, (ULONG)((UCHAR*)&(nand_flash -> lx_nand_flash_open_previous) - (UCHAR*)na… in _lx_nand_flash_format()
|
D | lx_nand_flash_open.c | 102 UCHAR block_status; in _lx_nand_flash_open() 107 UCHAR *spare_buffer_ptr; in _lx_nand_flash_open() 108 UCHAR *page_buffer_ptr; in _lx_nand_flash_open() 110 UCHAR page_index; in _lx_nand_flash_open() 116 …LX_MEMSET(nand_flash, 0, (ULONG)((UCHAR*)&(nand_flash -> lx_nand_flash_open_previous) - (UCHAR*)na… in _lx_nand_flash_open()
|
D | lx_nand_flash_metadata_write.c | 80 UINT _lx_nand_flash_metadata_write(LX_NAND_FLASH *nand_flash, UCHAR* main_buffer, ULONG spare_valu… in _lx_nand_flash_metadata_write() 86 UCHAR *spare_buffer_ptr; in _lx_nand_flash_metadata_write()
|
D | lx_nand_flash_sector_release.c | 98 UCHAR *spare_buffer_ptr; in _lx_nand_flash_sector_release() 144 spare_buffer_ptr = (UCHAR*)nand_flash -> lx_nand_flash_page_buffer; in _lx_nand_flash_sector_release() 338 …status = _lx_nand_flash_erase_count_set(nand_flash, block, (UCHAR)(nand_flash -> lx_nand_flash_era… in _lx_nand_flash_sector_release() 419 …-> lx_nand_flash_driver_pages_write)(nand_flash, block, available_pages, (UCHAR*)nand_flash -> lx_… in _lx_nand_flash_sector_release() 421 …(nand_flash -> lx_nand_flash_driver_pages_write)(block, available_pages, (UCHAR*)nand_flash -> lx_… in _lx_nand_flash_sector_release()
|
D | lx_nand_flash_driver_block_status_get.c | 87 UINT _lx_nand_flash_driver_block_status_get(LX_NAND_FLASH *nand_flash, ULONG block, UCHAR *bad_blo… in _lx_nand_flash_driver_block_status_get()
|
D | lx_nand_flash_driver_block_status_set.c | 87 UINT _lx_nand_flash_driver_block_status_set(LX_NAND_FLASH *nand_flash, ULONG block, UCHAR bad_bloc… in _lx_nand_flash_driver_block_status_set()
|
D | lx_nand_flash_sector_write.c | 103 UCHAR *spare_buffer_ptr; in _lx_nand_flash_sector_write() 257 …status = (nand_flash -> lx_nand_flash_driver_pages_write)(nand_flash, new_block, page, (UCHAR*)buf… in _lx_nand_flash_sector_write() 259 …status = (nand_flash -> lx_nand_flash_driver_pages_write)(new_block, page, (UCHAR*)buffer, spare_b… in _lx_nand_flash_sector_write() 367 …status = _lx_nand_flash_erase_count_set(nand_flash, block, (UCHAR)(nand_flash -> lx_nand_flash_era… in _lx_nand_flash_sector_write()
|
D | lx_nand_flash_sectors_write.c | 92 …status = _lx_nand_flash_sector_write(nand_flash, logical_sector + i, ((UCHAR*)buffer) + i * nand_f… in _lx_nand_flash_sectors_write()
|
D | lx_nand_flash_sectors_read.c | 92 …status = _lx_nand_flash_sector_read(nand_flash, logical_sector + i, ((UCHAR*)buffer) + i * nand_fl… in _lx_nand_flash_sectors_read()
|
D | lx_nand_flash_metadata_allocate.c | 90 UCHAR *page_buffer_ptr; in _lx_nand_flash_metadata_allocate() 92 UCHAR min_erase_count; in _lx_nand_flash_metadata_allocate() 179 …nand_flash -> lx_nand_flash_erase_count_table[j] = (UCHAR)(nand_flash -> lx_nand_flash_erase_count… in _lx_nand_flash_metadata_allocate()
|
D | lx_nand_flash_free_block_list_add.c | 81 UCHAR new_block_erase_count; in _lx_nand_flash_free_block_list_add()
|
/LevelX-v6.3.0/common/inc/ |
D | lx_api.h | 136 typedef unsigned char UCHAR; typedef 259 #define LX_NOR_OBSOLETE_COUNT_CACHE_TYPE UCHAR 434 UCHAR *lx_nand_flash_erase_count_table; 486 …ver_block_status_get)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, UCHAR *bad_block_flag); 487 …iver_block_status_set)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, UCHAR bad_block_flag); 488 …es_get)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, ULONG page, UCHAR *destination, UINT… 489 …es_set)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, ULONG page, UCHAR *source, UINT size… 492 …ruct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, ULONG page, UCHAR* main_buffer, UCHAR* spare_b… 493 …ruct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, ULONG page, UCHAR* main_buffer, UCHAR* spare_b… 494 …ONG source_page, ULONG destination_block, ULONG destination_page, ULONG pages, UCHAR* data_buffer); [all …]
|