Home
last modified time | relevance | path

Searched refs:UCHAR (Results 1 – 25 of 31) sorted by relevance

12

/LevelX-v6.3.0/common/src/
Dlx_nand_flash_256byte_ecc_compute.c85 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 …]
Dlx_nand_flash_simulator.c116 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 …]
Dlx_nand_flash_erase_count_set.c77 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()
Dfx_nor_flash_simulator_driver.c127 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()
Dlx_nand_flash_256byte_ecc_check.c81 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()
Dlx_nand_flash_memory_initialize.c101 … 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()
Dlx_nand_flash_block_status_set.c80 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()
Dfx_nand_flash_simulated_driver.c41 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()
Dlx_nand_flash_block_mapping_set.c81 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()
Dlx_nand_flash_sector_read.c91 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()
Dlx_nand_flash_page_ecc_compute.c81 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()
Dlx_nand_flash_metadata_build.c95 …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()
Dlx_nand_flash_page_ecc_check.c82 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()
Dlx_nand_flash_format.c104 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()
Dlx_nand_flash_open.c102 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()
Dlx_nand_flash_metadata_write.c80 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()
Dlx_nand_flash_sector_release.c98 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()
Dlx_nand_flash_driver_block_status_get.c87 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()
Dlx_nand_flash_driver_block_status_set.c87 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()
Dlx_nand_flash_sector_write.c103 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()
Dlx_nand_flash_sectors_write.c92 …status = _lx_nand_flash_sector_write(nand_flash, logical_sector + i, ((UCHAR*)buffer) + i * nand_f… in _lx_nand_flash_sectors_write()
Dlx_nand_flash_sectors_read.c92 …status = _lx_nand_flash_sector_read(nand_flash, logical_sector + i, ((UCHAR*)buffer) + i * nand_fl… in _lx_nand_flash_sectors_read()
Dlx_nand_flash_metadata_allocate.c90 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()
Dlx_nand_flash_free_block_list_add.c81 UCHAR new_block_erase_count; in _lx_nand_flash_free_block_list_add()
/LevelX-v6.3.0/common/inc/
Dlx_api.h136 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 …]

12