Lines Matching refs:dev_ctl
76 struct edac_device_ctl_info *dev_ctl;
96 dev_ctl = (struct edac_device_ctl_info *)NULL;
101 dev_inst = edac_align_ptr(&dev_ctl[1], sizeof(*dev_inst));
133 dev_ctl = kzalloc(total_size, GFP_KERNEL);
134 if (dev_ctl == NULL)
140 * 'dev_ctl' points to REAL memory, while the others are
145 (((char *)dev_ctl) + ((unsigned long)dev_inst));
147 (((char *)dev_ctl) + ((unsigned long)dev_blk));
149 (((char *)dev_ctl) + ((unsigned long)dev_attrib));
150 pvt = sz_private ? (((char *)dev_ctl) + ((unsigned long)pvt)) : NULL;
153 dev_ctl->dev_idx = device_index;
154 dev_ctl->nr_instances = nr_instances;
155 dev_ctl->instances = dev_inst;
156 dev_ctl->pvt_info = pvt;
159 dev_ctl->log_ce = 1;
160 dev_ctl->log_ue = 1;
163 snprintf(dev_ctl->name,sizeof(dev_ctl->name),"%s",edac_device_name);
166 __func__, dev_ctl, pvt + sz_private );
171 inst->ctl = dev_ctl;
234 dev_ctl->op_state = OP_ALLOC;
239 err = edac_device_register_sysfs_main_kobj(dev_ctl);
241 kfree(dev_ctl);
252 return dev_ctl;