Lines Matching refs:instance

82 	unsigned instance, block, attr;  in edac_device_alloc_ctl_info()  local
163 for (instance = 0; instance < nr_instances; instance++) { in edac_device_alloc_ctl_info()
164 inst = &dev_inst[instance]; in edac_device_alloc_ctl_info()
167 blk_p = &dev_blk[instance * nr_blocks]; in edac_device_alloc_ctl_info()
172 "%s%u", edac_device_name, instance); in edac_device_alloc_ctl_info()
177 blk->instance = inst; in edac_device_alloc_ctl_info()
182 instance, inst, block, blk, blk->name); in edac_device_alloc_ctl_info()
624 struct edac_device_instance *instance; in edac_device_handle_ce() local
635 instance = edac_dev->instances + inst_nr; in edac_device_handle_ce()
637 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ce()
642 instance->nr_blocks); in edac_device_handle_ce()
646 if (instance->nr_blocks > 0) { in edac_device_handle_ce()
647 block = instance->blocks + block_nr; in edac_device_handle_ce()
652 instance->counters.ce_count++; in edac_device_handle_ce()
658 edac_dev->ctl_name, instance->name, in edac_device_handle_ce()
670 struct edac_device_instance *instance; in edac_device_handle_ue() local
681 instance = edac_dev->instances + inst_nr; in edac_device_handle_ue()
683 if ((block_nr >= instance->nr_blocks) || (block_nr < 0)) { in edac_device_handle_ue()
688 instance->nr_blocks); in edac_device_handle_ue()
692 if (instance->nr_blocks > 0) { in edac_device_handle_ue()
693 block = instance->blocks + block_nr; in edac_device_handle_ue()
698 instance->counters.ue_count++; in edac_device_handle_ue()
704 edac_dev->ctl_name, instance->name, in edac_device_handle_ue()
709 edac_dev->ctl_name, instance->name, in edac_device_handle_ue()