Searched refs:trialmask (Results 1 – 1 of 1) sorted by relevance
321 unsigned long *trialmask; in iio_scan_mask_set() local323 trialmask = kmalloc_array(BITS_TO_LONGS(indio_dev->masklength), in iio_scan_mask_set()324 sizeof(*trialmask), in iio_scan_mask_set()326 if (trialmask == NULL) in iio_scan_mask_set()332 bitmap_copy(trialmask, buffer->scan_mask, indio_dev->masklength); in iio_scan_mask_set()333 set_bit(bit, trialmask); in iio_scan_mask_set()335 if (!iio_validate_scan_mask(indio_dev, trialmask)) in iio_scan_mask_set()341 trialmask, false); in iio_scan_mask_set()345 bitmap_copy(buffer->scan_mask, trialmask, indio_dev->masklength); in iio_scan_mask_set()347 kfree(trialmask); in iio_scan_mask_set()[all …]