Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/iio/
Dindustrialio-event.c505 int ret = 0, attrcount_orig = 0, attrcount, attrn; in iio_device_register_eventset() local
546 attrn = attrcount_orig; in iio_device_register_eventset()
549 ev_int->group.attrs[attrn++] = &p->dev_attr.attr; in iio_device_register_eventset()
Dindustrialio-core.c1547 int i, ret = 0, attrcount, attrn, attrcount_orig = 0; in iio_device_register_sysfs() local
1603 attrn = attrcount_orig; in iio_device_register_sysfs()
1606 iio_dev_opaque->chan_attr_group.attrs[attrn++] = &p->dev_attr.attr; in iio_device_register_sysfs()
1608 iio_dev_opaque->chan_attr_group.attrs[attrn++] = &dev_attr_name.attr; in iio_device_register_sysfs()
1610 iio_dev_opaque->chan_attr_group.attrs[attrn++] = &dev_attr_label.attr; in iio_device_register_sysfs()
1612 iio_dev_opaque->chan_attr_group.attrs[attrn++] = clk; in iio_device_register_sysfs()
Dindustrialio-buffer.c1617 int ret, i, attrn, scan_el_attrcount, buffer_attrcount; in __iio_buffer_alloc_sysfs_and_mask() local
1667 attrn = buffer_attrcount + scan_el_attrcount + ARRAY_SIZE(iio_buffer_attrs); in __iio_buffer_alloc_sysfs_and_mask()
1668 attr = kcalloc(attrn + 1, sizeof(*attr), GFP_KERNEL); in __iio_buffer_alloc_sysfs_and_mask()
1699 attrn = 0; in __iio_buffer_alloc_sysfs_and_mask()
1701 attr[attrn++] = &p->dev_attr.attr; in __iio_buffer_alloc_sysfs_and_mask()