Lines Matching defs:device

50 /* First 16 longs of device PCI config header. */
127 static int open_node(char *device, pcitool_uiargs_t *input_args_p);
193 open_node(char *device, pcitool_uiargs_t *input_args_p)
207 prefix = (strstr(device, slash_devices) == device) ? "" : slash_devices;
211 if (strstr(device, PCI_MINOR_INTR) ==
212 device + (strlen(device) - strlen(PCI_MINOR_INTR))) {
219 if (strstr(device, PCI_MINOR_REG) ==
220 device + (strlen(device) - strlen(PCI_MINOR_REG))) {
235 stringsize = strlen(prefix) + strlen(device) + strlen(suffix) + 2;
239 (void) snprintf(path, stringsize, format, prefix, device, suffix);
338 case PCI_HEADER_ZERO: /* Header type 0 is a regular device. */
353 (void) printf("Unknown device\n");
391 * Print device information retrieved during probe mode.
431 * Retrieve first 16 dwords of device's config header, except for the first
567 * Identify problematic southbridges. These have device id 0x5249 and
587 * Probe device's functions. Modifies many fields in the prg_p.
609 * functions if there are no errors and the device is a multi-function
610 * device.
613 * device and set multi_function_device. If first_func != 0, then we
630 * PCITOOL_INVALID_ADDRESS. There is no device at this
634 * zero. Config space is mapped but no device responded.
637 * non-zero. We've found a device.
695 * Treat as unresponsive device amd check next device.
728 * of all of this device's functions.
796 /* Explicit device given. Not probing a whole bus. */
812 first_dev = last_dev = input_args_p->device;
822 * When a found device's function 0 is probed and it is determined that
823 * it is not a multifunction device, skip probing of that device's
831 first_dev = last_dev = input_args_p->device;
1007 * fd is the nexus by which device is accessed.
1097 /* Access the device. Abort on error. */
1318 * registers or to access a device through that nexus.
1366 prg.dev_no = input_args_p->device;
1452 * device info as there is room for at the moment. If there
1484 /* Need more room to return additional device info. */
1493 "device info failed: %s\n", str_type,