Home
last modified time | relevance | path

Searched refs:dkinfo (Results 1 – 12 of 12) sorted by relevance

/titanic_41/usr/src/cmd/format/
H A Dauto_sense.c202 struct dk_cinfo *dkinfo);
208 struct dk_cinfo *dkinfo);
213 static struct disk_info *find_direct_disk_info(struct dk_cinfo *dkinfo);
217 static struct ctlr_info *find_direct_ctlr_info(struct dk_cinfo *dkinfo);
218 static struct disk_info *find_direct_disk_info(struct dk_cinfo *dkinfo);
220 static struct ctlr_info *find_vbd_ctlr_info(struct dk_cinfo *dkinfo);
221 static struct disk_info *find_vbd_disk_info(struct dk_cinfo *dkinfo);
258 struct dk_cinfo dkinfo; in auto_efi_sense() local
261 if (ioctl(fd, DKIOCINFO, &dkinfo) == -1) { in auto_efi_sense()
268 ctlr = find_direct_ctlr_info(&dkinfo); in auto_efi_sense()
[all …]
H A Dstartup.c76 static int disk_is_known(struct dk_cinfo *dkinfo);
1591 struct dk_cinfo dkinfo; in add_device_to_disklist() local
1622 if (ioctl(search_file, DKIOCINFO, &dkinfo) < 0) { in add_device_to_disklist()
1651 if (mlp->ctlr_type->ctype_ctype == dkinfo.dki_ctype) { in add_device_to_disklist()
1658 if (dkinfo.dki_ctype == DKC_CDROM) { in add_device_to_disklist()
1670 if ((dkinfo.dki_ctype == DKC_CDROM) && in add_device_to_disklist()
1679 tctlr->ctype_ctype = dkinfo.dki_ctype; in add_device_to_disklist()
1681 if (strlcpy(tctlr->ctype_name, dkinfo.dki_cname, in add_device_to_disklist()
1692 "be displayed.\n", devname, dkinfo.dki_cname); in add_device_to_disklist()
1725 if (disk_is_known(&dkinfo)) { in add_device_to_disklist()
[all …]
H A Dcheckdev.c144 struct dk_cinfo dkinfo; local
174 if (ioctl(mfd, DKIOCINFO, &dkinfo) < 0) {
186 if (cur_disk->disk_dkinfo.dki_ctype != dkinfo.dki_ctype ||
187 cur_disk->disk_dkinfo.dki_cnum != dkinfo.dki_cnum ||
188 cur_disk->disk_dkinfo.dki_unit != dkinfo.dki_unit ||
190 dkinfo.dki_dname) != 0) {
H A Dlabel.c489 struct dk_cinfo dkinfo; in read_label() local
493 ioctl(fd, DKIOCINFO, &dkinfo) == -1) { in read_label()
497 return (vtoc_to_label(label, &vtoc, &geom, &dkinfo)); in read_label()
594 struct dk_cinfo dkinfo; in get_disk_inquiry_devid() local
604 if (ioctl(fd, DKIOCINFO, &dkinfo) == -1) { in get_disk_inquiry_devid()
610 if (dkinfo.dki_ctype != DKC_DIRECT) in get_disk_inquiry_devid()
/titanic_41/usr/src/lib/libdiskmgt/common/
H A Dslice.c224 struct dk_cinfo dkinfo; in slice_get_stats() local
233 ioctl(fd, DKIOCINFO, &dkinfo) >= 0) { in slice_get_stats()
234 snum = dkinfo.dki_partition; in slice_get_stats()
405 struct dk_cinfo dkinfo; in get_attrs() local
435 if (ioctl(fd, DKIOCINFO, &dkinfo) >= 0) { in get_attrs()
436 snum = dkinfo.dki_partition; in get_attrs()
533 struct dk_cinfo dkinfo; in get_attrs() local
536 if (ioctl(sfd, DKIOCINFO, &dkinfo) >= 0) { in get_attrs()
537 sp->slice_num = dkinfo.dki_partition; in get_attrs()
722 struct dk_cinfo dkinfo; in get_slice_num() local
[all …]
/titanic_41/usr/src/lib/libvolmgt/common/
H A Dvolmgt_on_private.c272 struct dk_cinfo dkinfo; /* for testing for slices */ in vol_getmntdev() local
345 if (ioctl(fd, DKIOCINFO, &dkinfo) < 0) { in vol_getmntdev()
355 if ((ip->dki_ctype == dkinfo.dki_ctype) && in vol_getmntdev()
356 (ip->dki_cnum == dkinfo.dki_cnum) && in vol_getmntdev()
357 (ip->dki_unit == dkinfo.dki_unit)) { in vol_getmntdev()
/titanic_41/usr/src/lib/libsmedia/library/common/
H A Dl_misc.c204 struct dk_cinfo dkinfo; in get_dev_library_handle() local
212 if (ioctl(fd, DKIOCINFO, &dkinfo) == -1) { in get_dev_library_handle()
216 DPRINTF1("dki_ctype = 0x%x\n", dkinfo.dki_ctype); in get_dev_library_handle()
252 ret_val = (*d_fcn_ptr)(dkinfo.dki_ctype, 0); in get_dev_library_handle()
/titanic_41/usr/src/lib/libsmedia/plugins/floppy/common/
H A Df_format.c88 struct dk_cinfo dkinfo; in format_floppy() local
137 if (ioctl(fd, DKIOCINFO, &dkinfo) < 0) { in format_floppy()
165 size_of_part = allmap.dka_map[dkinfo.dki_partition].dkl_nblk in format_floppy()
/titanic_41/usr/src/cmd/fdformat/
H A Dfdformat.c82 static struct dk_cinfo dkinfo; variable
397 if (ioctl(fd, DKIOCINFO, &dkinfo) < 0) { in main()
522 size_of_part = allmap.dka_map[dkinfo.dki_partition].dkl_nblk in format_diskette()
1127 if (dkinfo.dki_ctype != dkinfo_tmp.dki_ctype || in check_mount()
1128 dkinfo.dki_cnum != dkinfo_tmp.dki_cnum || in check_mount()
1129 dkinfo.dki_unit != dkinfo_tmp.dki_unit) { in check_mount()
/titanic_41/usr/src/cmd/rmformat/
H A Drmf_misc.c490 struct dk_cinfo dkinfo, dkinfo_tmp; in check_and_unmount_floppy() local
498 if (ioctl(fd, DKIOCINFO, &dkinfo) < 0) { in check_and_unmount_floppy()
557 if (dkinfo.dki_ctype != dkinfo_tmp.dki_ctype || in check_and_unmount_floppy()
558 dkinfo.dki_cnum != dkinfo_tmp.dki_cnum || in check_and_unmount_floppy()
559 dkinfo.dki_unit != dkinfo_tmp.dki_unit) { in check_and_unmount_floppy()
/titanic_41/usr/src/lib/libprtdiag_psr/sparc/tazmo/common/
H A Dtazmo.c1336 struct dk_cinfo dkinfo; in disk_present() local
1358 if (ioctl(search_file, DKIOCINFO, &dkinfo) < 0) { in disk_present()
/titanic_41/usr/src/cmd/smserverd/
H A Dsmediad.c2430 struct dk_cinfo dkinfo; in main_servproc() local
2516 &dkinfo) == -1) { in main_servproc()
2539 ddata->dd_dkinfo = dkinfo; in main_servproc()