Home
last modified time | relevance | path

Searched refs:d_secsize (Results 1 – 25 of 39) sorted by relevance

12

/mirbsd/src/sys/arch/i386/i386/
Ddisksubr.c175 u_int32_t d_secsize; /* working number of bytes per sector */ in readdisklabel() local
178 if (lp->d_secsize < DEV_BSIZE) in readdisklabel()
179 lp->d_secsize = DEV_BSIZE; in readdisklabel()
196 bp = geteblk((int)lp->d_secsize); in readdisklabel()
198 bp->b_bcount = d_secsize = lp->d_secsize; in readdisklabel()
334 bp->b_bcount = lp->d_secsize; in readdisklabel()
338 rnd_lopool_addh(bp->b_data, lp->d_secsize); in readdisklabel()
344 bp->b_bcount = lp->d_secsize; in readdisklabel()
355 dlp <= (struct disklabel *)(bp->b_data + lp->d_secsize - sizeof(*dlp)); in readdisklabel()
379 if (lp->d_secsize < DEV_BSIZE) { in readdisklabel()
[all …]
/mirbsd/src/usr.sbin/bad144/
Dbad144.c148 if (dp->d_secsize > MAXSECSIZE || dp->d_secsize <= 0) { in main()
150 dp->d_secsize); in main()
270 if (lseek(f, dp->d_secsize * (size - dp->d_nsectors + i), in main()
310 if (lseek(f, sn * dp->d_secsize, SEEK_SET) < 0) in getold()
312 if (read(f, (char *) bad, dp->d_secsize) == dp->d_secsize) { in getold()
422 buf = malloc((unsigned)dp->d_secsize); in blkcopy()
428 if (lseek(f, dp->d_secsize * s1, SEEK_SET) < 0) in blkcopy()
430 if ((n = read(f, buf, dp->d_secsize)) == dp->d_secsize) in blkcopy()
433 if (n != dp->d_secsize) { in blkcopy()
437 if (lseek(f, dp->d_secsize * s2, SEEK_SET) < 0) in blkcopy()
[all …]
/mirbsd/src/sys/arch/sparc/sparc/
Ddisksubr.c151 if (lp->d_secsize < DEV_BSIZE)
152 lp->d_secsize = DEV_BSIZE;
171 bp = geteblk((int)lp->d_secsize);
177 bp->b_bcount = lp->d_secsize;
210 if (dlp->d_secsize < DEV_BSIZE) {
212 dlp->d_secsize = lp->d_secsize;
241 if (nlp->d_secpercyl == 0 || nlp->d_secsize == 0 ||
242 (nlp->d_secsize % DEV_BSIZE) != 0)
297 bp = geteblk((int)lp->d_secsize);
304 bp->b_bcount = lp->d_secsize;
[all …]
/mirbsd/src/sbin/disklabel/
Ddisklabel.c425 lp->d_secsize; in writelabel()
779 if (dp->d_secsize == 0) { in makebootarea()
780 dp->d_secsize = DEV_BSIZE; in makebootarea()
784 (boot + (LABELSECTOR * dp->d_secsize) + LABELOFFSET); in makebootarea()
858 if (read(b, boot, (int)dp->d_secsize) < 0) in makebootarea()
864 if (read(b, &boot[dp->d_secsize], (int)(dp->d_bbsize-dp->d_secsize)) < 0) in makebootarea()
873 bootsize = (bootsize + dp->d_secsize-1) & ~(dp->d_secsize-1); in makebootarea()
914 (void)fprintf(f, "se#%u:", lp->d_secsize); in makedisktab()
989 fsz = (double)sz * lp->d_secsize; in scale()
995 return fsz / lp->d_secsize / lp->d_secpercyl; in scale()
[all …]
Deditor.c1032 mult = -lp->d_secsize; in getuint()
1036 mult = 1024 / lp->d_secsize; in getuint()
1040 mult = 1048576 / lp->d_secsize; in getuint()
1044 mult = 1073741824 / lp->d_secsize; in getuint()
2293 bios_geop->d_secsize = DEV_BSIZE; in get_geometry()
2325 lp->d_secsize = bgp->d_secsize; in set_geometry()
2338 lp->d_secsize = dgp->d_secsize; in set_geometry()
2351 lp->d_secsize = ugp->d_secsize; in set_geometry()
2357 if (dgp != NULL && ugp->d_secsize == dgp->d_secsize && in set_geometry()
/mirbsd/src/sys/dev/ata/
Dwd.c475 (bp->b_bcount % wd->sc_dk.dk_label->d_secsize) != 0 || in wdstrategy()
476 (bp->b_bcount / wd->sc_dk.dk_label->d_secsize) >= (1 << NBBY)) { in wdstrategy()
559 wd->sc_wdc_bio.blkno /= (wd->sc_dk.dk_label->d_secsize / DEV_BSIZE); in __wdstart()
571 nblks = bp->b_bcount / wd->sc_dk.dk_label->d_secsize; in __wdstart()
838 lp->d_secsize = DEV_BSIZE; in wdgetdefaultlabel()
859 lp->d_secperunit * (lp->d_secsize / DEV_BSIZE); in wdgetdefaultlabel()
1026 fop->df_startblk * wd->sc_dk.dk_label->d_secsize; in wdioctl()
1083 (wd->sc_dk.dk_label->d_secsize / DEV_BSIZE); in wdsize()
1128 if ((size % lp->d_secsize) != 0) in wddump()
1130 nblks = size / lp->d_secsize; in wddump()
[all …]
Data_wdc.c241 nblks = xfer->c_bcount / ata_bio->lp->d_secsize; in _wdc_ata_bio_start()
319 ata_bio->nbytes = ata_bio->nblks * ata_bio->lp->d_secsize; in _wdc_ata_bio_start()
350 nblks = xfer->c_bcount / ata_bio->lp->d_secsize; in _wdc_ata_bio_start()
/mirbsd/src/sys/compat/linux/
Dlinux_blkio.c101 error = copyout(&label.d_secsize, SCARG(uap, data), in linux_ioctl_blkio()
102 sizeof label.d_secsize); in linux_ioctl_blkio()
/mirbsd/src/sys/dev/
Dramdisk.c241 (sc->sc_dkdev.dk_label->d_secsize / DEV_BSIZE); in rdsize()
313 if (!sc->sc_dkdev.dk_label->d_secsize) in rdstrategy()
318 (bp->b_bcount % sc->sc_dkdev.dk_label->d_secsize) != 0) { in rdstrategy()
461 lp->d_secsize = 1 << DEV_BSHIFT; in rdgetdisklabel()
480 lp->d_secperunit * (lp->d_secsize / DEV_BSIZE); in rdgetdisklabel()
Dvnd.c394 lp->d_secsize = 512; in vndgetdisklabel()
831 sscale = pi.disklab->d_secsize / DEV_BSIZE; in vndbdevsize()
833 (long)pi.part->p_size,(long)pi.disklab->d_secsize,sscale); in vndbdevsize()
Dccd.c373 ((dpart.disklab->d_secsize > maxsecsize) ? in ccdinit()
374 dpart.disklab->d_secsize : maxsecsize); in ccdinit()
1563 lp->d_secsize = ccg->ccg_secsize; in ccdgetdisklabel()
/mirbsd/src/sys/arch/sparc/dev/
Dpresto.c208 (sc->sc_dk.dk_label->d_secsize / DEV_BSIZE)); in prestosize()
292 (bp->b_bcount % sc->sc_dk.dk_label->d_secsize) != 0) { in prestostrategy()
381 lp->d_secsize = 1 << DEV_BSHIFT; in presto_getdisklabel()
397 lp->d_secperunit * (lp->d_secsize / DEV_BSIZE); in presto_getdisklabel()
Dxy.c245 xy->sc_dk.dk_label->d_secsize = XYFM_BPS;
273 xy->sc_dk.dk_label->d_secsize = XYFM_BPS; /* not handled by
978 (xysc->sc_dk.dk_label->d_secsize / DEV_BSIZE);
1003 (bp->b_bcount % xy->sc_dk.dk_label->d_secsize) != 0) {
/mirbsd/src/sbin/newfs/
Dnewfs.c401 mfsfakelabel.d_secsize = 512; in main()
517 sectorsize = lp->d_secsize; in main()
534 fsize = MAX(DFL_FRAGSIZE, lp->d_secsize); in main()
772 offset *= lp->d_secsize; in rewritelabel()
776 if (write(cfd, blk, lp->d_secsize) < lp->d_secsize) in rewritelabel()
/mirbsd/src/sys/scsi/
Dsd.c553 if ((bp->b_bcount % sd->sc_dk.dk_label->d_secsize) != 0) {
676 bp->b_blkno / (sd->sc_dk.dk_label->d_secsize / DEV_BSIZE);
681 nblks = howmany(bp->b_bcount, sd->sc_dk.dk_label->d_secsize);
780 max = sd->sc_dk.dk_label->d_secsize * 0xff;
976 lp->d_secsize = sd->params.blksize;
1025 lp->d_secperunit * (lp->d_secsize / DEV_BSIZE);
1168 (sd->sc_dk.dk_label->d_secsize / DEV_BSIZE);
1231 sectorsize = lp->d_secsize;
Dcd.c490 if ((bp->b_bcount % cd->sc_dk.dk_label->d_secsize) != 0) {
617 bp->b_blkno / (cd->sc_dk.dk_label->d_secsize / DEV_BSIZE);
622 nblks = howmany(bp->b_bcount, cd->sc_dk.dk_label->d_secsize);
706 max = cd->sc_dk.dk_label->d_secsize * 0xff;
1174 lp->d_secsize = cd->params.blksize;
/mirbsd/src/sys/sys/
Ddisklabel.h102 u_int32_t d_secsize; /* # of bytes per sector */ member
176 .set d_secsize,40
/mirbsd/src/include/
Ddisktab.h46 int d_secsize; /* sector size in bytes */ member
/mirbsd/src/sys/miscfs/specfs/
Dspec_vnops.c285 if (dpart.disklab->d_secsize != 0)
286 ssize = dpart.disklab->d_secsize;
384 if (dpart.disklab->d_secsize != 0)
385 ssize = dpart.disklab->d_secsize;
/mirbsd/src/sbin/fsck_ffs/
Dsetup.c113 dev_bsize = secsize = lp->d_secsize; in setup()
578 fs->fs_nspf = fs->fs_fsize / lp->d_secsize; in calcsb()
610 dev_bsize = lp->d_secsize; in calcsb()
/mirbsd/src/lib/libc/gen/
Ddisklabel.c90 getnumdflt(dp->d_secsize, "se", DEV_BSIZE); in getdiskbyname()
/mirbsd/src/sbin/fdisk/
Ddisk.c101 unit_types[SECTORS].conversion = dl.d_secsize; in DISK_getlabelmetrics()
/mirbsd/src/sys/arch/i386/stand/installboot/
Dinstallboot.c332 loop: if (read_pt(devfd, mbrofs, &mbr, dl.d_secsize)) in main()
399 startoff *= dl.d_secsize; in main()
/mirbsd/src/sys/arch/i386/stand/libsa/
Dbiosdev.c622 dip->disklabel.d_secsize = 512; in disk_trylabel()
703 dip->disklabel.d_secsize = 512; in disk_trylabel()
/mirbsd/src/sys/kern/
Dsubr_disk.c227 if (lp && (blkdone >= 0 || bp->b_bcount <= lp->d_secsize)) {

12