/linux-6.3-rc2/drivers/iio/imu/inv_mpu6050/ |
A D | inv_mpu_trigger.c | 19 if (!indio_dev->active_scan_mask) { in inv_scan_query_mpu6050() 26 indio_dev->active_scan_mask) || in inv_scan_query_mpu6050() 28 indio_dev->active_scan_mask) || in inv_scan_query_mpu6050() 30 indio_dev->active_scan_mask); in inv_scan_query_mpu6050() 34 indio_dev->active_scan_mask) || in inv_scan_query_mpu6050() 36 indio_dev->active_scan_mask) || in inv_scan_query_mpu6050() 38 indio_dev->active_scan_mask); in inv_scan_query_mpu6050() 41 test_bit(INV_MPU6050_SCAN_TEMP, indio_dev->active_scan_mask); in inv_scan_query_mpu6050() 67 indio_dev->active_scan_mask) || in inv_scan_query_mpu9x50() 69 indio_dev->active_scan_mask) || in inv_scan_query_mpu9x50() [all …]
|
/linux-6.3-rc2/drivers/iio/adc/ |
A D | max1027.c | 291 if (indio_dev->active_scan_mask) in max1027_wait_eoc() 292 conversion_time *= hweight32(*indio_dev->active_scan_mask); in max1027_wait_eoc() 306 st->reg |= MAX1027_CHAN(fls(*indio_dev->active_scan_mask) - 2); in max1027_configure_chans_and_start() 307 if (*indio_dev->active_scan_mask & MAX1X27_SCAN_MASK_TEMP) in max1027_configure_chans_and_start() 465 scanned_chans = fls(*indio_dev->active_scan_mask) - 1; in max1027_read_scan() 466 if (*indio_dev->active_scan_mask & MAX1X27_SCAN_MASK_TEMP) in max1027_read_scan()
|
A D | ad7298.c | 104 const unsigned long *active_scan_mask) in ad7298_update_scan_mode() argument 112 scan_count = bitmap_weight(active_scan_mask, indio_dev->masklength); in ad7298_update_scan_mode() 117 if (test_bit(i, active_scan_mask)) in ad7298_update_scan_mode()
|
A D | ti-adc108s102.c | 114 unsigned long const *active_scan_mask) in adc108s102_update_scan_mode() argument 124 for_each_set_bit(bit, active_scan_mask, ADC108S102_MAX_CHANNELS) in adc108s102_update_scan_mode()
|
A D | ad7923.c | 162 const unsigned long *active_scan_mask) in ad7923_update_scan_mode() argument 172 for_each_set_bit(i, active_scan_mask, indio_dev->num_channels - 1) { in ad7923_update_scan_mode()
|
A D | dln2-adc.c | 112 (*indio_dev->active_scan_mask & 0xff) == 0xff) { in dln2_adc_update_demux() 121 indio_dev->active_scan_mask, in dln2_adc_update_demux() 543 trigger_chan = find_first_bit(indio_dev->active_scan_mask, in dln2_adc_triggered_buffer_postenable()
|
/linux-6.3-rc2/drivers/iio/humidity/ |
A D | am2315.c | 172 if (*(indio_dev->active_scan_mask) == AM2315_ALL_CHANNEL_MASK) { in am2315_trigger_handler() 177 for_each_set_bit(bit, indio_dev->active_scan_mask, in am2315_trigger_handler()
|
/linux-6.3-rc2/drivers/iio/accel/ |
A D | st_accel_buffer.c | 30 err = st_sensors_set_axis_enable(indio_dev, indio_dev->active_scan_mask[0]); in st_accel_buffer_postenable()
|
A D | adxl367.c | 699 const unsigned long *active_scan_mask, in adxl367_set_temp_adc_mask_en() argument 702 if (*active_scan_mask & ADXL367_TEMP_CHANNEL_MASK) in adxl367_set_temp_adc_mask_en() 704 else if (*active_scan_mask & ADXL367_EX_ADC_CHANNEL_MASK) in adxl367_set_temp_adc_mask_en() 1247 const unsigned long *active_scan_mask) in adxl367_update_scan_mode() argument 1253 if (!adxl367_find_mask_fifo_format(active_scan_mask, &fifo_format)) in adxl367_update_scan_mode() 1270 st->fifo_set_size = bitmap_weight(active_scan_mask, in adxl367_update_scan_mode() 1286 ret = adxl367_set_temp_adc_mask_en(st, indio_dev->active_scan_mask, in adxl367_buffer_postenable() 1334 ret = adxl367_set_temp_adc_mask_en(st, indio_dev->active_scan_mask, in adxl367_buffer_predisable()
|
A D | stk8ba50.c | 323 if (*(indio_dev->active_scan_mask) == STK8BA50_ALL_CHANNEL_MASK) { in stk8ba50_trigger_handler() 333 for_each_set_bit(bit, indio_dev->active_scan_mask, in stk8ba50_trigger_handler()
|
/linux-6.3-rc2/drivers/iio/gyro/ |
A D | st_gyro_buffer.c | 30 err = st_sensors_set_axis_enable(indio_dev, indio_dev->active_scan_mask[0]); in st_gyro_buffer_postenable()
|
/linux-6.3-rc2/drivers/iio/dummy/ |
A D | iio_simple_dummy_buffer.c | 71 for_each_set_bit(j, indio_dev->active_scan_mask, indio_dev->masklength) in iio_simple_dummy_trigger_h()
|
/linux-6.3-rc2/drivers/iio/common/st_sensors/ |
A D | st_sensors_buffer.c | 28 for_each_set_bit(i, indio_dev->active_scan_mask, num_data_channels) { in st_sensors_get_buffer_element()
|
A D | st_sensors_trigger.c | 37 if (!indio_dev->active_scan_mask) in st_sensors_new_samples_available()
|
/linux-6.3-rc2/drivers/iio/magnetometer/ |
A D | rm3100-core.c | 378 (*indio_dev->active_scan_mask & 0x7) << in rm3100_set_samp_freq() 446 (*indio_dev->active_scan_mask & 0x7) << RM3100_CMM_AXIS_SHIFT | in rm3100_buffer_preenable() 466 unsigned long scan_mask = *indio_dev->active_scan_mask; in rm3100_trigger_handler()
|
/linux-6.3-rc2/drivers/iio/imu/bno055/ |
A D | bno055.c | 1057 if (indio_dev->active_scan_mask && in fusion_enable_store() 1058 !bitmap_empty(indio_dev->active_scan_mask, _BNO055_SCAN_MAX)) in fusion_enable_store() 1097 if (indio_dev->active_scan_mask && in in_magn_calibration_fast_enable_store() 1098 !bitmap_empty(indio_dev->active_scan_mask, _BNO055_SCAN_MAX)) in in_magn_calibration_fast_enable_store() 1460 for_each_set_bitrange(start, end, iio_dev->active_scan_mask, in bno055_trigger_handler() 1494 mask = *iio_dev->active_scan_mask >> xfer_start; in bno055_trigger_handler() 1511 mask = *iio_dev->active_scan_mask >> xfer_start; in bno055_trigger_handler() 1541 bitmap_intersects(indio_dev->active_scan_mask, &fusion_mask, in bno055_buffer_preenable()
|
/linux-6.3-rc2/drivers/iio/proximity/ |
A D | sx9500.c | 657 for_each_set_bit(bit, indio_dev->active_scan_mask, in sx9500_trigger_handler() 686 if (test_bit(i, indio_dev->active_scan_mask)) { in sx9500_buffer_postenable() 694 if (test_bit(i, indio_dev->active_scan_mask)) in sx9500_buffer_postenable() 710 if (test_bit(i, indio_dev->active_scan_mask)) { in sx9500_buffer_predisable() 718 if (test_bit(i, indio_dev->active_scan_mask)) in sx9500_buffer_predisable()
|
A D | sx_common.c | 373 for_each_set_bit(bit, indio_dev->active_scan_mask, in sx_common_trigger_handler() 402 for_each_set_bit(bit, indio_dev->active_scan_mask, in sx_common_buffer_preenable()
|
/linux-6.3-rc2/drivers/iio/pressure/ |
A D | mpl3115.c | 171 if (test_bit(0, indio_dev->active_scan_mask)) { in mpl3115_trigger_handler() 181 if (test_bit(1, indio_dev->active_scan_mask)) { in mpl3115_trigger_handler()
|
/linux-6.3-rc2/drivers/iio/ |
A D | industrialio-buffer.c | 987 if (bitmap_equal(indio_dev->active_scan_mask, in iio_buffer_update_demux() 996 in_ind = find_next_bit(indio_dev->active_scan_mask, in iio_buffer_update_demux() 1003 in_ind = find_next_bit(indio_dev->active_scan_mask, in iio_buffer_update_demux() 1066 indio_dev->active_scan_mask = config->scan_mask; in iio_enable_buffers() 1086 indio_dev->active_scan_mask); in iio_enable_buffers() 1140 indio_dev->active_scan_mask = NULL; in iio_enable_buffers() 1186 iio_free_scan_mask(indio_dev, indio_dev->active_scan_mask); in iio_disable_buffers() 1187 indio_dev->active_scan_mask = NULL; in iio_disable_buffers()
|
/linux-6.3-rc2/drivers/staging/iio/impedance-analyzer/ |
A D | ad5933.c | 551 if (bitmap_empty(indio_dev->active_scan_mask, indio_dev->masklength)) in ad5933_ring_preenable() 628 int scan_count = bitmap_weight(indio_dev->active_scan_mask, in ad5933_work() 631 test_bit(1, indio_dev->active_scan_mask) ? in ad5933_work()
|
/linux-6.3-rc2/drivers/iio/light/ |
A D | max44000.c | 501 if (test_bit(MAX44000_SCAN_INDEX_ALS, indio_dev->active_scan_mask)) { in max44000_trigger_handler() 507 if (test_bit(MAX44000_SCAN_INDEX_PRX, indio_dev->active_scan_mask)) { in max44000_trigger_handler()
|
A D | ltr501.c | 1297 if (test_bit(0, indio_dev->active_scan_mask) || in ltr501_trigger_handler() 1298 test_bit(1, indio_dev->active_scan_mask)) in ltr501_trigger_handler() 1300 if (test_bit(2, indio_dev->active_scan_mask)) in ltr501_trigger_handler() 1312 if (test_bit(0, indio_dev->active_scan_mask)) in ltr501_trigger_handler() 1314 if (test_bit(1, indio_dev->active_scan_mask)) in ltr501_trigger_handler()
|
/linux-6.3-rc2/Documentation/driver-api/iio/ |
A D | triggered-buffers.rst | 36 for_each_set_bit(bit, active_scan_mask, masklength)
|
/linux-6.3-rc2/drivers/iio/health/ |
A D | max30102.c | 198 switch (*indio_dev->active_scan_mask) { in max30102_buffer_postenable() 295 unsigned int measurements = bitmap_weight(indio_dev->active_scan_mask, in max30102_interrupt_handler()
|