Lines Matching refs:dev_ctl
58 struct edac_device_ctl_info *dev_ctl; in edac_device_alloc_ctl_info() local
78 dev_ctl = edac_align_ptr(&p, sizeof(*dev_ctl), 1); in edac_device_alloc_ctl_info()
109 dev_ctl = kzalloc(total_size, GFP_KERNEL); in edac_device_alloc_ctl_info()
110 if (dev_ctl == NULL) in edac_device_alloc_ctl_info()
121 (((char *)dev_ctl) + ((unsigned long)dev_inst)); in edac_device_alloc_ctl_info()
123 (((char *)dev_ctl) + ((unsigned long)dev_blk)); in edac_device_alloc_ctl_info()
125 (((char *)dev_ctl) + ((unsigned long)dev_attrib)); in edac_device_alloc_ctl_info()
126 pvt = sz_private ? (((char *)dev_ctl) + ((unsigned long)pvt)) : NULL; in edac_device_alloc_ctl_info()
129 dev_ctl->dev_idx = device_index; in edac_device_alloc_ctl_info()
130 dev_ctl->nr_instances = nr_instances; in edac_device_alloc_ctl_info()
131 dev_ctl->instances = dev_inst; in edac_device_alloc_ctl_info()
132 dev_ctl->pvt_info = pvt; in edac_device_alloc_ctl_info()
135 dev_ctl->log_ce = 1; in edac_device_alloc_ctl_info()
136 dev_ctl->log_ue = 1; in edac_device_alloc_ctl_info()
139 snprintf(dev_ctl->name,sizeof(dev_ctl->name),"%s",edac_device_name); in edac_device_alloc_ctl_info()
142 dev_ctl, pvt + sz_private); in edac_device_alloc_ctl_info()
147 inst->ctl = dev_ctl; in edac_device_alloc_ctl_info()
207 dev_ctl->op_state = OP_ALLOC; in edac_device_alloc_ctl_info()
212 err = edac_device_register_sysfs_main_kobj(dev_ctl); in edac_device_alloc_ctl_info()
214 kfree(dev_ctl); in edac_device_alloc_ctl_info()
225 return dev_ctl; in edac_device_alloc_ctl_info()