Lines Matching refs:dev_ctl
76 struct edac_device_ctl_info *dev_ctl; in edac_device_alloc_ctl_info() local
96 dev_ctl = edac_align_ptr(&p, sizeof(*dev_ctl), 1); in edac_device_alloc_ctl_info()
127 dev_ctl = kzalloc(total_size, GFP_KERNEL); in edac_device_alloc_ctl_info()
128 if (dev_ctl == NULL) in edac_device_alloc_ctl_info()
139 (((char *)dev_ctl) + ((unsigned long)dev_inst)); in edac_device_alloc_ctl_info()
141 (((char *)dev_ctl) + ((unsigned long)dev_blk)); in edac_device_alloc_ctl_info()
143 (((char *)dev_ctl) + ((unsigned long)dev_attrib)); in edac_device_alloc_ctl_info()
144 pvt = sz_private ? (((char *)dev_ctl) + ((unsigned long)pvt)) : NULL; in edac_device_alloc_ctl_info()
147 dev_ctl->dev_idx = device_index; in edac_device_alloc_ctl_info()
148 dev_ctl->nr_instances = nr_instances; in edac_device_alloc_ctl_info()
149 dev_ctl->instances = dev_inst; in edac_device_alloc_ctl_info()
150 dev_ctl->pvt_info = pvt; in edac_device_alloc_ctl_info()
153 dev_ctl->log_ce = 1; in edac_device_alloc_ctl_info()
154 dev_ctl->log_ue = 1; in edac_device_alloc_ctl_info()
157 snprintf(dev_ctl->name,sizeof(dev_ctl->name),"%s",edac_device_name); in edac_device_alloc_ctl_info()
160 dev_ctl, pvt + sz_private); in edac_device_alloc_ctl_info()
165 inst->ctl = dev_ctl; in edac_device_alloc_ctl_info()
225 dev_ctl->op_state = OP_ALLOC; in edac_device_alloc_ctl_info()
230 err = edac_device_register_sysfs_main_kobj(dev_ctl); in edac_device_alloc_ctl_info()
232 kfree(dev_ctl); in edac_device_alloc_ctl_info()
243 return dev_ctl; in edac_device_alloc_ctl_info()