Home
last modified time | relevance | path

Searched refs:ULONG (Results 1 – 25 of 54) sorted by relevance

123

/LevelX-v6.2.1/common/inc/
Dlx_api.h134 typedef unsigned long ULONG; typedef
149 #define ALIGN_TYPE ULONG
234 #define LX_NOR_FLASH_OPENED ((ULONG) 0x4E4F524F)
235 #define LX_NOR_FLASH_CLOSED ((ULONG) 0x4E4F5244)
236 #define LX_NOR_SECTOR_SIZE (512/sizeof(ULONG))
273 #define LX_NAND_FLASH_OPENED ((ULONG) 0x4E4F524F)
274 #define LX_NAND_FLASH_CLOSED ((ULONG) 0x4E4F5244)
303 #define LX_UTILITY_LONG_SET(address, value) *((ULONG*)(address)) = (ULONG)(value)
311 #define LX_UTILITY_LONG_GET(address) (*((ULONG*)(address)))
380 ULONG lx_nand_device_info_signature1;
[all …]
/LevelX-v6.2.1/common/src/
Dlx_nor_flash_simulator.c60 ULONG nor_sector_memory[WORDS_PER_PHYSICAL_SECTOR];
65 …lx_nor_flash_simulator_read(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *destination, ULO…
66 …_lx_nor_flash_simulator_write(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *source, ULONG
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 …_flash_simulator_system_error(LX_NOR_FLASH *nor_flash, UINT error_code, ULONG block, ULONG sector);
71 UINT _lx_nor_flash_simulator_read(ULONG *flash_address, ULONG *destination, ULONG words);
72 UINT _lx_nor_flash_simulator_write(ULONG *flash_address, ULONG *source, ULONG words);
73 UINT _lx_nor_flash_simulator_block_erase(ULONG block, ULONG erase_count);
74 UINT _lx_nor_flash_simulator_block_erased_verify(ULONG block);
[all …]
Dlx_nand_flash_simulator.c103 ULONG nand_flash_simulator_buffer[WORDS_PER_PHYSICAL_PAGE];
104 ULONG *nand_flash_memory;
111 …nd_flash_simulator_read(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page, ULONG *destination, UL…
112 …nand_flash_simulator_write(LX_NAND_FLASH *nand_flash, ULONG block, ULONG page, ULONG *source, ULON…
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, …
[all …]
Dlx_nor_flash_next_block_to_erase_find.c86 …e_find(LX_NOR_FLASH *nor_flash, ULONG *return_erase_block, ULONG *return_erase_count, ULONG *retur… in _lx_nor_flash_next_block_to_erase_find()
89 ULONG *block_word_ptr; in _lx_nor_flash_next_block_to_erase_find()
90 ULONG *list_word_ptr; in _lx_nor_flash_next_block_to_erase_find()
91 ULONG list_word; in _lx_nor_flash_next_block_to_erase_find()
92 ULONG i, j; in _lx_nor_flash_next_block_to_erase_find()
93 ULONG mapped_sectors; in _lx_nor_flash_next_block_to_erase_find()
94 ULONG erase_count; in _lx_nor_flash_next_block_to_erase_find()
95 ULONG obsolete_sectors; in _lx_nor_flash_next_block_to_erase_find()
96 ULONG min_block_erase = 0; in _lx_nor_flash_next_block_to_erase_find()
97 ULONG min_block_erase_count; in _lx_nor_flash_next_block_to_erase_find()
[all …]
Dlx_nand_flash_data_page_copy.c84 UINT _lx_nand_flash_data_page_copy(LX_NAND_FLASH* nand_flash, ULONG logical_sector, ULONG source_b… in _lx_nand_flash_data_page_copy()
85ULONG destination_block, USHORT* dest_block_status_ptr, ULONG sectors) in _lx_nand_flash_data_page_copy()
89 ULONG destination_page; in _lx_nand_flash_data_page_copy()
92 ULONG available_pages; in _lx_nand_flash_data_page_copy()
93 ULONG spare_data1; in _lx_nand_flash_data_page_copy()
95 ULONG dest_block_status; in _lx_nand_flash_data_page_copy()
96 ULONG number_of_pages; in _lx_nand_flash_data_page_copy()
125 …nand_flash -> lx_nand_flash_driver_pages_read)(nand_flash, source_block, (ULONG)source_page, LX_NU… in _lx_nand_flash_data_page_copy()
127 …status = (nand_flash -> lx_nand_flash_driver_pages_read)(source_block, (ULONG)source_page, LX_NULL… in _lx_nand_flash_data_page_copy()
154 …nand_flash -> lx_nand_flash_driver_pages_copy)(nand_flash, source_block, (ULONG)source_page, desti… in _lx_nand_flash_data_page_copy()
[all …]
Dlx_nor_flash_sector_write.c92 UINT _lx_nor_flash_sector_write(LX_NOR_FLASH *nor_flash, ULONG logical_sector, VOID *buffer) in _lx_nor_flash_sector_write()
95 ULONG *old_mapping_address; in _lx_nor_flash_sector_write()
96 ULONG *old_sector_address; in _lx_nor_flash_sector_write()
97 ULONG old_mapping_entry; in _lx_nor_flash_sector_write()
98 ULONG *new_mapping_address; in _lx_nor_flash_sector_write()
99 ULONG *new_sector_address; in _lx_nor_flash_sector_write()
100 ULONG new_mapping_entry; in _lx_nor_flash_sector_write()
101 ULONG i; in _lx_nor_flash_sector_write()
203 old_mapping_entry = old_mapping_entry & ~((ULONG) LX_NOR_PHYSICAL_SECTOR_SUPERCEDED); in _lx_nor_flash_sector_write()
227 …new_mapping_entry = ((ULONG) LX_NOR_PHYSICAL_SECTOR_VALID) | ((ULONG) LX_NOR_PHYSICAL_SECTOR_SUPE… in _lx_nor_flash_sector_write()
[all …]
Dlx_nor_flash_block_reclaim.c91 ULONG *block_word_ptr; in _lx_nor_flash_block_reclaim()
92 ULONG *list_word_ptr; in _lx_nor_flash_block_reclaim()
93 ULONG list_word; in _lx_nor_flash_block_reclaim()
94 ULONG i; in _lx_nor_flash_block_reclaim()
95 ULONG erase_block; in _lx_nor_flash_block_reclaim()
96 ULONG erase_count; in _lx_nor_flash_block_reclaim()
97 ULONG temp_erase_count; in _lx_nor_flash_block_reclaim()
98 ULONG erase_started_value; in _lx_nor_flash_block_reclaim()
99 ULONG mapped_sectors; in _lx_nor_flash_block_reclaim()
100 ULONG obsolete_sectors; in _lx_nor_flash_block_reclaim()
[all …]
Dlx_nor_flash_physical_sector_allocate.c85 …cal_sector_allocate(LX_NOR_FLASH *nor_flash, ULONG logical_sector, ULONG **physical_sector_map_ent… in _lx_nor_flash_physical_sector_allocate()
88 ULONG search_block; in _lx_nor_flash_physical_sector_allocate()
89 ULONG *block_word_ptr; in _lx_nor_flash_physical_sector_allocate()
90 ULONG block_word; in _lx_nor_flash_physical_sector_allocate()
91 ULONG min_logical_sector; in _lx_nor_flash_physical_sector_allocate()
92 ULONG max_logical_sector; in _lx_nor_flash_physical_sector_allocate()
93 ULONG *list_word_ptr; in _lx_nor_flash_physical_sector_allocate()
94 ULONG list_word; in _lx_nor_flash_physical_sector_allocate()
95 ULONG i, j, k, l; in _lx_nor_flash_physical_sector_allocate()
103 *physical_sector_map_entry = (ULONG *) 0; in _lx_nor_flash_physical_sector_allocate()
[all …]
Dlx_nor_flash_driver_write.c85 …T _lx_nor_flash_driver_write(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *source, ULONG in _lx_nor_flash_driver_write()
92 ULONG *cache_entry_start; in _lx_nor_flash_driver_write()
93 ULONG *cache_entry_end; in _lx_nor_flash_driver_write()
94 ULONG cache_offset; in _lx_nor_flash_driver_write()
120 cache_offset = (ULONG)(flash_address - cache_entry_start); in _lx_nor_flash_driver_write()
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()
92 ULONG *block_start_address; in _lx_nor_flash_driver_block_erase()
93 ULONG *block_end_address; in _lx_nor_flash_driver_block_erase()
94 ULONG *cache_entry_start; in _lx_nor_flash_driver_block_erase()
95 ULONG *cache_entry_end; in _lx_nor_flash_driver_block_erase()
Dlx_nor_flash_sector_release.c89 UINT _lx_nor_flash_sector_release(LX_NOR_FLASH *nor_flash, ULONG logical_sector) in _lx_nor_flash_sector_release()
93 ULONG *mapping_address; in _lx_nor_flash_sector_release()
94 ULONG mapping_entry; in _lx_nor_flash_sector_release()
95 ULONG *sector_address; in _lx_nor_flash_sector_release()
96 ULONG i; in _lx_nor_flash_sector_release()
145 …mapping_entry = mapping_entry & ~(((ULONG) LX_NOR_PHYSICAL_SECTOR_VALID) | ((ULONG) LX_NOR_PHYSIC… in _lx_nor_flash_sector_release()
Dlx_nor_flash_logical_sector_find.c90 …or_find(LX_NOR_FLASH *nor_flash, ULONG logical_sector, ULONG superceded_check, ULONG **physical_se… in _lx_nor_flash_logical_sector_find()
93 ULONG *block_word_ptr; in _lx_nor_flash_logical_sector_find()
94 ULONG *list_word_ptr; in _lx_nor_flash_logical_sector_find()
95 ULONG list_word; in _lx_nor_flash_logical_sector_find()
96 ULONG min_logical_sector; in _lx_nor_flash_logical_sector_find()
97 ULONG max_logical_sector; in _lx_nor_flash_logical_sector_find()
98 ULONG mapped_sectors; in _lx_nor_flash_logical_sector_find()
99 ULONG total_blocks; in _lx_nor_flash_logical_sector_find()
100 ULONG total_sectors; in _lx_nor_flash_logical_sector_find()
101 ULONG i, j; in _lx_nor_flash_logical_sector_find()
[all …]
Dlx_nor_flash_driver_read.c85 … _lx_nor_flash_driver_read(LX_NOR_FLASH *nor_flash, ULONG *flash_address, ULONG *destination, ULO… in _lx_nor_flash_driver_read()
91 ULONG *cache_entry_start; in _lx_nor_flash_driver_read()
92 ULONG *cache_entry_end; in _lx_nor_flash_driver_read()
93 ULONG cache_offset; in _lx_nor_flash_driver_read()
130 cache_offset = (ULONG)(flash_address - cache_entry_start); 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()
162 cache_offset = cache_offset & ~((ULONG) (LX_NOR_SECTOR_SIZE-1)); in _lx_nor_flash_driver_read()
Dlx_nor_flash_sector_read.c89 UINT _lx_nor_flash_sector_read(LX_NOR_FLASH *nor_flash, ULONG logical_sector, VOID *buffer) in _lx_nor_flash_sector_read()
93 ULONG *mapping_address; in _lx_nor_flash_sector_read()
94 ULONG mapping_entry; in _lx_nor_flash_sector_read()
95 ULONG *sector_address; in _lx_nor_flash_sector_read()
161 …mapping_entry = ((ULONG) LX_NOR_PHYSICAL_SECTOR_VALID) | ((ULONG) LX_NOR_PHYSICAL_SECTOR_SUPERCED… in _lx_nor_flash_sector_read()
Dlx_nor_flash_extended_cache_enable.c89 UINT _lx_nor_flash_extended_cache_enable(LX_NOR_FLASH *nor_flash, VOID *memory, ULONG size) in _lx_nor_flash_extended_cache_enable()
94 ULONG cache_size; in _lx_nor_flash_extended_cache_enable()
95 ULONG *cache_memory; in _lx_nor_flash_extended_cache_enable()
116 cache_size = size/sizeof(ULONG); in _lx_nor_flash_extended_cache_enable()
119 cache_memory = (ULONG *) memory; in _lx_nor_flash_extended_cache_enable()
Dlx_nand_flash_sector_read.c83 UINT _lx_nand_flash_sector_read(LX_NAND_FLASH *nand_flash, ULONG logical_sector, VOID *buffer) in _lx_nand_flash_sector_read()
87 ULONG i; in _lx_nand_flash_sector_read()
88 ULONG *word_ptr; in _lx_nand_flash_sector_read()
89 ULONG block; in _lx_nand_flash_sector_read()
92 ULONG available_pages; 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()
223 word_ptr = (ULONG *) buffer; in _lx_nand_flash_sector_read()
Dlx_nor_flash_open.c102 ULONG sectors_per_block; in _lx_nor_flash_open()
103 ULONG sector_map_words; in _lx_nor_flash_open()
104 ULONG bit_map_words; in _lx_nor_flash_open()
105 ULONG bit_map_mask; in _lx_nor_flash_open()
106 ULONG total_header_words; in _lx_nor_flash_open()
107 ULONG header_sectors; in _lx_nor_flash_open()
108 ULONG *block_word_ptr; in _lx_nor_flash_open()
109 ULONG block_word; in _lx_nor_flash_open()
110 ULONG temp; in _lx_nor_flash_open()
111 ULONG free_sectors; in _lx_nor_flash_open()
[all …]
Dfx_nand_flash_simulated_driver.c36 ULONG lx_memory_buffer[8224 / sizeof (ULONG)];
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);
137 ULONG logical_sector; in _fx_nand_flash_simulator_driver()
138 ULONG count; in _fx_nand_flash_simulator_driver()
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()
113 *block = (ULONG)block_number; in _lx_nand_flash_block_find()
Dlx_nand_flash_mapped_block_list_add.c76 UINT _lx_nand_flash_mapped_block_list_add(LX_NAND_FLASH* nand_flash, ULONG block_mapping_index) in _lx_nand_flash_mapped_block_list_add()
79 ULONG insert_position; in _lx_nand_flash_mapped_block_list_add()
80 ULONG search_position; in _lx_nand_flash_mapped_block_list_add()
Dlx_nand_flash_sectors_release.c78 UINT _lx_nand_flash_sectors_release(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG sector_… in _lx_nand_flash_sectors_release()
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()
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()
Dlx_nand_flash_256byte_ecc_check.c92 ULONG correction_code; in _lx_nand_flash_256byte_ecc_check()
156 …correction_code = (ULONG) (ecc_errors[2] << 16) | (ULONG)(ecc_errors[1] << 8) | (ULONG)ecc_errors[… in _lx_nand_flash_256byte_ecc_check()
/LevelX-v6.2.1/samples/
Ddemo_filex_nor_flash.c29 void thread_0_entry(ULONG thread_input);
45 ULONG thread_0_counter;
91 void thread_0_entry(ULONG thread_input) in thread_0_entry()
95 ULONG actual; in thread_0_entry()

123