/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | disk_io.c | 158 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...] |
H A D | builtins.c | 80 /* 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/uts/common/io/nvme/ |
H A D | nvme.c | 2910 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/hal/libhal-storage/common/ |
H A D | libhal-storage.c | 203 /* 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...] |
/illumos-gate/usr/src/lib/libdiskmgt/common/ |
H A D | drive.c | 380 * 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/cmd/dfs.cmds/sharemgr/ |
H A D | commands.c | 2036 char *drive; local 2092 drive = sa_get_share_attr(share, "drive-letter"); 2093 if (drive != NULL) { 2094 if (strlen(drive) > 0) 2096 drive); 2097 sa_free_attr_string(drive);
|
/illumos-gate/usr/src/cmd/sa/ |
H A D | sadp.c | 37 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/uts/common/io/cpqary3/ |
H A D | cpqary3.h | 218 } drive; /* Logical drives */ member in union:cpqary3_target::__anon5231
|
/illumos-gate/usr/src/lib/storage/liba5k/common/ |
H A D | mon.c | 806 struct l_disk_state_struct *drive; local 866 * Either front or rear drive 869 drive = &l_state->drv_front[slot]; 871 drive = &l_state->drv_rear[slot]; 875 * Check for drive presence always 877 if (drive->ib_status.code == S_NOT_INSTALLED) { 900 if ((drive->g_disk_state.d_state_flags[PORT_A] & L_RESERVED) || 901 (drive->g_disk_state.d_state_flags[PORT_B] & 2741 * Try to open drive. 2747 "opening drive [all...] |
/illumos-gate/usr/src/uts/intel/io/dktp/controller/ata/ |
H A D | ata_common.c | 283 * just busy wait if any drive doesn't support FLUSH CACHE 527 * Always make certain that a valid drive is selected so 536 * make certain the drive selected 545 * one drive of that type. 802 return (DDI_FAILURE); /* no drive */ 850 /* save pointer to drive struct for ata_disk_bus_ctl */ 854 * Determine whether to enable DMA support for this drive. This 1158 * initialize a drive 1192 * set up drive struct 1206 * get drive typ 2679 uchar_t drive; local [all...] |
/illumos-gate/usr/src/uts/common/io/ |
H A D | fdc.c | 34 * Note that motor control and drive select use a latch external 689 * fdc_results retrieves the controller/drive status 762 * fdc_results retrieves the controller/drive status 997 /* make sure drive is not selected in case we change speed */ 1008 /* 3D drive requires 500 ms for speed change */ 1533 * VP/ix sense drive ioctl call checks for the error return. 1726 * Returns status of disk change line of selected drive. 1754 * fdc_results retrieves the controller/drive status 1775 * fdc_results retrieves the controller/drive status 1865 /* de-select drive whil 2601 int drive; local [all...] |
/illumos-gate/usr/src/uts/common/io/skd/ |
H A D | skd.c | 123 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...] |
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_share.c | 63 char drive; member in struct:smb_transient 906 return (ts->drive); 960 * format of <drive letter>:\<dir>
|
/illumos-gate/usr/src/uts/common/io/blkdev/ |
H A D | blkdev.c | 314 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/common/io/sata/adapters/nv_sata/ |
H A D | nv_sata.c | 182 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/sata/impl/ |
H A D | sata.c | 1156 * Called by an HBA drive from _fini() routine. 2556 * STOPPED state, then the drive is not capable 3299 * Some cfgadm operations involve drive commands, so reset condition 8687 * This function uses READ LOG EXT command when drive supports LBA48, and 9804 * But specify it only if drive supports DMA and DMA mode is 10426 sata_drive_info_t *drive; local 10508 drive = SATA_CPORTINFO_DRV_INFO(cportinfo); 10509 drive->satadrv_addr = cportinfo->cport_addr; 10510 drive->satadrv_addr.qual = SATA_ADDR_DCPORT; 10511 drive 10561 sata_drive_info_t *drive = NULL; local [all...] |