/linux-5.19.10/drivers/iio/buffer/ |
D | industrialio-buffer-cb.c | 37 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()
|
D | industrialio-hw-consumer.c | 31 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-5.19.10/drivers/iio/ |
D | industrialio-buffer.c | 400 buffer->scan_mask); in iio_scan_el_show() 459 bitmap_copy(trialmask, buffer->scan_mask, indio_dev->masklength); in iio_scan_mask_set() 472 bitmap_copy(buffer->scan_mask, trialmask, indio_dev->masklength); in iio_scan_mask_set() 485 clear_bit(bit, buffer->scan_mask); in iio_scan_mask_clear() 495 if (!buffer->scan_mask) in iio_scan_mask_query() 499 return !!test_bit(bit, buffer->scan_mask); in iio_scan_mask_query() 781 bytes = iio_compute_scan_bytes(indio_dev, buffer->scan_mask, in iio_buffer_update_bytes_per_datum() 817 const unsigned long *scan_mask; member 828 const unsigned long *scan_mask; in iio_verify_update() local 835 bitmap_empty(insert_buffer->scan_mask, indio_dev->masklength)) { in iio_verify_update() [all …]
|
/linux-5.19.10/include/linux/iio/common/ |
D | cros_ec_sensors_core.h | 83 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-5.19.10/drivers/iio/imu/ |
D | adis_buffer.c | 23 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-5.19.10/drivers/iio/adc/ |
D | xilinx-xadc-core.c | 810 unsigned long scan_mask; in xadc_postdisable() local 814 scan_mask = 1; /* Run calibration as part of the sequence */ in xadc_postdisable() 816 scan_mask |= BIT(indio_dev->channels[i].scan_index); in xadc_postdisable() 819 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff); in xadc_postdisable() 823 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(1), scan_mask >> 16); in xadc_postdisable() 838 unsigned long scan_mask; in xadc_preenable() local 847 scan_mask = *indio_dev->active_scan_mask; in xadc_preenable() 848 seq_mode = xadc_get_seq_mode(xadc, scan_mask); in xadc_preenable() 850 ret = xadc_write_adc_reg(xadc, XADC_REG_SEQ(0), scan_mask & 0xffff); in xadc_preenable() 862 scan_mask = ((scan_mask >> 8) | scan_mask) & 0xff0000; in xadc_preenable() [all …]
|
D | xilinx-ams.c | 406 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()
|
D | adi-axi-adc.c | 147 const unsigned long *scan_mask) in adi_axi_adc_update_scan_mode() argument 156 if (test_bit(i, scan_mask)) in adi_axi_adc_update_scan_mode()
|
D | ad799x.c | 228 const unsigned long *scan_mask) in ad799x_update_scan_mode() argument 237 st->transfer_size = bitmap_weight(scan_mask, indio_dev->masklength) * 2; in ad799x_update_scan_mode() 246 st->config |= (*scan_mask << AD799X_CHANNEL_SHIFT); in ad799x_update_scan_mode()
|
D | ad7266.c | 122 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()
|
D | dln2-adc.c | 422 const unsigned long *scan_mask) in dln2_update_scan_mode() argument 432 test_bit(i, scan_mask)); in dln2_update_scan_mode()
|
D | stm32-dfsdm-adc.c | 989 const unsigned long *scan_mask) in stm32_dfsdm_update_scan_mode() argument 993 adc->nconv = bitmap_weight(scan_mask, indio_dev->masklength); in stm32_dfsdm_update_scan_mode() 994 adc->smask = *scan_mask; in stm32_dfsdm_update_scan_mode() 996 dev_dbg(&indio_dev->dev, "nconv=%d mask=%lx\n", adc->nconv, *scan_mask); in stm32_dfsdm_update_scan_mode()
|
D | stm32-adc.c | 1138 const unsigned long *scan_mask) in stm32_adc_conf_scan_seq() argument 1150 for_each_set_bit(bit, scan_mask, indio_dev->masklength) { in stm32_adc_conf_scan_seq() 1498 const unsigned long *scan_mask) in stm32_adc_update_scan_mode() argument 1508 adc->num_conv = bitmap_weight(scan_mask, indio_dev->masklength); in stm32_adc_update_scan_mode() 1510 ret = stm32_adc_conf_scan_seq(indio_dev, scan_mask); in stm32_adc_update_scan_mode()
|
D | cc10001_adc.c | 248 const unsigned long *scan_mask) in cc10001_update_scan_mode() argument
|
/linux-5.19.10/drivers/iio/light/ |
D | si1133.c | 203 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()
|
D | si1145.c | 179 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-5.19.10/drivers/iio/common/cros_ec_sensors/ |
D | cros_ec_sensors_core.c | 590 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_data_unsafe() argument 598 for_each_set_bit(i, &scan_mask, indio_dev->masklength) { in cros_ec_sensors_read_data_unsafe() 624 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_lpc() argument 655 ret = cros_ec_sensors_read_data_unsafe(indio_dev, scan_mask, in cros_ec_sensors_read_lpc() 680 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_cmd() argument 694 for_each_set_bit(i, &scan_mask, indio_dev->masklength) { in cros_ec_sensors_read_cmd()
|
D | cros_ec_lid_angle.c | 51 unsigned long scan_mask, s16 *data) in cros_ec_sensors_read_lid_angle() argument
|
/linux-5.19.10/drivers/iio/accel/ |
D | cros_ec_accel_legacy.c | 42 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-5.19.10/drivers/iio/magnetometer/ |
D | rm3100-core.c | 466 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-5.19.10/include/linux/iio/ |
D | buffer_impl.h | 101 long *scan_mask; member
|
D | iio.h | 507 const unsigned long *scan_mask); 534 const unsigned long *scan_mask);
|
/linux-5.19.10/drivers/iio/imu/inv_icm42600/ |
D | inv_icm42600_gyro.c | 98 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()
|
D | inv_icm42600_accel.c | 98 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()
|
/linux-5.19.10/include/linux/iio/imu/ |
D | adis.h | 527 const unsigned long *scan_mask);
|