/LevelX-v6.3.0/common/src/ |
D | lx_nor_flash_open.c | 108 UINT _lx_nor_flash_open(LX_NOR_FLASH *nor_flash, CHAR *name, UINT (*nor_driver_initialize)(LX_NOR… in _lx_nor_flash_open() argument 136 …LX_MEMSET(nor_flash, 0, (ULONG)((UCHAR*)&(nor_flash -> lx_nor_flash_open_previous) - (UCHAR*)nor_f… in _lx_nor_flash_open() 139 (nor_driver_initialize)(nor_flash); in _lx_nor_flash_open() 145 if (nor_flash -> lx_nor_flash_sector_buffer == LX_NULL) in _lx_nor_flash_open() 154 …nor_flash -> lx_nor_flash_block_free_bit_map_offset = sizeof(LX_NOR_FLASH_BLOCK_HEADER)/sizeof(UL… in _lx_nor_flash_open() 159 sectors_per_block = (nor_flash -> lx_nor_flash_words_per_block / LX_NOR_SECTOR_SIZE) - 1; in _lx_nor_flash_open() 168 nor_flash -> lx_nor_flash_block_bit_map_words = bit_map_words; in _lx_nor_flash_open() 171 …nor_flash -> lx_nor_flash_block_physical_sector_mapping_offset = nor_flash -> lx_nor_flash_block_… in _lx_nor_flash_open() 200 nor_flash -> lx_nor_flash_block_physical_sector_offset = total_header_words; in _lx_nor_flash_open() 203 nor_flash -> lx_nor_flash_physical_sectors_per_block = sectors_per_block; in _lx_nor_flash_open() [all …]
|
D | lx_nor_flash_block_reclaim.c | 93 UINT _lx_nor_flash_block_reclaim(LX_NOR_FLASH *nor_flash) in _lx_nor_flash_block_reclaim() argument 115 …_lx_nor_flash_next_block_to_erase_find(nor_flash, &erase_block, &erase_count, &mapped_sectors, &ob… in _lx_nor_flash_block_reclaim() 118 if (nor_flash -> lx_nor_flash_free_block_search == erase_block) in _lx_nor_flash_block_reclaim() 122 nor_flash -> lx_nor_flash_free_block_search = erase_block + 1; in _lx_nor_flash_block_reclaim() 125 if (nor_flash -> lx_nor_flash_free_block_search >= nor_flash -> lx_nor_flash_total_blocks) in _lx_nor_flash_block_reclaim() 126 nor_flash -> lx_nor_flash_free_block_search = 0; in _lx_nor_flash_block_reclaim() 130 …block_word_ptr = nor_flash -> lx_nor_flash_base_address + (nor_flash -> lx_nor_flash_words_per_bl… in _lx_nor_flash_block_reclaim() 133 if (obsolete_sectors == nor_flash -> lx_nor_flash_physical_sectors_per_block) in _lx_nor_flash_block_reclaim() 138 status = _lx_nor_flash_driver_write(nor_flash, block_word_ptr, &erase_started_value, 1); in _lx_nor_flash_block_reclaim() 145 _lx_nor_flash_system_error(nor_flash, status); in _lx_nor_flash_block_reclaim() [all …]
|
D | lx_nor_flash_sector_write.c | 96 UINT _lx_nor_flash_sector_write(LX_NOR_FLASH *nor_flash, ULONG logical_sector, VOID *buffer) in _lx_nor_flash_sector_write() argument 115 tx_mutex_get(&nor_flash -> lx_nor_flash_mutex, TX_WAIT_FOREVER); in _lx_nor_flash_sector_write() 120 …while (nor_flash -> lx_nor_flash_free_physical_sectors <= nor_flash -> lx_nor_flash_physical_secto… in _lx_nor_flash_sector_write() 124 _lx_nor_flash_block_reclaim(nor_flash); in _lx_nor_flash_sector_write() 130 if (i >= nor_flash -> lx_nor_flash_total_blocks) in _lx_nor_flash_sector_write() 139 nor_flash -> lx_nor_flash_write_requests++; in _lx_nor_flash_sector_write() 142 …_lx_nor_flash_logical_sector_find(nor_flash, logical_sector, LX_FALSE, &old_mapping_address, &old_… in _lx_nor_flash_sector_write() 145 …_lx_nor_flash_physical_sector_allocate(nor_flash, logical_sector, &new_mapping_address, &new_secto… in _lx_nor_flash_sector_write() 154 nor_flash -> lx_nor_flash_free_physical_sectors--; in _lx_nor_flash_sector_write() 157 … status = _lx_nor_flash_driver_write(nor_flash, new_sector_address, buffer, LX_NOR_SECTOR_SIZE); in _lx_nor_flash_sector_write() [all …]
|
D | lx_nor_flash_sector_release.c | 93 UINT _lx_nor_flash_sector_release(LX_NOR_FLASH *nor_flash, ULONG logical_sector) in _lx_nor_flash_sector_release() argument 109 tx_mutex_get(&nor_flash -> lx_nor_flash_mutex, TX_WAIT_FOREVER); in _lx_nor_flash_sector_release() 113 nor_flash -> lx_nor_flash_read_requests++; in _lx_nor_flash_sector_release() 116 …_lx_nor_flash_logical_sector_find(nor_flash, logical_sector, LX_FALSE, &mapping_address, §or_a… in _lx_nor_flash_sector_release() 130 status = _lx_nor_flash_driver_read(nor_flash, mapping_address, &mapping_entry, 1); in _lx_nor_flash_sector_release() 137 _lx_nor_flash_system_error(nor_flash, status); in _lx_nor_flash_sector_release() 142 tx_mutex_put(&nor_flash -> lx_nor_flash_mutex); in _lx_nor_flash_sector_release() 155 status = _lx_nor_flash_driver_write(nor_flash, mapping_address, &mapping_entry, 1); in _lx_nor_flash_sector_release() 162 _lx_nor_flash_system_error(nor_flash, status); in _lx_nor_flash_sector_release() 167 tx_mutex_put(&nor_flash -> lx_nor_flash_mutex); in _lx_nor_flash_sector_release() [all …]
|
D | lx_nor_flash_physical_sector_allocate.c | 85 UINT _lx_nor_flash_physical_sector_allocate(LX_NOR_FLASH *nor_flash, ULONG logical_sector, ULONG *… in _lx_nor_flash_physical_sector_allocate() argument 100 nor_flash -> lx_nor_flash_physical_block_allocates++; in _lx_nor_flash_physical_sector_allocate() 107 if (nor_flash -> lx_nor_flash_free_physical_sectors == 0) in _lx_nor_flash_physical_sector_allocate() 111 nor_flash -> lx_nor_flash_physical_block_allocate_errors++; in _lx_nor_flash_physical_sector_allocate() 118 search_block = nor_flash -> lx_nor_flash_free_block_search; in _lx_nor_flash_physical_sector_allocate() 121 for (i = 0; i < nor_flash -> lx_nor_flash_total_blocks; i++) in _lx_nor_flash_physical_sector_allocate() 125 …block_word_ptr = nor_flash -> lx_nor_flash_base_address + (search_block * nor_flash -> lx_nor_fla… in _lx_nor_flash_physical_sector_allocate() 128 for (j = 0; j < nor_flash -> lx_nor_flash_block_bit_map_words; j++) in _lx_nor_flash_physical_sector_allocate() 135 … block_word = *(block_word_ptr + nor_flash -> lx_nor_flash_block_free_bit_map_offset + j); in _lx_nor_flash_physical_sector_allocate() 137 …status = _lx_nor_flash_driver_read(nor_flash, (block_word_ptr + nor_flash -> lx_nor_flash_block_f… in _lx_nor_flash_physical_sector_allocate() [all …]
|
D | lx_nor_flash_driver_read.c | 85 UINT _lx_nor_flash_driver_read(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *destination, … in _lx_nor_flash_driver_read() argument 98 if ((words == 1) && (nor_flash -> lx_nor_flash_extended_cache_entries)) in _lx_nor_flash_driver_read() 111 for (i = 0; i < nor_flash -> lx_nor_flash_extended_cache_entries; i++) in _lx_nor_flash_driver_read() 117 …cache_entry_start = nor_flash -> lx_nor_flash_extended_cache[i].lx_nor_flash_extended_cache_entry… in _lx_nor_flash_driver_read() 127 … nor_flash -> lx_nor_flash_extended_cache[i].lx_nor_flash_extended_cache_entry_access_count++; in _lx_nor_flash_driver_read() 133 …*destination = *(nor_flash -> lx_nor_flash_extended_cache[i].lx_nor_flash_extended_cache_entry_se… in _lx_nor_flash_driver_read() 136 nor_flash -> lx_nor_flash_extended_cache_hits++; in _lx_nor_flash_driver_read() 149 … if (nor_flash -> lx_nor_flash_extended_cache[i].lx_nor_flash_extended_cache_entry_access_count < in _lx_nor_flash_driver_read() 150 …nor_flash -> lx_nor_flash_extended_cache[least_used_cache_entry].lx_nor_flash_extended_cache_entry… in _lx_nor_flash_driver_read() 161 cache_offset = (ULONG)(flash_address - nor_flash -> lx_nor_flash_base_address); in _lx_nor_flash_driver_read() [all …]
|
D | lx_nor_flash_logical_sector_find.c | 97 UINT _lx_nor_flash_logical_sector_find(LX_NOR_FLASH *nor_flash, ULONG logical_sector, ULONG superc… in _lx_nor_flash_logical_sector_find() argument 125 if (nor_flash -> lx_nor_flash_mapped_physical_sectors == 0) in _lx_nor_flash_logical_sector_find() 136 if (logical_sector < nor_flash -> lx_nor_flash_extended_cache_mapping_bitmap_max_logical_sector) in _lx_nor_flash_logical_sector_find() 140 …if ((nor_flash -> lx_nor_flash_extended_cache_mapping_bitmap[logical_sector >> 5] & (ULONG)(1 << (… in _lx_nor_flash_logical_sector_find() 151 if (nor_flash -> lx_nor_flash_sector_mapping_cache_enabled) in _lx_nor_flash_logical_sector_find() 158 sector_mapping_cache_entry_ptr = &nor_flash -> lx_nor_flash_sector_mapping_cache[i]; in _lx_nor_flash_logical_sector_find() 166 nor_flash -> lx_nor_flash_sector_mapping_cache_hits++; in _lx_nor_flash_logical_sector_find() 181 nor_flash -> lx_nor_flash_sector_mapping_cache_hits++; in _lx_nor_flash_logical_sector_find() 199 nor_flash -> lx_nor_flash_sector_mapping_cache_hits++; in _lx_nor_flash_logical_sector_find() 218 nor_flash -> lx_nor_flash_sector_mapping_cache_hits++; in _lx_nor_flash_logical_sector_find() [all …]
|
D | lx_nor_flash_close.c | 79 UINT _lx_nor_flash_close(LX_NOR_FLASH *nor_flash) in _lx_nor_flash_close() argument 89 if ((_lx_nor_flash_opened_ptr == nor_flash) && in _lx_nor_flash_close() 90 (_lx_nor_flash_opened_ptr == nor_flash -> lx_nor_flash_open_next) && in _lx_nor_flash_close() 91 (_lx_nor_flash_opened_ptr == nor_flash -> lx_nor_flash_open_previous)) in _lx_nor_flash_close() 101 (nor_flash -> lx_nor_flash_open_next) -> lx_nor_flash_open_previous = in _lx_nor_flash_close() 102 nor_flash -> lx_nor_flash_open_previous; in _lx_nor_flash_close() 103 (nor_flash -> lx_nor_flash_open_previous) -> lx_nor_flash_open_next = in _lx_nor_flash_close() 104 nor_flash -> lx_nor_flash_open_next; in _lx_nor_flash_close() 107 if (_lx_nor_flash_opened_ptr == nor_flash) in _lx_nor_flash_close() 111 _lx_nor_flash_opened_ptr = nor_flash -> lx_nor_flash_open_next; in _lx_nor_flash_close() [all …]
|
D | lx_nor_flash_sector_read.c | 92 UINT _lx_nor_flash_sector_read(LX_NOR_FLASH *nor_flash, ULONG logical_sector, VOID *buffer) in _lx_nor_flash_sector_read() argument 104 tx_mutex_get(&nor_flash -> lx_nor_flash_mutex, TX_WAIT_FOREVER); in _lx_nor_flash_sector_read() 108 nor_flash -> lx_nor_flash_read_requests++; in _lx_nor_flash_sector_read() 111 …_lx_nor_flash_logical_sector_find(nor_flash, logical_sector, LX_FALSE, &mapping_address, §or_a… in _lx_nor_flash_sector_read() 120 status = _lx_nor_flash_driver_read(nor_flash, sector_address, buffer, LX_NOR_SECTOR_SIZE); in _lx_nor_flash_sector_read() 127 _lx_nor_flash_system_error(nor_flash, status); in _lx_nor_flash_sector_read() 143 …_lx_nor_flash_physical_sector_allocate(nor_flash, logical_sector, &mapping_address, §or_addres… in _lx_nor_flash_sector_read() 150 nor_flash -> lx_nor_flash_free_physical_sectors--; in _lx_nor_flash_sector_read() 153 … status = _lx_nor_flash_driver_read(nor_flash, sector_address, buffer, LX_NOR_SECTOR_SIZE); in _lx_nor_flash_sector_read() 160 _lx_nor_flash_system_error(nor_flash, status); in _lx_nor_flash_sector_read() [all …]
|
D | lx_nor_flash_extended_cache_enable.c | 93 UINT _lx_nor_flash_extended_cache_enable(LX_NOR_FLASH *nor_flash, VOID *memory, ULONG size) in _lx_nor_flash_extended_cache_enable() argument 129 tx_mutex_get(&nor_flash -> lx_nor_flash_mutex, TX_WAIT_FOREVER); in _lx_nor_flash_extended_cache_enable() 133 nor_flash -> lx_nor_flash_extended_cache_entries = 0; in _lx_nor_flash_extended_cache_enable() 144 if (nor_flash -> lx_nor_flash_state == LX_NOR_FLASH_OPENED) in _lx_nor_flash_extended_cache_enable() 149 mapping_bitmap_words = (nor_flash -> lx_nor_flash_total_physical_sectors + 31) / 32; in _lx_nor_flash_extended_cache_enable() 160 nor_flash -> lx_nor_flash_extended_cache_mapping_bitmap = cache_memory; in _lx_nor_flash_extended_cache_enable() 163 …nor_flash -> lx_nor_flash_extended_cache_mapping_bitmap_max_logical_sector = mapping_bitmap_words… in _lx_nor_flash_extended_cache_enable() 184 …obsolete_count_words = nor_flash -> lx_nor_flash_total_blocks * sizeof(LX_NOR_OBSOLETE_COUNT_CACHE… in _lx_nor_flash_extended_cache_enable() 195 …nor_flash -> lx_nor_flash_extended_cache_obsolete_count = (LX_NOR_OBSOLETE_COUNT_CACHE_TYPE*)cach… in _lx_nor_flash_extended_cache_enable() 198 …nor_flash -> lx_nor_flash_extended_cache_obsolete_count_max_block = obsolete_count_words * 4 / si… in _lx_nor_flash_extended_cache_enable() [all …]
|
D | lx_nor_flash_next_block_to_erase_find.c | 92 UINT _lx_nor_flash_next_block_to_erase_find(LX_NOR_FLASH *nor_flash, ULONG *return_erase_block, UL… in _lx_nor_flash_next_block_to_erase_find() argument 126 block_word_ptr = nor_flash -> lx_nor_flash_base_address; in _lx_nor_flash_next_block_to_erase_find() 140 …if (nor_flash -> lx_nor_flash_free_physical_sectors >= nor_flash -> lx_nor_flash_physical_sectors_… in _lx_nor_flash_next_block_to_erase_find() 144 …erase_count_threshold = nor_flash -> lx_nor_flash_minimum_erase_count + LX_NOR_FLASH_MAX_ERASE_CO… in _lx_nor_flash_next_block_to_erase_find() 154 for (i = 0; i < nor_flash -> lx_nor_flash_total_blocks; i++) in _lx_nor_flash_next_block_to_erase_find() 163 status = _lx_nor_flash_driver_read(nor_flash, block_word_ptr, &erase_count, 1); in _lx_nor_flash_next_block_to_erase_find() 170 _lx_nor_flash_system_error(nor_flash, status); in _lx_nor_flash_next_block_to_erase_find() 197 if (i < nor_flash -> lx_nor_flash_extended_cache_obsolete_count_max_block) in _lx_nor_flash_next_block_to_erase_find() 204 obsolete_sectors = (ULONG)nor_flash -> lx_nor_flash_extended_cache_obsolete_count[i]; in _lx_nor_flash_next_block_to_erase_find() 215 …status = _lx_nor_flash_driver_read(nor_flash, block_word_ptr + LX_NOR_FLASH_MIN_LOGICAL_SECTOR_OF… in _lx_nor_flash_next_block_to_erase_find() [all …]
|
D | lx_nor_flash_driver_block_erase.c | 84 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() 100 block_end_address = block_start_address + nor_flash -> lx_nor_flash_words_per_block; in _lx_nor_flash_driver_block_erase() 103 for (i = 0; i < nor_flash -> lx_nor_flash_extended_cache_entries; i++) in _lx_nor_flash_driver_block_erase() 109 …cache_entry_start = nor_flash -> lx_nor_flash_extended_cache[i].lx_nor_flash_extended_cache_entry… in _lx_nor_flash_driver_block_erase() 117 …nor_flash -> lx_nor_flash_extended_cache[i].lx_nor_flash_extended_cache_entry_sector_address = LX… in _lx_nor_flash_driver_block_erase() 118 … nor_flash -> lx_nor_flash_extended_cache[i].lx_nor_flash_extended_cache_entry_access_count = 0; 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()
|
D | lx_nor_flash_system_error.c | 83 VOID _lx_nor_flash_system_error(LX_NOR_FLASH *nor_flash, UINT error_code) in _lx_nor_flash_system_error() argument 87 nor_flash -> lx_nor_flash_diagnostic_system_errors++; in _lx_nor_flash_system_error() 90 nor_flash -> lx_nor_flash_diagnostic_system_error = error_code; in _lx_nor_flash_system_error() 93 if (nor_flash -> lx_nor_flash_driver_system_error) in _lx_nor_flash_system_error() 98 (nor_flash -> lx_nor_flash_driver_system_error)(nor_flash, error_code); in _lx_nor_flash_system_error() 100 (nor_flash -> lx_nor_flash_driver_system_error)(error_code); in _lx_nor_flash_system_error()
|
D | lx_nor_flash_driver_write.c | 85 UINT _lx_nor_flash_driver_write(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *source, ULON… in _lx_nor_flash_driver_write() argument 98 if ((words == 1) && (nor_flash -> lx_nor_flash_extended_cache_entries)) in _lx_nor_flash_driver_write() 104 for (i = 0; i < nor_flash -> lx_nor_flash_extended_cache_entries; i++) in _lx_nor_flash_driver_write() 110 …cache_entry_start = nor_flash -> lx_nor_flash_extended_cache[i].lx_nor_flash_extended_cache_entry… in _lx_nor_flash_driver_write() 123 …*(nor_flash -> lx_nor_flash_extended_cache[i].lx_nor_flash_extended_cache_entry_sector_memory + ca… in _lx_nor_flash_driver_write() 133 status = (nor_flash -> lx_nor_flash_driver_write)(nor_flash, flash_address, source, words); in _lx_nor_flash_driver_write() 135 status = (nor_flash -> lx_nor_flash_driver_write)(flash_address, source, words); in _lx_nor_flash_driver_write() 147 status = (nor_flash -> lx_nor_flash_driver_write)(nor_flash, flash_address, source, words); in _lx_nor_flash_driver_write() 149 status = (nor_flash -> lx_nor_flash_driver_write)(flash_address, source, words); in _lx_nor_flash_driver_write()
|
D | lx_nor_flash_partial_defragment.c | 85 UINT _lx_nor_flash_partial_defragment(LX_NOR_FLASH *nor_flash, UINT max_blocks) in _lx_nor_flash_partial_defragment() argument 94 tx_mutex_get(&nor_flash -> lx_nor_flash_mutex, TX_WAIT_FOREVER); in _lx_nor_flash_partial_defragment() 98 if (max_blocks >= nor_flash -> lx_nor_flash_total_blocks) in _lx_nor_flash_partial_defragment() 102 max_blocks = nor_flash -> lx_nor_flash_total_blocks; in _lx_nor_flash_partial_defragment() 110 if (nor_flash -> lx_nor_flash_obsolete_physical_sectors == 0) in _lx_nor_flash_partial_defragment() 114 _lx_nor_flash_block_reclaim(nor_flash); in _lx_nor_flash_partial_defragment() 120 tx_mutex_put(&nor_flash -> lx_nor_flash_mutex); in _lx_nor_flash_partial_defragment()
|
D | lx_nor_flash_simulator.c | 62 UINT _lx_nor_flash_simulator_initialize(LX_NOR_FLASH *nor_flash); 65 UINT _lx_nor_flash_simulator_read(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *destinatio… 66 UINT _lx_nor_flash_simulator_write(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *source, U… 67 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… 79 UINT _lx_nor_flash_simulator_initialize(LX_NOR_FLASH *nor_flash) in _lx_nor_flash_simulator_initialize() argument 83 nor_flash -> lx_nor_flash_base_address = (ULONG *) &nor_memory_area[0]; in _lx_nor_flash_simulator_initialize() 86 nor_flash -> lx_nor_flash_total_blocks = TOTAL_BLOCKS; in _lx_nor_flash_simulator_initialize() 87 nor_flash -> lx_nor_flash_words_per_block = sizeof(FLASH_BLOCK)/sizeof(ULONG); in _lx_nor_flash_simulator_initialize() [all …]
|
D | lx_nor_flash_defragment.c | 82 UINT _lx_nor_flash_defragment(LX_NOR_FLASH *nor_flash) in _lx_nor_flash_defragment() argument 91 tx_mutex_get(&nor_flash -> lx_nor_flash_mutex, TX_WAIT_FOREVER); in _lx_nor_flash_defragment() 95 for (i = 0; i < nor_flash -> lx_nor_flash_total_blocks; i++) in _lx_nor_flash_defragment() 99 if (nor_flash -> lx_nor_flash_obsolete_physical_sectors == 0) in _lx_nor_flash_defragment() 103 _lx_nor_flash_block_reclaim(nor_flash); in _lx_nor_flash_defragment() 109 tx_mutex_put(&nor_flash -> lx_nor_flash_mutex); in _lx_nor_flash_defragment()
|
D | fx_nor_flash_simulator_driver.c | 32 LX_NOR_FLASH nor_flash; variable 58 UINT _lx_nor_flash_simulator_initialize(LX_NOR_FLASH *nor_flash); 220 status = lx_nor_flash_sector_read(&nor_flash, logical_sector, destination_buffer); in _fx_nor_flash_simulator_driver() 254 status = lx_nor_flash_sector_write(&nor_flash, logical_sector, source_buffer); in _fx_nor_flash_simulator_driver() 287 status = lx_nor_flash_sector_release(&nor_flash, logical_sector); in _fx_nor_flash_simulator_driver() 350 … status = lx_nor_flash_open(&nor_flash, "sim nor flash", _lx_nor_flash_simulator_initialize); in _fx_nor_flash_simulator_driver() 374 status = lx_nor_flash_close(&nor_flash); in _fx_nor_flash_simulator_driver() 400 status = lx_nor_flash_sector_read(&nor_flash, 0, destination_buffer); in _fx_nor_flash_simulator_driver() 446 status = lx_nor_flash_sector_write(&nor_flash, 0, source_buffer); in _fx_nor_flash_simulator_driver()
|
D | lx_nor_flash_sector_mapping_cache_invalidate.c | 81 VOID _lx_nor_flash_sector_mapping_cache_invalidate(LX_NOR_FLASH *nor_flash, ULONG logical_sector) in _lx_nor_flash_sector_mapping_cache_invalidate() argument 89 if (nor_flash -> lx_nor_flash_sector_mapping_cache_enabled) in _lx_nor_flash_sector_mapping_cache_invalidate() 96 sector_mapping_cache_entry_ptr = &nor_flash -> lx_nor_flash_sector_mapping_cache[i]; in _lx_nor_flash_sector_mapping_cache_invalidate()
|
/LevelX-v6.3.0/common/inc/ |
D | lx_api.h | 608 … (*lx_nor_flash_driver_read)(struct LX_NOR_FLASH_STRUCT *nor_flash, ULONG *flash_ad… 609 … (*lx_nor_flash_driver_write)(struct LX_NOR_FLASH_STRUCT *nor_flash, ULONG *flash_ad… 610 … (*lx_nor_flash_driver_block_erase)(struct LX_NOR_FLASH_STRUCT *nor_flash, ULONG block, UL… 611 … (*lx_nor_flash_driver_block_erased_verify)(struct LX_NOR_FLASH_STRUCT *nor_flash, ULONG block); 612 … (*lx_nor_flash_driver_system_error)(struct LX_NOR_FLASH_STRUCT *nor_flash, UINT error_code… 755 UINT _lx_nor_flash_close(LX_NOR_FLASH *nor_flash); 756 UINT _lx_nor_flash_defragment(LX_NOR_FLASH *nor_flash); 757 UINT _lx_nor_flash_extended_cache_enable(LX_NOR_FLASH *nor_flash, VOID *memory, ULONG size); 759 UINT _lx_nor_flash_open(LX_NOR_FLASH *nor_flash, CHAR *name, UINT (*nor_driver_initialize)(LX_N… 760 UINT _lx_nor_flash_partial_defragment(LX_NOR_FLASH *nor_flash, UINT max_blocks); [all …]
|