Home
last modified time | relevance | path

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

/linux/drivers/iio/
H A Dindustrialio-core.c1167 struct iio_dev_attr *iio_attr, *t; in __iio_add_chan_devattr() local
1169 iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL); in __iio_add_chan_devattr()
1170 if (iio_attr == NULL) in __iio_add_chan_devattr()
1172 ret = __iio_device_attr_init(&iio_attr->dev_attr, in __iio_add_chan_devattr()
1177 iio_attr->c = chan; in __iio_add_chan_devattr()
1178 iio_attr->address = mask; in __iio_add_chan_devattr()
1179 iio_attr->buffer = buffer; in __iio_add_chan_devattr()
1182 iio_attr->dev_attr.attr.name) == 0) { in __iio_add_chan_devattr()
1189 list_add(&iio_attr->l, attr_list); in __iio_add_chan_devattr()
1194 __iio_device_attr_deinit(&iio_attr->dev_attr); in __iio_add_chan_devattr()
[all …]
H A Dindustrialio-buffer.c1479 struct iio_dev_attr *iio_attr; in iio_buffer_wrap_attr() local
1481 iio_attr = kzalloc(sizeof(*iio_attr), GFP_KERNEL); in iio_buffer_wrap_attr()
1482 if (!iio_attr) in iio_buffer_wrap_attr()
1485 iio_attr->buffer = buffer; in iio_buffer_wrap_attr()
1486 memcpy(&iio_attr->dev_attr, dattr, sizeof(iio_attr->dev_attr)); in iio_buffer_wrap_attr()
1487 iio_attr->dev_attr.attr.name = kstrdup_const(attr->name, GFP_KERNEL); in iio_buffer_wrap_attr()
1488 if (!iio_attr->dev_attr.attr.name) { in iio_buffer_wrap_attr()
1489 kfree(iio_attr); in iio_buffer_wrap_attr()
1493 sysfs_attr_init(&iio_attr->dev_attr.attr); in iio_buffer_wrap_attr()
1495 list_add(&iio_attr->l, &buffer->buffer_attr_list); in iio_buffer_wrap_attr()
[all …]
/linux/drivers/iio/adc/
H A 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()
H A Dhx711.c386 struct iio_dev_attr *iio_attr = to_iio_dev_attr(attr); in hx711_scale_available_show() local
387 int channel = iio_attr->address; in hx711_scale_available_show()