/u-boot/drivers/mtd/ |
H A D | cfi_mtd.c | 31 int error, sect; local 33 for (sect = 0; sect < fi->sector_count; sect++) { 34 if (a_start == fi->start[sect]) 35 s_first = sect; 37 if (sect < fi->sector_count - 1) { 38 if (a_end == fi->start[sect + 1]) { 39 s_last = sect; 43 s_last = sect; 136 int sect; local [all...] |
H A D | cfi_flash.c | 198 unsigned long flash_sector_size(flash_info_t *info, flash_sect_t sect) argument 200 if (sect != (info->sector_count - 1)) 201 return info->start[sect + 1] - info->start[sect]; 203 return info->start[0] + info->size - info->start[sect]; 210 flash_map(flash_info_t *info, flash_sect_t sect, uint offset) argument 214 return (void *)(info->start[sect] + (byte_offset << info->chip_lsb)); 217 static inline void flash_unmap(flash_info_t *info, flash_sect_t sect, argument 321 static ulong flash_read_long (flash_info_t *info, flash_sect_t sect, argument 330 addr = flash_map(info, sect, offse 357 flash_write_cmd(flash_info_t *info, flash_sect_t sect, uint offset, u32 cmd) argument 405 flash_unlock_seq(flash_info_t *info, flash_sect_t sect) argument 413 flash_isequal(flash_info_t *info, flash_sect_t sect, uint offset, uchar cmd) argument 461 flash_isset(flash_info_t *info, flash_sect_t sect, uint offset, uchar cmd) argument 494 flash_toggle(flash_info_t *info, flash_sect_t sect, uint offset, uchar cmd) argument 532 flash_is_busy(flash_info_t *info, flash_sect_t sect) argument 790 flash_sect_t sect = 0; local 1060 flash_sect_t sect; local [all...] |
H A D | altera_qspi.c | 144 u32 sect; local 167 sect = addr / mtd->erasesize; 168 sect <<= 8; 169 sect |= QUADSPI_MEM_OP_SECTOR_ERASE; 170 debug("erase %08x\n", sect); 171 writel(sect, ®s->mem_op); 175 debug("erase %08x fail %x\n", sect, stat);
|
/u-boot/board/cobra5272/ |
H A D | flash.c | 136 int iflag, cflag, prot, sect; local 156 for (sect = s_first; sect <= s_last; ++sect) { 157 if (info->protect[sect]) { 179 for (sect = s_first; sect <= s_last && !ctrlc (); sect++) { 180 printf ("Erasing sector %2d ... ", sect); 185 if (info->protect[sect] [all...] |
/u-boot/fs/ext4/ |
H A D | dev.c | 60 int sect = SUPERBLOCK_START >> fs->dev_desc->log2blksz; local 63 return ext4fs_devread(sect, off, SUPERBLOCK_SIZE,
|
/u-boot/board/freescale/m5253demo/ |
H A D | flash.c | 167 int flag, prot, sect, count; local 193 for (sect = s_first; sect <= s_last; ++sect) { 194 if (info->protect[sect]) { 252 for (sect = s_first; sect <= s_last; sect++) { 253 if (info->protect[sect] == 0) { /* not protected */ 255 addr = (FPWV *) (info->start[sect]); [all...] |
/u-boot/cmd/ |
H A D | flash.c | 212 int sect; local 221 for (sect = 0; sect < info->sector_count; ++sect) { 222 ulong end; /* last address in current sect */ 224 end = (sect == s_end) ? b_end : info->start[sect + 1] - 1; 228 if (addr_last < info->start[sect]) 231 if (addr_first == info->start[sect]) 232 s_first[bank] = sect; [all...] |
/u-boot/board/data_modul/imx8mp_edm_sbc/ |
H A D | spl.c | 128 unsigned long board_spl_mmc_get_uboot_raw_sector(struct mmc *mmc, unsigned long sect) argument 136 return sect - 0x40; 139 return sect;
|
/u-boot/include/ |
H A D | fat.h | 189 static inline u32 sect_to_clust(fsdata *fsdata, int sect) argument 191 return (sect - fsdata->data_begin) / fsdata->clust_size;
|
H A D | flash.h | 30 uchar cmd_erase_sector; /* vendor specific erase sect. command */ 90 unsigned long flash_sector_size(flash_info_t *info, flash_sect_t sect); 178 #define MT_ID_28F400_B 0x44714471 /* 28F400B3 ID ( 4 M, bottom boot sect) */ 203 #define AMD_ID_LV116DT 0xC7 /* 29LV116DT ( 2 M x 8, top boot sect) */ 204 #define AMD_ID_LV116DB 0x4C /* 29LV116DB ( 2 M x 8, bottom boot sect) */ 207 #define AMD_ID_PL160CB 0x22452245 /* 29PL160CB ID (16 M, bottom boot sect */ 210 #define AMD_ID_LV400B 0x22BA22BA /* 29LV400B ID ( 4 M, bottom boot sect) */ 216 #define AMD_ID_LV800B 0x225B225B /* 29LV800B ID ( 8 M, bottom boot sect) */ 219 #define AMD_ID_LV160B 0x22492249 /* 29LV160B ID (16 M, bottom boot sect) */ 222 #define AMD_ID_DL163B 0x222B222B /* 29DL163B ID (16 M, bottom boot sect) */ [all...] |
/u-boot/drivers/mtd/nand/raw/ |
H A D | mt7621_nand.c | 225 static inline u8 *oob_fdm_ptr(struct nand_chip *nand, int sect) argument 227 return nand->oob_poi + sect * NFI_FDM_SIZE; 230 static inline u8 *oob_ecc_ptr(struct mt7621_nfc *nfc, int sect) argument 235 sect * (nfc->spare_per_sector - NFI_FDM_SIZE); 239 int sect) 241 return (u8 *)buf + sect * nand->ecc.size; 259 static int mt7621_ecc_decoder_wait_done(struct mt7621_nfc *nfc, u32 sect) argument 265 val & (1 << sect), ECC_ENGINE_TIMEOUT); 267 pr_warn("ECC decoder for sector %d timed out\n", sect); 287 u8 *fdm_buf, u32 sect) 238 page_data_ptr(struct nand_chip *nand, const u8 *buf, int sect) argument 286 mt7621_ecc_correct_check(struct mt7621_nfc *nfc, u8 *sector_buf, u8 *fdm_buf, u32 sect) argument 785 mt7621_nfc_read_sector_fdm(struct mt7621_nfc *nfc, u32 sect) argument [all...] |
/u-boot/fs/erofs/ |
H A D | fs.c | 14 lbaint_t sect = offset >> ctxt.cur_dev->log2blksz; local 20 if (fs_devread(ctxt.cur_dev, &ctxt.cur_part_info, sect,
|
/u-boot/tools/ |
H A D | mxsimage.c | 147 struct sb_section_ctx *sect; member in struct:sb_section_ctx 337 sctx = sctx->sect; 422 sctx = sctx->sect; 775 ictx->sect_tail->sect = sctx; 1372 sctx = sctx->sect; 1444 sctx = sctx->sect; 1959 ictx->sect_tail->sect = sctx; 2010 sctx = sctx->sect; 2151 sctx = sctx->sect; 2267 sctx = sctx->sect; [all...] |
/u-boot/fs/fat/ |
H A D | fat.c | 872 u32 sect; local 889 sect = itr->fsdata->rootdir_sect + sect_offset; 894 sect = clust_to_sect(itr->fsdata, itr->next_clust); 898 log_debug("FAT read(sect=%d), clust_size=%d, read_size=%u\n", 899 sect, itr->fsdata->clust_size, read_size); 910 ret = disk_read(sect, read_size, itr->block);
|