Searched refs:trialmask (Results 1 – 1 of 1) sorted by relevance
321 unsigned long *trialmask; in iio_scan_mask_set() local323 trialmask = kcalloc(BITS_TO_LONGS(indio_dev->masklength), in iio_scan_mask_set()324 sizeof(*trialmask), GFP_KERNEL); in iio_scan_mask_set()325 if (trialmask == NULL) in iio_scan_mask_set()331 bitmap_copy(trialmask, buffer->scan_mask, indio_dev->masklength); in iio_scan_mask_set()332 set_bit(bit, trialmask); in iio_scan_mask_set()334 if (!iio_validate_scan_mask(indio_dev, trialmask)) in iio_scan_mask_set()340 trialmask, false); in iio_scan_mask_set()344 bitmap_copy(buffer->scan_mask, trialmask, indio_dev->masklength); in iio_scan_mask_set()346 kfree(trialmask); in iio_scan_mask_set()[all …]