Home
last modified time | relevance | path

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

12

/openbmc/linux/drivers/iio/buffer/
H A 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()
H A 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()
/openbmc/linux/include/linux/iio/common/
H A 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,
/openbmc/linux/drivers/iio/
H A Dindustrialio-buffer.c403 buffer->scan_mask); in iio_scan_el_show()
498 if (!buffer->scan_mask) in iio_scan_mask_query()
819 const unsigned long *scan_mask; member
831 const unsigned long *scan_mask; in iio_verify_update() local
918 if (!scan_mask) in iio_verify_update()
921 scan_mask = compound_mask; in iio_verify_update()
926 config->scan_mask = scan_mask; in iio_verify_update()
991 buffer->scan_mask, in iio_buffer_update_demux()
997 buffer->scan_mask, in iio_buffer_update_demux()
1657 if (!buffer->scan_mask) { in __iio_buffer_alloc_sysfs_and_mask()
[all …]
/openbmc/linux/drivers/iio/imu/
H A 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()
/openbmc/linux/drivers/iio/adc/
H A 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 …]
H A 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()
421 scan_mask |= BIT_ULL(chan->scan_index); in ams_enable_channel_sequence()
430 regval = FIELD_GET(AMS_REG_SEQ0_MASK, scan_mask); in ams_enable_channel_sequence()
433 regval = FIELD_GET(AMS_REG_SEQ2_MASK, scan_mask); in ams_enable_channel_sequence()
447 scan_mask = FIELD_GET(AMS_PL_SEQ_MASK, scan_mask); in ams_enable_channel_sequence()
449 regval = FIELD_GET(AMS_REG_SEQ0_MASK, scan_mask); in ams_enable_channel_sequence()
452 regval = FIELD_GET(AMS_REG_SEQ1_MASK, scan_mask); in ams_enable_channel_sequence()
455 regval = FIELD_GET(AMS_REG_SEQ2_MASK, scan_mask); in ams_enable_channel_sequence()
H A 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()
H A 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()
H A Dad9467.c388 const unsigned long *scan_mask) in ad9467_update_scan_mode() argument
395 if (test_bit(c, scan_mask)) in ad9467_update_scan_mode()
H A 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()
H A 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()
H A Dcc10001_adc.c247 const unsigned long *scan_mask) in cc10001_update_scan_mode() argument
H A 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()
/openbmc/linux/drivers/iio/light/
H A 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()
H A 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()
/openbmc/linux/drivers/iio/common/cros_ec_sensors/
H A 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()
H A Dcros_ec_lid_angle.c52 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_lid_angle() argument
/openbmc/linux/drivers/iio/accel/
H A 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()
/openbmc/linux/include/linux/iio/
H A Dbuffer_impl.h101 long *scan_mask; member
H A Diio.h517 const unsigned long *scan_mask);
544 const unsigned long *scan_mask);
/openbmc/linux/drivers/iio/magnetometer/
H A 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()
/openbmc/linux/drivers/iio/imu/inv_icm42600/
H A 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()
H A 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()
/openbmc/linux/include/linux/iio/imu/
H A Dadis.h527 const unsigned long *scan_mask);

12