HomeSort by: relevance | last modified time | path
    Searched defs:sectors (Results 1 - 25 of 30) sorted by relevancy

1 2

  /src/sys/arch/arm/arm/
disksubr_acorn.c 186 int sectors; local
235 sectors = bb->secspertrack;
242 __func__, heads, sectors);
244 netbsdpartoff = cyl * heads * sectors;
256 bp->b_blkno = cyl * heads * sectors;
328 int sectors; local
389 sectors = bb->secspertrack;
392 printf("%s: heads = %d nsectors = %d\n", __func__, heads, sectors);
395 netbsdpartoff = cyl * heads * sectors;
  /src/sbin/gpt/
add.c 86 add(gpt_t gpt, off_t alignment, off_t block, off_t sectors, off_t size __unused,
135 map = map_alloc(gpt, block, sectors, alignsecs);
142 map = map_alloc(gpt, block, sectors, 0);
168 off_t alignment = 0, block = 0, sectors = 0, size = 0; local
211 if ((sectors = gpt_check_ais(gpt, alignment, ~0U, size)) == -1)
214 return add(gpt, alignment, block, sectors, size, entry, name, type);
resize.c 72 resize(gpt_t gpt, u_int entry, off_t alignment, off_t sectors,
104 if (sectors > 0 && sectors == map->map_size)
106 (alignment > 0 && sectors % alignsecs == 0)) {
115 newsize = map_resize(gpt, map, sectors, alignsecs);
149 off_t alignment = 0, sectors, start = 0, size = 0; local
178 if ((sectors = gpt_check_ais(gpt, alignment, entry, size)) == -1)
181 return resize(gpt, entry, alignment, sectors, size, quiet);
gpt.c 581 * We require an absolute minimum of 6 sectors. One for the MBR,
588 gpt_warnx(gpt, "Need 6 sectors, we have %ju",
1005 off_t sectors; local
1011 sectors = strtoll(optarg, &p, 10);
1012 if (sectors < 1)
1015 *size = sectors * gpt->secsz;
1019 if (sectors % gpt->secsz) {
1025 *size = sectors;
  /src/sys/dev/mca/
edvar.h 60 u_int8_t sectors; member in struct:ed_softc
  /src/sys/compat/linux/common/
linux_hdio.h 76 u_char sectors; member in struct:linux_hd_geometry
83 u_char sectors; member in struct:linux_hd_big_geometry
  /src/sys/dev/scsipi/
sdvar.h 69 u_long sectors; /* number of sectors/track */ member in struct:disk_parms
72 u_int64_t disksize; /* total number sectors */
73 u_int64_t disksize512; /* total number sectors */
  /src/sys/fs/udf/
udf_readwrite.c 286 uint32_t start, uint32_t sectors)
296 DPRINTF(READ, ("udf_intbreadn() : sectors = %d, sector_size = %d\n",
297 sectors, sector_size));
303 buf->b_bcount = sectors * sector_size;
315 while ((sectors > 0) && (error == 0)) {
316 piece = MIN(MAXPHYS/sector_size, sectors);
337 sectors -= piece;
353 int sectors, dscrlen; local
402 sectors = (dscrlen + sector_size -1) / sector_size;
403 DPRINTF(DESCRIPTOR, ("dscrlen = %d (%d blk)\n", dscrlen, sectors));
434 uint32_t sectors; local
    [all...]
udf_strat_direct.c 249 int len, buf_len, sector, sectors, run_length; local
353 sectors = (buf->b_bcount + sector_size -1) / sector_size;
354 udf_translate_vtop_list(ump, sectors, vpart_num, lmapping, pmapping);
356 for (sector = 0; sector < sectors; sector++) {
365 while (sector < sectors-1) {
udf_strat_rmw.c 778 uint32_t buf_len, len, sectors, sectornr, our_sectornr; local
962 sectors = (buf->b_bcount + sector_size -1) / sector_size;
963 udf_translate_vtop_list(ump, sectors, vpart_num, lmapping, pmapping);
1057 * XXX TODO what to do on read errors? read in all sectors
udf_vnops.c 478 uint32_t lb_size, sectors; local
492 /* calculate length to fetch/store in sectors */
493 sectors = bp->b_bcount / lb_size;
500 assert(sectors * lb_size == bp->b_bcount);
501 __USE(sectors);
506 ", for %d sectors\n",
507 vp, bp, bp->b_blkno, sectors));
513 ", for %d sectors\n",
514 vp, bp, bp->b_blkno, sectors));
  /src/sys/fs/v7fs/
v7fs_impl.h 128 daddr_t sectors; /*total size in sector. */ member in struct:v7fs_mount_device
  /src/sys/arch/bebox/stand/boot/
sdvar.h 142 u_long sectors; /* number of sectors/track */ member in struct:sd_softc::disk_parms
145 u_int64_t disksize; /* total number sectors */
146 u_int64_t disksize512; /* total number sectors */
  /src/sys/arch/prep/stand/boot/
sdvar.h 142 u_long sectors; /* number of sectors/track */ member in struct:sd_softc::disk_parms
145 u_int64_t disksize; /* total number sectors */
146 u_int64_t disksize512; /* total number sectors */
  /src/external/gpl3/gdb/dist/sim/ppc/
hw_eeprom.c 55 nr-sectors = <integer> (required)
58 the number of sectors in the EEPROM component.
66 NOTE: The product nr-sectors * sector-size does not need to map the
80 When erasing sectors, the number of clock ticks after the sector
124 | -o '/eeprom@0xfff00000/nr-sectors 8' \
194 uint8_t *sectors; member in struct:_hw_eeprom_device
221 /* figure out the sectors in the eeprom */
222 if (eeprom->sectors == NULL) {
223 eeprom->nr_sectors = device_find_integer_property(me, "nr-sectors");
225 eeprom->sectors = zalloc(eeprom->nr_sectors)
    [all...]
  /src/external/gpl3/gdb.old/dist/sim/ppc/
hw_eeprom.c 55 nr-sectors = <integer> (required)
58 the number of sectors in the EEPROM component.
66 NOTE: The product nr-sectors * sector-size does not need to map the
80 When erasing sectors, the number of clock ticks after the sector
124 | -o '/eeprom@0xfff00000/nr-sectors 8' \
194 uint8_t *sectors; member in struct:_hw_eeprom_device
221 /* figure out the sectors in the eeprom */
222 if (eeprom->sectors == NULL) {
223 eeprom->nr_sectors = device_find_integer_property(me, "nr-sectors");
225 eeprom->sectors = zalloc(eeprom->nr_sectors)
    [all...]
  /src/sys/compat/linux/arch/i386/
linux_machdep.c 793 u_char heads, sectors; local
928 sectors = bip->bi_sec;
930 biostotal = heads * sectors * cylinders;
934 cylinders = realtotal / (heads * sectors);
938 sectors = label.d_nsectors;
945 hdg.sectors = sectors;
953 hdg_big.sectors = sectors;
  /src/sys/dev/sdmmc/
sdmmc_mem.c 965 uint32_t sectors = 0; local
1133 sectors = ext_csd[EXT_CSD_SEC_COUNT + 0] << 0 |
1137 if (sectors > (2u * 1024 * 1024 * 1024) / 512) {
1139 sf->csd.capacity = sectors;
  /src/sys/arch/i386/stand/lib/
biosdisk.c 363 int sectors; local
398 sectors = sizeof(d->buf)/d->ll.secsize; /* sectors per buffer */
410 sectors = roundup(size, d->ll.secsize) / d->ll.secsize;
411 if (readsects(&d->ll, entblk, sectors, d->buf, 1))
413 entblk += sectors;
  /src/sys/arch/xen/xen/
xbd_xenbus.c 172 uint64_t sc_sectors; /* number of sc_secsize sectors for this device */
697 "%s, %d bytes/sect x %" PRIu64 " sectors\n",
721 unsigned long long sectors; local
755 sc->sc_xbusd->xbusd_otherend, "sectors", &sectors, 10);
757 panic("%s: can't read number from %s/sectors\n",
760 sc->sc_sectors = sectors * (uint64_t)XEN_BSIZE / sc->sc_secsize;
  /src/usr.sbin/makefs/
udf.c 638 int sectors; local
653 sectors = udf_datablocks(flen);
655 return udf_write_virt(fdata, location, vpart, sectors);
  /src/external/bsd/pdisk/dist/
ATA_media.c 58 long sectors; member in struct:ATA_info
472 a->info.sectors = 0;
478 a->info.sectors = info.cur_sec_per_track;
650 sector = (block % info->sectors) + 1;
651 cyl = block / info->sectors;
704 sector = (block % info->sectors) + 1;
705 cyl = block / info->sectors;
  /src/external/cddl/osnet/dist/lib/libzpool/common/
kernel.c 574 int sectors = len >> SPA_MINBLOCKSHIFT; local
575 split = (sectors > 0 ? rand() % sectors : 0) <<
  /src/sbin/atactl/
atactl.c 1264 uint64_t sectors; local
1269 sectors =
1275 sectors = (inqbuf->atap_capacity[1] << 16) |
1278 sectors = inqbuf->atap_cylinders *
1292 capacity = sectors * secsize;
1297 *sectorsp = sectors;
1386 uint64_t sectors; local
1416 compute_capacity(&capacity, &sectors, &secsize);
1421 printf("Capacity %s, %" PRIu64 " sectors, %" PRIu32 " bytes/sector\n",
1422 hnum, sectors, secsize)
    [all...]
  /src/sbin/fdisk/
fdisk.c 154 * The ATA geometry allows access to 2^28 sectors (as does LBA mode).
166 * The first track (typically 63 sectors) is reserved because the first
171 * However non-magnetic media in particular has physical sectors that are
177 * For instance 1MB (2048 sectors).
179 * sectors per track.
183 static unsigned int cylinders, sectors, heads; variable
185 #define cylindersectors (heads * sectors)
659 "%*s[-b cylinders/heads/sectors] \\\n"
1691 warnx("Cannot determine the number of sectors");
1730 * triplets and absolute sectors. Get the relevant geometry triplet an
    [all...]

Completed in 84 milliseconds

1 2