Lines Matching defs:dca
12 #include <linux/dca.h>
20 int dca_sysfs_add_req(struct dca_provider *dca, struct device *dev, int slot)
25 cd = device_create(dca_class, dca->cd, MKDEV(0, slot + 1), NULL,
30 void dca_sysfs_remove_req(struct dca_provider *dca, int slot)
35 int dca_sysfs_add_provider(struct dca_provider *dca, struct device *dev)
43 ret = idr_alloc(&dca_idr, dca, 0, 0, GFP_NOWAIT);
45 dca->id = ret;
52 cd = device_create(dca_class, dev, MKDEV(0, 0), NULL, "dca%d", dca->id);
55 idr_remove(&dca_idr, dca->id);
59 dca->cd = cd;
63 void dca_sysfs_remove_provider(struct dca_provider *dca)
65 device_unregister(dca->cd);
66 dca->cd = NULL;
68 idr_remove(&dca_idr, dca->id);
77 dca_class = class_create("dca");