Lines Matching defs:instance
37 /* Default workqueue processing interval on this instance, in msecs */
66 unsigned instance, block, attr;
116 for (instance = 0; instance < nr_instances; instance++) {
117 inst = &dev_inst[instance];
120 blk_p = &dev_blk[instance * nr_blocks];
123 /* name of this instance */
124 snprintf(inst->name, sizeof(inst->name), "%s%u", dev_name, instance);
126 /* Initialize every block in each instance */
129 blk->instance = inst;
133 edac_dbg(4, "instance=%d inst_p=%p block=#%d block_p=%p name='%s'\n",
134 instance, inst, block, blk, blk->name);
176 /* Mark this instance as merely ALLOCATED */
350 * initialize a workq item for this edac_device instance
436 /* create this instance's sysfs entries */
445 /* This instance is NOW RUNNING */
487 /* mark this instance as OFFLINE */
495 /* clear workq processing on this instance */
498 /* Tear down the sysfs entries for this instance */
530 struct edac_device_instance *instance;
538 "INTERNAL ERROR: 'instance' out of range "
544 instance = edac_dev->instances + inst_nr;
546 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) {
548 "INTERNAL ERROR: instance %d 'block' "
551 instance->nr_blocks);
555 if (instance->nr_blocks > 0) {
556 block = instance->blocks + block_nr;
561 instance->counters.ce_count += count;
566 "CE: %s instance: %s block: %s count: %d '%s'\n",
567 edac_dev->ctl_name, instance->name,
576 struct edac_device_instance *instance;
584 "INTERNAL ERROR: 'instance' out of range "
590 instance = edac_dev->instances + inst_nr;
592 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) {
594 "INTERNAL ERROR: instance %d 'block' "
597 instance->nr_blocks);
601 if (instance->nr_blocks > 0) {
602 block = instance->blocks + block_nr;
607 instance->counters.ue_count += count;
612 "UE: %s instance: %s block: %s count: %d '%s'\n",
613 edac_dev->ctl_name, instance->name,
617 panic("EDAC %s: UE instance: %s block %s count: %d '%s'\n",
618 edac_dev->ctl_name, instance->name,