Home
last modified time | relevance | path

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

/freebsd/usr.bin/mkimg/
H A Dmbr.c63 u_int cyl, hd, sec; in mbr_chs() local
65 mkimg_chs(lba, 1023, &cyl, &hd, &sec); in mbr_chs()
66 *cylp = cyl; in mbr_chs()
68 *secp = (sec & 0x3f) | ((cyl >> 2) & 0xc0); in mbr_chs()
H A Debr.c59 u_int cyl, hd, sec; in ebr_chs() local
61 mkimg_chs(lba, 1023, &cyl, &hd, &sec); in ebr_chs()
62 *cylp = cyl; in ebr_chs()
64 *secp = (sec & 0x3f) | ((cyl >> 2) & 0xc0); in ebr_chs()
H A Dmkimg.h72 u_int cyl = nsecs * nheads; in round_cylinder() local
73 u_int r = n % cyl; in round_cylinder()
74 return ((r == 0) ? n : n + cyl - r); in round_cylinder()
/freebsd/usr.sbin/fdwrite/
H A Dfdwrite.c24 format_track(int fd, int cyl, int secs, int head, int rate, in format_track() argument
40 f.cyl = cyl; in format_track()
48 f.fd_formb_cylno(i) = cyl; in format_track()
/freebsd/sys/dev/fdc/
H A Dfdc.c569 int cyl, st0, ret; in fdc_sense_int() local
587 if (fdc_in(fdc, &cyl) != 0) in fdc_sense_int()
591 *cylp = cyl; in fdc_sense_int()
807 fdc_sense_int(fdc, &st0, &cyl); in fdc_worker()
923 if ((st0 & 0xc0) || cyl != 0) in fdc_worker()
1116 idp->cyl = fdc->status[3]; in fdc_worker()
1207 int st0, st3, cyl; in fd_probe_disk() local
1229 if ((st0 & 0xc0) || cyl != 0) in fd_probe_disk()
1356 id.cyl = id.head = 0; in fdautoselect()
1362 id.cyl = 2; in fdautoselect()
[all …]
/freebsd/tests/sys/cddl/zfs/tests/interop/
H A Dsetup.ksh50 typeset cyl=$(get_endslice $META_DISK0 $i)
57 typeset cyl=$(get_endslice $META_DISK1 $i)
/freebsd/usr.sbin/fdformat/
H A Dfdformat.c48 format_track(int fd, int cyl, int secs, int head, int rate, in format_track() argument
65 f.cyl = cyl; in format_track()
73 f.fd_formb_cylno(i) = cyl; in format_track()
/freebsd/tools/tools/vhba/simple/
H A Dvhba_simple.c199 uint32_t cyl = (DISK_NBLKS + ((PSEUDO_SPC - 1))) / PSEUDO_SPC; in vhbasimple_act() local
201 ptr[2] = (cyl >> 24) & 0xff; in vhbasimple_act()
202 ptr[3] = (cyl >> 16) & 0xff; in vhbasimple_act()
203 ptr[4] = cyl & 0xff; in vhbasimple_act()
/freebsd/tools/tools/vhba/lots/
H A Dvhba_lots.c199 uint32_t cyl = (DISK_NBLKS + ((PSEUDO_SPC - 1))) / PSEUDO_SPC; in vhbalots_act() local
201 ptr[2] = (cyl >> 24) & 0xff; in vhbalots_act()
202 ptr[3] = (cyl >> 16) & 0xff; in vhbalots_act()
203 ptr[4] = cyl & 0xff; in vhbalots_act()
/freebsd/tools/tools/vhba/medium/
H A Dvhba_medium.c199 uint32_t cyl = (DISK_NBLKS + ((PSEUDO_SPC - 1))) / PSEUDO_SPC; in vhbamedium_act() local
201 ptr[2] = (cyl >> 24) & 0xff; in vhbamedium_act()
202 ptr[3] = (cyl >> 16) & 0xff; in vhbamedium_act()
203 ptr[4] = cyl & 0xff; in vhbamedium_act()
/freebsd/tools/tools/vhba/faulty/
H A Dvhba_faulty.c213 uint32_t cyl = (DISK_NBLKS + ((PSEUDO_SPC - 1))) / PSEUDO_SPC; in faulty_act() local
215 ptr[2] = (cyl >> 24) & 0xff; in faulty_act()
216 ptr[3] = (cyl >> 16) & 0xff; in faulty_act()
217 ptr[4] = cyl & 0xff; in faulty_act()
/freebsd/tools/tools/vhba/rptluns/
H A Dvhba_rptluns.c228 uint32_t cyl = (DISK_NBLKS + ((PSEUDO_SPC - 1))) / PSEUDO_SPC; in vhbarptluns_act() local
230 ptr[2] = (cyl >> 24) & 0xff; in vhbarptluns_act()
231 ptr[3] = (cyl >> 16) & 0xff; in vhbarptluns_act()
232 ptr[4] = cyl & 0xff; in vhbarptluns_act()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_011_neg.ksh85 cyl=$(get_endslice $DISK0 6)
86 log_must set_partition 7 "$cyl" $SIZE1 $DISK0
/freebsd/sys/sys/
H A Dfdcio.h44 int cyl, head; member
111 u_char cyl; /* C - 0...79 */ member
/freebsd/sys/geom/part/
H A Dg_part_mbr.c196 uint32_t cyl, hd, sec; in mbr_set_chs() local
202 cyl = lba; in mbr_set_chs()
203 if (cyl > 1023) in mbr_set_chs()
204 sec = hd = cyl = ~0; in mbr_set_chs()
206 *cylp = cyl & 0xff; in mbr_set_chs()
208 *secp = (sec & 0x3f) | ((cyl >> 2) & 0xc0); in mbr_set_chs()
H A Dg_part_ebr.c209 uint32_t cyl, hd, sec; in ebr_set_chs() local
215 cyl = lba; in ebr_set_chs()
216 if (cyl > 1023) in ebr_set_chs()
217 sec = hd = cyl = ~0; in ebr_set_chs()
219 *cylp = cyl & 0xff; in ebr_set_chs()
221 *secp = (sec & 0x3f) | ((cyl >> 2) & 0xc0); in ebr_set_chs()
/freebsd/tools/tools/vhba/mptest/
H A Dvhba_mptest.c239 uint32_t cyl = (DISK_NBLKS + ((PSEUDO_SPC - 1))) / PSEUDO_SPC; in mptest_act() local
241 ptr[2] = (cyl >> 24) & 0xff; in mptest_act()
242 ptr[3] = (cyl >> 16) & 0xff; in mptest_act()
243 ptr[4] = cyl & 0xff; in mptest_act()
/freebsd/contrib/llvm-project/libcxx/modules/std/
H A Dcmath.inc297 // [sf.cmath.cyl.bessel.i], regular modified cylindrical Bessel functions
302 // [sf.cmath.cyl.bessel.j], cylindrical Bessel functions of the first kind
307 // [sf.cmath.cyl.bessel.k], irregular modified cylindrical Bessel functions
312 // [sf.cmath.cyl.neumann], cylindrical Neumann functions
/freebsd/usr.sbin/fdread/
H A Dfdread.c314 info.cyl = trackno / fdt.heads; in doreadid()
318 info.cyl, info.head, info.sec, info.secshift); in doreadid()
/freebsd/stand/i386/libi386/
H A Dbiosdisk.c1172 uint32_t x, bpc, cyl, hd, sec; in bd_chs_io() local
1178 cyl = x / bpc; /* block # / blocks per cylinder */ in bd_chs_io()
1186 if (cyl > 1023) { in bd_chs_io()
1197 v86.ecx = ((cyl & 0xff) << 8) | ((cyl & 0x300) >> 2) | sec; in bd_chs_io()
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/
H A Dlibtest.shlib841 cly_size_kb=$(parted -m $disk -s -- unit cyl print |
846 mkpart part$slicenum ${start}cyl ${end}cyl
952 # Get the end cyl of the given slice
964 endcyl=$(parted -s $DEV_DSKDIR/$disk -- unit cyl print | \
965 awk "/part${slice}/"' {sub(/cyl/, "", $3); print $3}')
1010 typeset cyl
1020 log_must set_partition $i "$cyl" $slice_size $disk_name
1021 cyl=$(get_endslice $disk_name $i)
/freebsd/usr.sbin/bhyve/
H A Dpci_ahci.c1037 uint16_t cyl; in ata_identify_init() local
1044 blockif_chs(p->bctx, &cyl, &heads, &sech); in ata_identify_init()
1047 ata_ident->cylinders = cyl; in ata_identify_init()
/freebsd/tests/sys/cddl/zfs/include/
H A Dlibtest.kshlib720 typeset cyl
/freebsd/sys/ufs/ffs/
H A Dffs_softdep.c2587 uint64_t cyl, i; in softdep_mount() local
2666 for (cyl = 0; cyl < fs->fs_ncg; cyl++) { in softdep_mount()
2667 if ((error = bread(devvp, fsbtodb(fs, cgtod(fs, cyl)), in softdep_mount()
2678 fs->fs_cs(fs, cyl) = cgp->cg_cs; in softdep_mount()
/freebsd/contrib/file/magic/Magdir/
H A Dfilesystems166 >0 ubyte 0xe4 SpeedStor 16-bit FAT < 1024 cyl.
201 >>0740 short >0 %d alts/cyl,
207 >>0764 long >0 start cyl %d,