Searched refs:scan_mask (Results 1 – 16 of 16) sorted by relevance
/drivers/iio/ |
D | buffer_cb.c | 29 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()
|
D | industrialio-buffer.c | 176 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/ |
D | xilinx-xadc-core.c | 759 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()
|
D | ad799x.c | 223 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()
|
D | ad7266.c | 125 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()
|
D | ti_am335x_adc.c | 208 for_each_set_bit(bit, buffer->scan_mask, adc_dev->channels) in tiadc_buffer_postenable()
|
D | at91_adc.c | 567 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()
|
D | max1363.c | 1014 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/ |
D | adis16400_buffer.c | 17 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()
|
D | adis_buffer.c | 24 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()
|
D | adis16400.h | 204 const unsigned long *scan_mask);
|
/drivers/iio/light/ |
D | adjd_s311.c | 232 const unsigned long *scan_mask) in adjd_s311_update_scan_mode() argument
|
/drivers/iio/accel/ |
D | bma180.c | 662 for_each_set_bit(bit, indio_dev->buffer->scan_mask, in bma180_trigger_handler()
|
D | kxcjk-1013.c | 952 for_each_set_bit(bit, indio_dev->buffer->scan_mask, in kxcjk1013_trigger_handler()
|
D | bmc150-accel.c | 989 for_each_set_bit(bit, indio_dev->buffer->scan_mask, in bmc150_accel_trigger_handler()
|
/drivers/iio/gyro/ |
D | bmg160.c | 825 for_each_set_bit(bit, indio_dev->buffer->scan_mask, in bmg160_trigger_handler()
|