/illumos-gate/usr/src/grub/grub-0.97/grub/ |
H A D | asmstub.c | 65 #include <device.h> 89 /* The map between BIOS drives and UNIX device file names. */ 98 /* The file descriptor for a serial device. */ 101 /* The file name of a serial device. */ 105 /* The speed of a serial device. */ 236 /* Assign DRIVE to a device name DEVICE. */ 238 assign_device_name (int drive, const char *device) argument 252 if (! device) 255 device_map[drive] = strdup (device); 764 /* FIXME: this function is truly horrid. We try opening the device, 1239 serial_set_device(const char *device) argument [all...] |
/illumos-gate/usr/src/grub/grub-0.97/stage2/ |
H A D | disk_io.c | 31 # include <device.h> 50 /* TFTP should come first because others don't handle net device. */ 1094 /* XX used for device completion in 'set_device' and 'print_completions' */ 1106 set_device (char *device) argument 1109 /* In Stage 1.5, the first 4 bytes of FILENAME has a device number. */ 1110 unsigned long dev = *((unsigned long *) device); 1123 return device + sizeof (unsigned long); 1135 if (*device == '(' && !*(device + 1)) 1137 return device [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/ |
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...] |
H A D | hald_dbus.c | 43 #include "device.h" 102 * @param udi Unique device id given 111 "No device with id %s", 120 * @param device_id Id of the device 131 "No property %s on device with id %s", 140 * @param device_id Id of the device 151 "Type mismatch setting property %s on device with id %s", 179 * @param device device which isn't locked 184 HalDevice *device) 182 raise_device_not_locked(DBusConnection *connection, DBusMessage *in_reply_to, HalDevice *device) argument 201 raise_device_already_locked(DBusConnection *connection, DBusMessage *in_reply_to, HalDevice *device) argument 230 raise_branch_already_claimed(DBusConnection *connection, DBusMessage *in_reply_to, HalDevice *device) argument 259 raise_branch_not_claimed(DBusConnection *connection, DBusMessage *in_reply_to, HalDevice *device) argument 301 foreach_device_get_udi(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument 362 foreach_device_match_get_udi(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument 386 foreach_device_match_get_udi_tdl(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument 490 foreach_device_by_capability(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument 619 manager_send_signal_device_added(HalDevice *device) argument 652 manager_send_signal_device_removed(HalDevice *device) argument 686 manager_send_signal_new_capability(HalDevice *device, const char *capability) argument 724 foreach_property_append(HalDevice *device, HalProperty *p, gpointer user_data) argument 1393 HalDevice *device; local 2356 device_send_signal_property_modified(HalDevice *device, const char *key, dbus_bool_t added, dbus_bool_t removed) argument 2449 device_send_signal_condition(HalDevice *device, const char *condition_name, const char *condition_details) argument 2532 HalDevice *device; local 2576 HalDevice *device; local 2621 HalDevice *device; local 2690 HalDevice *device; local 2763 HalDevice *device; local 3507 foreach_device_get_xml_node(HalDeviceStore *store, HalDevice *device, gpointer user_data) argument [all...] |
/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...] |
/illumos-gate/usr/src/lib/lvm/libmeta/common/ |
H A D | meta_name.c | 68 * INPUT: str - Fully qualified pathname of a block or character device 69 * RETURNS: char * - The pathname of the raw device 70 * PURPOSE: Allocation of a new string representing the character device 72 * done to verify the existence of this device file. 88 * is passing old school device names like "/dev/[r]sd" or 115 * INPUT: uname - Fully qualified pathname of a block or character device 116 * RETURNS: char * - The fully qualified character device pathname 117 * PURPOSE: Return the fully qualified pathname of the character device 118 * corresponding to the block or character device passed in. 166 * in the form [set name/]device 1690 uint_t device; local [all...] |
/illumos-gate/usr/src/lib/libbsm/common/ |
H A D | devalloc.c | 72 * reads /etc/logindevperm and checks if specified device is in the file. 73 * returns 1 if specified device found in /etc/logindevperm, else returns 0 84 char *ptr, *device; local 123 /* empty device list */ 143 device = strtok_r(fbuf, ":", &lasts); 144 while (device != NULL) { 146 * device and devname may be one of these types - 153 if (strcmp(device, devname) == 0) { 158 if ((ptr = strrchr(device, KV_WILDCHAR)) != NULL) { 161 if (strncmp(device, devnam [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/traceroute/ |
H A D | traceroute.c | 142 static char *device = NULL; /* interface name */ variable 355 device = optarg; 356 if_index = if_nametoindex((const char *)device); 368 device = (char *)malloc(LIFNAMSIZ + 1); 369 if (device == NULL) { 375 device = if_indextoname(if_index, device); 376 if (device != NULL) { 377 device[LIFNAMSIZ] = '\0'; 389 if (device 1026 find_device(struct ifaddrlist *al, int len, char *device) argument [all...] |
/illumos-gate/usr/src/cmd/lvm/metassist/layout/ |
H A D | layout_request.c | 64 * A struct to hold device "specifications" extracted from a user 65 * specified device name. This struct is used to compare the user's 66 * available and unavailable device specifications against physical 70 * user supplied device name is parsable as a CTD name, it is parsed 73 * The CTD name space implies a device hierarchy and metassist 77 * correspond to an individual physical device depending on 145 device_spec_t *device); 149 device_spec_t *device); 152 * get_spec_for_name builds up a cached mapping of device 155 * This saves repeatedly converting the device name 2666 dm_descriptor_t device = (dm_descriptor_t)0; local 3103 spec_includes_device( device_spec_t *spec, device_spec_t *device) argument 3146 ctd_spec_includes_device( device_spec_t *spec, device_spec_t *device) argument 3243 raw_spec_includes_device( device_spec_t *spec, device_spec_t *device) argument [all...] |
/illumos-gate/usr/src/cmd/lvm/metassist/xml/ |
H A D | xml_convert.c | 101 int (*validate_set)(devconfig_t *device, char *name, char *value); 116 int (*get_as_string)(devconfig_t *device, char *name, char **value); 162 xmlNodePtr parent, element_t elements[], devconfig_t *device); 164 xmlNodePtr cur, element_t elements[], devconfig_t *device); 181 devconfig_t *device, char *attr, char *name); 183 devconfig_t *device, char *attr, char *name); 216 devconfig_t *device, char *attr, char **value); 224 devconfig_t *device, char *attr, char **value); 830 * @param device 839 devconfig_t *device) 836 devconfig_to_xml( xmlNodePtr parent, element_t elements[], devconfig_t *device) argument 997 xml_to_devconfig( xmlNodePtr cur, element_t elements[], devconfig_t *device) argument 1524 validate_add_available_name( devconfig_t *device, char *attr, char *name) argument 1561 validate_add_unavailable_name( devconfig_t *device, char *attr, char *name) argument 2096 get_as_string_name( devconfig_t *device, char *attr, char **value) argument 2232 get_as_string_size_in_blocks( devconfig_t *device, char *attr, char **value) argument [all...] |
/illumos-gate/usr/src/cmd/sa/ |
H A D | sadp.c | 41 usage : sadp [-th][-d device[-drive]] s [n] 71 #include <sys/scsi/conf/device.h> 96 "Invalid drive specified for device %s, valid drives are: " 97 #define ERR_NO_DEV "Please specify a device type, valid devices are: " 105 #define NAMESIZE 10 /* size of device names */ 194 char device[NAMESIZE]; variable 291 strncpy(device, optarg, devlen); 460 * Make sure device and drive specified is legitimate. 496 * Get the list of scsi device pointers from kernel space. 508 * the chosen device [all...] |
/illumos-gate/usr/src/cmd/bnu/ |
H A D | uustat.c | 1303 char remote[10],device[10], netid[20], jobid[20]; local 1357 rectype, time, pid, wmachine, role, remote, device, netid,
|
/illumos-gate/usr/src/cmd/svr4pkg/pkgadd/ |
H A D | main.c | 122 struct pkgdev pkgdev; /* holds info about the installation device */ 129 static char *ids_name = NULL; /* name of data stream device */ 299 char *device = NULL; /* dev pkg stored on */ local 345 /* initially no source "device" */ 347 device = NULL; 467 * device. device can be a full path name to a directory 470 * It can also be a device alias - for example, 492 if ((device = malloc(PATH_MAX)) == NULL) { 496 (void) memset(device, '\ [all...] |
/illumos-gate/usr/src/uts/common/io/audio/drv/audiopci/ |
H A D | audiopci.c | 1179 uint16_t pci_command, vendor, device; local 1197 device = pci_config_get16(pcih, PCI_CONF_DEVID); 1200 (device != ENSONIQ_ES1370)) 1203 dev->devid = device; 1214 /* activate the device */ 1229 audio_dev_warn(dev->adev, "can't init device");
|
/illumos-gate/usr/src/uts/common/io/cardbus/ |
H A D | cardbus.c | 407 * Attach a device to the cardbus infrastructure. 487 * Check for device initialization property. 633 * cardbus dip is the device itself 714 "cardbus(%s%d): Failed to remove device tree: " 770 cardbus_err(dip, 1, "Saving device\n"); 786 cardbus_err(dip, 1, "restoring device\n"); 1007 uint8_t bus, device, function; local 1012 device = PCI_REG_DEV_G(pci_rp->pci_phys_hi); 1018 bus, device, function); 1031 "device 1306 int bus, device, func; local [all...] |
H A D | cardbus_cfg.c | 118 uint_t device; member in struct:cardbus_find_ctrl 323 * This entry point is called to configure a device (and 325 * a new device is added to the PCI domain. This routine 326 * will create the device tree and program the devices 379 "no device: bus [0x%x] slot [0x%x] func [0x%x]\n", 406 "Look up device [0x%x] function [0x%x] to clean up\n", 410 "Cleaning up device [0x%x] function [0x%x]\n", 414 * If this was a bridge device it will have a 509 "cardbus_primary_busno: Not a pci device or no bus-range\n"); 874 * A single device (unde 2353 cardbus_probe_bridge(cbus_t *cbp, dev_info_t *attpt, uint_t bus, uint_t device, uint_t func) argument 2489 cardbus_probe_children(cbus_t *cbp, dev_info_t *parent, uint_t bus, uint_t device, uint_t func, uint8_t *header_type) argument 3066 cardbus_add_config_reg(dev_info_t *dip, uint_t bus, uint_t device, uint_t func) argument [all...] |
/illumos-gate/usr/src/uts/i86pc/io/acpi/drmach_acpi/ |
H A D | drmach_acpi.c | 255 /* Skip subtree if the device is not powered. */ 261 * Keep scanning subtree if it fails to lookup device node. 262 * There may be some ACPI objects without device nodes created. 305 DRMACH_PR("!drmach_node_acpi_walk: failed to get device node."); 491 err = drerr_new(1, EX86_GETPROP, "device node %s: property %s", 500 * dp and err are initialized here to yield nothing (no device or 509 /* device specific new function will set unum */ 691 /* Generate the device dependency list. */ 702 /* No device has dependency on this board. */ 744 /* Generate the eject device lis 1868 drmach_device_t *device; local [all...] |
/illumos-gate/usr/src/uts/common/io/hotplug/pcihp/ |
H A D | pcihp.c | 31 * This module basically implements "devctl" and Attachment Point device 33 * to these device nodes are also implemented. For hotplug operations 169 int pci_dev; /* PCI device number for the slot */ 203 * We process ENUM# event one device at a time ie. as soon as we detect 204 * that a device has the right ENUM# conditions, we return. If the following 528 * If the pci_dev is valid then the minor device is an 529 * AP. Otherwise it is ":devctl" minor device. 545 * Handle the open by tracking the device state. 613 * Get the PCI device number information from the devinfo 626 /* get the pci device i 3115 uint_t device; member in struct:pcihp_find_ctrl 3121 pcihp_devi_find(dev_info_t *dip, uint_t device, uint_t function) argument 3602 pcihp_add_dummy_reg_property(dev_info_t *dip, uint_t bus, uint_t device, uint_t func) argument [all...] |
/illumos-gate/usr/src/uts/common/io/pciex/ |
H A D | pcieb.c | 418 /* create special properties for device identification */ 585 cmn_err(CE_CONT, "?PCIE-device: %s@%s, %s%d\n", 636 * Attach failed for the child device. The child 640 * associated with the child device. 734 uint_t device, func; local 763 * the function and device number. 770 /* copy the device identifications */ 771 device = PCI_REG_DEV_G(pci_rp[0].pci_phys_hi); 776 func = (device << 3) | func; 777 device [all...] |
/illumos-gate/usr/src/uts/common/io/vr/ |
H A D | vr.h | 365 uint16_t device; member in struct:__anon6576
|
/illumos-gate/usr/src/uts/common/io/lvm/md/ |
H A D | md_names.c | 198 * Deal with the device id name space 397 * We are dealing with the device id name space. 594 * We don't keep track of keys in the device id nonshared namespace 1235 char *filenm, /* device filename to be stored */ 1302 * is legal for a metadevice and a physical device to have 1653 /* Tack the directory and device strings together */ 1747 * md_setdevname - Allows putting a device name into the database 1756 char *devname, /* device name to be stored */ 1794 cmn_err(CE_WARN, "Unknown device with minor number of %d", 1885 * Check to see if it has a device i 4269 md_resolve_bydevid(minor_t mnum, md_dev64_t device, mdkey_t key) argument [all...] |
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | sbd.c | 138 * Defines and structures for device tree naming and mapping 800 char device[OBP_MAXDRVNAME]; local 803 devicelen = sizeof (device); 808 * devlists. Otherwise check the device tree 834 OBP_DEVICETYPE, (caddr_t)device, &devicelen)) 838 if (strcmp(device, SBD_OTYPE(i)) != 0) 1387 * cores of a CMP device. If this is not a 1753 * device cannot make the transition, then none of 1924 * Invalidate device. 2638 * Update per-device stat [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
H A D | piclfrutree.c | 2417 frutree_device_args_t *device = NULL; local 2424 device = *(frutree_device_args_t **)devp; 2425 if (device == NULL) { 2460 device->nodeh = refhdl; 2461 device->device_tblhdl = dev_tblhdl; 2462 device->env_tblhdl = env_tblhdl; 2463 device->first = NULL; 2464 device->last = NULL; 2465 device->create_cache = B_FALSE; 2469 device)) ! 2481 create_fru_children(frutree_frunode_t *frup, frutree_device_args_t device) argument 2561 frutree_device_args_t *device = NULL; local 3614 frutree_device_args_t *device = NULL; local 3925 frutree_device_args_t device; local [all...] |