Lines Matching defs:rc
100 struct raid_component *rc, *next;
103 list_for_each_entry_safe(rc, next, &rd->component_list, node) {
104 list_del(&rc->node);
105 dev_printk(KERN_ERR, rc->dev.parent, "RAID COMPONENT REMOVE\n");
106 device_unregister(&rc->dev);
215 struct raid_component *rc =
217 dev_printk(KERN_ERR, rc->dev.parent, "COMPONENT RELEASE\n");
218 put_device(rc->dev.parent);
219 kfree(rc);
228 struct raid_component *rc;
232 rc = kzalloc(sizeof(*rc), GFP_KERNEL);
233 if (!rc)
236 INIT_LIST_HEAD(&rc->node);
237 device_initialize(&rc->dev);
238 rc->dev.release = raid_component_release;
239 rc->dev.parent = get_device(component_dev);
240 rc->num = rd->component_count++;
242 dev_set_name(&rc->dev, "component-%d", rc->num);
243 list_add_tail(&rc->node, &rd->component_list);
244 rc->dev.class = &raid_class.class;
245 err = device_add(&rc->dev);
252 list_del(&rc->node);
255 kfree(rc);