Lines Matching defs:dev_ctl
61 struct edac_device_ctl_info *dev_ctl;
81 dev_ctl = edac_align_ptr(&p, sizeof(*dev_ctl), 1);
112 dev_ctl = kzalloc(total_size, GFP_KERNEL);
113 if (dev_ctl == NULL)
119 * 'dev_ctl' points to REAL memory, while the others are
124 (((char *)dev_ctl) + ((unsigned long)dev_inst));
126 (((char *)dev_ctl) + ((unsigned long)dev_blk));
128 (((char *)dev_ctl) + ((unsigned long)dev_attrib));
129 pvt = sz_private ? (((char *)dev_ctl) + ((unsigned long)pvt)) : NULL;
132 dev_ctl->dev_idx = device_index;
133 dev_ctl->nr_instances = nr_instances;
134 dev_ctl->instances = dev_inst;
135 dev_ctl->pvt_info = pvt;
138 dev_ctl->log_ce = 1;
139 dev_ctl->log_ue = 1;
142 snprintf(dev_ctl->name,sizeof(dev_ctl->name),"%s",edac_device_name);
145 dev_ctl, pvt + sz_private);
150 inst->ctl = dev_ctl;
210 dev_ctl->op_state = OP_ALLOC;
215 err = edac_device_register_sysfs_main_kobj(dev_ctl);
217 kfree(dev_ctl);
228 return dev_ctl;