Lines Matching full:instance
37 /* Default workqueue processing interval on this instance, in msecs */
64 unsigned instance, block; in edac_device_alloc_ctl_info() local
104 /* Initialize every Instance */ in edac_device_alloc_ctl_info()
105 for (instance = 0; instance < nr_instances; instance++) { in edac_device_alloc_ctl_info()
106 inst = &dev_inst[instance]; in edac_device_alloc_ctl_info()
109 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info()
112 /* name of this instance */ in edac_device_alloc_ctl_info()
113 snprintf(inst->name, sizeof(inst->name), "%s%u", dev_name, instance); in edac_device_alloc_ctl_info()
115 /* Initialize every block in each instance */ in edac_device_alloc_ctl_info()
118 blk->instance = inst; in edac_device_alloc_ctl_info()
122 edac_dbg(4, "instance=%d inst_p=%p block=#%d block_p=%p name='%s'\n", in edac_device_alloc_ctl_info()
123 instance, inst, block, blk, blk->name); in edac_device_alloc_ctl_info()
127 /* Mark this instance as merely ALLOCATED */ in edac_device_alloc_ctl_info()
301 * initialize a workq item for this edac_device instance
387 /* create this instance's sysfs entries */ in edac_device_add_device()
396 /* This instance is NOW RUNNING */ in edac_device_add_device()
438 /* mark this instance as OFFLINE */ in edac_device_del_device()
446 /* clear workq processing on this instance */ in edac_device_del_device()
449 /* Tear down the sysfs entries for this instance */ in edac_device_del_device()
481 struct edac_device_instance *instance; in edac_device_handle_ce_count() local
489 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ce_count()
495 instance = edac_dev->instances + inst_nr; in edac_device_handle_ce_count()
497 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce_count()
499 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ce_count()
502 instance->nr_blocks); in edac_device_handle_ce_count()
506 if (instance->nr_blocks > 0) { in edac_device_handle_ce_count()
507 block = instance->blocks + block_nr; in edac_device_handle_ce_count()
512 instance->counters.ce_count += count; in edac_device_handle_ce_count()
517 "CE: %s instance: %s block: %s count: %d '%s'\n", in edac_device_handle_ce_count()
518 edac_dev->ctl_name, instance->name, in edac_device_handle_ce_count()
527 struct edac_device_instance *instance; in edac_device_handle_ue_count() local
535 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ue_count()
541 instance = edac_dev->instances + inst_nr; in edac_device_handle_ue_count()
543 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue_count()
545 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ue_count()
548 instance->nr_blocks); in edac_device_handle_ue_count()
552 if (instance->nr_blocks > 0) { in edac_device_handle_ue_count()
553 block = instance->blocks + block_nr; in edac_device_handle_ue_count()
558 instance->counters.ue_count += count; in edac_device_handle_ue_count()
563 "UE: %s instance: %s block: %s count: %d '%s'\n", in edac_device_handle_ue_count()
564 edac_dev->ctl_name, instance->name, in edac_device_handle_ue_count()
568 panic("EDAC %s: UE instance: %s block %s count: %d '%s'\n", in edac_device_handle_ue_count()
569 edac_dev->ctl_name, instance->name, in edac_device_handle_ue_count()