/u-boot/drivers/mtd/nand/raw/ |
H A D | nand_spl_loaders.c | 3 unsigned int block, lastblock; local 7 block = offs / CONFIG_SYS_NAND_BLOCK_SIZE; 12 while (block <= lastblock) { 13 if (!nand_is_bad_block(block)) { 16 nand_read_page(block, page, dst); 41 block++; 53 * and @sector + @offs, @offs is increased by the NAND block size for 54 * each bad block found. 58 unsigned int block, lastblock; local 60 block 105 nand_spl_read_block(int block, int offset, int len, void *dst) argument [all...] |
H A D | denali_spl.c | 154 static int nand_block_isbad(void *buf, int block) argument 158 ret = nand_read_oob(buf, block * pages_per_block); 189 int block, page, column, readlen; local 196 block = page / pages_per_block; 201 ret = nand_block_isbad(dst, block); 206 block++; 213 ret = nand_read_page(dst, block * pages_per_block + page); 229 block++;
|
H A D | am335x_spl_bch.c | 32 static int nand_command(int block, int page, uint32_t offs, argument 36 int page_addr = page + block * SYS_NAND_BLOCK_PAGES; 131 static int nand_is_bad_block(int block) argument 135 nand_command(block, 0, CONFIG_SYS_NAND_BAD_BLOCK_POS, 152 static int nand_read_page(int block, int page, void *dst) argument 167 nand_command(block, page, 0, NAND_CMD_READ0); 171 nand_command(block, page, data_pos, NAND_CMD_RNDOUT); 175 nand_command(block, page, oob_pos, NAND_CMD_RNDOUT);
|
H A D | nand_spl_simple.c | 27 static int nand_command(int block, int page, uint32_t offs, argument 31 int page_addr = page + block * SYS_NAND_BLOCK_PAGES; 59 static int nand_command(int block, int page, uint32_t offs, argument 63 int page_addr = page + block * SYS_NAND_BLOCK_PAGES; 111 static int nand_is_bad_block(int block) argument 116 nand_command(block, 0, CONFIG_SYS_NAND_BAD_BLOCK_POS, 136 static int nand_read_page(int block, int page, uchar *dst) argument 148 nand_command(block, page, 0, NAND_CMD_READOOB); 150 nand_command(block, page, 0, NAND_CMD_READ0); 167 static int nand_read_page(int block, in argument [all...] |
H A D | mxs_nand_spl.c | 189 unsigned int block = offs >> chip->phys_erase_shift; local 192 debug("%s offs=0x%08x block:%d page:%d\n", __func__, (int)offs, block, 236 unsigned int block, lastblock; local 251 block = offs / mtd->erasesize; 257 while (block <= lastblock && size > 0) { 258 if (!is_badblock(mtd, mtd->erasesize * block, 1)) { 261 int curr_page = nand_page_per_block * block + page; 285 block++; 309 unsigned int block, lastbloc local [all...] |
H A D | nand_bbt.c | 3 * Bad block table support for the NAND driver 13 * When nand_scan_bbt is called, then it tries to find the bad block table 17 * Once a new bad block is discovered then the "factory" information is updated 24 * If the tables are not versioned, then we "or" the bad block information. 27 * good / bad blocks and the bad block tables are created. 32 * The auto generated bad block table is located in the last good blocks 41 * The table uses 2 bits per block 42 * 11b: block is good 43 * 00b: block is factory marked bad 44 * 01b, 10b: block i 82 bbt_get_entry(struct nand_chip *chip, int block) argument 89 bbt_mark_entry(struct nand_chip *chip, int block, uint8_t mark) argument 529 int startblock, block, dir; local 680 int block = startblock + dir * i; local 967 int i, j, chips, block, nrblocks, update; local 1322 int block; local 1338 int block, res; local 1365 int block, ret = 0; local [all...] |
/u-boot/drivers/mtd/onenand/ |
H A D | onenand_spl.c | 18 * - 2048b page, 128k erase block. 19 * - 4096b page, 256k erase block. 32 static inline int onenand_block_address(int block) argument 35 if (block & density_mask) 36 return ONENAND_DDP_CHIP1 | (block ^ density_mask); 38 return block; 41 static inline int onenand_bufferram_address(int block) argument 44 if (block & density_mask) 82 static int onenand_spl_read_page(uint32_t block, uint32_t page, uint32_t *buf, argument 88 onenand_writew(onenand_block_address(block), 132 onenand_spl_read_block(int block, int offset, int len, void *dst) argument 172 uint32_t block; local [all...] |
H A D | onenand_bbt.c | 34 * Check for a pattern at the given place. Used to search bad block 35 * tables and good / bad block identifiers. Same as check_pattern, but 54 * create_bbt - [GENERIC] Create a bad block table by scanning the device 57 * @param bd descriptor for the good/bad block search pattern 61 * Create a bad block table by scanning the device 62 * for the given good/bad block identify pattern 107 /* If it is a initial bad block, just ignore it */ 133 * onenand_memory_bbt - [GENERIC] create a memory based bad block table 135 * @param bd descriptor for the good/bad block search pattern 149 * onenand_isbad_bbt - [OneNAND Interface] Check if a block i 158 int block; local [all...] |
H A D | onenand_base.c | 149 * onenand_block_address - [DEFAULT] Get block address 151 * @param block the block 152 * Return: translated block address if DDP, otherwise same 156 static int onenand_block_address(struct onenand_chip *this, int block) argument 159 if (block & this->density_mask) 160 return ONENAND_DDP_CHIP1 | (block ^ this->density_mask); 162 return block; 168 * @param block the block 173 onenand_bufferram_address(struct onenand_chip *this, int block) argument 266 flexonenand_addr(struct onenand_chip *this, int block) argument 285 onenand_addr(struct onenand_chip *this, int block) argument 334 int block, page; local 623 int blockpage, block, page; local 670 int block = onenand_block(this, addr); local 1904 int block; local 1955 int start, end, block, value, status; local 2066 unsigned int value, block, status; local 2397 int block; local [all...] |
/u-boot/disk/ |
H A D | part_amiga.c | 70 * Sum a block. The checksum of a block must end up at zero 76 s32 *block = (s32 *)header; local 81 sum += *block++; 106 * Print the info contained within the given partition block 123 * Search for the Rigid Disk Block. The rigid disk block is required 148 PRINTF("Rigid disk block suspect at %d, checking checksum\n",i); 164 * Again, the first boot block must be located somewhere in the first 16 blocks, or rooted in the 165 * Ridgid disk block 190 PRINTF("BOOT block a 243 u32 block; local 325 u32 block; local [all...] |
H A D | part_mac.h | 21 * Driver Descriptor Structure, in block 0. 22 * This block is (and shall remain) 512 bytes long. 27 __u16 blk_size; /* block size of device */ 41 __u32 block; /* block number of starting block */ member in struct:mac_driver_entry 59 __u32 start_block; /* abs. starting block # of partition */ 63 __u32 data_start; /* rel block # of first data block */ 66 __u32 boot_start; /* first block o [all...] |
/u-boot/lib/bzip2/ |
H A D | bzlib_blocksort.c | 9 library for lossless, block-sorting data compression. 236 ((UChar*)eclass) [0 .. nblock-1] holds block 240 ((UChar*)eclass) [0 .. nblock-1] holds block 294 /*-- set sentinel bits for block-end detection --*/ 357 Reconstruct the original block in 362 VPrintf0 ( " reconstructing block ...\n" ); 390 UChar* block, 401 c1 = block[i1]; c2 = block[i2]; 405 c1 = block[i 388 mainGtU( UInt32 i1, UInt32 i2, UChar* block, UInt16* quadrant, UInt32 nblock, Int32* budget ) argument 526 mainSimpleSort( UInt32* ptr, UChar* block, UInt16* quadrant, Int32 nblock, Int32 lo, Int32 hi, Int32 d, Int32* budget ) argument 662 mainQSort3( UInt32* ptr, UChar* block, UInt16* quadrant, Int32 nblock, Int32 loSt, Int32 hiSt, Int32 dSt, Int32* budget ) argument 792 mainSort( UInt32* ptr, UChar* block, UInt16* quadrant, UInt32* ftab, Int32 nblock, Int32 verb, Int32* budget ) argument 1075 UChar* block = s->block; local [all...] |
/u-boot/cmd/ |
H A D | bcb.c | 38 static struct blk_desc *block; variable in typeref:struct:blk_desc 93 if (cmd != BCB_CMD_LOAD && !block) { 132 block = NULL; 143 block = blk_get_dev(iface, devnum); 144 if (!block) { 153 ret = blk_dselect_hwpart(block, 0); 161 ret = part_get_info(block, part, partition); 165 part = part_get_info_by_name(block, partp, partition); 175 printf("Error: %d %d:%s read failed (%d)\n", block->uclass_id, 176 block [all...] |
/u-boot/board/toradex/common/ |
H A D | Makefile | 9 obj-$(CONFIG_TDX_CFG_BLOCK) += tdx-cfg-block.o
|
/u-boot/lib/libavb/ |
H A D | avb_sha.h | 36 uint8_t block[2 * AVB_SHA256_BLOCK_SIZE]; member in struct:__anon10 45 uint8_t block[2 * AVB_SHA512_BLOCK_SIZE]; member in struct:__anon11
|
/u-boot/include/fsl-mc/ |
H A D | fsl_qbman_base.h | 26 const struct qbman_block_desc *block; /* The QBMan instance */ member in struct:qbman_swp_desc
|
/u-boot/test/image/ |
H A D | spl_load_net.c | 96 /* default TFTP block size */ 101 u16 block; member in struct:tftp_hdr 127 u16 block; local 141 block = 0; 147 block = htons(tftp->block); 152 if (block * TFTP_BLOCK_SIZE > test_priv->img_size) 155 size = min(test_priv->img_size - block * TFTP_BLOCK_SIZE, 186 tftpr->block = htons(block [all...] |
/u-boot/tools/ |
H A D | ublimage.h | 51 /* one NAND block */ 59 uint32_t block; /* member in struct:ubl_header 79 /* to fit in one nand block */
|
/u-boot/lib/efi_loader/ |
H A D | efi_hii_config.c | 57 const u8 *block, 63 block, block_size, config, progress); 71 const u8 *block, 76 block, block_size, progress); 55 block_to_config(const struct efi_hii_config_routing_protocol *this, const efi_string_t config_request, const u8 *block, const efi_uintn_t block_size, efi_string_t *config, efi_string_t *progress) argument 69 config_to_block(const struct efi_hii_config_routing_protocol *this, const efi_string_t config_resp, const u8 *block, const efi_uintn_t *block_size, efi_string_t *progress) argument
|
/u-boot/include/ |
H A D | onenand_uboot.h | 44 extern loff_t onenand_addr(struct onenand_chip *this, int block); 52 int onenand_spl_read_block(int block, int offset, int len, void *dst);
|
/u-boot/board/menlo/mx8menlo/ |
H A D | Makefile | 22 obj-$(CONFIG_TDX_CFG_BLOCK) += ../../toradex/common/tdx-cfg-block.o
|
/u-boot/fs/ext4/ |
H A D | ext4fs.c | 98 /* Last block. */ 107 /* First block. */ 291 int ext_cache_read(struct ext_block_cache *cache, lbaint_t block, int size) argument 294 if (cache->buf && cache->block == block && cache->size == size) 300 if (!ext4fs_devread(block, 0, size, cache->buf)) { 304 cache->block = block;
|
/u-boot/drivers/crypto/nuvoton/ |
H A D | npcm_sha.c | 72 u32 block[SHA_BLOCK_LENGTH / sizeof(u32)]; member in struct:SHA_HANDLE_T 77 // The # of bytes currently in the sha block buffer 80 // The # of free bytes in the sha block buffer 87 static void SHA_SetBlock_l(const u8 *data, u32 len, u16 position, u32 *block); 88 static void SHA_ClearBlock_l(u16 len, u16 position, u32 *block); 89 static void SHA_SetLength32_l(struct SHA_HANDLE_T *handleptr, u32 *block); 293 // Init block with zeros 294 memset(handleptr->block, 0, sizeof(handleptr->block)); 341 SHA_SetBlock_l((u8 *)handleptr->block, po 816 SHA_SetBlock_l(const u8 *data, u32 len, u16 position, u32 *block) argument 835 SHA_ClearBlock_l(u16 len, u16 position, u32 *block) argument 854 SHA_SetLength32_l(struct SHA_HANDLE_T *handleptr, u32 *block) argument [all...] |
/u-boot/drivers/ata/ |
H A D | fsl_sata.c | 506 u32 block; local 508 block = start; 517 cfis->device |= (block >> 24) & 0xf; 518 cfis->lba_high = (block >> 16) & 0xff; 519 cfis->lba_mid = (block >> 8) & 0xff; 520 cfis->lba_low = block & 0xff; 544 u64 block; local 546 block = (u64)start; 556 cfis->lba_high_exp = (block >> 40) & 0xff; 557 cfis->lba_mid_exp = (block >> 3 575 u64 block; local [all...] |
/u-boot/lib/blake2/ |
H A D | blake2b.c | 87 /* init xors IV with input parameter block */ 151 uint8_t block[BLAKE2B_BLOCKBYTES]; local 152 memset( block, 0, BLAKE2B_BLOCKBYTES ); 153 memcpy( block, key, keylen ); 154 blake2b_update( S, block, BLAKE2B_BLOCKBYTES ); 155 secure_zero_memory( block, BLAKE2B_BLOCKBYTES ); /* Burn the key from stack */ 184 static void blake2b_compress( blake2b_state *S, const uint8_t block[BLAKE2B_BLOCKBYTES] ) 191 m[i] = load64( block + i * sizeof( m[i] ) );
|