Lines Matching refs:instance

37 /* Default workqueue processing interval on this instance, in msecs */
67 unsigned instance, block, attr;
75 * (instance,block,attrib) from the start of an allocated structure.
76 * We want the alignment of each item (instance,block,attrib)
84 * which will become the start of the 'instance' array
88 /* Calc the 'end' offset past the instance array within the ctl_info
148 for (instance = 0; instance < nr_instances; instance++) {
149 inst = &dev_inst[instance];
152 blk_p = &dev_blk[instance * nr_blocks];
155 /* name of this instance */
157 "%s%u", edac_device_name, instance);
159 /* Initialize every block in each instance */
162 blk->instance = inst;
166 edac_dbg(4, "instance=%d inst_p=%p block=#%d block_p=%p name='%s'\n",
167 instance, inst, block, blk, blk->name);
209 /* Mark this instance as merely ALLOCATED */
380 * initialize a workq item for this edac_device instance
466 /* create this instance's sysfs entries */
475 /* This instance is NOW RUNNING */
517 /* mark this instance as OFFLINE */
525 /* clear workq processing on this instance */
528 /* Tear down the sysfs entries for this instance */
560 struct edac_device_instance *instance;
568 "INTERNAL ERROR: 'instance' out of range "
574 instance = edac_dev->instances + inst_nr;
576 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) {
578 "INTERNAL ERROR: instance %d 'block' "
581 instance->nr_blocks);
585 if (instance->nr_blocks > 0) {
586 block = instance->blocks + block_nr;
591 instance->counters.ce_count += count;
596 "CE: %s instance: %s block: %s count: %d '%s'\n",
597 edac_dev->ctl_name, instance->name,
606 struct edac_device_instance *instance;
614 "INTERNAL ERROR: 'instance' out of range "
620 instance = edac_dev->instances + inst_nr;
622 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) {
624 "INTERNAL ERROR: instance %d 'block' "
627 instance->nr_blocks);
631 if (instance->nr_blocks > 0) {
632 block = instance->blocks + block_nr;
637 instance->counters.ue_count += count;
642 "UE: %s instance: %s block: %s count: %d '%s'\n",
643 edac_dev->ctl_name, instance->name,
647 panic("EDAC %s: UE instance: %s block %s count: %d '%s'\n",
648 edac_dev->ctl_name, instance->name,