Lines Matching refs:dev_ctl
62 struct edac_device_ctl_info *dev_ctl; in edac_device_alloc_ctl_info() local
69 dev_ctl = kzalloc(sizeof(struct edac_device_ctl_info), GFP_KERNEL); in edac_device_alloc_ctl_info()
70 if (!dev_ctl) in edac_device_alloc_ctl_info()
77 dev_ctl->instances = dev_inst; in edac_device_alloc_ctl_info()
83 dev_ctl->blocks = dev_blk; in edac_device_alloc_ctl_info()
91 dev_ctl->attribs = dev_attrib; in edac_device_alloc_ctl_info()
99 dev_ctl->pvt_info = pvt; in edac_device_alloc_ctl_info()
102 dev_ctl->dev_idx = device_index; in edac_device_alloc_ctl_info()
103 dev_ctl->nr_instances = nr_instances; in edac_device_alloc_ctl_info()
106 dev_ctl->log_ce = 1; in edac_device_alloc_ctl_info()
107 dev_ctl->log_ue = 1; in edac_device_alloc_ctl_info()
110 snprintf(dev_ctl->name, sizeof(dev_ctl->name),"%s", dev_name); in edac_device_alloc_ctl_info()
115 inst->ctl = dev_ctl; in edac_device_alloc_ctl_info()
174 dev_ctl->op_state = OP_ALLOC; in edac_device_alloc_ctl_info()
179 err = edac_device_register_sysfs_main_kobj(dev_ctl); in edac_device_alloc_ctl_info()
190 return dev_ctl; in edac_device_alloc_ctl_info()
193 __edac_device_free_ctl_info(dev_ctl); in edac_device_alloc_ctl_info()