Home
last modified time | relevance | path

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

12

/Linux-v5.10/drivers/iio/
Dindustrialio-buffer.c273 buffer->scan_mask); in iio_scan_el_show()
331 bitmap_copy(trialmask, buffer->scan_mask, indio_dev->masklength); in iio_scan_mask_set()
344 bitmap_copy(buffer->scan_mask, trialmask, indio_dev->masklength); in iio_scan_mask_set()
357 clear_bit(bit, buffer->scan_mask); in iio_scan_mask_clear()
367 if (!buffer->scan_mask) in iio_scan_mask_query()
371 return !!test_bit(bit, buffer->scan_mask); in iio_scan_mask_query()
650 bytes = iio_compute_scan_bytes(indio_dev, buffer->scan_mask, in iio_buffer_update_bytes_per_datum()
686 const unsigned long *scan_mask; member
697 const unsigned long *scan_mask; in iio_verify_update() local
704 bitmap_empty(insert_buffer->scan_mask, indio_dev->masklength)) { in iio_verify_update()
[all …]
/Linux-v5.10/drivers/iio/buffer/
Dindustrialio-buffer-cb.c37 bitmap_free(cb_buff->buffer.scan_mask); in iio_buffer_cb_release()
75 cb_buff->buffer.scan_mask = bitmap_zalloc(cb_buff->indio_dev->masklength, in iio_channel_get_all_cb()
77 if (cb_buff->buffer.scan_mask == NULL) { in iio_channel_get_all_cb()
88 cb_buff->buffer.scan_mask); in iio_channel_get_all_cb()
95 bitmap_free(cb_buff->buffer.scan_mask); in iio_channel_get_all_cb()
Dindustrialio-hw-consumer.c31 long scan_mask[]; member
69 buf->buffer.scan_mask = buf->scan_mask; in iio_hw_consumer_get_buffer()
109 set_bit(chan->channel->scan_index, buf->buffer.scan_mask); in iio_hw_consumer_alloc()
/Linux-v5.10/include/linux/iio/common/
Dcros_ec_sensors_core.h83 unsigned long scan_mask, s16 *data);
89 int cros_ec_sensors_read_lpc(struct iio_dev *indio_dev, unsigned long scan_mask,
92 int cros_ec_sensors_read_cmd(struct iio_dev *indio_dev, unsigned long scan_mask,
/Linux-v5.10/drivers/iio/imu/
Dadis_buffer.c23 const unsigned long *scan_mask) in adis_update_scan_mode_burst() argument
66 const unsigned long *scan_mask) in adis_update_scan_mode() argument
78 return adis_update_scan_mode_burst(indio_dev, scan_mask); in adis_update_scan_mode()
114 if (!test_bit(chan->scan_index, scan_mask)) in adis_update_scan_mode()
/Linux-v5.10/drivers/iio/adc/
Dxilinx-xadc-core.c767 unsigned long scan_mask; in xadc_postdisable() local
771 scan_mask = 1; /* Run calibration as part of the sequence */ in xadc_postdisable()
773 scan_mask |= BIT(indio_dev->channels[i].scan_index); in xadc_postdisable()
776 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff); in xadc_postdisable()
780 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(1), scan_mask >> 16); in xadc_postdisable()
795 unsigned long scan_mask; in xadc_preenable() local
804 scan_mask = *indio_dev->active_scan_mask; in xadc_preenable()
805 seq_mode = xadc_get_seq_mode(xadc, scan_mask); in xadc_preenable()
807 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff); in xadc_preenable()
819 scan_mask = ((scan_mask >> 8) | scan_mask) & 0xff0000; in xadc_preenable()
[all …]
Dadi-axi-adc.c154 const unsigned long *scan_mask) in adi_axi_adc_update_scan_mode() argument
163 if (test_bit(i, scan_mask)) in adi_axi_adc_update_scan_mode()
Dad799x.c234 const unsigned long *scan_mask) in ad799x_update_scan_mode() argument
243 st->transfer_size = bitmap_weight(scan_mask, indio_dev->masklength) * 2; in ad799x_update_scan_mode()
252 st->config |= (*scan_mask << AD799X_CHANNEL_SHIFT); in ad799x_update_scan_mode()
Dad7266.c122 const unsigned long *scan_mask) in ad7266_update_scan_mode() argument
125 unsigned int nr = find_first_bit(scan_mask, indio_dev->masklength); in ad7266_update_scan_mode()
Ddln2-adc.c423 const unsigned long *scan_mask) in dln2_update_scan_mode() argument
433 test_bit(i, scan_mask)); in dln2_update_scan_mode()
Dstm32-dfsdm-adc.c990 const unsigned long *scan_mask) in stm32_dfsdm_update_scan_mode() argument
994 adc->nconv = bitmap_weight(scan_mask, indio_dev->masklength); in stm32_dfsdm_update_scan_mode()
995 adc->smask = *scan_mask; in stm32_dfsdm_update_scan_mode()
997 dev_dbg(&indio_dev->dev, "nconv=%d mask=%lx\n", adc->nconv, *scan_mask); in stm32_dfsdm_update_scan_mode()
Dstm32-adc.c998 const unsigned long *scan_mask) in stm32_adc_conf_scan_seq() argument
1010 for_each_set_bit(bit, scan_mask, indio_dev->masklength) { in stm32_adc_conf_scan_seq()
1365 const unsigned long *scan_mask) in stm32_adc_update_scan_mode() argument
1377 adc->num_conv = bitmap_weight(scan_mask, indio_dev->masklength); in stm32_adc_update_scan_mode()
1379 ret = stm32_adc_conf_scan_seq(indio_dev, scan_mask); in stm32_adc_update_scan_mode()
Dcc10001_adc.c248 const unsigned long *scan_mask) in cc10001_update_scan_mode() argument
/Linux-v5.10/drivers/iio/light/
Dsi1133.c203 u8 scan_mask; member
546 static int si1133_set_chlist(struct si1133_data *data, u8 scan_mask) in si1133_set_chlist() argument
549 if (data->scan_mask == scan_mask) in si1133_set_chlist()
552 data->scan_mask = scan_mask; in si1133_set_chlist()
554 return si1133_param_set(data, SI1133_PARAM_REG_CHAN_LIST, scan_mask); in si1133_set_chlist()
654 if (irq_status != data->scan_mask) in si1133_threaded_irq_handler()
Dsi1145.c179 unsigned long scan_mask; member
507 static int si1145_set_chlist(struct iio_dev *indio_dev, unsigned long scan_mask) in si1145_set_chlist() argument
515 if (data->scan_mask == scan_mask) in si1145_set_chlist()
518 for_each_set_bit(i, &scan_mask, indio_dev->masklength) { in si1145_set_chlist()
556 data->scan_mask = scan_mask; in si1145_set_chlist()
1160 const unsigned long *scan_mask) in si1145_validate_scan_mask() argument
1167 for_each_set_bit(i, scan_mask, data->part_info->num_channels) { in si1145_validate_scan_mask()
Dadjd_s311.c229 const unsigned long *scan_mask) in adjd_s311_update_scan_mode() argument
/Linux-v5.10/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors_core.c573 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_data_unsafe() argument
581 for_each_set_bit(i, &scan_mask, indio_dev->masklength) { in cros_ec_sensors_read_data_unsafe()
607 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_lpc() argument
638 ret = cros_ec_sensors_read_data_unsafe(indio_dev, scan_mask, in cros_ec_sensors_read_lpc()
663 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_cmd() argument
677 for_each_set_bit(i, &scan_mask, indio_dev->masklength) { in cros_ec_sensors_read_cmd()
Dcros_ec_lid_angle.c51 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_lid_angle() argument
/Linux-v5.10/drivers/iio/accel/
Dcros_ec_accel_legacy.c42 unsigned long scan_mask, s16 *data) in cros_ec_accel_legacy_read_cmd() argument
65 for_each_set_bit(i, &scan_mask, indio_dev->masklength) { in cros_ec_accel_legacy_read_cmd()
/Linux-v5.10/include/linux/iio/
Dbuffer_impl.h85 long *scan_mask; member
Diio.h453 const unsigned long *scan_mask);
480 const unsigned long *scan_mask);
/Linux-v5.10/drivers/iio/magnetometer/
Drm3100-core.c473 unsigned long scan_mask = *indio_dev->active_scan_mask; in rm3100_trigger_handler() local
480 switch (scan_mask) { in rm3100_trigger_handler()
512 for_each_set_bit(bit, &scan_mask, mask_len) { in rm3100_trigger_handler()
/Linux-v5.10/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_accel.c98 const unsigned long *scan_mask) in inv_icm42600_accel_update_scan_mode() argument
111 if (*scan_mask & INV_ICM42600_SCAN_MASK_TEMP) { in inv_icm42600_accel_update_scan_mode()
119 if (*scan_mask & INV_ICM42600_SCAN_MASK_ACCEL_3AXIS) { in inv_icm42600_accel_update_scan_mode()
Dinv_icm42600_gyro.c98 const unsigned long *scan_mask) in inv_icm42600_gyro_update_scan_mode() argument
111 if (*scan_mask & INV_ICM42600_SCAN_MASK_TEMP) { in inv_icm42600_gyro_update_scan_mode()
119 if (*scan_mask & INV_ICM42600_SCAN_MASK_GYRO_3AXIS) { in inv_icm42600_gyro_update_scan_mode()
/Linux-v5.10/drivers/gpu/drm/zte/
Dzx_vou.c362 u32 scan_mask; in zx_crtc_atomic_enable() local
420 scan_mask = bits->interlace_select | bits->pi_enable; in zx_crtc_atomic_enable()
421 zx_writel_mask(vou->timing + SCAN_CTRL, scan_mask, in zx_crtc_atomic_enable()
422 interlaced ? scan_mask : 0); in zx_crtc_atomic_enable()

12