Home
last modified time | relevance | path

Searched refs:attrcount (Results 1 – 3 of 3) sorted by relevance

/linux-3.4.99/drivers/staging/iio/
Dindustrialio-event.c263 int ret = 0, i, attrcount = 0; in iio_device_add_event_sysfs() local
307 attrcount++; in iio_device_add_event_sysfs()
326 attrcount++; in iio_device_add_event_sysfs()
328 ret = attrcount; in iio_device_add_event_sysfs()
346 int j, ret, attrcount = 0; in __iio_add_event_config_attrs() local
355 attrcount += ret; in __iio_add_event_config_attrs()
357 return attrcount; in __iio_add_event_config_attrs()
385 int ret = 0, attrcount_orig = 0, attrcount, attrn; in iio_device_register_eventset() local
405 attrcount = attrcount_orig; in iio_device_register_eventset()
410 attrcount += ret; in iio_device_register_eventset()
[all …]
Dindustrialio-core.c578 int ret, i, attrcount = 0; in iio_device_add_channel_sysfs() local
595 attrcount++; in iio_device_add_channel_sysfs()
612 attrcount++; in iio_device_add_channel_sysfs()
635 attrcount++; in iio_device_add_channel_sysfs()
639 ret = attrcount; in iio_device_add_channel_sysfs()
663 int i, ret = 0, attrcount, attrn, attrcount_orig = 0; in iio_device_register_sysfs() local
673 attrcount = attrcount_orig; in iio_device_register_sysfs()
686 attrcount += ret; in iio_device_register_sysfs()
690 attrcount++; in iio_device_register_sysfs()
692 indio_dev->chan_attr_group.attrs = kcalloc(attrcount + 1, in iio_device_register_sysfs()
Dindustrialio-buffer.c192 int ret, attrcount = 0; in iio_buffer_add_channel_sysfs() local
205 attrcount++; in iio_buffer_add_channel_sysfs()
216 attrcount++; in iio_buffer_add_channel_sysfs()
235 attrcount++; in iio_buffer_add_channel_sysfs()
236 ret = attrcount; in iio_buffer_add_channel_sysfs()
267 int ret, i, attrn, attrcount, attrcount_orig = 0; in iio_buffer_register() local
277 attrcount = attrcount_orig; in iio_buffer_register()
292 attrcount += ret; in iio_buffer_register()
310 buffer->scan_el_group.attrs = kcalloc(attrcount + 1, in iio_buffer_register()