Home
last modified time | relevance | path

Searched refs:sect (Results 1 – 14 of 14) sorted by relevance

/u-boot/drivers/mtd/
A Dcfi_mtd.c31 int error, sect; in cfi_mtd_erase() local
33 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_erase()
34 if (a_start == fi->start[sect]) in cfi_mtd_erase()
35 s_first = sect; in cfi_mtd_erase()
37 if (sect < fi->sector_count - 1) { in cfi_mtd_erase()
39 s_last = sect; in cfi_mtd_erase()
43 s_last = sect; in cfi_mtd_erase()
137 int sect; in cfi_mtd_set_erasesize() local
147 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_set_erasesize()
171 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_set_erasesize()
[all …]
A Dpic32_flash.c113 int prot, sect; in flash_erase() local
128 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase()
129 if (info->protect[sect]) in flash_erase()
140 for (sect = s_first; sect <= s_last; sect++) { in flash_erase()
141 if (info->protect[sect]) in flash_erase()
148 sect_start = CPHYSADDR(info->start[sect]); in flash_erase()
181 int page_erase(flash_info_t *info, int sect) in page_erase() argument
358 int sect; in pic32_flash_bank_init() local
367 for (sect = 0; sect < info->sector_count; sect++) { in pic32_flash_bank_init()
368 info->start[sect] = base; in pic32_flash_bank_init()
[all …]
A Dcfi_flash.c208 return info->start[sect + 1] - info->start[sect]; in flash_sector_size()
797 flash_sect_t sect = 0; in flash_write_cfiword() local
833 sect = find_sector(info, dest); in flash_write_cfiword()
834 flash_unlock_seq(info, sect); in flash_write_cfiword()
840 sect = find_sector(info, dest); in flash_write_cfiword()
868 sect = find_sector(info, dest); in flash_write_cfiword()
1067 flash_sect_t sect; in flash_erase() local
1080 for (sect = s_first; sect <= s_last; ++sect) in flash_erase()
1081 if (info->protect[sect]) in flash_erase()
1090 for (sect = s_first; sect <= s_last; sect++) { in flash_erase()
[all …]
A Dst_smi.c536 flash_sect_t sect; in flash_erase() local
543 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase()
544 if (info->protect[sect]) in flash_erase()
554 for (sect = s_first; sect <= s_last; sect++) { in flash_erase()
555 if (info->protect[sect] == 0) { in flash_erase()
556 if (smi_sector_erase(info, sect)) in flash_erase()
A Daltera_qspi.c144 u32 sect; in altera_qspi_erase() local
168 sect = addr / mtd->erasesize; in altera_qspi_erase()
169 sect <<= 8; in altera_qspi_erase()
170 sect |= QUADSPI_MEM_OP_SECTOR_ERASE; in altera_qspi_erase()
171 debug("erase %08x\n", sect); in altera_qspi_erase()
172 writel(sect, &regs->mem_op); in altera_qspi_erase()
176 debug("erase %08x fail %x\n", sect, stat); in altera_qspi_erase()
/u-boot/board/cobra5272/
A Dflash.c136 int iflag, cflag, prot, sect; in flash_erase() local
156 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase()
157 if (info->protect[sect]) { in flash_erase()
179 for (sect = s_first; sect <= s_last && !ctrlc (); sect++) { in flash_erase()
180 printf ("Erasing sector %2d ... ", sect); in flash_erase()
185 if (info->protect[sect] == 0) { /* not protected */ in flash_erase()
187 (volatile u16 *) (info->start[sect]); in flash_erase()
/u-boot/board/freescale/m5253demo/
A Dflash.c183 int flag, prot, sect, count; in flash_erase() local
209 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase()
210 if (info->protect[sect]) { in flash_erase()
267 for (sect = s_first; sect <= s_last; sect++) { in flash_erase()
268 if (info->protect[sect] == 0) { /* not protected */ in flash_erase()
270 addr = (FPWV *) (info->start[sect]); in flash_erase()
/u-boot/cmd/
A Dflash.c209 int sect; in flash_fill_sect_ranges() local
220 for (sect=0; sect < info->sector_count; ++sect) { in flash_fill_sect_ranges()
223 end = (sect == s_end) ? b_end : info->start[sect + 1] - 1; in flash_fill_sect_ranges()
227 if (addr_last < info->start[sect]) in flash_fill_sect_ranges()
230 if (addr_first == info->start[sect]) { in flash_fill_sect_ranges()
231 s_first[bank] = sect; in flash_fill_sect_ranges()
234 s_last[bank] = sect; in flash_fill_sect_ranges()
254 sect = s_last[bank]; in flash_fill_sect_ranges()
255 addr_first = (sect == s_end) ? b_end + 1: info->start[sect + 1]; in flash_fill_sect_ranges()
/u-boot/fs/ext4/
A Ddev.c60 int sect = SUPERBLOCK_START >> fs->dev_desc->log2blksz; in ext4_read_superblock() local
63 return ext4fs_devread(sect, off, SUPERBLOCK_SIZE, in ext4_read_superblock()
/u-boot/board/freescale/m54455evb/
A Dm54455evb.c174 int sect[] = CONFIG_SYS_ATMEL_SECT; in board_flash_get_legacy() local
207 info->size += sect[i] * sectsz[i]; in board_flash_get_legacy()
209 for (j = 0; j < sect[i]; j++, k++) { in board_flash_get_legacy()
/u-boot/include/
A Dfat.h195 static inline u32 sect_to_clust(fsdata *fsdata, int sect) in sect_to_clust() argument
197 return (sect - fsdata->data_begin) / fsdata->clust_size; in sect_to_clust()
A Dflash.h93 unsigned long flash_sector_size(flash_info_t *info, flash_sect_t sect);
/u-boot/tools/
A Dmxsimage.c147 struct sb_section_ctx *sect; member
337 sctx = sctx->sect; in sb_encrypt_sb_sections_header()
422 sctx = sctx->sect; in sb_encrypt_image()
775 ictx->sect_tail->sect = sctx; in sb_build_section()
1372 sctx = sctx->sect; in sb_postfill_image_header()
1444 sctx = sctx->sect; in sb_fixup_sections_and_tags()
2013 sctx = sctx->sect; in sb_verify_sections_cmds()
2154 sctx = sctx->sect; in sb_free_image()
2270 sctx = sctx->sect; in sb_build_image()
2285 sctx = sctx->sect; in sb_build_image()
[all …]
/u-boot/fs/fat/
A Dfat.c814 u32 sect; in fat_next_cluster() local
831 sect = itr->fsdata->rootdir_sect + sect_offset; in fat_next_cluster()
836 sect = clust_to_sect(itr->fsdata, itr->next_clust); in fat_next_cluster()
841 sect, itr->fsdata->clust_size, read_size); in fat_next_cluster()
852 ret = disk_read(sect, read_size, itr->block); in fat_next_cluster()

Completed in 124 milliseconds