Home
last modified time | relevance | path

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

/drivers/iio/
Dbuffer_cb.c29 kfree(cb_buff->buffer.scan_mask); in iio_buffer_cb_release()
66 cb_buff->buffer.scan_mask in iio_channel_get_all_cb()
69 if (cb_buff->buffer.scan_mask == NULL) { in iio_channel_get_all_cb()
80 cb_buff->buffer.scan_mask); in iio_channel_get_all_cb()
87 kfree(cb_buff->buffer.scan_mask); in iio_channel_get_all_cb()
Dindustrialio-buffer.c176 indio_dev->buffer->scan_mask); in iio_scan_el_show()
183 clear_bit(bit, buffer->scan_mask); in iio_scan_mask_clear()
354 if (indio_dev->masklength && buffer->scan_mask == NULL) { in iio_buffer_register()
355 buffer->scan_mask = kcalloc(BITS_TO_LONGS(indio_dev->masklength), in iio_buffer_register()
356 sizeof(*buffer->scan_mask), in iio_buffer_register()
358 if (buffer->scan_mask == NULL) { in iio_buffer_register()
386 kfree(buffer->scan_mask); in iio_buffer_register()
396 kfree(indio_dev->buffer->scan_mask); in iio_buffer_unregister()
549 bytes = iio_compute_scan_bytes(indio_dev, buffer->scan_mask, in iio_buffer_update_bytes_per_datum()
608 bitmap_or(compound_mask, compound_mask, buffer->scan_mask, in __iio_update_buffers()
[all …]
/drivers/iio/adc/
Dxilinx-xadc-core.c759 unsigned long scan_mask; in xadc_postdisable() local
763 scan_mask = 1; /* Run calibration as part of the sequence */ in xadc_postdisable()
765 scan_mask |= BIT(indio_dev->channels[i].scan_index); in xadc_postdisable()
768 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff); in xadc_postdisable()
772 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(1), scan_mask >> 16); in xadc_postdisable()
787 unsigned long scan_mask; in xadc_preenable() local
796 scan_mask = *indio_dev->active_scan_mask; in xadc_preenable()
797 seq_mode = xadc_get_seq_mode(xadc, scan_mask); in xadc_preenable()
799 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff); in xadc_preenable()
803 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(1), scan_mask >> 16); in xadc_preenable()
Dad799x.c223 const unsigned long *scan_mask) in ad799x_update_scan_mode() argument
232 st->transfer_size = bitmap_weight(scan_mask, indio_dev->masklength) * 2; in ad799x_update_scan_mode()
241 st->config |= (*scan_mask << AD799X_CHANNEL_SHIFT); in ad799x_update_scan_mode()
Dad7266.c125 const unsigned long *scan_mask) in ad7266_update_scan_mode() argument
128 unsigned int nr = find_first_bit(scan_mask, indio_dev->masklength); in ad7266_update_scan_mode()
Dti_am335x_adc.c208 for_each_set_bit(bit, buffer->scan_mask, adc_dev->channels) in tiadc_buffer_postenable()
Dat91_adc.c567 for_each_set_bit(bit, buffer->scan_mask, in at91_adc_configure_trigger()
582 for_each_set_bit(bit, buffer->scan_mask, in at91_adc_configure_trigger()
Dmax1363.c1014 const unsigned long *scan_mask) in max1363_update_scan_mode() argument
1022 st->current_mode = max1363_match_mode(scan_mask, st->chip_info); in max1363_update_scan_mode()
/drivers/iio/imu/
Dadis16400_buffer.c17 const unsigned long *scan_mask) in adis16400_update_scan_mode() argument
24 return adis_update_scan_mode(indio_dev, scan_mask); in adis16400_update_scan_mode()
Dadis_buffer.c24 const unsigned long *scan_mask) in adis_update_scan_mode() argument
65 if (!test_bit(chan->scan_index, scan_mask)) in adis_update_scan_mode()
Dadis16400.h204 const unsigned long *scan_mask);
/drivers/iio/light/
Dadjd_s311.c232 const unsigned long *scan_mask) in adjd_s311_update_scan_mode() argument
/drivers/iio/accel/
Dbma180.c662 for_each_set_bit(bit, indio_dev->buffer->scan_mask, in bma180_trigger_handler()
Dkxcjk-1013.c952 for_each_set_bit(bit, indio_dev->buffer->scan_mask, in kxcjk1013_trigger_handler()
Dbmc150-accel.c989 for_each_set_bit(bit, indio_dev->buffer->scan_mask, in bmc150_accel_trigger_handler()
/drivers/iio/gyro/
Dbmg160.c825 for_each_set_bit(bit, indio_dev->buffer->scan_mask, in bmg160_trigger_handler()