Lines Matching full:instance
62 * Each instance represents a major component
63 * Example: L1 cache and L2 cache are 2 instance components
65 * Within each instance is an array of 'nr_blocks' blockoffsets
81 unsigned instance, block, attr; in edac_device_alloc_ctl_info() local
90 * (instance,block,attrib) from the start of an allocated structure. in edac_device_alloc_ctl_info()
91 * We want the alignment of each item (instance,block,attrib) in edac_device_alloc_ctl_info()
98 * which will become the start of the 'instance' array in edac_device_alloc_ctl_info()
102 /* Calc the 'end' offset past the instance array within the ctl_info in edac_device_alloc_ctl_info()
167 /* Initialize every Instance */ in edac_device_alloc_ctl_info()
168 for (instance = 0; instance < nr_instances; instance++) { in edac_device_alloc_ctl_info()
169 inst = &dev_inst[instance]; in edac_device_alloc_ctl_info()
172 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info()
175 /* name of this instance */ in edac_device_alloc_ctl_info()
177 "%s%u", edac_device_name, instance); in edac_device_alloc_ctl_info()
179 /* Initialize every block in each instance */ in edac_device_alloc_ctl_info()
182 blk->instance = inst; in edac_device_alloc_ctl_info()
186 debugf4("%s() instance=%d inst_p=%p block=#%d " in edac_device_alloc_ctl_info()
188 __func__, instance, inst, block, in edac_device_alloc_ctl_info()
232 /* Mark this instance as merely ALLOCATED */ in edac_device_alloc_ctl_info()
410 * initialize a workq item for this edac_device instance
450 /* workq instance might be running, wait for it */ in edac_device_workq_teardown()
518 /* create this instance's sysfs entries */ in edac_device_add_device()
527 /* This instance is NOW RUNNING */ in edac_device_add_device()
531 * enable workq processing on this instance, in edac_device_add_device()
589 /* mark this instance as OFFLINE */ in edac_device_del_device()
597 /* clear workq processing on this instance */ in edac_device_del_device()
600 /* Tear down the sysfs entries for this instance */ in edac_device_del_device()
635 struct edac_device_instance *instance; in edac_device_handle_ce() local
640 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ce()
646 instance = edac_dev->instances + inst_nr; in edac_device_handle_ce()
648 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce()
650 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ce()
653 instance->nr_blocks); in edac_device_handle_ce()
657 if (instance->nr_blocks > 0) { in edac_device_handle_ce()
658 block = instance->blocks + block_nr; in edac_device_handle_ce()
663 instance->counters.ce_count++; in edac_device_handle_ce()
668 "CE: %s instance: %s block: %s '%s'\n", in edac_device_handle_ce()
669 edac_dev->ctl_name, instance->name, in edac_device_handle_ce()
681 struct edac_device_instance *instance; in edac_device_handle_ue() local
686 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ue()
692 instance = edac_dev->instances + inst_nr; in edac_device_handle_ue()
694 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue()
696 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ue()
699 instance->nr_blocks); in edac_device_handle_ue()
703 if (instance->nr_blocks > 0) { in edac_device_handle_ue()
704 block = instance->blocks + block_nr; in edac_device_handle_ue()
709 instance->counters.ue_count++; in edac_device_handle_ue()
714 "UE: %s instance: %s block: %s '%s'\n", in edac_device_handle_ue()
715 edac_dev->ctl_name, instance->name, in edac_device_handle_ue()
719 panic("EDAC %s: UE instance: %s block %s '%s'\n", in edac_device_handle_ue()
720 edac_dev->ctl_name, instance->name, in edac_device_handle_ue()