/illumos-gate/usr/src/uts/intel/io/acpica/ |
H A D | osl.c | 101 /* features supported by ACPICA and ACPI device configuration. */ 1017 * OpRegion and (what ACPI CA thinks is) the PCI device 1021 * values for bus, segment, device and function; anything ACPI CA 1041 int bus, device, func, devfn; local 1060 (acpica_get_bdf(dip, &bus, &device, &func) >= 0)) { 1062 (*PciId)->Device = device; 1267 /* Check whether device exists. */ 1271 * Skip object if device doesn't exist. 1273 * 1) setting either bit 0 or bit 3 means that device exists. 1345 /* Check whether device exist 1786 acpica_get_bdf(dev_info_t *dip, int *bus, int *device, int *func) argument [all...] |
/illumos-gate/usr/src/uts/i86pc/io/psm/ |
H A D | psm_common.c | 153 * If the interrupt link device is already configured, 158 * ACPI_PSM_SUCCESS if the interrupt link device is already configured. 162 * When two devices share the same interrupt link device, and the 163 * link device is already configured (i.e. found in the irq cache) 165 * the link device. 176 * Convert the passed-in link device name to a handle 183 * Assume that the link device is invalid if no _CRS method 195 " for device %s, instance #%d, irq no %d\n", 230 get_bdf(dev_info_t *dip, int *bus, int *device, int *func) argument 245 if (device ! [all...] |
/illumos-gate/usr/src/cmd/boot/bootadm/ |
H A D | bootadm.c | 3899 bam_error(_("%s is on a ramdisk device\n"), bam_root); 5408 get_partition(char *device) argument 5421 slice = device + strlen(device) - 2; 5425 wholedisk = s_calloc(1, strlen(device) + 3); 5426 (void) snprintf(wholedisk, strlen(device) + 3, "%sp0", device); 6142 bam_error(_("NULL device: cannot determine pool name\n")); 6158 bam_error(_("invalid device %s: cannot determine pool name\n"), 6174 bam_error(_("fstyp -a on device [all...] |
/illumos-gate/usr/src/cmd/boot/installboot/i386/ |
H A D | installboot.c | 122 static int read_bootblock_from_disk(ib_device_t *device, ib_bootblock_t *, 238 read_bootblock_from_disk(ib_device_t *device, ib_bootblock_t *bblock, argument 247 assert(device != NULL); 250 if (device->target.fstype == IG_FS_ZFS) { 251 dev_fd = device->target.fd; 253 *path = device->target.path; 255 dev_fd = device->stage.fd; 256 offset = device->stage.offset * SECTOR_SIZE; 257 *path = device->stage.path; 329 ib_device_t *device local 418 ib_device_t *device; local 463 ib_device_t *device; local 487 ib_device_t *device = &data->device; local 539 ib_device_t *device = &data->device; local 610 get_start_sector(ib_device_t *device) argument 856 get_boot_partition(ib_device_t *device, struct mboot *mbr) argument 911 get_boot_slice(ib_device_t *device, struct dk_gpt *vtoc) argument 946 init_device(ib_device_t *device, char *path) argument 1109 cleanup_device(ib_device_t *device) argument 1301 ib_device_t *device = &data.device; local [all...] |
H A D | installboot.h | 39 /* partitioning type for device */ 56 char *path; /* device name */ 66 /* boot device data */ 90 ib_device_t device; /* boot device */ member in struct:_ib_data
|
/illumos-gate/usr/src/cmd/boot/installboot/sparc/ |
H A D | installboot.c | 90 ib_device_t *device = &data->device; local 117 if (!is_zfs(device->type)) { 152 if (!is_zfs(device->type)) { 268 ib_device_t *device = &data->device; local 269 int dev_fd = device->fd; 272 assert(device->fd != -1); 275 if (!is_zfs(device->type)) 281 BOOT_DEBUG("Unable to read bootblock from %s\n", device 338 ib_device_t *device = &data->device; local 386 ib_device_t *device = &data->device; local 426 ib_device_t *device = &data->device; local 452 open_device(ib_device_t *device) argument 480 init_device(ib_device_t *device, char *path) argument 499 cleanup_device(ib_device_t *device) argument 675 ib_device_t *device = &data.device; local [all...] |
H A D | installboot.h | 60 ib_device_t device; member in struct:_ib_data
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | disk_link.c | 392 * xVM virtual block device 394 * Xen passes device number in next format: 421 decode_xen_device(uint_t device, uint_t *disk, uint_t *plun) argument 426 if ((device >> XEN_EXT_SHIFT) > 1) 429 if (device < HD_BASE) { 430 /* legacy device address */ 431 dsk = device; 436 if (device & (1 << XEN_EXT_SHIFT)) { 438 dsk = device & (~0xff); 439 lun = device [all...] |
/illumos-gate/usr/src/common/ficl/ |
H A D | loader.c | 849 * pcibios-device-count (devid -- count) 852 * in the system. devid is the 32-bit vendor + device. 871 * Locator is bus << 8 | device << 3 | fuction 893 * Locator is bus << 8 | device << 3 | fuction 920 * Locator is bus << 8 | device << 3 | fuction (or -1 on error) 937 * pcibios-find-device(devid index -- locator) 944 * Locator is bus << 8 | device << 3 | fuction (or -1 on error) 961 * pcibios-find-device(bus device function -- locator) 963 * converts bus, device, functio 970 uint32_t bus, device, function, locator; local [all...] |
/illumos-gate/usr/src/uts/common/nfs/ |
H A D | nfs.h | 127 NFSERR_NXIO = 6, /* No such device or address */ 130 NFSERR_XDEV = 18, /* Cross-device link */ 131 NFSERR_NODEV = 19, /* No such device */ 136 NFSERR_NOSPC = 28, /* No space left on device */ 163 * Macros for converting device numbers to and from the format 172 #define SO4_BITSMAJOR 8 /* # of SunOS 4.x major device bits */ 173 #define SO4_BITSMINOR 8 /* # of SunOS 4.x minor device bits */ 178 * Convert to over-the-wire device number format 186 * Convert from over-the-wire format to SVR4 device number format 195 * so the over-the-wire representation is VCHR with a '-1' device numbe 1663 devicedata3 device; member in union:mknoddata3::__anon593 [all...] |
/illumos-gate/usr/src/boot/sys/boot/i386/libi386/ |
H A D | biospci.c | 182 {0x0, "device", subclass_old}, 283 /* Read the device identifier from the nominated device */ 288 /* We have the device ID, create a PnP object and save everything */ 400 biospci_locator(int8_t bus, uint8_t device, uint8_t function) argument 403 return ((bus << 8) | ((device & 0x1f) << 3) | (function & 0x7));
|
/illumos-gate/usr/src/boot/sys/boot/ofw/libofw/ |
H A D | openfirm.c | 350 /* Convert a device specifier to a fully qualified pathname. */ 352 OF_canon(const char *device, char *buf, int len) argument 358 cell_t device; member in struct:__anon345 368 args.device = (cell_t)device; 376 /* Return a package handle for the specified device. */ 378 OF_finddevice(const char *device) argument 384 cell_t device; member in struct:__anon346 392 args.device = (cell_t)device; 496 OF_open(char *device) argument 502 cell_t device; member in struct:__anon350 [all...] |
/illumos-gate/usr/src/boot/sys/boot/sparc64/boot1/ |
H A D | boot1.c | 63 static int domount(const char *device); 365 printf("usage: boot device [/path/to/loader]\n"); 500 domount(const char *device) argument 503 if ((bootdev = ofw_open(device)) == -1) { 504 printf("domount: can't open device\n");
|
/illumos-gate/usr/src/cmd/boot/installgrub/ |
H A D | installgrub.c | 103 static int get_disk_fd(ig_device_t *device); 267 * Install a new stage1/stage2 pair on the specified device. handle_install() 269 * the target device). 299 BOOT_DEBUG("stage1 path: %s, stage2 path: %s, device: %s\n", 302 if (init_device(&install_data.device, device_path) != BC_SUCCESS) { 303 (void) fprintf(stderr, gettext("Unable to gather device " 322 if (is_bootpar(install_data.device.type) && do_version) 349 cleanup_device(&install_data.device); 358 * Retrieves from a device the extended information (einfo) associated to the 360 * Expects one parameter, the device pat 371 ig_device_t *device = &data.device; local 634 init_device(ig_device_t *device, char *path) argument 700 cleanup_device(ig_device_t *device) argument 726 get_start_sector(ig_device_t *device) argument 889 get_disk_fd(ig_device_t *device) argument 982 ig_device_t *device = &install->device; local 1040 ig_device_t *device = &install->device; local 1106 ig_device_t *device = &dest->device; local 1177 ig_device_t *device = &install->device; local 1297 ig_device_t *device = &data->device; local 1350 ig_device_t *device = &install->device; local 1479 get_raw_partition_path(ig_device_t *device) argument 1530 get_raw_partition_fd(ig_device_t *device) argument [all...] |
H A D | installgrub.h | 66 ig_device_t device; member in struct:_ig_data
|
/illumos-gate/usr/src/cmd/boot/mbr/ |
H A D | mbr.c | 43 fprintf(stderr, "Usage: %s [ -d | -n | -o | -r ] <device> [<mboot>]\n", 57 char *device; local 102 device = strdup(argv[optind]); 103 if (!device) { 106 fd = open(device, O_RDWR); 108 fprintf(stderr, "cannot read MBR on %s\n", device);
|
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | builtins.c | 41 # include <device.h> 56 /* The boot device. */ 219 /* Print the device name. */ 400 "Initialize a network device via BOOTP. If the option `--with-configfile'" 843 /* device */ 848 char *device; 854 /* Get the device argument. */ 855 device = skip_to (0, drive); 858 nul_terminate (device); 860 if (! *device || ! check_devic 838 char *device; local 1397 char *device; local 1596 static char device[32]; local 1805 char *device = arg; local 2525 unsigned long device = 0xFFFFFFFF; local 2545 unsigned long device; local 4524 char device[16]; local [all...] |
/illumos-gate/usr/src/uts/common/io/audio/drv/audioens/ |
H A D | audioens.c | 50 * of the device. This is necessary for audio playback to function, as 52 * emulated device. So we need to detect this platform, and conditionally 991 uint16_t pci_command, vendor, device; local 1009 device = pci_config_get16(pcih, PCI_CONF_DEVID); 1013 (device != ENSONIQ_ES1371 && device != ENSONIQ_ES5880 && 1014 device != ENSONIQ_ES5880A && device != ECTIVA_ES1938 && 1015 device != ENSONIQ_ES5880B)) { 1016 audio_dev_warn(dev->osdev, "unrecognized device"); [all...] |
/illumos-gate/usr/src/uts/common/io/i40e/core/ |
H A D | i40e_type.h | 311 /* Capabilities of a PF or a VF or the whole device */ 502 u16 device; member in struct:i40e_bus_info 586 /* capabilities for entire device and PCI func */ 593 /* device profile info */ 602 /* Closest numa node to the device */ 1534 /* Structure to hold device level control filter counts */
|
/illumos-gate/usr/src/uts/common/io/i40e/ |
H A D | i40e_main.c | 20 * The i40e driver is the main software device driver for the Intel 40 Gb family 22 * ports and 10 GbE ports. This device is the successor to the 82599 family of 33 * Each physical function in the hardware shows up as a device that this driver 35 * physical functions present on the device, while other resources are instead 36 * shared across the entire card and its up to the device driver to 45 * file here, and then we'll get into more discussion on how the device is 60 * the device. 63 * work with Intel's common code for the device. 89 * Each physical device consists of a number of one or more ports, which are 93 * instance of the device, ther 476 i40e_device_find(i40e_t *i40e, dev_info_t *parent, uint_t bus, uint_t device) argument 906 uint16_t bus, device, func; local [all...] |
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | device_info.c | 49 * @brief Parsing of device info files 71 /** Processing a device element */ 121 HalDevice *device; member in struct:__anon109 156 /** Set to #TRUE if a device is matched */ 170 * @param source_udi UDI of source device 261 /* Compare the value of a property on a hal device object against a string value 270 * @param d hal device object 324 * @return #FALSE if the device in question didn't 347 pc->device->udi, 350 HAL_ERROR (("Could not resolve keypath '%s' on udi '%s'", key, pc->device 1364 process_fdi_file(const char *dir, const char *filename, HalDevice * device) argument [all...] |
/illumos-gate/usr/src/lib/libzfs_jni/common/ |
H A D | libzfs_jni_dataset.c | 808 jobject device = NULL; local 816 device = create_PoolBean(env, zphp, zhp); 821 device = create_DatasetBean(env, zhp); 830 return (device);
|
H A D | libzfs_jni_diskmgt.c | 41 static char *get_device_name(dm_descriptor_t device, int *error); 71 get_device_name(dm_descriptor_t device, int *error) argument 77 name = dm_get_name(device, error); 79 handle_error("could not determine name of device");
|
/illumos-gate/usr/src/cmd/tar/ |
H A D | tar.c | 603 static dev_t mt_dev; /* device containing output file */ 959 fatal(gettext("device argument required")); 1104 /* Get inode and device number of output file */ 2646 "tar: current device seek position = %" FMT_blkcnt_t "K\n"), 5088 "tar: device seek error\n")); 5116 * the defined defaults for the device, or on the 5187 * this when the device is not blocked. 5317 * Care is taken to write in multiples of SYS_BLOCK when device is 5431 * blank-separated fields (1) device (2) blocking, 6208 * is a tape device, fals 6369 build_dblock( const char *name, const char *linkname, const char typeflag, const int filetype, const struct stat *sp, const dev_t device, const char *prefix) argument [all...] |
/illumos-gate/usr/src/cmd/zpool/ |
H A D | zpool_main.c | 206 return (gettext("\tattach [-f] <pool> <device> " 207 "<new-device>\n")); 209 return (gettext("\tclear [-nF] <pool> [device]\n")); 217 return (gettext("\tdetach <pool> <device>\n")); 241 return (gettext("\toffline [-t] <pool> <device> ...\n")); 243 return (gettext("\tonline <pool> <device> ...\n")); 245 return (gettext("\treplace [-f] <pool> <device> " 246 "[new-device]\n")); 248 return (gettext("\tremove <pool> <device> ...\n")); 268 "[<device> 3639 char *pool, *device; local [all...] |