Lines Matching defs:instance

224 	int	instance;
228 instance = AC_GETINSTANCE(getminor(dev));
229 *result = (void *)(uintptr_t)instance;
238 int instance;
253 instance = ddi_get_instance(devi);
255 if (ddi_soft_state_zalloc(acp, instance) != DDI_SUCCESS) {
257 instance);
261 softsp = ddi_get_soft_state(acp, instance);
271 instance, OBP_BOARDNUM);
276 " softsp=0x%p\n", instance, (void *)devi, (void *)softsp));
280 cmn_err(CE_WARN, "ac%d: unable to map registers", instance);
306 instance, softsp->board);
317 (AC_PUTINSTANCE(instance) | 0),
320 "ddi_create_minor_node failed", instance,
324 (AC_PUTINSTANCE(instance) | 1),
327 "ddi_create_minor_node failed", instance,
352 ddi_soft_state_free(acp, instance);
360 int instance;
364 /* get the instance of this devi */
365 instance = ddi_get_instance(devi);
368 softsp = ddi_get_soft_state(acp, instance);
435 ddi_soft_state_free(acp, instance);
445 int instance;
452 instance = AC_GETINSTANCE(getminor(dev));
453 softsp = AC_GETSOFTC(instance);
455 /* Is the instance attached? */
458 cmn_err(CE_WARN, "ac%d device not attached", instance);
486 int instance;
488 instance = AC_GETINSTANCE(getminor(devt));
489 softsp = AC_GETSOFTC(instance);
567 int instance;
570 instance = AC_GETINSTANCE(getminor(devt));
571 softsp = AC_GETSOFTC(instance);
574 cmn_err(CE_NOTE, "ac%d device not attached", instance);
730 * using the board number as the instance.
778 * Create the picN kstats if we are the first instance
791 * Create the "counter" kstat for each AC instance.
793 * registers for that instance.
840 * own events by creating picN kstats with the instance number
844 * first search for a picN kstat using the instance number
910 int instance = ddi_get_instance(dip);
920 instance, pic_name, "bus", KSTAT_TYPE_NAMED,
1000 * if we are the last instance to detach we need to