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()
561 struct edac_device_instance *instance; in edac_device_handle_ce() local
566 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ce()
572 instance = edac_dev->instances + inst_nr; in edac_device_handle_ce()
574 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce()
576 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ce()
579 instance->nr_blocks); in edac_device_handle_ce()
583 if (instance->nr_blocks > 0) { in edac_device_handle_ce()
584 block = instance->blocks + block_nr; in edac_device_handle_ce()
589 instance->counters.ce_count++; in edac_device_handle_ce()
594 "CE: %s instance: %s block: %s '%s'\n", in edac_device_handle_ce()
595 edac_dev->ctl_name, instance->name, in edac_device_handle_ce()
603 struct edac_device_instance *instance; in edac_device_handle_ue() local
608 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ue()
614 instance = edac_dev->instances + inst_nr; in edac_device_handle_ue()
616 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue()
618 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ue()
621 instance->nr_blocks); in edac_device_handle_ue()
625 if (instance->nr_blocks > 0) { in edac_device_handle_ue()
626 block = instance->blocks + block_nr; in edac_device_handle_ue()
631 instance->counters.ue_count++; in edac_device_handle_ue()
636 "UE: %s instance: %s block: %s '%s'\n", in edac_device_handle_ue()
637 edac_dev->ctl_name, instance->name, in edac_device_handle_ue()
641 panic("EDAC %s: UE instance: %s block %s '%s'\n", in edac_device_handle_ue()
642 edac_dev->ctl_name, instance->name, in edac_device_handle_ue()