Lines Matching refs:d

35 	struct iio_sw_device_type *d = NULL, *iter;  in __iio_find_sw_device_type()  local
39 d = iter; in __iio_find_sw_device_type()
43 return d; in __iio_find_sw_device_type()
46 int iio_register_sw_device_type(struct iio_sw_device_type *d) in iio_register_sw_device_type() argument
52 iter = __iio_find_sw_device_type(d->name, strlen(d->name)); in iio_register_sw_device_type()
56 list_add_tail(&d->list, &iio_device_types_list); in iio_register_sw_device_type()
62 d->group = configfs_register_default_group(iio_devices_group, d->name, in iio_register_sw_device_type()
64 if (IS_ERR(d->group)) in iio_register_sw_device_type()
65 ret = PTR_ERR(d->group); in iio_register_sw_device_type()
101 struct iio_sw_device *d; in iio_sw_device_create() local
109 d = dt->ops->probe(name); in iio_sw_device_create()
110 if (IS_ERR(d)) in iio_sw_device_create()
113 d->device_type = dt; in iio_sw_device_create()
115 return d; in iio_sw_device_create()
118 return d; in iio_sw_device_create()
122 void iio_sw_device_destroy(struct iio_sw_device *d) in iio_sw_device_destroy() argument
124 struct iio_sw_device_type *dt = d->device_type; in iio_sw_device_destroy()
126 dt->ops->remove(d); in iio_sw_device_destroy()
134 struct iio_sw_device *d; in device_make_group() local
136 d = iio_sw_device_create(group->cg_item.ci_name, name); in device_make_group()
137 if (IS_ERR(d)) in device_make_group()
138 return ERR_CAST(d); in device_make_group()
140 config_item_set_name(&d->group.cg_item, "%s", name); in device_make_group()
142 return &d->group; in device_make_group()
148 struct iio_sw_device *d = to_iio_sw_device(item); in device_drop_group() local
150 iio_sw_device_destroy(d); in device_drop_group()