Lines Matching refs:masklength
265 unsigned int masklength, in iio_scan_mask_match() argument
269 if (bitmap_empty(mask, masklength)) in iio_scan_mask_match()
273 if (bitmap_equal(mask, av_masks, masklength)) in iio_scan_mask_match()
276 if (bitmap_subset(mask, av_masks, masklength)) in iio_scan_mask_match()
279 av_masks += BITS_TO_LONGS(masklength); in iio_scan_mask_match()
310 BITS_TO_LONGS(indio_dev->masklength), in iio_scan_mask_set()
315 if (!indio_dev->masklength) { in iio_scan_mask_set()
319 bitmap_copy(trialmask, buffer->scan_mask, indio_dev->masklength); in iio_scan_mask_set()
327 indio_dev->masklength, in iio_scan_mask_set()
332 bitmap_copy(buffer->scan_mask, trialmask, indio_dev->masklength); in iio_scan_mask_set()
534 indio_dev->masklength) { in iio_compute_scan_bytes()
687 compound_mask = kcalloc(BITS_TO_LONGS(indio_dev->masklength), in iio_verify_update()
698 indio_dev->masklength); in iio_verify_update()
704 insert_buffer->scan_mask, indio_dev->masklength); in iio_verify_update()
710 indio_dev->masklength, in iio_verify_update()
1026 int ml = indio_dev->masklength; in iio_buffer_alloc_sysfs_and_mask()
1030 indio_dev->masklength = ml; in iio_buffer_alloc_sysfs_and_mask()
1085 if (indio_dev->masklength && buffer->scan_mask == NULL) { in iio_buffer_alloc_sysfs_and_mask()
1086 buffer->scan_mask = kcalloc(BITS_TO_LONGS(indio_dev->masklength), in iio_buffer_alloc_sysfs_and_mask()
1148 return bitmap_weight(mask, indio_dev->masklength) == 1; in iio_validate_scan_mask_onehot()
1155 if (bit > indio_dev->masklength) in iio_scan_mask_query()
1273 indio_dev->masklength)) in iio_buffer_update_demux()
1279 indio_dev->masklength) { in iio_buffer_update_demux()
1281 indio_dev->masklength, in iio_buffer_update_demux()
1293 indio_dev->masklength, in iio_buffer_update_demux()