Lines Matching defs:dca
28 #include <linux/dca.h>
35 int dca_sysfs_add_req(struct dca_provider *dca, struct device *dev, int slot)
40 cd = device_create(dca_class, dca->cd, MKDEV(0, slot + 1), NULL,
47 void dca_sysfs_remove_req(struct dca_provider *dca, int slot)
52 int dca_sysfs_add_provider(struct dca_provider *dca, struct device *dev)
61 err = idr_get_new(&dca_idr, dca, &dca->id);
72 cd = device_create(dca_class, dev, MKDEV(0, 0), NULL, "dca%d", dca->id);
75 idr_remove(&dca_idr, dca->id);
79 dca->cd = cd;
83 void dca_sysfs_remove_provider(struct dca_provider *dca)
85 device_unregister(dca->cd);
86 dca->cd = NULL;
88 idr_remove(&dca_idr, dca->id);
97 dca_class = class_create(THIS_MODULE, "dca");