Searched refs:trialmask (Results 1 – 1 of 1) sorted by relevance
307 unsigned long *trialmask; in iio_scan_mask_set() local309 trialmask = kmalloc(sizeof(*trialmask)* in iio_scan_mask_set()313 if (trialmask == NULL) in iio_scan_mask_set()319 bitmap_copy(trialmask, buffer->scan_mask, indio_dev->masklength); in iio_scan_mask_set()320 set_bit(bit, trialmask); in iio_scan_mask_set()322 if (!iio_validate_scan_mask(indio_dev, trialmask)) in iio_scan_mask_set()328 trialmask, false); in iio_scan_mask_set()332 bitmap_copy(buffer->scan_mask, trialmask, indio_dev->masklength); in iio_scan_mask_set()334 kfree(trialmask); in iio_scan_mask_set()339 kfree(trialmask); in iio_scan_mask_set()