Searched refs:attrn (Results 1 – 3 of 3) sorted by relevance
/drivers/iio/ |
D | industrialio-event.c | 513 int ret = 0, attrcount_orig = 0, attrcount, attrn; in iio_device_register_eventset() local 554 attrn = attrcount_orig; in iio_device_register_eventset() 557 ev_int->group.attrs[attrn++] = &p->dev_attr.attr; in iio_device_register_eventset()
|
D | industrialio-core.c | 1508 int i, ret = 0, attrcount, attrn, attrcount_orig = 0; in iio_device_register_sysfs() local 1566 attrn = attrcount_orig; in iio_device_register_sysfs() 1569 iio_dev_opaque->chan_attr_group.attrs[attrn++] = &p->dev_attr.attr; in iio_device_register_sysfs() 1571 iio_dev_opaque->chan_attr_group.attrs[attrn++] = &dev_attr_name.attr; in iio_device_register_sysfs() 1573 iio_dev_opaque->chan_attr_group.attrs[attrn++] = &dev_attr_label.attr; in iio_device_register_sysfs() 1575 iio_dev_opaque->chan_attr_group.attrs[attrn++] = clk; in iio_device_register_sysfs()
|
D | industrialio-buffer.c | 1613 int ret, i, attrn, scan_el_attrcount, buffer_attrcount; in __iio_buffer_alloc_sysfs_and_mask() local 1664 attrn = buffer_attrcount + scan_el_attrcount; in __iio_buffer_alloc_sysfs_and_mask() 1665 attr = kcalloc(attrn + 1, sizeof(*attr), GFP_KERNEL); in __iio_buffer_alloc_sysfs_and_mask() 1697 attrn = 0; in __iio_buffer_alloc_sysfs_and_mask() 1699 attr[attrn++] = &p->dev_attr.attr; in __iio_buffer_alloc_sysfs_and_mask()
|