Lines Matching full:instance
64 unsigned instance, block, attr; in edac_device_alloc_ctl_info() local
72 * (instance,block,attrib) from the start of an allocated structure. in edac_device_alloc_ctl_info()
73 * We want the alignment of each item (instance,block,attrib) in edac_device_alloc_ctl_info()
81 * which will become the start of the 'instance' array in edac_device_alloc_ctl_info()
85 /* Calc the 'end' offset past the instance array within the ctl_info in edac_device_alloc_ctl_info()
144 /* Initialize every Instance */ in edac_device_alloc_ctl_info()
145 for (instance = 0; instance < nr_instances; instance++) { in edac_device_alloc_ctl_info()
146 inst = &dev_inst[instance]; in edac_device_alloc_ctl_info()
149 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info()
152 /* name of this instance */ in edac_device_alloc_ctl_info()
154 "%s%u", edac_device_name, instance); in edac_device_alloc_ctl_info()
156 /* Initialize every block in each instance */ in edac_device_alloc_ctl_info()
159 blk->instance = inst; in edac_device_alloc_ctl_info()
163 edac_dbg(4, "instance=%d inst_p=%p block=#%d block_p=%p name='%s'\n", in edac_device_alloc_ctl_info()
164 instance, inst, block, blk, blk->name); in edac_device_alloc_ctl_info()
206 /* Mark this instance as merely ALLOCATED */ in edac_device_alloc_ctl_info()
377 * initialize a workq item for this edac_device instance
464 /* create this instance's sysfs entries */ in edac_device_add_device()
473 /* This instance is NOW RUNNING */ in edac_device_add_device()
477 * enable workq processing on this instance, in edac_device_add_device()
519 /* mark this instance as OFFLINE */ in edac_device_del_device()
527 /* clear workq processing on this instance */ in edac_device_del_device()
530 /* Tear down the sysfs entries for this instance */ in edac_device_del_device()
562 struct edac_device_instance *instance; in edac_device_handle_ce_count() local
570 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ce_count()
576 instance = edac_dev->instances + inst_nr; in edac_device_handle_ce_count()
578 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce_count()
580 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ce_count()
583 instance->nr_blocks); in edac_device_handle_ce_count()
587 if (instance->nr_blocks > 0) { in edac_device_handle_ce_count()
588 block = instance->blocks + block_nr; in edac_device_handle_ce_count()
593 instance->counters.ce_count += count; in edac_device_handle_ce_count()
598 "CE: %s instance: %s block: %s count: %d '%s'\n", in edac_device_handle_ce_count()
599 edac_dev->ctl_name, instance->name, in edac_device_handle_ce_count()
608 struct edac_device_instance *instance; in edac_device_handle_ue_count() local
616 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ue_count()
622 instance = edac_dev->instances + inst_nr; in edac_device_handle_ue_count()
624 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue_count()
626 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ue_count()
629 instance->nr_blocks); in edac_device_handle_ue_count()
633 if (instance->nr_blocks > 0) { in edac_device_handle_ue_count()
634 block = instance->blocks + block_nr; in edac_device_handle_ue_count()
639 instance->counters.ue_count += count; in edac_device_handle_ue_count()
644 "UE: %s instance: %s block: %s count: %d '%s'\n", in edac_device_handle_ue_count()
645 edac_dev->ctl_name, instance->name, in edac_device_handle_ue_count()
649 panic("EDAC %s: UE instance: %s block %s count: %d '%s'\n", in edac_device_handle_ue_count()
650 edac_dev->ctl_name, instance->name, in edac_device_handle_ue_count()