Searched refs:drive (Results 26 - 50 of 65) sorted by relevance

123

/illumos-gate/usr/src/cmd/hal/tools/
H A Dhal-storage-mount.c450 LibHalVolume *volume, LibHalDrive *drive, const char *device,
579 append_ro = libhal_device_get_property_bool (hal_ctx, libhal_drive_get_udi(drive),
640 model = libhal_drive_get_model (drive);
641 drive_type = libhal_drive_get_type_textual (drive);
779 if (libhal_drive_is_hotpluggable (drive) || libhal_drive_uses_removable_media (drive))
877 /* non-pollable drive; force auto */
1116 LibHalDrive *drive; local
1118 drive = libhal_drive_from_udi (hal_ctx, udi);
1119 if (drive
445 handle_mount(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, const char *udi, LibHalVolume *volume, LibHalDrive *drive, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, DBusConnection *system_bus) argument
1132 LibHalDrive *drive; local
[all...]
H A Dhal-storage-zpool.c178 LibHalDrive *drive; local
228 unknown_zpool_error ("Cannot get drive udi");
230 if ((drive = libhal_drive_from_udi (hal_ctx, drive_udi)) == NULL) {
231 unknown_zpool_error ("Cannot get drive from udi");
H A Dhal-storage-shared.c264 LibHalVolume *volume, LibHalDrive *drive, const char *device,
538 LibHalDrive *drive, const char *device,
259 handle_unmount(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, const char *udi, LibHalVolume *volume, LibHalDrive *drive, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, gboolean option_lazy, gboolean option_force, DBusConnection *system_bus) argument
533 handle_eject(LibHalContext *hal_ctx, LibPolKitContext *pol_ctx, const char *udi, LibHalDrive *drive, const char *device, const char *invoked_by_uid, const char *invoked_by_syscon_name, gboolean closetray, DBusConnection *system_bus) argument
/illumos-gate/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_util.c300 return ((tgtp->properties.drive.heads << 16) |
301 tgtp->properties.drive.sectors);
640 * drive in our per-target structure.
709 ctlr->cpqary3_tgtp[i]->properties.drive.heads =
711 ctlr->cpqary3_tgtp[i]->properties.drive.sectors =
721 * after deleting a Logical drive.
726 * the next logical drive in the per-target structure
783 ctlr->cpqary3_tgtp[i]->properties.drive.heads =
785 ctlr->cpqary3_tgtp[i]->properties.drive.sectors =
H A Dcpqary3_ioctl.c597 uint16_t drive = 0; local
643 * if the logical drive is failed set the target type to
659 drive = *(uint16_t *)(&evt->event_specific_data[0]);
660 drive = ((drive < CTLR_SCSI_ID) ?
661 drive : drive + CPQARY3_TGT_ALIGNMENT);
663 if (cpqary3p && cpqary3p->cpqary3_tgtp[drive]) {
664 cpqary3p->cpqary3_tgtp[drive]->type =
/illumos-gate/usr/src/boot/sys/boot/fdt/dts/arm/
H A Dsun7i-a20.dtsi125 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
136 allwinner,drive = <SUN4I_PINCTRL_40_MA>;
H A Dsun4i-a10.dtsi100 allwinner,drive = <SUN4I_PINCTRL_10_MA>;
/illumos-gate/usr/src/lib/libast/common/port/
H A Dmnt.c107 char drive[4];
110 drive[0] = fs[0];
111 drive[1] = ':';
112 drive[2] = '\\';
113 drive[3] = 0;
114 if (GetVolumeInformation(drive, 0, 0, &vser, &len, &flags, hp->typ, sizeof(hp->typ) - 1))
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/
H A Datapi_fsm.c174 * Select the drive
180 * make certain the drive selected
183 ADBG_ERROR(("atapi_start_cmd: drive select failed\n"));
287 * send the CDB to the drive
367 * that drive after discovering all the problems it caused, so it may
565 /* select the drive */
576 * Re-select the drive (this is probably only necessary
577 * when resetting drive 1).
582 /* allow the drive the full 6 seconds to respond */
588 * the drive migh
601 int drive; local
[all...]
/illumos-gate/usr/src/boot/sys/boot/i386/pmbr/
H A Dpmbr.s84 # Validate drive number in %dl.
89 addb $0x80,%dh # drive number available
92 main.1: movb $0x80,%dl # Assume drive 0x80
100 pushw %dx # save drive
104 popw %dx # restore drive
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dshared.h147 /* The size of the drive map. */
631 extern void assign_device_name (int drive, const char *device);
790 /* Copy MAP to the drive map and set up int13_handler. */
800 void track_int13 (int drive);
890 int get_diskinfo (int drive, struct geometry *geometry);
891 int biosdisk (int subfunc, int drive, struct geometry *geometry,
1009 int rawread (int drive, unsigned long long sector, int byte_offset, int byte_len,
1012 int rawwrite (int drive, unsigned long long sector, char *buf);
1020 int next_partition (unsigned long drive, unsigned long dest,
H A Dbuiltins.c80 /* The BIOS drive map. */
308 /* Exchage SAVED_DRIVE with the mapped drive. */
847 char *drive = arg;
850 /* Get the drive number from DRIVE. */
851 if (! set_device (drive))
855 device = skip_to (0, drive);
877 "Specify DEVICE as the actual drive for a BIOS drive DRIVE. This command"
1536 " is a drive, or in the \"bootloader\" area if DEVICE is a FFS partition."
1597 set_root (char *root, unsigned long drive, unsigne
837 char *drive = arg; local
1578 set_root(char *root, unsigned long drive, unsigned long part) argument
1598 unsigned long drive; local
4553 sprint_device(int drive, int partition) argument
4573 embed_stage1_5(char *stage1_5, int drive, int partition) argument
[all...]
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_init.c338 * Make the tape drive not part of a tape library (stand alone)
353 NDMP_LOG(LOG_DEBUG, "Internal error: drive not found %d", d);
357 /* For stand-alone drives, the element number is the drive number. */
396 /* Not part of any library, this is a newly found tape drive. */
411 tlm_drive_t *drive; local
423 /* This tape drive was not found inside any robot. */
444 if ((drive = tlm_drive(l, d)) != NULL) {
445 drive->td_exists = TRUE;
446 drive->td_slink = slink;
511 "Error getting drive(
[all...]
/illumos-gate/usr/src/lib/lvm/libmeta/common/
H A Dmeta_error.c577 char *drive,
588 ip->drive = ((drive != NULL) ? Strdup(drive) : NULL);
681 dgettext(TEXT_DOMAIN, "drive specified more than once"));
751 "invalid slice number for drive name"));
767 dgettext(TEXT_DOMAIN, "not a valid drive name"));
1825 "drive %s is not common with host %s"),
1826 ip->drive, ip->node);
1830 "drive
572 mddserror( md_error_t *ep, md_ds_errno_t errnum, set_t setno, char *node, char *drive, char *name ) argument
[all...]
/illumos-gate/usr/src/uts/common/io/sata/adapters/nv_sata/
H A Dnv_sata.c182 static void nv_sgp_drive_connect(nv_ctl_t *nvc, int drive);
183 static void nv_sgp_drive_disconnect(nv_ctl_t *nvc, int drive);
184 static void nv_sgp_drive_active(nv_ctl_t *nvc, int drive);
185 static void nv_sgp_locate(nv_ctl_t *nvc, int drive, int value);
186 static void nv_sgp_error(nv_ctl_t *nvc, int drive, int value);
1048 int drive; local
1089 drive = led.led_number;
1095 nv_sgp_error(nvc, drive, TR_ERROR_DISABLE);
1097 nv_sgp_locate(nvc, drive, TR_LOCATE_DISABLE);
1108 nv_sgp_error(nvc, drive, TR_ERROR_ENABL
6944 nv_sgp_drive_connect(nv_ctl_t *nvc, int drive) argument
6965 nv_sgp_drive_disconnect(nv_ctl_t *nvc, int drive) argument
6986 nv_sgp_drive_active(nv_ctl_t *nvc, int drive) argument
7008 nv_sgp_locate(nv_ctl_t *nvc, int drive, int value) argument
7049 nv_sgp_error(nv_ctl_t *nvc, int drive, int value) argument
7087 int drive, i; local
[all...]
/illumos-gate/usr/src/uts/common/io/nvme/
H A Dnvme.c2910 nvme_bd_driveinfo(void *arg, bd_drive_t *drive) argument
2921 drive->d_qsize = nvme->n_ioq_count * nvme->n_io_queue_len
2929 drive->d_removable = B_FALSE;
2930 drive->d_hotpluggable = B_FALSE;
2932 bcopy(ns->ns_eui64, drive->d_eui64, sizeof (drive->d_eui64));
2933 drive->d_target = ns->ns_id;
2934 drive->d_lun = 0;
2936 drive->d_model = nvme->n_idctl->id_model;
2937 drive
[all...]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dlibdiskmgt.h130 * If a drive goes up or down this could be returned as event type "change".
131 * The application could get the drive information to see that the "status"
134 * return events for all drive related changes, events will not necessarily be
141 * In general the API means "the parent node of the drive in the device tree"
143 * the drive controller depending on the type of the drive.
151 * mpxio. With mpxio the drive will have a unique name and a single controller
152 * (scsi_vhci). The physical controllers, the paths to the drive, can be
153 * obtained by calling dm_get_associated_descriptors with a drive descriptor and
155 * possibly some future similar feature, is controlling the drive
[all...]
H A Ddrive.c380 * Get the drive descriptors for the given media/alias/devpath.
387 /* at most one drive is associated with these descriptors */
434 * Check if we have the drive in our list, based upon the device id.
445 descriptor_t *drive = NULL; local
461 * want. Once drive is set, we don't need to compare any more.
464 if (drive == NULL && drives[i]->p.disk->devid != NULL &&
466 drive = drives[i];
476 if (drive == NULL) {
480 return (drive);
667 /* Make sure the drive typ
[all...]
/illumos-gate/usr/src/grub/grub-0.97/util/
H A Dgrub-install.in3 # Install GRUB on your drive.
62 Install GRUB on your drive.
69 --no-floppy do not probe any floppy drive
85 # Convert an OS device to the corresponding GRUB drive.
132 # Get the drive name.
138 echo "$1 does not have any corresponding BIOS drive." 1>&2
186 # If no partition is specified, just print the drive name.
354 echo "The drive $tmp is defined multiple times in the device map $device_map" 1>&2
379 # Get the root drive.
390 # Convert the root device to a GRUB drive
[all...]
/illumos-gate/usr/src/cmd/lvm/util/
H A Dmetaimport.c298 * And we need to make sure the drive isn't
338 /* is the current drive on the skip list? */
343 /* drive on the skip list ? */
380 * list. If so go to the next available drive.
381 * And we need to make sure the drive isn't
556 * Read remaining arguments into drive name list, otherwise
589 * the system in question has at least one drive detected by the
611 * Doctor the drive string in the error structure to list all of the
622 sizecnt += strlen(ip->drive) + 1;
630 (void) strlcpy(dlist, ip->drive, sizecn
[all...]
/illumos-gate/usr/src/cmd/mdb/sparc/v9/kmdb/
H A Dkaif_resume.s86 bz,pt %icc, 1f ! nope drive on...
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_vdev.c186 dm_descriptor_t *drive, *media, *slice; local
192 * Get the drive associated with this disk. This should never fail,
195 if ((drive = dm_get_associated_descriptors(disk, DM_DRIVE,
196 &err)) == NULL || *drive == NULL) {
202 if ((media = dm_get_associated_descriptors(*drive, DM_MEDIA,
204 dm_free_descriptors(drive);
210 dm_free_descriptors(drive);
213 * It is possible that the user has specified a removable media drive,
218 vdev_error(gettext("'%s' has no media in drive\n"), name);
/illumos-gate/usr/src/cmd/sa/
H A Dsadp.c37 to examine disk drive's I/O queue.
39 it reads the circular output queue for each drive
41 usage : sadp [-th][-d device[-drive]] s [n]
96 "Invalid drive specified for device %s, valid drives are: "
239 char drive[30]; variable
460 * Make sure device and drive specified is legitimate.
525 * Get current I/O count for each drive.
542 * If no drives are selected or illegal drive number
853 * Get drive number routine.
861 strcpy(drive, empt
[all...]
/illumos-gate/usr/src/lib/libast/common/comp/
H A Domitted.c783 int drive; local
813 drive = nat[0];
844 drive = 'C':
854 snprintf(tmp, sizeof(tmp), deleted, drive, base, suffix);
898 snprintf(tmp, sizeof(tmp), deleted, drive, base, suffix);
/illumos-gate/usr/src/uts/common/io/skd/
H A Dskd.c123 static void skd_bd_driveinfo(void *arg, bd_drive_t *drive);
574 Dcmn_err(CE_NOTE, "drive BUSY state\n");
1090 cmn_err(CE_WARN, "!drive busy sanitize[%x], driver[%x]\n",
1115 * For now, we fault the drive. Could attempt resets to
1166 * For now, we fault the drive. Could attempt resets to
1178 * - if the drive state is faulted
1180 * - if the drive registers are dead (state = FF)
2288 * Name: skd_drive_fault, set the drive state to DRV_STATE_FAULT.
2305 * Name: skd_drive_disappeared, set the drive state to DISAPPEARED..
2768 Dcmn_err(CE_NOTE, "(%s) drive sof
5104 skd_bd_driveinfo(void *arg, bd_drive_t *drive) argument
[all...]

Completed in 141 milliseconds

123