Home
last modified time | relevance | path

Searched refs:iio_attr (Results 1 – 5 of 5) sorted by relevance

/drivers/iio/
Dindustrialio-buffer.c1426 struct iio_dev_attr *iio_attr; in iio_buffer_wrap_attr() local
1428 iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL); in iio_buffer_wrap_attr()
1429 if (!iio_attr) in iio_buffer_wrap_attr()
1432 iio_attr->buffer = buffer; in iio_buffer_wrap_attr()
1433 memcpy(&iio_attr->dev_attr, dattr, sizeof(iio_attr->dev_attr)); in iio_buffer_wrap_attr()
1434 iio_attr->dev_attr.attr.name = kstrdup_const(attr->name, GFP_KERNEL); in iio_buffer_wrap_attr()
1435 if (!iio_attr->dev_attr.attr.name) { in iio_buffer_wrap_attr()
1436 kfree(iio_attr); in iio_buffer_wrap_attr()
1440 sysfs_attr_init(&iio_attr->dev_attr.attr); in iio_buffer_wrap_attr()
1442 list_add(&iio_attr->l, &buffer->buffer_attr_list); in iio_buffer_wrap_attr()
[all …]
Dindustrialio-core.c1152 struct iio_dev_attr *iio_attr, *t; in __iio_add_chan_devattr() local
1154 iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL); in __iio_add_chan_devattr()
1155 if (iio_attr == NULL) in __iio_add_chan_devattr()
1157 ret = __iio_device_attr_init(&iio_attr->dev_attr, in __iio_add_chan_devattr()
1162 iio_attr->c = chan; in __iio_add_chan_devattr()
1163 iio_attr->address = mask; in __iio_add_chan_devattr()
1164 iio_attr->buffer = buffer; in __iio_add_chan_devattr()
1167 iio_attr->dev_attr.attr.name) == 0) { in __iio_add_chan_devattr()
1174 list_add(&iio_attr->l, attr_list); in __iio_add_chan_devattr()
1179 __iio_device_attr_deinit(&iio_attr->dev_attr); in __iio_add_chan_devattr()
[all …]
/drivers/iio/adc/
Dmax11410.c230 struct iio_dev_attr *iio_attr = to_iio_dev_attr(devattr); in max11410_notch_en_show() local
238 switch (iio_attr->address) { in max11410_notch_en_show()
259 struct iio_dev_attr *iio_attr = to_iio_dev_attr(devattr); in max11410_notch_en_store() local
270 switch (iio_attr->address) { in max11410_notch_en_store()
Dhx711.c390 struct iio_dev_attr *iio_attr = to_iio_dev_attr(attr); in hx711_scale_available_show() local
391 int channel = iio_attr->address; in hx711_scale_available_show()
Dmxs-lradc-adc.c321 struct iio_dev_attr *iio_attr = to_iio_dev_attr(attr); in mxs_lradc_adc_show_scale_avail() local
324 ch = iio_attr->address; in mxs_lradc_adc_show_scale_avail()