Searched defs:drive (Results 1 - 25 of 41) sorted by relevance

12

/illumos-gate/usr/src/boot/sys/boot/i386/common/
H A Ddrv.h33 unsigned int drive; member in struct:dsk
/illumos-gate/usr/src/uts/common/io/cpqary3/
H A Dcpqary3_noe.c34 * Last reason a drive at this position was failed by the
287 uint16_t drive = 0; local
450 cmn_err(CE_CONT, " State change, logical drive %u\n",
457 * If the Logical drive has FAILED or it was
466 drive = *(uint16_t *)
468 drive = ((drive < CTLR_SCSI_ID)
469 ? drive : drive + CPQARY3_TGT_ALIGNMENT);
470 if (ctlr && ctlr->cpqary3_tgtp[drive]) {
[all...]
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/grub/grub-0.97/stage2/
H A Dcommon.c159 int drive; local
270 /* Get the drive info. */
279 for (drive = 0x80; drive < 0x88; drive++)
285 /* Get the geometry. This ensures that the drive is present. */
286 if (get_diskinfo (drive, &geom))
297 track_int13 (drive);
301 info->drive_number = drive;
340 /* Set boot drive an
[all...]
H A Dbios.c30 extern int biosdisk_int13_extensions (int ax, int drive, void *dap);
31 extern int biosdisk_standard (int ah, int drive,
34 extern int check_int13_extensions (int drive);
35 extern int get_diskinfo_standard (int drive,
40 extern int get_diskinfo_floppy (int drive,
54 biosdisk (int read, int drive, struct geometry *geometry,
88 err = biosdisk_int13_extensions ((read + 0x42) << 8, drive, &dap);
107 return biosdisk (read, drive, geometry, sector, nsec, segment);
126 err = biosdisk_standard (read + 0x02, drive,
136 get_cdinfo (int drive, struc
52 biosdisk(int read, int drive, struct geometry *geometry, unsigned long long sector, int nsec, int segment) argument
134 get_cdinfo(int drive, struct geometry *geometry) argument
211 get_diskinfo(int drive, struct geometry *geometry) argument
[all...]
/illumos-gate/usr/src/cmd/hal/tools/
H A Dhal-storage-closetray.c81 LibHalDrive *drive; local
158 if ((drive = libhal_drive_from_udi (hal_ctx, udi)) == NULL) {
159 unknown_closetray_error ("Cannot get drive");
167 libhal_drive_get_udi (drive),
168 drive,
169 libhal_drive_get_device_file (drive),
H A Dhal-storage-unmount.c172 LibHalDrive *drive; local
174 drive = libhal_drive_from_udi (hal_ctx, udi);
175 if (drive == NULL) {
182 udi, NULL, drive, device, invoked_by_uid,
189 LibHalDrive *drive; local
195 drive = libhal_drive_from_udi (hal_ctx, drive_udi);
196 if (drive == NULL)
197 unknown_error ("Cannot get drive from hal");
203 udi, volume, drive, device, invoked_by_uid,
H A Dhal-storage-eject.c80 LibHalDrive *drive; local
167 unknown_eject_error ("Cannot get drive udi");
169 if ((drive = libhal_drive_from_udi (hal_ctx, drive_udi)) == NULL) {
170 unknown_eject_error ("Cannot get drive from udi");
174 volume_udis = libhal_drive_find_all_volumes (hal_ctx, drive, &num_volumes);
184 printf ("processing drive's volume %s (%d of %d)\n", volume_udi, i + 1, num_volumes);
205 volume_udi, volume_to_unmount, drive,
226 libhal_drive_get_udi (drive),
227 drive,
228 libhal_drive_get_device_file (drive),
[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
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...]
/illumos-gate/usr/src/cmd/ndmpd/tlm/
H A Dtlm_info.c93 * get the info about this drive
98 tlm_drive_t *drive; local
104 drive = library->tl_drive;
105 while (drive != NULL) {
106 if (drv == drive->td_number) {
107 return (drive);
109 drive = drive->td_next;
340 * add a new tape drive data blob to the list of drives in a library
341 * returns the new tape drive dat
347 tlm_drive_t *drive = ndmp_malloc(sizeof (tlm_drive_t)); local
[all...]
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/uts/common/io/sdcard/impl/
H A Dsda_mem.c187 sda_mem_bd_driveinfo(void *arg, bd_drive_t *drive) argument
191 drive->d_qsize = 4; /* we queue up internally, 4 is enough */
192 drive->d_maxxfer = 65536;
193 drive->d_removable = B_TRUE;
194 drive->d_hotpluggable = B_FALSE;
195 drive->d_target = slot->s_slot_num;
/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/boot0/
H A Dboot0.S68 * (called 'packet') or CHS mode, whether to force a drive number,
93 * %dl drive number (0x80, 0x81, ... )
103 * to store the original drive number (%dl) passed to us, and to construct a
154 .set _NXTDRV, B0_OFF+6 # Next drive
220 * If the 'setdrv' flag is set in the boot sector, use the drive
224 * or a ZIP/flash drive in floppy emulation).
227 testb $SETDRV,_FLAGS(%bp) # Set drive number?
228 #ifndef CHECK_DRIVE /* disable drive checks */
236 * Disable updates if the drive number is forced.
239 movb _SETDRV(%bp),%dl # Use stored drive numbe
665 drive: .ascii "Drive " label
[all...]
/illumos-gate/usr/src/boot/sys/boot/i386/cdboot/
H A Dcdboot.S122 mov %dl,drive # Save BIOS boot device
137 mov drive,%dl # Store BIOS boot device
428 mov drive,%dl # BIOS Device
575 drive: .byte 0 label
/illumos-gate/usr/src/grub/grub-0.97/lib/
H A Ddevice.c138 /* Get the geometry of a drive DRIVE. */
140 get_drive_geometry (struct geometry *geom, char **map, int drive) argument
146 fd = open (map[drive], O_RDONLY);
257 if (drive & 0x80)
428 get_dac960_disk_name (char *name, int controller, int drive) argument
430 sprintf (name, "/dev/rd/c%dd%d", controller, drive);
484 /* Check if DEVICE is a CD-ROM drive by the HDIO_GETGEO ioctl. */
550 int drive; local
578 show_error (line_number, "Bad drive name");
586 drive
809 int controller, drive; local
859 is_disk_device(char **map, int drive) argument
870 write_to_partition(char **map, int drive, int partition, int sector, int size, const char *buf) argument
[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/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/lib/libdiskmgt/common/
H A Dentry.c496 * slices for the named disk drive.
499 dm_get_slices(char *drive, dm_descriptor_t **slices, int *errp) argument
508 if (drive == NULL) {
512 alias = dm_get_descriptor_by_name(DM_ALIAS, drive, errp);
/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/rmvolmgr/
H A Drmm_common.c164 LibHalDrive *drive; local
180 if (((drive = rmm_hal_volume_findby(hal_ctx,
182 ((drive = rmm_hal_volume_findby(hal_ctx,
184 ((drive = rmm_hal_volume_findby(hal_ctx,
186 ((drive = rmm_hal_volume_findby(hal_ctx,
195 if ((drive = rmm_hal_volume_findby(hal_ctx,
200 drive = rmm_hal_volume_findby_nickname(hal_ctx, name, volumes);
206 return (drive);
216 LibHalDrive *drive; local
223 if ((drive
254 LibHalDrive *drive = NULL; local
433 LibHalDrive *drive = NULL; local
981 LibHalDrive *drive = NULL; local
[all...]
/illumos-gate/usr/src/uts/common/io/vioblk/
H A Dvioblk.c168 static void vioblk_driveinfo(void *arg, bd_drive_t *drive);
436 vioblk_driveinfo(void *arg, bd_drive_t *drive) argument
440 drive->d_qsize = sc->sc_vq->vq_num;
441 drive->d_removable = B_FALSE;
442 drive->d_hotpluggable = B_TRUE;
443 drive->d_target = 0;
444 drive->d_lun = 0;
446 drive->d_vendor = "Virtio";
447 drive->d_vendor_len = strlen(drive
[all...]
/illumos-gate/usr/src/grub/grub-0.97/grub/
H A Dasmstub.c238 assign_device_name (int drive, const char *device) argument
241 if (device_map[drive])
242 free (device_map[drive]);
245 if (disks[drive].flags != -1)
247 close (disks[drive].flags);
248 disks[drive].flags = -1;
253 device_map[drive] = 0;
255 device_map[drive] = strdup (device);
346 /* Copy MAP to the drive map and set up the int13 handler. */
445 track_int13 (int drive) argument
762 get_diskinfo(int drive, struct geometry *geometry) argument
933 biosdisk(int subfunc, int drive, struct geometry *geometry, unsigned long long sector, int nsec, int segment) argument
[all...]

Completed in 105 milliseconds

12