Home
last modified time | relevance | path

Searched refs:USHORT (Results 1 – 17 of 17) sorted by relevance

/LevelX-v6.3.0/common/src/
Dlx_nand_flash_256byte_ecc_check.c89 USHORT *data; in _lx_nand_flash_256byte_ecc_check()
90 USHORT byte; in _lx_nand_flash_256byte_ecc_check()
91 USHORT bit; in _lx_nand_flash_256byte_ecc_check()
153 data = (USHORT *) page_buffer; in _lx_nand_flash_256byte_ecc_check()
159 byte = (USHORT) ((byte | ((correction_code >> (21+2)) & 1) << 6) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check()
160 byte = (USHORT) ((byte | ((correction_code >> (19+2)) & 1) << 5) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check()
161 byte = (USHORT) ((byte | ((correction_code >> (17+2)) & 1) << 4) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check()
162 byte = (USHORT) ((byte | ((correction_code >> (15+2)) & 1) << 3) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check()
163 byte = (USHORT) ((byte | ((correction_code >> (13+2)) & 1) << 2) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check()
164 byte = (USHORT) ((byte | ((correction_code >> (11+2)) & 1) << 1) & 0xFFFF); in _lx_nand_flash_256byte_ecc_check()
[all …]
Dlx_nand_flash_256byte_ecc_compute.c88 USHORT i, j; in _lx_nand_flash_256byte_ecc_compute()
89 USHORT *data; in _lx_nand_flash_256byte_ecc_compute()
90 USHORT bits, mask; in _lx_nand_flash_256byte_ecc_compute()
91 USHORT bit_parity; in _lx_nand_flash_256byte_ecc_compute()
92 USHORT even_bit_parity; in _lx_nand_flash_256byte_ecc_compute()
93 USHORT odd_bit_parity; in _lx_nand_flash_256byte_ecc_compute()
94 USHORT even_byte_parity; in _lx_nand_flash_256byte_ecc_compute()
95 USHORT odd_byte_parity; in _lx_nand_flash_256byte_ecc_compute()
111 data = (USHORT *) page_buffer; in _lx_nand_flash_256byte_ecc_compute()
135 mask = (USHORT) ((mask << 1) & 0xFFFF); in _lx_nand_flash_256byte_ecc_compute()
[all …]
Dlx_nand_flash_block_find.c83 …ash_block_find(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG *block, USHORT *block_status) in _lx_nand_flash_block_find()
87 USHORT block_number; in _lx_nand_flash_block_find()
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()
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()
Dlx_nand_flash_metadata_allocate.c276 …nand_flash -> lx_nand_flash_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_metadata_block… in _lx_nand_flash_metadata_allocate()
279 …nand_flash -> lx_nand_flash_backup_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_backup_… in _lx_nand_flash_metadata_allocate()
308 … -> lx_nand_flash_metadata_block[nand_flash -> lx_nand_flash_metadata_block_count] = (USHORT)block; in _lx_nand_flash_metadata_allocate()
344 …nand_flash_backup_metadata_block[nand_flash -> lx_nand_flash_metadata_block_count] = (USHORT)block; in _lx_nand_flash_metadata_allocate()
Dlx_nand_flash_data_page_copy.c84 …_copy(LX_NAND_FLASH* nand_flash, ULONG logical_sector, ULONG source_block, USHORT src_block_status, in _lx_nand_flash_data_page_copy()
85 … ULONG destination_block, USHORT* dest_block_status_ptr, ULONG sectors) in _lx_nand_flash_data_page_copy()
247 …*dest_block_status_ptr = (USHORT)(destination_page | (dest_block_status & ~LX_NAND_BLOCK_STATUS_PA… in _lx_nand_flash_data_page_copy()
Dlx_nand_flash_sector_write.c101 USHORT block_status = 0; in _lx_nand_flash_sector_write()
102 USHORT new_block_status = LX_NAND_BLOCK_STATUS_ALLOCATED; in _lx_nand_flash_sector_write()
242 if (nand_flash -> lx_nand_flash_spare_data2_length >= sizeof(USHORT)) in _lx_nand_flash_sector_write()
298 new_block_status = (USHORT)(page | (new_block_status & ~LX_NAND_BLOCK_STATUS_PAGE_NUMBER_MASK)); in _lx_nand_flash_sector_write()
Dlx_nand_flash_block_data_move.c94 USHORT block_status; in _lx_nand_flash_block_data_move()
95 USHORT new_block_status; in _lx_nand_flash_block_data_move()
Dlx_nand_flash_block_status_set.c85 nand_flash -> lx_nand_flash_block_status_table[block] = (USHORT)block_status; in _lx_nand_flash_block_status_set()
Dlx_nand_flash_sector_release.c97 USHORT block_status; in _lx_nand_flash_sector_release()
103 USHORT new_block_status; in _lx_nand_flash_sector_release()
407 if (nand_flash -> lx_nand_flash_spare_data2_length >= sizeof(USHORT)) in _lx_nand_flash_sector_release()
452 …block_status = (USHORT)(available_pages | (block_status & ~LX_NAND_BLOCK_STATUS_PAGE_NUMBER_MASK)); in _lx_nand_flash_sector_release()
Dlx_nand_flash_block_mapping_set.c97 nand_flash -> lx_nand_flash_block_mapping_table[block_mapping_index] = (USHORT)block; in _lx_nand_flash_block_mapping_set()
Dlx_nand_flash_free_block_list_add.c116 nand_flash -> lx_nand_flash_block_list[insert_position] = (USHORT)block; in _lx_nand_flash_free_block_list_add()
Dlx_nand_flash_mapped_block_list_add.c116 nand_flash -> lx_nand_flash_block_list[insert_position] = (USHORT)block_mapping_index; in _lx_nand_flash_mapped_block_list_add()
Dlx_nand_flash_open.c260 …nand_flash -> lx_nand_flash_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_metadata_block… in _lx_nand_flash_open()
261 …nand_flash -> lx_nand_flash_backup_metadata_block[0] = (USHORT)nand_flash -> lx_nand_flash_backup_… in _lx_nand_flash_open()
384 …lash_metadata_block[nand_flash -> lx_nand_flash_metadata_block_count] = (USHORT)LX_UTILITY_LONG_GE… in _lx_nand_flash_open()
385 …ckup_metadata_block[nand_flash -> lx_nand_flash_metadata_block_count] = (USHORT)LX_UTILITY_LONG_GE… in _lx_nand_flash_open()
Dlx_nand_flash_format.c252 …tatus_table[nand_flash -> lx_nand_flash_backup_metadata_block_number] = (USHORT)nand_flash -> lx_n… in _lx_nand_flash_format()
253 …block_status_table[nand_flash -> lx_nand_flash_metadata_block_number] = (USHORT)nand_flash -> lx_n… in _lx_nand_flash_format()
Dlx_nand_flash_sector_read.c90 USHORT block_status; in _lx_nand_flash_sector_read()
/LevelX-v6.3.0/common/inc/
Dlx_api.h142 typedef unsigned short USHORT; typedef
312 #define LX_UTILITY_SHORT_SET(address, value) *((USHORT*)(address)) = (USHORT)(value)
320 #define LX_UTILITY_SHORT_GET(address) (*((USHORT*)(address)))
430 USHORT *lx_nand_flash_block_mapping_table;
432 USHORT *lx_nand_flash_block_status_table;
436 USHORT *lx_nand_flash_block_list;
446 USHORT lx_nand_flash_metadata_block[LX_NAND_FLASH_MAX_METADATA_BLOCKS];
452USHORT lx_nand_flash_backup_metadata_block[LX_NAND_FLASH_MAX_METADATA_BLO…
775 …sh_block_find(LX_NAND_FLASH *nand_flash, ULONG logical_sector, ULONG *block, USHORT *block_status);
781 …_copy(LX_NAND_FLASH* nand_flash, ULONG logical_sector, ULONG source_block, USHORT src_block_status,
[all …]