| /openbmc/u-boot/drivers/mtd/ |
| H A D | cfi_mtd.c | 30 int error, sect; in cfi_mtd_erase() local 32 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_erase() 33 if (a_start == fi->start[sect]) in cfi_mtd_erase() 34 s_first = sect; in cfi_mtd_erase() 36 if (sect < fi->sector_count - 1) { in cfi_mtd_erase() 37 if (a_end == fi->start[sect + 1]) { in cfi_mtd_erase() 38 s_last = sect; in cfi_mtd_erase() 42 s_last = sect; in cfi_mtd_erase() 135 int sect; in cfi_mtd_set_erasesize() local 145 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_set_erasesize() [all …]
|
| H A D | pic32_flash.c | 108 int prot, sect; in flash_erase() local 123 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase() 124 if (info->protect[sect]) in flash_erase() 135 for (sect = s_first; sect <= s_last; sect++) { in flash_erase() 136 if (info->protect[sect]) in flash_erase() 143 sect_start = CPHYSADDR(info->start[sect]); in flash_erase() 168 sect_end = info->start[sect] + info->size / info->sector_count; in flash_erase() 169 invalidate_dcache_range(info->start[sect], sect_end); in flash_erase() 176 int page_erase(flash_info_t *info, int sect) in page_erase() argument 353 int sect; in pic32_flash_bank_init() local [all …]
|
| H A D | cfi_flash.c | 197 unsigned long flash_sector_size(flash_info_t *info, flash_sect_t sect) in flash_sector_size() argument 199 if (sect != (info->sector_count - 1)) in flash_sector_size() 200 return info->start[sect + 1] - info->start[sect]; in flash_sector_size() 202 return info->start[0] + info->size - info->start[sect]; in flash_sector_size() 209 flash_map(flash_info_t *info, flash_sect_t sect, uint offset) in flash_map() argument 213 return (void *)(info->start[sect] + byte_offset); in flash_map() 216 static inline void flash_unmap(flash_info_t *info, flash_sect_t sect, in flash_unmap() argument 320 static ulong flash_read_long (flash_info_t *info, flash_sect_t sect, in flash_read_long() argument 329 addr = flash_map(info, sect, offset); in flash_read_long() 348 flash_unmap(info, sect, offset, addr); in flash_read_long() [all …]
|
| H A D | st_smi.c | 535 flash_sect_t sect; in flash_erase() local 542 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase() 543 if (info->protect[sect]) in flash_erase() 553 for (sect = s_first; sect <= s_last; sect++) { in flash_erase() 554 if (info->protect[sect] == 0) { in flash_erase() 555 if (smi_sector_erase(info, sect)) in flash_erase()
|
| H A D | altera_qspi.c | 141 u32 sect; in altera_qspi_erase() local 165 sect = addr / mtd->erasesize; in altera_qspi_erase() 166 sect <<= 8; in altera_qspi_erase() 167 sect |= QUADSPI_MEM_OP_SECTOR_ERASE; in altera_qspi_erase() 168 debug("erase %08x\n", sect); in altera_qspi_erase() 169 writel(sect, ®s->mem_op); in altera_qspi_erase() 173 debug("erase %08x fail %x\n", sect, stat); in altera_qspi_erase()
|
| /openbmc/u-boot/board/cobra5272/ |
| H A D | flash.c | 131 int iflag, cflag, prot, sect; in flash_erase() local 151 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase() 152 if (info->protect[sect]) { in flash_erase() 174 for (sect = s_first; sect <= s_last && !ctrlc (); sect++) { in flash_erase() 175 printf ("Erasing sector %2d ... ", sect); in flash_erase() 180 if (info->protect[sect] == 0) { /* not protected */ in flash_erase() 182 (volatile u16 *) (info->start[sect]); in flash_erase()
|
| /openbmc/u-boot/board/freescale/m5253demo/ |
| H A D | flash.c | 180 int flag, prot, sect, count; in flash_erase() local 206 for (sect = s_first; sect <= s_last; ++sect) { in flash_erase() 207 if (info->protect[sect]) { in flash_erase() 264 for (sect = s_first; sect <= s_last; sect++) { in flash_erase() 265 if (info->protect[sect] == 0) { /* not protected */ in flash_erase() 267 addr = (FPWV *) (info->start[sect]); in flash_erase()
|
| /openbmc/u-boot/cmd/ |
| H A D | fdc.c | 125 unsigned int sect; /* sectors per track */ member 251 unsigned long head,track,sect,timeout; in fdc_issue_cmd() local 252 track = pCMD->blnr / (pFG->sect * pFG->head); /* track nr */ in fdc_issue_cmd() 253 sect = pCMD->blnr % (pFG->sect * pFG->head); /* remaining blocks */ in fdc_issue_cmd() 254 head = sect / pFG->sect; /* head nr */ in fdc_issue_cmd() 255 sect = sect % pFG->sect; /* remaining blocks */ in fdc_issue_cmd() 256 sect++; /* sectors are 1 based */ in fdc_issue_cmd() 258 pCMD->cmd[0],track,head,sect,pCMD->drive,pCMD->blnr); in fdc_issue_cmd() 271 pCMD->cmd[SECTOR]=(unsigned char) sect; /* sector */ in fdc_issue_cmd() 273 pCMD->cmd[LAST_TRACK]=pFG->sect; /* End of track */ in fdc_issue_cmd() [all …]
|
| H A D | flash.c | 207 int sect; in flash_fill_sect_ranges() local 218 for (sect=0; sect < info->sector_count; ++sect) { in flash_fill_sect_ranges() 221 end = (sect == s_end) ? b_end : info->start[sect + 1] - 1; in flash_fill_sect_ranges() 225 if (addr_last < info->start[sect]) in flash_fill_sect_ranges() 228 if (addr_first == info->start[sect]) { in flash_fill_sect_ranges() 229 s_first[bank] = sect; in flash_fill_sect_ranges() 232 s_last[bank] = sect; in flash_fill_sect_ranges() 252 sect = s_last[bank]; in flash_fill_sect_ranges() 253 addr_first = (sect == s_end) ? b_end + 1: info->start[sect + 1]; in flash_fill_sect_ranges()
|
| /openbmc/phosphor-bmc-code-mgmt/i2c-vr/xdpe1x2xx/ |
| H A D | xdpe1x2xx.cpp | 316 struct configSect* sect = &configuration.section[i]; in program() local 317 if (sect == NULL) in program() 324 if ((i <= 0) || (sect->type != configuration.section[i - 1].type)) in program() 342 debug("Invalidating section type: {TYPE}", "TYPE", sect->type); in program() 343 tBuf[0] = sect->type; in program() 388 for (int j = 0; j < sect->dataCnt; j++) in program() 394 memcpy(&tBuf[2], §->data[j], 4); in program() 406 size += sect->dataCnt * 4; in program() 408 (sect->type != configuration.section[i + 1].type)) in program() 612 struct configSect* sect = &configuration.section[i]; in checkImage() local [all …]
|
| /openbmc/u-boot/board/shmin/ |
| H A D | shmin.c | 49 int sect[] = CONFIG_SYS_ATMEL_SECT; in board_flash_get_legacy() local 81 info->size += sect[i] * sectsz[i]; in board_flash_get_legacy() 82 for (j = 0; j < sect[i]; j++, k++) { in board_flash_get_legacy()
|
| /openbmc/u-boot/fs/ext4/ |
| H A D | dev.c | 59 int sect = SUPERBLOCK_START >> fs->dev_desc->log2blksz; in ext4_read_superblock() local 62 return ext4fs_devread(sect, off, SUPERBLOCK_SIZE, in ext4_read_superblock()
|
| /openbmc/u-boot/board/freescale/m54455evb/ |
| H A D | m54455evb.c | 171 int sect[] = CONFIG_SYS_ATMEL_SECT; in board_flash_get_legacy() local 204 info->size += sect[i] * sectsz[i]; in board_flash_get_legacy() 206 for (j = 0; j < sect[i]; j++, k++) { in board_flash_get_legacy()
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-extended/nana/nana/ |
| H A D | 0002-man-Makefile.am-we-seem-not-to-need-the-work-around-.patch | 52 - @sect=1; \ 54 - echo installing nana.1 as $(mandir)/man$$sect/$$inst; \ 55 - $(INSTALL_DATA) $(srcdir)/nana.1 $(mandir)/man$$sect/$$inst
|
| /openbmc/qemu/hw/block/ |
| H A D | fdc.c | 199 static int fd_sector_calc(uint8_t head, uint8_t track, uint8_t sect, in fd_sector_calc() argument 202 return (((track * num_sides) + head) * last_sect) + sect - 1; in fd_sector_calc() 208 return fd_sector_calc(drv->head, drv->track, drv->sect, drv->last_sect, in fd_sector() 226 static int fd_seek(FDrive *drv, uint8_t head, uint8_t track, uint8_t sect, in fd_seek() argument 235 head, track, sect, 1, in fd_seek() 240 if (sect > drv->last_sect) { in fd_seek() 242 head, track, sect, 1, in fd_seek() 247 sector = fd_sector_calc(head, track, sect, drv->last_sect, NUM_SIDES(drv)); in fd_seek() 254 head, track, sect, 1, drv->max_track, in fd_seek() 267 drv->sect = sect; in fd_seek() [all …]
|
| H A D | fdc-internal.h | 78 uint8_t sect; member
|
| /openbmc/u-boot/include/ |
| H A D | fat.h | 185 static inline u32 sect_to_clust(fsdata *fsdata, int sect) in sect_to_clust() argument 187 return (sect - fsdata->data_begin) / fsdata->clust_size; in sect_to_clust()
|
| H A D | flash.h | 93 extern unsigned long flash_sector_size(flash_info_t *info, flash_sect_t sect);
|
| /openbmc/u-boot/tools/ |
| H A D | mxsimage.c | 146 struct sb_section_ctx *sect; member 336 sctx = sctx->sect; in sb_encrypt_sb_sections_header() 421 sctx = sctx->sect; in sb_encrypt_image() 774 ictx->sect_tail->sect = sctx; in sb_build_section() 1371 sctx = sctx->sect; in sb_postfill_image_header() 1443 sctx = sctx->sect; in sb_fixup_sections_and_tags() 1961 ictx->sect_tail->sect = sctx; in sb_verify_sections_cmds() 2012 sctx = sctx->sect; in sb_verify_sections_cmds() 2153 sctx = sctx->sect; in sb_free_image() 2269 sctx = sctx->sect; in sb_build_image() [all …]
|
| /openbmc/u-boot/fs/fat/ |
| H A D | fat.c | 740 u32 sect; in next_cluster() local 746 sect = clust_to_sect(itr->fsdata, itr->next_clust); in next_cluster() 749 sect, itr->fsdata->clust_size, DIRENTSPERBLOCK); in next_cluster() 760 ret = disk_read(sect, itr->fsdata->clust_size, in next_cluster() 770 sect = clust_to_sect(itr->fsdata, itr->next_clust); in next_cluster() 771 if (sect - itr->fsdata->rootdir_sect >= in next_cluster()
|
| /openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/ |
| H A D | 0008-libinstaller-syslinuxext-implement-syslinux_patch_bo.patch | 151 - geo->sectors = fd_str.sect; 225 - dprintf("heads = %u, sect = %u\n", geo.heads, geo.sectors); 350 + geo->sectors = fd_str.sect;
|
| /openbmc/qemu/hw/sd/ |
| H A D | sd.c | 889 uint64_t sect; in sd_reset() local 893 blk_get_geometry(sd->blk, §); in sd_reset() 895 sect = 0; in sd_reset() 897 size = sect << HWBLOCK_SHIFT; in sd_reset() 902 sect = sd_addr_to_wpnum(size) + 1; in sd_reset() 918 sd->wp_group_bits = sect; in sd_reset()
|
| /openbmc/qemu/pc-bios/s390-ccw/ |
| H A D | bootmap.c | 998 if (is_iso_bc_entry_compatible(&e[i].body.sect)) { in find_iso_bc_entry() 1001 return &e[i].body.sect; in find_iso_bc_entry()
|
| H A D | bootmap.h | 485 IsoBcSection sect; /* id == 0x88 || id == 0x0 */ member
|
| /openbmc/qemu/scripts/qapi/ |
| H A D | parser.py | 814 for idx, sect in enumerate(reversed(self.all_sections)): 815 if sect.kind == kind:
|