Home
last modified time | relevance | path

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

123

/LevelX-v6.3.0/common/inc/
Dlx_api.h140 typedef unsigned long ULONG; typedef
155 #define ALIGN_TYPE ULONG
240 #define LX_NOR_FLASH_OPENED ((ULONG) 0x4E4F524F)
241 #define LX_NOR_FLASH_CLOSED ((ULONG) 0x4E4F5244)
243 #define LX_NOR_SECTOR_SIZE (512/sizeof(ULONG))
286 #define LX_NAND_FLASH_OPENED ((ULONG) 0x4E4F524F)
287 #define LX_NAND_FLASH_CLOSED ((ULONG) 0x4E4F5244)
316 #define LX_UTILITY_LONG_SET(address, value) *((ULONG*)(address)) = (ULONG)(value)
324 #define LX_UTILITY_LONG_GET(address) (*((ULONG*)(address)))
393 ULONG lx_nand_device_info_signature1;
[all …]
/LevelX-v6.3.0/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_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_next_block_to_erase_find.c92 …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()
95 ULONG *block_word_ptr; in _lx_nor_flash_next_block_to_erase_find()
96 ULONG *list_word_ptr; in _lx_nor_flash_next_block_to_erase_find()
97 ULONG list_word; in _lx_nor_flash_next_block_to_erase_find()
98 ULONG i, j; in _lx_nor_flash_next_block_to_erase_find()
99 ULONG mapped_sectors; in _lx_nor_flash_next_block_to_erase_find()
100 ULONG erase_count; in _lx_nor_flash_next_block_to_erase_find()
101 ULONG obsolete_sectors; in _lx_nor_flash_next_block_to_erase_find()
102 ULONG min_block_erase = 0; in _lx_nor_flash_next_block_to_erase_find()
103 ULONG min_block_erase_count; in _lx_nor_flash_next_block_to_erase_find()
[all …]
Dlx_nor_flash_sector_write.c96 UINT _lx_nor_flash_sector_write(LX_NOR_FLASH *nor_flash, ULONG logical_sector, VOID *buffer) in _lx_nor_flash_sector_write()
99 ULONG *old_mapping_address; in _lx_nor_flash_sector_write()
100 ULONG *old_sector_address; in _lx_nor_flash_sector_write()
101 ULONG old_mapping_entry; in _lx_nor_flash_sector_write()
102 ULONG *new_mapping_address; in _lx_nor_flash_sector_write()
103 ULONG *new_sector_address; in _lx_nor_flash_sector_write()
104 ULONG new_mapping_entry; in _lx_nor_flash_sector_write()
105 ULONG i; in _lx_nor_flash_sector_write()
109 ULONG block; in _lx_nor_flash_sector_write()
209 old_mapping_entry = old_mapping_entry & ~((ULONG) LX_NOR_PHYSICAL_SECTOR_SUPERCEDED); in _lx_nor_flash_sector_write()
[all …]
Dlx_nor_flash_sector_release.c93 UINT _lx_nor_flash_sector_release(LX_NOR_FLASH *nor_flash, ULONG logical_sector) in _lx_nor_flash_sector_release()
97 ULONG *mapping_address; in _lx_nor_flash_sector_release()
98 ULONG mapping_entry; in _lx_nor_flash_sector_release()
99 ULONG *sector_address; in _lx_nor_flash_sector_release()
100 ULONG i; in _lx_nor_flash_sector_release()
102 ULONG block; in _lx_nor_flash_sector_release()
152 …mapping_entry = mapping_entry & ~(((ULONG) LX_NOR_PHYSICAL_SECTOR_VALID) | ((ULONG) LX_NOR_PHYSIC… in _lx_nor_flash_sector_release()
182 …nor_flash -> lx_nor_flash_extended_cache_mapping_bitmap[logical_sector >> 5] &= (ULONG)~(1 << (log… in _lx_nor_flash_sector_release()
193 …block = (ULONG)(mapping_address - nor_flash -> lx_nor_flash_base_address) / nor_flash -> lx_nor_fl… in _lx_nor_flash_sector_release()
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_extended_cache_enable.c93 UINT _lx_nor_flash_extended_cache_enable(LX_NOR_FLASH *nor_flash, VOID *memory, ULONG size) in _lx_nor_flash_extended_cache_enable()
98 ULONG cache_size; in _lx_nor_flash_extended_cache_enable()
99 ULONG *cache_memory; in _lx_nor_flash_extended_cache_enable()
101 ULONG mapping_bitmap_words; in _lx_nor_flash_extended_cache_enable()
102 ULONG mapping_bitmap_word; in _lx_nor_flash_extended_cache_enable()
103 ULONG logical_sector; in _lx_nor_flash_extended_cache_enable()
104 ULONG *mapping_bitmap_ptr; in _lx_nor_flash_extended_cache_enable()
107 ULONG obsolete_count_words; in _lx_nor_flash_extended_cache_enable()
108 ULONG obsolete_sectors; in _lx_nor_flash_extended_cache_enable()
111 ULONG *block_word_ptr; in _lx_nor_flash_extended_cache_enable()
[all …]
Dlx_nor_flash_block_reclaim.c96 ULONG *block_word_ptr; in _lx_nor_flash_block_reclaim()
97 ULONG *list_word_ptr; in _lx_nor_flash_block_reclaim()
98 ULONG list_word; in _lx_nor_flash_block_reclaim()
99 ULONG i; in _lx_nor_flash_block_reclaim()
100 ULONG erase_block; in _lx_nor_flash_block_reclaim()
101 ULONG erase_count; in _lx_nor_flash_block_reclaim()
102 ULONG temp_erase_count; in _lx_nor_flash_block_reclaim()
103 ULONG erase_started_value; in _lx_nor_flash_block_reclaim()
104 ULONG mapped_sectors; in _lx_nor_flash_block_reclaim()
105 ULONG obsolete_sectors; in _lx_nor_flash_block_reclaim()
[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_logical_sector_find.c97 …or_find(LX_NOR_FLASH *nor_flash, ULONG logical_sector, ULONG superceded_check, ULONG **physical_se… in _lx_nor_flash_logical_sector_find()
100 ULONG *block_word_ptr; in _lx_nor_flash_logical_sector_find()
101 ULONG *list_word_ptr; in _lx_nor_flash_logical_sector_find()
102 ULONG list_word; in _lx_nor_flash_logical_sector_find()
103 ULONG min_logical_sector; in _lx_nor_flash_logical_sector_find()
104 ULONG max_logical_sector; in _lx_nor_flash_logical_sector_find()
105 ULONG mapped_sectors; in _lx_nor_flash_logical_sector_find()
106 ULONG total_blocks; in _lx_nor_flash_logical_sector_find()
107 ULONG total_sectors; in _lx_nor_flash_logical_sector_find()
108 ULONG i, j; in _lx_nor_flash_logical_sector_find()
[all …]
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_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.c92 UINT _lx_nor_flash_sector_read(LX_NOR_FLASH *nor_flash, ULONG logical_sector, VOID *buffer) in _lx_nor_flash_sector_read()
96 ULONG *mapping_address; in _lx_nor_flash_sector_read()
97 ULONG mapping_entry; in _lx_nor_flash_sector_read()
98 ULONG *sector_address; in _lx_nor_flash_sector_read()
164 …mapping_entry = ((ULONG) LX_NOR_PHYSICAL_SECTOR_VALID) | ((ULONG) LX_NOR_PHYSICAL_SECTOR_SUPERCED… in _lx_nor_flash_sector_read()
193 …sh -> lx_nor_flash_extended_cache_mapping_bitmap[logical_sector >> 5] |= (ULONG)(1 << (logical_sec… in _lx_nor_flash_sector_read()
Dlx_nor_flash_open.c110 ULONG sectors_per_block; in _lx_nor_flash_open()
111 ULONG sector_map_words; in _lx_nor_flash_open()
112 ULONG bit_map_words; in _lx_nor_flash_open()
113 ULONG bit_map_mask; in _lx_nor_flash_open()
114 ULONG total_header_words; in _lx_nor_flash_open()
115 ULONG header_sectors; in _lx_nor_flash_open()
116 ULONG *block_word_ptr; in _lx_nor_flash_open()
117 ULONG block_word; in _lx_nor_flash_open()
118 ULONG temp; in _lx_nor_flash_open()
119 ULONG free_sectors; in _lx_nor_flash_open()
[all …]
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()
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_open.c97 ULONG* memory_ptr, UINT memory_size) in _lx_nand_flash_open()
100 ULONG block; in _lx_nand_flash_open()
101 ULONG page; in _lx_nand_flash_open()
103 ULONG block_count; in _lx_nand_flash_open()
109 ULONG page_type; 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()
138 if (nand_flash -> lx_nand_flash_spare_data1_length < sizeof(ULONG)) in _lx_nand_flash_open()
146 …h -> lx_nand_flash_words_per_page = (nand_flash -> lx_nand_flash_bytes_per_page / sizeof(ULONG)); in _lx_nand_flash_open()
322 …if (((ULONG)page_index + 1) * nand_flash -> lx_nand_flash_bytes_per_page > nand_flash -> lx_nand_f… in _lx_nand_flash_open()
338 …if (((ULONG)page_index + 1) * nand_flash -> lx_nand_flash_bytes_per_page > nand_flash -> lx_nand_f… in _lx_nand_flash_open()
[all …]
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.3.0/samples/
Ddemo_filex_nand_flash.c30 void thread_0_entry(ULONG thread_input);
46 ULONG thread_0_counter;
92 void thread_0_entry(ULONG thread_input) in thread_0_entry()
96 ULONG actual; in thread_0_entry()
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