Lines Matching refs:nr_instances
57 edac_device_alloc_ctl_info(unsigned pvt_sz, char *dev_name, unsigned nr_instances, in edac_device_alloc_ctl_info() argument
70 edac_dbg(4, "instances=%d blocks=%d\n", nr_instances, nr_blocks); in edac_device_alloc_ctl_info()
76 dev_inst = kcalloc(nr_instances, sizeof(struct edac_device_instance), GFP_KERNEL); in edac_device_alloc_ctl_info()
82 dev_blk = kcalloc(nr_instances * nr_blocks, sizeof(struct edac_device_block), GFP_KERNEL); in edac_device_alloc_ctl_info()
106 dev_ctl->nr_instances = nr_instances; in edac_device_alloc_ctl_info()
116 for (instance = 0; instance < nr_instances; instance++) { in edac_device_alloc_ctl_info()
144 attrib_p = &dev_attrib[block*nr_instances*nr_attrib]; in edac_device_alloc_ctl_info()
536 if ((inst_nr >= edac_dev->nr_instances) || (inst_nr < 0)) { in edac_device_handle_ce_count()
540 edac_dev->nr_instances); in edac_device_handle_ce_count()
582 if ((inst_nr >= edac_dev->nr_instances) || (inst_nr < 0)) { in edac_device_handle_ue_count()
586 edac_dev->nr_instances); in edac_device_handle_ue_count()