Searched refs:drive (Results 1 - 25 of 65) sorted by relevance

123

/illumos-gate/usr/src/uts/common/io/
H A Demul64.conf40 # Example: for wombat-drive-1_5TB:
54 wombat-drive-1GB= 0, 2097152, 0, 128, 128, 128;
55 wombat-drive-1TB= 0, 2147483648, 0, 131072, 128, 128;
56 wombat-drive-1_5TB= 0, 3221225472, 0, 196608, 128, 128;
57 wombat-drive-2TB= 1, 0, 0, 262144, 128, 128;
58 wombat-drive-3TB= 1, 2147483648, 0, 393216, 128, 128;
59 wombat-drive-5TB= 2, 2147483648, 0, 655360, 128, 128;
78 # targ_0_0= "wombat-drive-1GB", "WOMBAT 1_0_0:1GB";
81 # targ_0_0= "wombat-drive-1TB", "WOMBAT 2_0_0:1TB"
82 # targ_1_0= "wombat-drive
[all...]
/illumos-gate/usr/src/grub/grub-0.97/lib/
H A Ddevice.h36 extern void get_drive_geometry (struct geometry *geom, char **map, int drive);
43 extern int is_disk_device (char **map, int drive);
44 extern int write_to_partition (char **map, int drive, int partition,
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/hal/libhal-storage/common/
H A Dlibhal-storage.c203 /* volume may be NULL (e.g. if drive supports removable media) */
205 libhal_drive_policy_compute_display_name (LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
218 model = libhal_drive_get_model (drive);
219 vendor = libhal_drive_get_vendor (drive);
220 drive_type = libhal_drive_get_type (drive);
221 drive_is_hotpluggable = libhal_drive_is_hotpluggable (drive);
222 drive_is_removable = libhal_drive_uses_removable_media (drive);
223 drive_cdrom_caps = libhal_drive_get_cdrom_caps (drive);
248 /* Optical drive handling */
351 libhal_volume_policy_compute_display_name (LibHalDrive *drive, LibHalVolum argument
518 libhal_drive_policy_compute_icon_name(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
548 libhal_volume_policy_compute_icon_name(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
606 libhal_volume_policy_should_be_visible(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy, const char *target_mount_point) argument
781 libhal_drive_get_dedicated_icon_drive(LibHalDrive *drive) argument
787 libhal_drive_get_dedicated_icon_volume(LibHalDrive *drive) argument
797 libhal_drive_free(LibHalDrive *drive) argument
898 LibHalDrive *drive; local
1069 libhal_drive_get_physical_device_udi(LibHalDrive *drive) argument
1075 libhal_drive_requires_eject(LibHalDrive *drive) argument
1422 libhal_drive_is_hotpluggable(LibHalDrive *drive) argument
1428 libhal_drive_uses_removable_media(LibHalDrive *drive) argument
1434 libhal_drive_is_media_detected(LibHalDrive *drive) argument
1440 libhal_drive_get_size(LibHalDrive *drive) argument
1446 libhal_drive_get_media_size(LibHalDrive *drive) argument
1452 libhal_drive_get_partition_scheme(LibHalDrive *drive) argument
1459 libhal_drive_get_type(LibHalDrive *drive) argument
1465 libhal_drive_get_bus(LibHalDrive *drive) argument
1471 libhal_drive_get_cdrom_caps(LibHalDrive *drive) argument
1477 libhal_drive_get_device_major(LibHalDrive *drive) argument
1483 libhal_drive_get_device_minor(LibHalDrive *drive) argument
1489 libhal_drive_get_type_textual(LibHalDrive *drive) argument
1495 libhal_drive_get_device_file(LibHalDrive *drive) argument
1501 libhal_drive_get_udi(LibHalDrive *drive) argument
1507 libhal_drive_get_serial(LibHalDrive *drive) argument
1513 libhal_drive_get_firmware_version(LibHalDrive *drive) argument
1519 libhal_drive_get_model(LibHalDrive *drive) argument
1525 libhal_drive_get_vendor(LibHalDrive *drive) argument
1706 libhal_drive_find_all_volumes(LibHalContext *hal_ctx, LibHalDrive *drive, int *num_volumes) argument
1857 libhal_drive_policy_is_mountable(LibHalDrive *drive, LibHalStoragePolicy *policy) argument
1865 libhal_drive_policy_get_desired_mount_point(LibHalDrive *drive, LibHalStoragePolicy *policy) argument
1958 libhal_drive_policy_get_mount_options(LibHalDrive *drive, LibHalStoragePolicy *policy) argument
1984 libhal_drive_policy_get_mount_fs(LibHalDrive *drive, LibHalStoragePolicy *policy) argument
1991 libhal_volume_policy_is_mountable(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
1996 libhal_volume_policy_get_desired_mount_point(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
2001 libhal_volume_policy_get_mount_options(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
2026 libhal_volume_policy_get_mount_fs(LibHalDrive *drive, LibHalVolume *volume, LibHalStoragePolicy *policy) argument
2032 libhal_drive_no_partitions_hint(LibHalDrive *drive) argument
[all...]
H A Dlibhal-storage.h196 void libhal_drive_free (LibHalDrive *drive);
198 dbus_bool_t libhal_drive_is_hotpluggable (LibHalDrive *drive);
199 dbus_bool_t libhal_drive_uses_removable_media (LibHalDrive *drive);
200 dbus_bool_t libhal_drive_is_media_detected (LibHalDrive *drive);
201 dbus_uint64_t libhal_drive_get_size (LibHalDrive *drive);
202 dbus_uint64_t libhal_drive_get_media_size (LibHalDrive *drive);
203 const char *libhal_drive_get_partition_scheme (LibHalDrive *drive);
204 dbus_bool_t libhal_drive_no_partitions_hint (LibHalDrive *drive);
205 dbus_bool_t libhal_drive_requires_eject (LibHalDrive *drive);
206 LibHalDriveType libhal_drive_get_type (LibHalDrive *drive);
[all...]
/illumos-gate/usr/src/grub/grub-0.97/stage2/
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...]
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 Ddisk_io.c158 rawread(int drive, unsigned long long sector, int byte_offset, int byte_len, argument
177 if (buf_drive != drive)
179 if (get_diskinfo (drive, &buf_geom))
184 buf_drive = drive;
222 bios_err = biosdisk (BIOSDISK_READ, drive, &buf_geom,
237 || biosdisk (BIOSDISK_READ, drive, &buf_geom,
263 if (biosdisk (BIOSDISK_READ, drive, &buf_geom,
334 * -- It takes an extra parameter, the drive number.
346 rawwrite(int drive, unsigned long long sector, char *buf) argument
350 if (biosdisk (BIOSDISK_READ, drive,
596 next_partition(unsigned long drive, unsigned long dest, unsigned long *partition, int *type, unsigned long long *start, unsigned long long *len, unsigned long long *offset, int *entry, unsigned long long *ext_offset, unsigned long long *gpt_offset, int *gpt_count, int *gpt_size, char *buf) argument
1111 int drive = (dev >> 24) & 0xFF; local
[all...]
/illumos-gate/usr/src/boot/sys/boot/i386/common/
H A Ddrv.h33 unsigned int drive; member in struct:dsk
H A Ddrv.c43 v86.edx = dskp->drive;
75 v86.edx = dskp->drive;
85 v86.edx = nblk << 8 | dskp->drive;
109 v86.edx = dskp->drive;
/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...]
/illumos-gate/usr/src/cmd/hal/tools/
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-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-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-shared.h59 LibHalVolume *volume, LibHalDrive *drive, const char *device,
69 LibHalDrive *drive, const char *device,
/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...]
/illumos-gate/usr/src/uts/common/io/blkdev/
H A Dblkdev.c314 bd_create_inquiry_props(dev_info_t *dip, bd_drive_t *drive) argument
316 if (drive->d_vendor_len > 0)
318 drive->d_vendor, drive->d_vendor_len);
320 if (drive->d_product_len > 0)
322 drive->d_product, drive->d_product_len);
324 if (drive->d_serial_len > 0)
326 drive->d_serial, drive
334 bd_create_errstats(bd_t *bd, int inst, bd_drive_t *drive) argument
433 bd_init_errstats(bd_t *bd, bd_drive_t *drive) argument
464 bd_drive_t drive; local
1774 bd_drive_t drive = { 0 }; local
[all...]
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/
H A Dcapacity.notes.txt34 case that a drive supports LBA access and therefore the BIOS's geometry
48 reliably calculate the capacity of an ATA drive, but I can't make
58 Even assertions in the specs seem to be ignored; I have a drive for
71 with what the BIOS and the drive have figured out unless it
82 >reliably calculate the capacity of an ATA drive, but I can't make
92 >Even assertions in the specs seem to be ignored; I have a drive for
96 If the words [54]*[55]*[56] don't match [57:58] then the drive is
100 Of course Read/Set Max do alter the drive's apparent capacity but assuming
105 53:58. Words 60:61 are the drive capacity. But even if you must use CHS
106 mode, words 60:61 are still the true drive capacit
[all...]
/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/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...]
/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/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/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/lib/libdiskmgt/
H A DMakefile.com29 entry.o cache.o drive.o controller.o alias.o path.o \
/illumos-gate/usr/src/head/
H A Dmetamhd.x43 %#define MHD_E_RESERVED -2 /* drive is reserved */
87 mhd_drivename_t drives<>; /* drive names */
107 MHD_FF_DRIVER, /* set failfast on each drive */
137 mhd_drivename_t drive; /* drive name */
138 int errnum; /* drive status */
142 mhd_drive_status_t results<>; /* drive status */
154 mhd_drive_info_list_t results; /* drive info list */

Completed in 309 milliseconds

123