Lines Matching refs:device

229  * Display all the events that can be set on a device.
238 char *device = NULL;
248 * be the device instance number, if the user specified one. If
252 * the device number to be ignored during the search.
256 device = safe_malloc(sizeof (char) * i+1);
257 device[i] = '\0';
258 (void) strncpy(device, value, i);
267 if (device == NULL)
268 device = value;
275 if ((cnt_ksp = kstat_lookup(kc, device, inst_num, "counters"))
277 (void) fprintf(stderr, gettext("%s: invalid device "
278 "name or instance (%s)\n"), pgmname, device);
303 if ((pic_ksp = find_pic_kstat(device, inst_num,
354 * For each device node, print the node name (device
391 * First arg must be device name.
422 * Parse the device name/instance section of the
429 char *device = NULL;
433 (void) fprintf(stderr, gettext("%s: No device name given.\n"),
439 * Break string into device name and
444 device = safe_malloc(sizeof (char) * i+1);
445 device[i] = '\0';
447 (void) strncpy(device, value, i);
458 if (device == NULL) {
459 if ((device = value) == NULL) {
460 (void) fprintf(stderr, gettext("%s: no device "
468 (void) strcpy(curr_dev_name, device);
471 add_all_dev_node(device);
478 (void) strcpy(curr_dev_name, device);
481 add_dev_node(device, curr_inst_num);
485 free(device);
585 * Dealing with all instances of a specific device.
613 * Create a dev_node structure for this device if one does not
628 (void) fprintf(stderr, gettext("%s: invalid device "
636 "kstat for device %s.\n"), pgmname, dev_name);
700 * Add all possible instances of a device.
719 gettext("%s: invalid device name (%s)\n"),
727 * Add an event node to a specified device node.
864 * Set the events for each pic on each device instance.
937 * Read the current pcr value from device.
969 * Works through the list of device nodes, reading events
1000 (void) fprintf(stderr, gettext("%s: device %s%d "
1061 (void) fprintf(stderr, gettext("%s: device %s%d "
1073 * Get PCR value from device. We extract the portion
1090 * If the pcr read from the device does not match that
1198 * Get PCR value from device. We extract the portion
1211 * If the pcr value from the device does not match the
1287 * Scan the chain of device nodes, making sure that their associated
1303 (void) fprintf(stderr, gettext("%s: device %s%d"
1317 * Remove a device node and its associated event nodes.
1356 /* Find the device node */
1386 * Find a device node in the linked list of dev_nodes. Match
1387 * is done on device name, and instance number.
1434 * be found search for any picN kstat belonging to this device.
1517 " [-e device-inst]\n"
1518 " [-w device-inst "
1520 " [-r device-inst]\n"