/openbmc/linux/arch/powerpc/kernel/ |
H A D | module.c | 39 const Elf_Shdr *sect; in module_finalize() local 47 sect = find_section(hdr, sechdrs, "__ftr_fixup"); in module_finalize() 48 if (sect != NULL) in module_finalize() 50 (void *)sect->sh_addr, in module_finalize() 51 (void *)sect->sh_addr + sect->sh_size); in module_finalize() 53 sect = find_section(hdr, sechdrs, "__mmu_ftr_fixup"); in module_finalize() 54 if (sect != NULL) in module_finalize() 56 (void *)sect->sh_addr, in module_finalize() 57 (void *)sect->sh_addr + sect->sh_size); in module_finalize() 60 sect = find_section(hdr, sechdrs, "__fw_ftr_fixup"); in module_finalize() [all …]
|
/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()
|
/openbmc/linux/block/partitions/ |
H A D | acorn.c | 74 Sector sect; in riscix_partition() local 77 rr = read_part_sector(state, first_sect, §); in riscix_partition() 108 put_dev_sector(sect); in riscix_partition() 129 Sector sect; in linux_partition() local 137 linuxp = read_part_sector(state, first_sect, §); in linux_partition() 153 put_dev_sector(sect); in linux_partition() 163 Sector sect; in adfspart_check_CUMANA() local 186 data = read_part_sector(state, start_blk * 2 + 6, §); in adfspart_check_CUMANA() 228 put_dev_sector(sect); in adfspart_check_CUMANA() 232 put_dev_sector(sect); in adfspart_check_CUMANA() [all …]
|
H A D | msdos.c | 75 Sector sect; in aix_magic_present() local 99 d = read_part_sector(state, 7, §); in aix_magic_present() 103 put_dev_sector(sect); in aix_magic_present() 135 Sector sect; in parse_extended() local 152 data = read_part_sector(state, this_sector, §); in parse_extended() 217 put_dev_sector(sect); in parse_extended() 220 put_dev_sector(sect); in parse_extended() 254 Sector sect; in parse_solaris_x86() local 259 v = read_part_sector(state, offset + 1, §); in parse_solaris_x86() 263 put_dev_sector(sect); in parse_solaris_x86() [all …]
|
H A D | mac.c | 33 Sector sect; in mac_partition() local 45 md = read_part_sector(state, 0, §); in mac_partition() 49 put_dev_sector(sect); in mac_partition() 53 put_dev_sector(sect); in mac_partition() 55 data = read_part_sector(state, datasize / 512, §); in mac_partition() 63 put_dev_sector(sect); in mac_partition() 68 put_dev_sector(sect); in mac_partition() 78 put_dev_sector(sect); in mac_partition() 79 data = read_part_sector(state, pos/512, §); in mac_partition() 140 put_dev_sector(sect); in mac_partition()
|
H A D | sysv68.c | 53 Sector sect; in sysv68_partition() local 59 data = read_part_sector(state, 0, §); in sysv68_partition() 65 put_dev_sector(sect); in sysv68_partition() 70 put_dev_sector(sect); in sysv68_partition() 72 data = read_part_sector(state, i, §); in sysv68_partition() 93 put_dev_sector(sect); in sysv68_partition()
|
H A D | osf.c | 21 Sector sect; in osf_partition() local 56 data = read_part_sector(state, 0, §); in osf_partition() 63 put_dev_sector(sect); in osf_partition() 67 put_dev_sector(sect); in osf_partition() 72 put_dev_sector(sect); in osf_partition() 85 put_dev_sector(sect); in osf_partition()
|
H A D | aix.c | 89 Sector sect; in read_lba() local 90 unsigned char *data = read_part_sector(state, lba++, §); in read_lba() 96 put_dev_sector(sect); in read_lba() 157 Sector sect; in aix_partition() local 172 d = read_part_sector(state, 7, §); in aix_partition() 194 put_dev_sector(sect); in aix_partition() 196 if (vgda_sector && (d = read_part_sector(state, vgda_sector, §))) { in aix_partition() 200 put_dev_sector(sect); in aix_partition() 205 if (numlvs && (d = read_part_sector(state, vgda_sector + 1, §))) { in aix_partition() 221 put_dev_sector(sect); in aix_partition()
|
H A D | sgi.c | 43 Sector sect; in sgi_partition() local 47 label = read_part_sector(state, 0, §); in sgi_partition() 55 put_dev_sector(sect); in sgi_partition() 66 put_dev_sector(sect); in sgi_partition() 85 put_dev_sector(sect); in sgi_partition()
|
H A D | ultrix.c | 15 Sector sect; in ultrix_partition() local 29 data = read_part_sector(state, (16384 - sizeof(*label))/512, §); in ultrix_partition() 41 put_dev_sector(sect); in ultrix_partition() 45 put_dev_sector(sect); in ultrix_partition()
|
H A D | karma.c | 19 Sector sect; in karma_partition() local 35 data = read_part_sector(state, 0, §); in karma_partition() 41 put_dev_sector(sect); in karma_partition() 57 put_dev_sector(sect); in karma_partition()
|
H A D | amiga.c | 38 Sector sect; in amiga_partition() local 50 for (blk = 0; ; blk++, put_dev_sector(sect)) { in amiga_partition() 53 data = read_part_sector(state, blk, §); in amiga_partition() 92 put_dev_sector(sect); in amiga_partition() 93 for (part = 1; (s32) blk>0 && part<=16; part++, put_dev_sector(sect)) { in amiga_partition() 100 data = read_part_sector(state, blk, §); in amiga_partition()
|
H A D | sun.c | 27 Sector sect; in sun_partition() local 71 label = read_part_sector(state, 0, §); in sun_partition() 79 put_dev_sector(sect); in sun_partition() 89 put_dev_sector(sect); in sun_partition() 127 put_dev_sector(sect); in sun_partition()
|
H A D | atari.c | 36 Sector sect; in atari_partition() local 53 rs = read_part_sector(state, 0, §); in atari_partition() 68 put_dev_sector(sect); in atari_partition() 98 put_dev_sector(sect); in atari_partition() 151 put_dev_sector(sect); in atari_partition()
|
H A D | ibm.c | 73 Sector sect; in find_label() local 102 data = read_part_sector(state, testsect[i], §); in find_label() 109 put_dev_sector(sect); in find_label() 142 Sector sect; in find_vol1_partitions() local 157 data = read_part_sector(state, blk * secperblk, §); in find_vol1_partitions() 160 put_dev_sector(sect); in find_vol1_partitions() 167 data = read_part_sector(state, blk * secperblk, §); in find_vol1_partitions() 185 data = read_part_sector(state, blk * secperblk, §); in find_vol1_partitions()
|
/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/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/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/linux/arch/powerpc/platforms/pseries/ |
H A D | io_event_irq.c | 73 struct pseries_errorlog *sect; in ioei_find_event() local 87 sect = get_pseries_errorlog(elog, PSERIES_ELOG_SECT_ID_IO_EVENT); in ioei_find_event() 88 if (unlikely(!sect)) { in ioei_find_event() 94 return (struct pseries_io_event *) §->data; in ioei_find_event()
|
/openbmc/linux/drivers/nvme/target/ |
H A D | zns.c | 160 sector_t sect = nvmet_lba_to_sect(req->ns, req->cmd->zmr.slba); in nvmet_bdev_validate_zone_mgmt_recv() local 163 if (sect >= get_capacity(req->ns->bdev->bd_disk)) { in nvmet_bdev_validate_zone_mgmt_recv() 257 unsigned int sect = nvmet_lba_to_sect(req->ns, req->cmd->zmr.slba); in nvmet_req_nr_zones_from_slba() local 259 return bdev_nr_zones(req->ns->bdev) - bdev_zone_no(req->ns->bdev, sect); in nvmet_req_nr_zones_from_slba() 480 sector_t sect = nvmet_lba_to_sect(req->ns, req->cmd->zms.slba); in nvmet_bdev_zmgmt_send_work() local 499 if (sect >= get_capacity(bdev->bd_disk)) { in nvmet_bdev_zmgmt_send_work() 505 if (sect & (zone_sectors - 1)) { in nvmet_bdev_zmgmt_send_work() 511 ret = blkdev_zone_mgmt(bdev, op, sect, zone_sectors, GFP_KERNEL); in nvmet_bdev_zmgmt_send_work() 540 sector_t sect = nvmet_lba_to_sect(req->ns, req->cmd->rw.slba); in nvmet_bdev_execute_zone_append() local 557 if (sect >= get_capacity(req->ns->bdev->bd_disk)) { in nvmet_bdev_execute_zone_append() [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()
|