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

/linux-4.1.27/drivers/iio/
H A Dbuffer_cb.c29 kfree(cb_buff->buffer.scan_mask); iio_buffer_cb_release()
66 cb_buff->buffer.scan_mask iio_channel_get_all_cb()
69 if (cb_buff->buffer.scan_mask == NULL) { iio_channel_get_all_cb()
80 cb_buff->buffer.scan_mask); iio_channel_get_all_cb()
87 kfree(cb_buff->buffer.scan_mask); iio_channel_get_all_cb()
H A Dindustrialio-buffer.c234 indio_dev->buffer->scan_mask); iio_scan_el_show()
289 bitmap_copy(trialmask, buffer->scan_mask, indio_dev->masklength); iio_scan_mask_set()
302 bitmap_copy(buffer->scan_mask, trialmask, indio_dev->masklength); iio_scan_mask_set()
315 clear_bit(bit, buffer->scan_mask); iio_scan_mask_clear()
572 bytes = iio_compute_scan_bytes(indio_dev, buffer->scan_mask, iio_buffer_update_bytes_per_datum()
631 bitmap_or(compound_mask, compound_mask, buffer->scan_mask, __iio_update_buffers()
947 if (indio_dev->masklength && buffer->scan_mask == NULL) { iio_buffer_alloc_sysfs_and_mask()
948 buffer->scan_mask = kcalloc(BITS_TO_LONGS(indio_dev->masklength), iio_buffer_alloc_sysfs_and_mask()
949 sizeof(*buffer->scan_mask), iio_buffer_alloc_sysfs_and_mask()
951 if (buffer->scan_mask == NULL) { iio_buffer_alloc_sysfs_and_mask()
979 kfree(buffer->scan_mask); iio_buffer_alloc_sysfs_and_mask()
992 kfree(indio_dev->buffer->scan_mask); iio_buffer_free_sysfs_and_mask()
1020 if (!buffer->scan_mask) iio_scan_mask_query()
1024 return !!test_bit(bit, buffer->scan_mask); iio_scan_mask_query()
1134 buffer->scan_mask, iio_buffer_update_demux()
1140 buffer->scan_mask, iio_buffer_update_demux()
/linux-4.1.27/drivers/iio/imu/
H A Dadis16400_buffer.c17 const unsigned long *scan_mask) adis16400_update_scan_mode()
25 return adis_update_scan_mode(indio_dev, scan_mask); adis16400_update_scan_mode()
16 adis16400_update_scan_mode(struct iio_dev *indio_dev, const unsigned long *scan_mask) adis16400_update_scan_mode() argument
H A Dadis_buffer.c24 const unsigned long *scan_mask) adis_update_scan_mode()
65 if (!test_bit(chan->scan_index, scan_mask)) adis_update_scan_mode()
23 adis_update_scan_mode(struct iio_dev *indio_dev, const unsigned long *scan_mask) adis_update_scan_mode() argument
H A Dadis16400.h205 const unsigned long *scan_mask);
/linux-4.1.27/drivers/iio/adc/
H A Dxilinx-xadc-core.c759 unsigned long scan_mask; xadc_postdisable() local
763 scan_mask = 1; /* Run calibration as part of the sequence */ xadc_postdisable()
765 scan_mask |= BIT(indio_dev->channels[i].scan_index); xadc_postdisable()
768 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff); xadc_postdisable()
772 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(1), scan_mask >> 16); xadc_postdisable()
787 unsigned long scan_mask; xadc_preenable() local
796 scan_mask = *indio_dev->active_scan_mask; xadc_preenable()
797 seq_mode = xadc_get_seq_mode(xadc, scan_mask); xadc_preenable()
799 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff); xadc_preenable()
803 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(1), scan_mask >> 16); xadc_preenable()
H A Dad799x.c223 const unsigned long *scan_mask) ad799x_update_scan_mode()
232 st->transfer_size = bitmap_weight(scan_mask, indio_dev->masklength) * 2; ad799x_update_scan_mode()
241 st->config |= (*scan_mask << AD799X_CHANNEL_SHIFT); ad799x_update_scan_mode()
222 ad799x_update_scan_mode(struct iio_dev *indio_dev, const unsigned long *scan_mask) ad799x_update_scan_mode() argument
H A Dad7266.c125 const unsigned long *scan_mask) ad7266_update_scan_mode()
128 unsigned int nr = find_first_bit(scan_mask, indio_dev->masklength); ad7266_update_scan_mode()
124 ad7266_update_scan_mode(struct iio_dev *indio_dev, const unsigned long *scan_mask) ad7266_update_scan_mode() argument
H A Dcc10001_adc.c247 const unsigned long *scan_mask) cc10001_update_scan_mode()
246 cc10001_update_scan_mode(struct iio_dev *indio_dev, const unsigned long *scan_mask) cc10001_update_scan_mode() argument
H A Dmax1363.c1014 const unsigned long *scan_mask) max1363_update_scan_mode()
1022 st->current_mode = max1363_match_mode(scan_mask, st->chip_info); max1363_update_scan_mode()
1013 max1363_update_scan_mode(struct iio_dev *indio_dev, const unsigned long *scan_mask) max1363_update_scan_mode() argument
/linux-4.1.27/include/linux/iio/
H A Dbuffer.h62 * @scan_mask: [INTERN] bitmask used in masking scan mode elements
81 long *scan_mask; member in struct:iio_buffer
H A Diio.h406 const unsigned long *scan_mask);
433 const unsigned long *scan_mask);
/linux-4.1.27/drivers/iio/light/
H A Dadjd_s311.c232 const unsigned long *scan_mask) adjd_s311_update_scan_mode()
231 adjd_s311_update_scan_mode(struct iio_dev *indio_dev, const unsigned long *scan_mask) adjd_s311_update_scan_mode() argument
H A Dgp2ap020a00f.c1406 * Enable triggers according to the scan_mask. Enabling either gp2ap020a00f_buffer_postenable()
/linux-4.1.27/include/linux/iio/imu/
H A Dadis.h243 const unsigned long *scan_mask);
/linux-4.1.27/drivers/iio/proximity/
H A Dsx9500.c426 const unsigned long *scan_mask) sx9500_update_scan_mode()
425 sx9500_update_scan_mode(struct iio_dev *indio_dev, const unsigned long *scan_mask) sx9500_update_scan_mode() argument

Completed in 466 milliseconds