Lines Matching full:instance

63 	unsigned instance, block, attr;  in edac_device_alloc_ctl_info()  local
112 /* Initialize every Instance */ in edac_device_alloc_ctl_info()
113 for (instance = 0; instance < nr_instances; instance++) { in edac_device_alloc_ctl_info()
114 inst = &dev_inst[instance]; in edac_device_alloc_ctl_info()
117 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info()
120 /* name of this instance */ in edac_device_alloc_ctl_info()
121 snprintf(inst->name, sizeof(inst->name), "%s%u", dev_name, instance); in edac_device_alloc_ctl_info()
123 /* Initialize every block in each instance */ in edac_device_alloc_ctl_info()
126 blk->instance = inst; in edac_device_alloc_ctl_info()
130 edac_dbg(4, "instance=%d inst_p=%p block=#%d block_p=%p name='%s'\n", in edac_device_alloc_ctl_info()
131 instance, inst, block, blk, blk->name); in edac_device_alloc_ctl_info()
173 /* Mark this instance as merely ALLOCATED */ in edac_device_alloc_ctl_info()
347 * initialize a workq item for this edac_device instance
434 /* create this instance's sysfs entries */ in edac_device_add_device()
443 /* This instance is NOW RUNNING */ in edac_device_add_device()
447 * enable workq processing on this instance, in edac_device_add_device()
489 /* mark this instance as OFFLINE */ in edac_device_del_device()
497 /* clear workq processing on this instance */ in edac_device_del_device()
500 /* Tear down the sysfs entries for this instance */ in edac_device_del_device()
532 struct edac_device_instance *instance; in edac_device_handle_ce_count() local
540 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ce_count()
546 instance = edac_dev->instances + inst_nr; in edac_device_handle_ce_count()
548 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce_count()
550 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ce_count()
553 instance->nr_blocks); in edac_device_handle_ce_count()
557 if (instance->nr_blocks > 0) { in edac_device_handle_ce_count()
558 block = instance->blocks + block_nr; in edac_device_handle_ce_count()
563 instance->counters.ce_count += count; in edac_device_handle_ce_count()
568 "CE: %s instance: %s block: %s count: %d '%s'\n", in edac_device_handle_ce_count()
569 edac_dev->ctl_name, instance->name, in edac_device_handle_ce_count()
578 struct edac_device_instance *instance; in edac_device_handle_ue_count() local
586 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ue_count()
592 instance = edac_dev->instances + inst_nr; in edac_device_handle_ue_count()
594 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue_count()
596 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ue_count()
599 instance->nr_blocks); in edac_device_handle_ue_count()
603 if (instance->nr_blocks > 0) { in edac_device_handle_ue_count()
604 block = instance->blocks + block_nr; in edac_device_handle_ue_count()
609 instance->counters.ue_count += count; in edac_device_handle_ue_count()
614 "UE: %s instance: %s block: %s count: %d '%s'\n", in edac_device_handle_ue_count()
615 edac_dev->ctl_name, instance->name, in edac_device_handle_ue_count()
619 panic("EDAC %s: UE instance: %s block %s count: %d '%s'\n", in edac_device_handle_ue_count()
620 edac_dev->ctl_name, instance->name, in edac_device_handle_ue_count()