Home
last modified time | relevance | path

Searched refs:block (Results 1 – 25 of 27) sorted by relevance

12

/LevelX-v6.3.0/common/src/
Dlx_nand_flash_simulator.c111 UINT _lx_nand_flash_simulator_read(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page, ULONG *dest…
112 UINT _lx_nand_flash_simulator_write(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page, ULONG *sou…
113 UINT _lx_nand_flash_simulator_block_erase(LX_NAND_FLASH *nand_flash, ULONG block, ULONG erase_coun…
114 UINT _lx_nand_flash_simulator_block_erased_verify(LX_NAND_FLASH *nand_flash, ULONG block);
115 UINT _lx_nand_flash_simulator_page_erased_verify(LX_NAND_FLASH *nand_flash, ULONG block, ULONG pag…
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 UINT _lx_nand_flash_simulator_extra_bytes_get(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page, …
119 UINT _lx_nand_flash_simulator_extra_bytes_set(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page, …
120 UINT _lx_nand_flash_simulator_system_error(LX_NAND_FLASH *nand_flash, UINT error_code, ULONG block
[all …]
Dlx_nand_flash_metadata_allocate.c87 ULONG block; in _lx_nand_flash_metadata_allocate() local
203 block = nand_flash -> lx_nand_flash_metadata_block[j]; in _lx_nand_flash_metadata_allocate()
206 …block_erase(nand_flash, block, nand_flash -> lx_nand_flash_base_erase_count + nand_flash -> lx_nan… in _lx_nand_flash_metadata_allocate()
213 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_metadata_allocate()
225 … if (nand_flash -> lx_nand_flash_erase_count_table[block] > LX_NAND_FLASH_MAX_ERASE_COUNT_DELTA) in _lx_nand_flash_metadata_allocate()
229 _lx_nand_flash_block_data_move(nand_flash, block); in _lx_nand_flash_metadata_allocate()
235 _lx_nand_flash_free_block_list_add(nand_flash, block); in _lx_nand_flash_metadata_allocate()
239 block = nand_flash -> lx_nand_flash_backup_metadata_block[j]; in _lx_nand_flash_metadata_allocate()
242 …block_erase(nand_flash, block, nand_flash -> lx_nand_flash_base_erase_count + nand_flash -> lx_nan… in _lx_nand_flash_metadata_allocate()
249 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_metadata_allocate()
[all …]
Dlx_nand_flash_block_data_move.c93 ULONG block; in _lx_nand_flash_block_data_move() local
110 …d_flash, block_mapping_index * nand_flash -> lx_nand_flash_pages_per_block, &block, &block_status); in _lx_nand_flash_block_data_move()
124 …flash, block_mapping_index * nand_flash -> lx_nand_flash_pages_per_block, block, block_status, new… in _lx_nand_flash_block_data_move()
183 …block_erase(nand_flash, block, nand_flash -> lx_nand_flash_base_erase_count + nand_flash -> lx_nan… in _lx_nand_flash_block_data_move()
190 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_block_data_move()
197 …_lx_nand_flash_erase_count_set(nand_flash, block, (UCHAR)(nand_flash -> lx_nand_flash_erase_count_… in _lx_nand_flash_block_data_move()
204 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_block_data_move()
211 status = _lx_nand_flash_block_status_set(nand_flash, block, LX_NAND_BLOCK_STATUS_FREE); in _lx_nand_flash_block_data_move()
218 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_block_data_move()
226 status = _lx_nand_flash_free_block_list_add(nand_flash, block); in _lx_nand_flash_block_data_move()
Dlx_nand_flash_format.c103 ULONG block; in _lx_nand_flash_format() local
158 for (block = 0; block < nand_flash -> lx_nand_flash_total_blocks; block++) in _lx_nand_flash_format()
162 status = _lx_nand_flash_driver_block_status_get(nand_flash, block, &block_status); in _lx_nand_flash_format()
169 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_format()
185 nand_flash -> lx_nand_flash_block_status_table[block] = LX_NAND_BLOCK_STATUS_BAD; in _lx_nand_flash_format()
192 status = _lx_nand_flash_driver_block_erase(nand_flash, block, 0); in _lx_nand_flash_format()
199 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_format()
202 status = _lx_nand_flash_driver_block_status_set(nand_flash, block, LX_NAND_BAD_BLOCK); in _lx_nand_flash_format()
209 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_format()
216 nand_flash -> lx_nand_flash_block_status_table[block] = LX_NAND_BLOCK_STATUS_BAD; in _lx_nand_flash_format()
[all …]
Dlx_nand_flash_sector_release.c96 ULONG block; in _lx_nand_flash_sector_release() local
116 status = _lx_nand_flash_block_find(nand_flash, logical_sector, &block, &block_status); in _lx_nand_flash_sector_release()
123 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_sector_release()
140 if (block != LX_NAND_BLOCK_UNMAPPED) in _lx_nand_flash_sector_release()
159 …status = (nand_flash -> lx_nand_flash_driver_pages_read)(nand_flash, block, (ULONG)page, LX_NULL, … in _lx_nand_flash_sector_release()
161 …status = (nand_flash -> lx_nand_flash_driver_pages_read)(block, (ULONG)page, LX_NULL, spare_buffer… in _lx_nand_flash_sector_release()
169 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_sector_release()
240 …_sector - (logical_sector % nand_flash -> lx_nand_flash_pages_per_block), block, block_status, new… in _lx_nand_flash_sector_release()
263 …status = _lx_nand_flash_data_page_copy(nand_flash, logical_sector + 1, block, block_status, new_bl… in _lx_nand_flash_sector_release()
303 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_sector_release()
[all …]
Dlx_nand_flash_metadata_write.c83 ULONG block; in _lx_nand_flash_metadata_write() local
107 block = nand_flash -> lx_nand_flash_metadata_block_number_current; in _lx_nand_flash_metadata_write()
114 …status = (nand_flash -> lx_nand_flash_driver_pages_write)(nand_flash, block, page, main_buffer, sp… in _lx_nand_flash_metadata_write()
116 …status = (nand_flash -> lx_nand_flash_driver_pages_write)(block, page, main_buffer, spare_buffer_p… in _lx_nand_flash_metadata_write()
124 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_metadata_write()
134 block = nand_flash -> lx_nand_flash_backup_metadata_block_number_current; in _lx_nand_flash_metadata_write()
141 …status = (nand_flash -> lx_nand_flash_driver_pages_write)(nand_flash, block, page, main_buffer, sp… in _lx_nand_flash_metadata_write()
143 …status = (nand_flash -> lx_nand_flash_driver_pages_write)(block, page, main_buffer, spare_buffer_p… in _lx_nand_flash_metadata_write()
151 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_metadata_write()
Dlx_nand_flash_sector_write.c98 ULONG block; in _lx_nand_flash_sector_write() local
117 status = _lx_nand_flash_block_find(nand_flash, logical_sector, &block, &block_status); in _lx_nand_flash_sector_write()
124 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_sector_write()
141 if (block == LX_NAND_BLOCK_UNMAPPED || block_status & LX_NAND_BLOCK_STATUS_FULL) in _lx_nand_flash_sector_write()
196 new_block = block; in _lx_nand_flash_sector_write()
208 …_sector - (logical_sector % nand_flash -> lx_nand_flash_pages_per_block), block, block_status, new… in _lx_nand_flash_sector_write()
215 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_sector_write()
305 …status = _lx_nand_flash_data_page_copy(nand_flash, logical_sector + 1, block, block_status, new_bl… in _lx_nand_flash_sector_write()
312 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_sector_write()
348 …block_erase(nand_flash, block, nand_flash -> lx_nand_flash_base_erase_count + nand_flash -> lx_nan… in _lx_nand_flash_sector_write()
[all …]
Dlx_nand_flash_sector_read.c89 ULONG block; in _lx_nand_flash_sector_read() local
105 status = _lx_nand_flash_block_find(nand_flash, logical_sector, &block, &block_status); in _lx_nand_flash_sector_read()
112 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_sector_read()
128 if (block != LX_NAND_BLOCK_UNMAPPED) in _lx_nand_flash_sector_read()
147 …status = (nand_flash -> lx_nand_flash_driver_pages_read)(nand_flash, block, (ULONG)page, (UCHAR*)b… 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()
157 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_sector_read()
189 …status = (nand_flash -> lx_nand_flash_driver_pages_read)(nand_flash, block, logical_sector % nand_… in _lx_nand_flash_sector_read()
191 …status = (nand_flash -> lx_nand_flash_driver_pages_read)(block, logical_sector % nand_flash -> lx_… in _lx_nand_flash_sector_read()
199 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_sector_read()
Dlx_nand_flash_open.c100 ULONG block; in _lx_nand_flash_open() local
168 for (block = 0; block < nand_flash -> lx_nand_flash_total_blocks; block++) in _lx_nand_flash_open()
172 status = _lx_nand_flash_driver_block_status_get(nand_flash, block, &block_status); in _lx_nand_flash_open()
179 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_open()
195 nand_flash -> lx_nand_flash_block_status_table[block] = LX_NAND_BLOCK_STATUS_BAD; in _lx_nand_flash_open()
203 …status = (nand_flash -> lx_nand_flash_driver_pages_read)(nand_flash, block, 0, page_buffer_ptr, sp… in _lx_nand_flash_open()
205 …status = (nand_flash -> lx_nand_flash_driver_pages_read)(block, 0, page_buffer_ptr, spare_buffer_p… in _lx_nand_flash_open()
213 _lx_nand_flash_system_error(nand_flash, status, block, 0); in _lx_nand_flash_open()
282 …status = (nand_flash -> lx_nand_flash_driver_pages_read)(nand_flash, block, page, page_buffer_ptr,… in _lx_nand_flash_open()
284 …status = (nand_flash -> lx_nand_flash_driver_pages_read)(block, page, page_buffer_ptr, spare_buffe… in _lx_nand_flash_open()
[all …]
Dlx_nor_flash_simulator.c67 UINT _lx_nor_flash_simulator_block_erase(LX_NOR_FLASH *nor_flash, ULONG block, ULONG erase_count);
68 UINT _lx_nor_flash_simulator_block_erased_verify(LX_NOR_FLASH *nor_flash, ULONG block);
69 UINT _lx_nor_flash_simulator_system_error(LX_NOR_FLASH *nor_flash, UINT error_code, ULONG block, U…
73 UINT _lx_nor_flash_simulator_block_erase(ULONG block, ULONG erase_count);
74 UINT _lx_nor_flash_simulator_block_erased_verify(ULONG block);
75 UINT _lx_nor_flash_simulator_system_error(UINT error_code, ULONG block, ULONG sector);
147 UINT _lx_nor_flash_simulator_block_erase(LX_NOR_FLASH *nor_flash, ULONG block, ULONG erase_count) in _lx_nor_flash_simulator_block_erase() argument
149 UINT _lx_nor_flash_simulator_block_erase(ULONG block, ULONG erase_count) in _lx_nor_flash_simulator_block_erase()
162 pointer = (ULONG *) &nor_memory_area[block]; in _lx_nor_flash_simulator_block_erase()
201 UINT _lx_nor_flash_simulator_block_erased_verify(LX_NOR_FLASH *nor_flash, ULONG block) in _lx_nor_flash_simulator_block_erased_verify() argument
[all …]
Dlx_nand_flash_system_error.c85 VOID _lx_nand_flash_system_error(LX_NAND_FLASH *nand_flash, UINT error_code, ULONG block, ULONG pa… in _lx_nand_flash_system_error() argument
102 nand_flash -> lx_nand_flash_last_block_correction = block; in _lx_nand_flash_system_error()
112 (nand_flash -> lx_nand_flash_driver_system_error)(nand_flash, error_code, block, page); in _lx_nand_flash_system_error()
114 (nand_flash -> lx_nand_flash_driver_system_error)(error_code, block, page); in _lx_nand_flash_system_error()
Dlx_nand_flash_driver_block_erased_verify.c85 UINT _lx_nand_flash_driver_block_erased_verify(LX_NAND_FLASH *nand_flash, ULONG block) in _lx_nand_flash_driver_block_erased_verify() argument
95 status = (nand_flash -> lx_nand_flash_driver_block_erased_verify)(nand_flash, block); in _lx_nand_flash_driver_block_erased_verify()
97 status = (nand_flash -> lx_nand_flash_driver_block_erased_verify)(block); in _lx_nand_flash_driver_block_erased_verify()
Dlx_nand_flash_driver_block_erase.c85 UINT _lx_nand_flash_driver_block_erase(LX_NAND_FLASH *nand_flash, ULONG block, ULONG erase_count) in _lx_nand_flash_driver_block_erase() argument
96 status = (nand_flash -> lx_nand_flash_driver_block_erase)(nand_flash, block, erase_count); in _lx_nand_flash_driver_block_erase()
98 status = (nand_flash -> lx_nand_flash_driver_block_erase)(block, erase_count); in _lx_nand_flash_driver_block_erase()
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() argument
98 …status = (nand_flash -> lx_nand_flash_driver_block_status_get)(nand_flash, block, bad_block_flag); in _lx_nand_flash_driver_block_status_get()
100 status = (nand_flash -> lx_nand_flash_driver_block_status_get)(block, bad_block_flag); in _lx_nand_flash_driver_block_status_get()
Dlx_nand_flash_driver_page_erased_verify.c85 UINT _lx_nand_flash_driver_page_erased_verify(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page) in _lx_nand_flash_driver_page_erased_verify() argument
95 status = (nand_flash -> lx_nand_flash_driver_page_erased_verify)(nand_flash, block, page); in _lx_nand_flash_driver_page_erased_verify()
97 status = (nand_flash -> lx_nand_flash_driver_page_erased_verify)(block, page); in _lx_nand_flash_driver_page_erased_verify()
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() argument
98 …status = (nand_flash -> lx_nand_flash_driver_block_status_set)(nand_flash, block, bad_block_flag); in _lx_nand_flash_driver_block_status_set()
100 status = (nand_flash -> lx_nand_flash_driver_block_status_set)(block, bad_block_flag); in _lx_nand_flash_driver_block_status_set()
Dlx_nor_flash_driver_block_erase.c84 UINT _lx_nor_flash_driver_block_erase(LX_NOR_FLASH *nor_flash, ULONG block, ULONG erase_count) in _lx_nor_flash_driver_block_erase() argument
99 …block_start_address = nor_flash -> lx_nor_flash_base_address + (block * nor_flash -> lx_nor_flash… in _lx_nor_flash_driver_block_erase()
125 status = (nor_flash -> lx_nor_flash_driver_block_erase)(nor_flash, block, erase_count); in _lx_nor_flash_driver_block_erase()
127 status = (nor_flash -> lx_nor_flash_driver_block_erase)(block, erase_count); in _lx_nor_flash_driver_block_erase()
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() argument
85 nand_flash -> lx_nand_flash_erase_count_table[block] = erase_count; 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()
Dlx_nand_flash_block_status_set.c77 UINT _lx_nand_flash_block_status_set(LX_NAND_FLASH *nand_flash, ULONG block, ULONG block_status) in _lx_nand_flash_block_status_set() argument
85 nand_flash -> lx_nand_flash_block_status_table[block] = (USHORT)block_status; 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()
Dlx_nand_flash_free_block_list_add.c76 UINT _lx_nand_flash_free_block_list_add(LX_NAND_FLASH* nand_flash, ULONG block) in _lx_nand_flash_free_block_list_add() argument
96 new_block_erase_count = nand_flash -> lx_nand_flash_erase_count_table[block]; in _lx_nand_flash_free_block_list_add()
116 nand_flash -> lx_nand_flash_block_list[insert_position] = (USHORT)block; in _lx_nand_flash_free_block_list_add()
Dlx_nand_flash_block_allocate.c76 UINT _lx_nand_flash_block_allocate(LX_NAND_FLASH* nand_flash, ULONG* block) in _lx_nand_flash_block_allocate() argument
92 … *block = nand_flash -> lx_nand_flash_block_list[nand_flash -> lx_nand_flash_free_block_list_tail]; in _lx_nand_flash_block_allocate()
Dlx_nor_flash_sector_release.c102 ULONG block; in _lx_nor_flash_sector_release() local
193block = (ULONG)(mapping_address - nor_flash -> lx_nor_flash_base_address) / nor_flash -> lx_nor_fl… in _lx_nor_flash_sector_release()
196 if (block < nor_flash -> lx_nor_flash_extended_cache_obsolete_count_max_block) in _lx_nor_flash_sector_release()
200 nor_flash -> lx_nor_flash_extended_cache_obsolete_count[block] ++; in _lx_nor_flash_sector_release()
Dlx_nand_flash_block_find.c83 UINT _lx_nand_flash_block_find(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG *block, USHO… in _lx_nand_flash_block_find() argument
113 *block = (ULONG)block_number; in _lx_nand_flash_block_find()
Dlx_nand_flash_block_mapping_set.c77 UINT _lx_nand_flash_block_mapping_set(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG block) in _lx_nand_flash_block_mapping_set() argument
97 nand_flash -> lx_nand_flash_block_mapping_table[block_mapping_index] = (USHORT)block; in _lx_nand_flash_block_mapping_set()
/LevelX-v6.3.0/common/inc/
Dlx_api.h481 …lx_nand_flash_driver_read)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, ULONG page, ULONG…
482 …x_nand_flash_driver_write)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, ULONG page, ULONG…
483 …_flash_driver_block_erase)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, ULONG erase_count…
484 … (*lx_nand_flash_driver_block_erased_verify)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block);
485 …flash_driver_page_erased_verify)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, ULONG page);
486 …h_driver_block_status_get)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, UCHAR *bad_block_…
487 …h_driver_block_status_set)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, UCHAR bad_block_f…
488 …sh_driver_extra_bytes_get)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, ULONG page, UCHAR…
489 …sh_driver_extra_bytes_set)(struct LX_NAND_FLASH_STRUCT *nand_flash, ULONG block, ULONG page, UCHAR…
490 …r_system_error)(struct LX_NAND_FLASH_STRUCT *nand_flash, UINT error_code, ULONG block, ULONG page);
[all …]

12