Lines Matching refs:dca
36 int dca_sysfs_add_req(struct dca_provider *dca, struct device *dev, int slot) in dca_sysfs_add_req() argument
41 cd = device_create(dca_class, dca->cd, MKDEV(0, slot + 1), NULL, in dca_sysfs_add_req()
48 void dca_sysfs_remove_req(struct dca_provider *dca, int slot) in dca_sysfs_remove_req() argument
53 int dca_sysfs_add_provider(struct dca_provider *dca, struct device *dev) in dca_sysfs_add_provider() argument
61 ret = idr_alloc(&dca_idr, dca, 0, 0, GFP_NOWAIT); in dca_sysfs_add_provider()
63 dca->id = ret; in dca_sysfs_add_provider()
70 cd = device_create(dca_class, dev, MKDEV(0, 0), NULL, "dca%d", dca->id); in dca_sysfs_add_provider()
73 idr_remove(&dca_idr, dca->id); in dca_sysfs_add_provider()
77 dca->cd = cd; in dca_sysfs_add_provider()
81 void dca_sysfs_remove_provider(struct dca_provider *dca) in dca_sysfs_remove_provider() argument
83 device_unregister(dca->cd); in dca_sysfs_remove_provider()
84 dca->cd = NULL; in dca_sysfs_remove_provider()
86 idr_remove(&dca_idr, dca->id); in dca_sysfs_remove_provider()