Home
last modified time | relevance | path

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

12

/linux-6.6.21/drivers/iio/buffer/
Dindustrialio-buffer-cb.c37 bitmap_free(cb_buff->buffer.scan_mask); in iio_buffer_cb_release()
80 cb_buff->buffer.scan_mask = bitmap_zalloc(cb_buff->indio_dev->masklength, in iio_channel_get_all_cb()
82 if (cb_buff->buffer.scan_mask == NULL) { in iio_channel_get_all_cb()
93 cb_buff->buffer.scan_mask); in iio_channel_get_all_cb()
100 bitmap_free(cb_buff->buffer.scan_mask); in iio_channel_get_all_cb()
Dindustrialio-hw-consumer.c31 long scan_mask[]; member
62 buf = kzalloc(struct_size(buf, scan_mask, BITS_TO_LONGS(indio_dev->masklength)), in iio_hw_consumer_get_buffer()
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-6.6.21/drivers/iio/
Dindustrialio-buffer.c403 buffer->scan_mask); in iio_scan_el_show()
462 bitmap_copy(trialmask, buffer->scan_mask, indio_dev->masklength); in iio_scan_mask_set()
475 bitmap_copy(buffer->scan_mask, trialmask, indio_dev->masklength); in iio_scan_mask_set()
488 clear_bit(bit, buffer->scan_mask); in iio_scan_mask_clear()
498 if (!buffer->scan_mask) in iio_scan_mask_query()
502 return !!test_bit(bit, buffer->scan_mask); in iio_scan_mask_query()
783 bytes = iio_compute_scan_bytes(indio_dev, buffer->scan_mask, in iio_buffer_update_bytes_per_datum()
819 const unsigned long *scan_mask; member
831 const unsigned long *scan_mask; in iio_verify_update() local
838 bitmap_empty(insert_buffer->scan_mask, indio_dev->masklength)) { in iio_verify_update()
[all …]
/linux-6.6.21/include/linux/iio/common/
Dcros_ec_sensors_core.h81 unsigned long scan_mask, s16 *data);
87 int cros_ec_sensors_read_lpc(struct iio_dev *indio_dev, unsigned long scan_mask,
90 int cros_ec_sensors_read_cmd(struct iio_dev *indio_dev, unsigned long scan_mask,
/linux-6.6.21/drivers/iio/imu/
Dadis_buffer.c23 const unsigned long *scan_mask) in adis_update_scan_mode_burst() argument
70 const unsigned long *scan_mask) in adis_update_scan_mode() argument
82 return adis_update_scan_mode_burst(indio_dev, scan_mask); in adis_update_scan_mode()
118 if (!test_bit(chan->scan_index, scan_mask)) in adis_update_scan_mode()
/linux-6.6.21/drivers/iio/adc/
Dxilinx-xadc-core.c820 unsigned long scan_mask; in xadc_postdisable() local
824 scan_mask = 1; /* Run calibration as part of the sequence */ in xadc_postdisable()
826 scan_mask |= BIT(indio_dev->channels[i].scan_index); in xadc_postdisable()
829 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff); in xadc_postdisable()
833 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(1), scan_mask >> 16); in xadc_postdisable()
848 unsigned long scan_mask; in xadc_preenable() local
857 scan_mask = *indio_dev->active_scan_mask; in xadc_preenable()
858 seq_mode = xadc_get_seq_mode(xadc, scan_mask); in xadc_preenable()
860 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff); in xadc_preenable()
872 scan_mask = ((scan_mask >> 8) | scan_mask) & 0xff0000; in xadc_preenable()
[all …]
Dxilinx-ams.c406 unsigned long long scan_mask; in ams_enable_channel_sequence() local
416 scan_mask = BIT(0) | BIT(AMS_PS_SEQ_MAX); in ams_enable_channel_sequence()
418 scan_mask |= BIT_ULL(indio_dev->channels[i].scan_index); in ams_enable_channel_sequence()
426 regval = FIELD_GET(AMS_REG_SEQ0_MASK, scan_mask); in ams_enable_channel_sequence()
429 regval = FIELD_GET(AMS_REG_SEQ2_MASK, scan_mask); in ams_enable_channel_sequence()
443 scan_mask = FIELD_GET(AMS_PL_SEQ_MASK, scan_mask); in ams_enable_channel_sequence()
445 regval = FIELD_GET(AMS_REG_SEQ0_MASK, scan_mask); in ams_enable_channel_sequence()
448 regval = FIELD_GET(AMS_REG_SEQ1_MASK, scan_mask); in ams_enable_channel_sequence()
451 regval = FIELD_GET(AMS_REG_SEQ2_MASK, scan_mask); in ams_enable_channel_sequence()
Dadi-axi-adc.c162 const unsigned long *scan_mask) in adi_axi_adc_update_scan_mode() argument
171 if (test_bit(i, scan_mask)) in adi_axi_adc_update_scan_mode()
Dad799x.c231 const unsigned long *scan_mask) in ad799x_update_scan_mode() argument
240 st->transfer_size = bitmap_weight(scan_mask, indio_dev->masklength) * 2; in ad799x_update_scan_mode()
249 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.c422 const unsigned long *scan_mask) in dln2_update_scan_mode() argument
432 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()
Dcc10001_adc.c247 const unsigned long *scan_mask) in cc10001_update_scan_mode() argument
Dstm32-adc.c1252 const unsigned long *scan_mask) in stm32_adc_conf_scan_seq() argument
1264 for_each_set_bit(bit, scan_mask, indio_dev->masklength) { in stm32_adc_conf_scan_seq()
1612 const unsigned long *scan_mask) in stm32_adc_update_scan_mode() argument
1622 adc->num_conv = bitmap_weight(scan_mask, indio_dev->masklength); in stm32_adc_update_scan_mode()
1624 ret = stm32_adc_conf_scan_seq(indio_dev, scan_mask); in stm32_adc_update_scan_mode()
/linux-6.6.21/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
506 static int si1145_set_chlist(struct iio_dev *indio_dev, unsigned long scan_mask) in si1145_set_chlist() argument
514 if (data->scan_mask == scan_mask) in si1145_set_chlist()
517 for_each_set_bit(i, &scan_mask, indio_dev->masklength) { in si1145_set_chlist()
555 data->scan_mask = scan_mask; in si1145_set_chlist()
1159 const unsigned long *scan_mask) in si1145_validate_scan_mask() argument
1166 for_each_set_bit(i, scan_mask, data->part_info->num_channels) { in si1145_validate_scan_mask()
/linux-6.6.21/drivers/iio/common/cros_ec_sensors/
Dcros_ec_sensors_core.c582 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_data_unsafe() argument
590 for_each_set_bit(i, &scan_mask, indio_dev->masklength) { in cros_ec_sensors_read_data_unsafe()
616 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_lpc() argument
647 ret = cros_ec_sensors_read_data_unsafe(indio_dev, scan_mask, in cros_ec_sensors_read_lpc()
672 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_cmd() argument
686 for_each_set_bit(i, &scan_mask, indio_dev->masklength) { in cros_ec_sensors_read_cmd()
Dcros_ec_lid_angle.c52 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_lid_angle() argument
/linux-6.6.21/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-6.6.21/include/linux/iio/
Dbuffer_impl.h101 long *scan_mask; member
Diio.h517 const unsigned long *scan_mask);
544 const unsigned long *scan_mask);
/linux-6.6.21/drivers/iio/magnetometer/
Drm3100-core.c466 unsigned long scan_mask = *indio_dev->active_scan_mask; in rm3100_trigger_handler() local
473 switch (scan_mask) { in rm3100_trigger_handler()
505 for_each_set_bit(bit, &scan_mask, mask_len) { in rm3100_trigger_handler()
/linux-6.6.21/drivers/iio/imu/inv_icm42600/
Dinv_icm42600_gyro.c99 const unsigned long *scan_mask) in inv_icm42600_gyro_update_scan_mode() argument
112 if (*scan_mask & INV_ICM42600_SCAN_MASK_TEMP) { in inv_icm42600_gyro_update_scan_mode()
120 if (*scan_mask & INV_ICM42600_SCAN_MASK_GYRO_3AXIS) { in inv_icm42600_gyro_update_scan_mode()
Dinv_icm42600_accel.c99 const unsigned long *scan_mask) in inv_icm42600_accel_update_scan_mode() argument
112 if (*scan_mask & INV_ICM42600_SCAN_MASK_TEMP) { in inv_icm42600_accel_update_scan_mode()
120 if (*scan_mask & INV_ICM42600_SCAN_MASK_ACCEL_3AXIS) { in inv_icm42600_accel_update_scan_mode()
/linux-6.6.21/include/linux/iio/imu/
Dadis.h527 const unsigned long *scan_mask);

12