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
105 /* Initialize every Instance */ in edac_device_alloc_ctl_info()
106 for (instance = 0; instance < nr_instances; instance++) { in edac_device_alloc_ctl_info()
107 inst = &dev_inst[instance]; in edac_device_alloc_ctl_info()
110 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info()
113 /* name of this instance */ in edac_device_alloc_ctl_info()
114 snprintf(inst->name, sizeof(inst->name), "%s%u", dev_name, instance); in edac_device_alloc_ctl_info()
116 /* Initialize every block in each instance */ in edac_device_alloc_ctl_info()
119 blk->instance = inst; in edac_device_alloc_ctl_info()
123 edac_dbg(4, "instance=%d inst_p=%p block=#%d block_p=%p name='%s'\n", in edac_device_alloc_ctl_info()
124 instance, inst, block, blk, blk->name); in edac_device_alloc_ctl_info()
128 /* Mark this instance as merely ALLOCATED */ in edac_device_alloc_ctl_info()
302 * initialize a workq item for this edac_device instance
388 /* create this instance's sysfs entries */ in edac_device_add_device()
397 /* This instance is NOW RUNNING */ in edac_device_add_device()
439 /* mark this instance as OFFLINE */ in edac_device_del_device()
447 /* clear workq processing on this instance */ in edac_device_del_device()
450 /* Tear down the sysfs entries for this instance */ in edac_device_del_device()
482 struct edac_device_instance *instance; in edac_device_handle_ce_count() local
490 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ce_count()
496 instance = edac_dev->instances + inst_nr; in edac_device_handle_ce_count()
498 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce_count()
500 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ce_count()
503 instance->nr_blocks); in edac_device_handle_ce_count()
507 if (instance->nr_blocks > 0) { in edac_device_handle_ce_count()
508 block = instance->blocks + block_nr; in edac_device_handle_ce_count()
513 instance->counters.ce_count += count; in edac_device_handle_ce_count()
518 "CE: %s instance: %s block: %s count: %d '%s'\n", in edac_device_handle_ce_count()
519 edac_dev->ctl_name, instance->name, in edac_device_handle_ce_count()
528 struct edac_device_instance *instance; in edac_device_handle_ue_count() local
536 "INTERNAL ERROR: 'instance' out of range " in edac_device_handle_ue_count()
542 instance = edac_dev->instances + inst_nr; in edac_device_handle_ue_count()
544 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue_count()
546 "INTERNAL ERROR: instance %d 'block' " in edac_device_handle_ue_count()
549 instance->nr_blocks); in edac_device_handle_ue_count()
553 if (instance->nr_blocks > 0) { in edac_device_handle_ue_count()
554 block = instance->blocks + block_nr; in edac_device_handle_ue_count()
559 instance->counters.ue_count += count; in edac_device_handle_ue_count()
564 "UE: %s instance: %s block: %s count: %d '%s'\n", in edac_device_handle_ue_count()
565 edac_dev->ctl_name, instance->name, in edac_device_handle_ue_count()
569 panic("EDAC %s: UE instance: %s block %s count: %d '%s'\n", in edac_device_handle_ue_count()
570 edac_dev->ctl_name, instance->name, in edac_device_handle_ue_count()
672 if (!ras_features->scrub_ops || scrub_cnt != ras_features->instance) { in edac_dev_register()
678 dev_data->instance = scrub_cnt; in edac_dev_register()
682 ras_features->instance); in edac_dev_register()
707 mem_repair_cnt != ras_features->instance) { in edac_dev_register()
713 dev_data->instance = mem_repair_cnt; in edac_dev_register()
717 ras_features->instance); in edac_dev_register()