Lines Matching defs:dev_ctl
75 struct edac_device_ctl_info *dev_ctl;
95 dev_ctl = (struct edac_device_ctl_info *)NULL;
100 dev_inst = edac_align_ptr(&dev_ctl[1], sizeof(*dev_inst));
132 dev_ctl = kzalloc(total_size, GFP_KERNEL);
133 if (dev_ctl == NULL)
139 * 'dev_ctl' points to REAL memory, while the others are
144 (((char *)dev_ctl) + ((unsigned long)dev_inst));
146 (((char *)dev_ctl) + ((unsigned long)dev_blk));
148 (((char *)dev_ctl) + ((unsigned long)dev_attrib));
149 pvt = sz_private ? (((char *)dev_ctl) + ((unsigned long)pvt)) : NULL;
152 dev_ctl->dev_idx = device_index;
153 dev_ctl->nr_instances = nr_instances;
154 dev_ctl->instances = dev_inst;
155 dev_ctl->pvt_info = pvt;
158 dev_ctl->log_ce = 1;
159 dev_ctl->log_ue = 1;
162 snprintf(dev_ctl->name,sizeof(dev_ctl->name),"%s",edac_device_name);
165 __func__, dev_ctl, pvt + sz_private );
170 inst->ctl = dev_ctl;
233 dev_ctl->op_state = OP_ALLOC;
238 err = edac_device_register_sysfs_main_kobj(dev_ctl);
240 kfree(dev_ctl);
251 return dev_ctl;