Lines Matching full:dt
68 void iio_unregister_sw_device_type(struct iio_sw_device_type *dt) in iio_unregister_sw_device_type() argument
73 iter = __iio_find_sw_device_type(dt->name, strlen(dt->name)); in iio_unregister_sw_device_type()
75 list_del(&dt->list); in iio_unregister_sw_device_type()
78 configfs_unregister_default_group(dt->group); in iio_unregister_sw_device_type()
85 struct iio_sw_device_type *dt; in iio_get_sw_device_type() local
88 dt = __iio_find_sw_device_type(name, strlen(name)); in iio_get_sw_device_type()
89 if (dt && !try_module_get(dt->owner)) in iio_get_sw_device_type()
90 dt = NULL; in iio_get_sw_device_type()
93 return dt; in iio_get_sw_device_type()
99 struct iio_sw_device_type *dt; in iio_sw_device_create() local
101 dt = iio_get_sw_device_type(type); in iio_sw_device_create()
102 if (!dt) { in iio_sw_device_create()
106 d = dt->ops->probe(name); in iio_sw_device_create()
110 d->device_type = dt; in iio_sw_device_create()
114 module_put(dt->owner); in iio_sw_device_create()
121 struct iio_sw_device_type *dt = d->device_type; in iio_sw_device_destroy() local
123 dt->ops->remove(d); in iio_sw_device_destroy()
124 module_put(dt->owner); in iio_sw_device_destroy()