Lines Matching refs:instance

317 static ssize_t instance_ue_count_show(struct edac_device_instance *instance,  in instance_ue_count_show()  argument
320 return sprintf(data, "%u\n", instance->counters.ue_count); in instance_ue_count_show()
323 static ssize_t instance_ce_count_show(struct edac_device_instance *instance, in instance_ce_count_show() argument
326 return sprintf(data, "%u\n", instance->counters.ce_count); in instance_ce_count_show()
335 struct edac_device_instance *instance; in edac_device_ctrl_instance_release() local
342 instance = to_instance(kobj); in edac_device_ctrl_instance_release()
343 kobject_put(&instance->ctl->kobj); in edac_device_ctrl_instance_release()
357 struct edac_device_instance *instance = to_instance(kobj); in edac_dev_instance_show() local
361 return instance_attr->show(instance, buffer); in edac_dev_instance_show()
370 struct edac_device_instance *instance = to_instance(kobj); in edac_dev_instance_store() local
374 return instance_attr->store(instance, buffer, count); in edac_dev_instance_store()
451 kobject_put(&block->instance->ctl->kobj); in edac_device_ctrl_block_release()
517 struct edac_device_instance *instance, in edac_device_create_block() argument
526 instance->name, instance, block->name, block); in edac_device_create_block()
544 &instance->kobj, in edac_device_create_block()
622 struct edac_device_instance *instance; in edac_device_create_instance() local
625 instance = &edac_dev->instances[idx]; in edac_device_create_instance()
628 memset(&instance->kobj, 0, sizeof(struct kobject)); in edac_device_create_instance()
630 instance->ctl = edac_dev; in edac_device_create_instance()
642 err = kobject_init_and_add(&instance->kobj, &ktype_instance_ctrl, in edac_device_create_instance()
643 &edac_dev->kobj, "%s", instance->name); in edac_device_create_instance()
646 instance->name); in edac_device_create_instance()
652 instance->nr_blocks, idx); in edac_device_create_instance()
655 for (i = 0; i < instance->nr_blocks; i++) { in edac_device_create_instance()
656 err = edac_device_create_block(edac_dev, instance, in edac_device_create_instance()
657 &instance->blocks[i]); in edac_device_create_instance()
662 &instance->blocks[j]); in edac_device_create_instance()
666 kobject_uevent(&instance->kobj, KOBJ_ADD); in edac_device_create_instance()
669 idx, instance->name); in edac_device_create_instance()
675 kobject_put(&instance->kobj); in edac_device_create_instance()
688 struct edac_device_instance *instance; in edac_device_delete_instance() local
691 instance = &edac_dev->instances[idx]; in edac_device_delete_instance()
694 for (i = 0; i < instance->nr_blocks; i++) in edac_device_delete_instance()
695 edac_device_delete_block(edac_dev, &instance->blocks[i]); in edac_device_delete_instance()
700 kobject_put(&instance->kobj); in edac_device_delete_instance()