Home
last modified time | relevance | path

Searched refs:trialmask (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/iio/
Dindustrialio-buffer.c449 unsigned long *trialmask; in iio_scan_mask_set() local
456 trialmask = bitmap_alloc(indio_dev->masklength, GFP_KERNEL); in iio_scan_mask_set()
457 if (!trialmask) in iio_scan_mask_set()
459 bitmap_copy(trialmask, buffer->scan_mask, indio_dev->masklength); in iio_scan_mask_set()
460 set_bit(bit, trialmask); in iio_scan_mask_set()
462 if (!iio_validate_scan_mask(indio_dev, trialmask)) in iio_scan_mask_set()
468 trialmask, false); in iio_scan_mask_set()
472 bitmap_copy(buffer->scan_mask, trialmask, indio_dev->masklength); in iio_scan_mask_set()
474 bitmap_free(trialmask); in iio_scan_mask_set()
479 bitmap_free(trialmask); in iio_scan_mask_set()