Searched refs:attr_count (Results 1 – 3 of 3) sorted by relevance
362 int attr_count = 0; in magn_3d_parse_report() local377 attr_count++; in magn_3d_parse_report()380 if (attr_count <= 0) { in magn_3d_parse_report()387 attr_count); in magn_3d_parse_report()395 _channels = devm_kcalloc(&pdev->dev, attr_count, in magn_3d_parse_report()404 st->iio_vals = devm_kcalloc(&pdev->dev, attr_count, in magn_3d_parse_report()414 i < MAGN_3D_CHANNEL_MAX && *chan_count < attr_count; in magn_3d_parse_report()
24 const u_int16_t attr_count; /* number of nlattr's */ member
974 int cnt, rc, attr_count; in mspro_block_read_attributes() local1012 attr_count = MSPRO_BLOCK_MAX_ATTRIBUTES; in mspro_block_read_attributes()1014 attr_count = attr->count; in mspro_block_read_attributes()1016 msb->attr_group.attrs = kcalloc(attr_count + 1, in mspro_block_read_attributes()1031 for (cnt = 0; cnt < attr_count; ++cnt) { in mspro_block_read_attributes()