Searched refs:trialmask (Results 1 – 1 of 1) sorted by relevance
513 unsigned long *trialmask; in iio_scan_mask_set() local520 trialmask = bitmap_alloc(masklength, GFP_KERNEL); in iio_scan_mask_set()521 if (!trialmask) in iio_scan_mask_set()523 bitmap_copy(trialmask, buffer->scan_mask, masklength); in iio_scan_mask_set()524 set_bit(bit, trialmask); in iio_scan_mask_set()526 if (!iio_validate_scan_mask(indio_dev, trialmask)) in iio_scan_mask_set()531 masklength, trialmask, false); in iio_scan_mask_set()535 bitmap_copy(buffer->scan_mask, trialmask, masklength); in iio_scan_mask_set()537 bitmap_free(trialmask); in iio_scan_mask_set()542 bitmap_free(trialmask); in iio_scan_mask_set()