Home
last modified time | relevance | path

Searched refs:active_scan_mask (Results 1 – 25 of 64) sorted by relevance

123

/linux-6.12.1/drivers/iio/imu/inv_mpu6050/
Dinv_mpu_trigger.c23 if (!indio_dev->active_scan_mask) { in inv_scan_query_mpu6050()
30 indio_dev->active_scan_mask) || in inv_scan_query_mpu6050()
32 indio_dev->active_scan_mask) || in inv_scan_query_mpu6050()
34 indio_dev->active_scan_mask); in inv_scan_query_mpu6050()
38 indio_dev->active_scan_mask) || in inv_scan_query_mpu6050()
40 indio_dev->active_scan_mask) || in inv_scan_query_mpu6050()
42 indio_dev->active_scan_mask); in inv_scan_query_mpu6050()
45 test_bit(INV_MPU6050_SCAN_TEMP, indio_dev->active_scan_mask); in inv_scan_query_mpu6050()
71 indio_dev->active_scan_mask) || in inv_scan_query_mpu9x50()
73 indio_dev->active_scan_mask) || in inv_scan_query_mpu9x50()
[all …]
/linux-6.12.1/drivers/iio/adc/
Dmax1027.c291 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()
Dad7298.c104 const unsigned long *active_scan_mask) in ad7298_update_scan_mode() argument
112 scan_count = bitmap_weight(active_scan_mask, in ad7298_update_scan_mode()
118 if (test_bit(i, active_scan_mask)) in ad7298_update_scan_mode()
Dti-adc108s102.c113 unsigned long const *active_scan_mask) in adc108s102_update_scan_mode() argument
123 for_each_set_bit(bit, active_scan_mask, ADC108S102_MAX_CHANNELS) in adc108s102_update_scan_mode()
Dad7923.c162 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()
Dat91-sama5d2_adc.c779 for_each_set_bit(bit, indio_dev->active_scan_mask, in at91_adc_active_scan_mask_to_reg()
1220 for_each_set_bit(bit, indio_dev->active_scan_mask, in at91_adc_dma_start()
1284 return !!bitmap_subset(indio_dev->active_scan_mask, in at91_adc_current_chan_is_touch()
1314 for_each_set_bit(bit, indio_dev->active_scan_mask, in at91_adc_buffer_prepare()
1364 for_each_set_bit(bit, indio_dev->active_scan_mask, in at91_adc_buffer_postdisable()
1451 for_each_set_bit(bit, indio_dev->active_scan_mask, in at91_adc_trigger_handler_nodma()
1622 for_each_set_bit(bit, indio_dev->active_scan_mask, in at91_adc_touch_data_handler()
/linux-6.12.1/drivers/iio/accel/
Dadxl367.c675 const unsigned long *active_scan_mask, in adxl367_set_temp_adc_mask_en() argument
678 if (*active_scan_mask & ADXL367_TEMP_CHANNEL_MASK) in adxl367_set_temp_adc_mask_en()
680 else if (*active_scan_mask & ADXL367_EX_ADC_CHANNEL_MASK) in adxl367_set_temp_adc_mask_en()
1199 const unsigned long *active_scan_mask) in adxl367_update_scan_mode() argument
1205 if (!adxl367_find_mask_fifo_format(active_scan_mask, &fifo_format)) in adxl367_update_scan_mode()
1222 st->fifo_set_size = bitmap_weight(active_scan_mask, in adxl367_update_scan_mode()
1235 ret = adxl367_set_temp_adc_mask_en(st, indio_dev->active_scan_mask, in adxl367_buffer_postenable()
1278 return adxl367_set_temp_adc_mask_en(st, indio_dev->active_scan_mask, in adxl367_buffer_predisable()
Dst_accel_buffer.c30 err = st_sensors_set_axis_enable(indio_dev, indio_dev->active_scan_mask[0]); in st_accel_buffer_postenable()
/linux-6.12.1/drivers/iio/gyro/
Dst_gyro_buffer.c30 err = st_sensors_set_axis_enable(indio_dev, indio_dev->active_scan_mask[0]); in st_gyro_buffer_postenable()
/linux-6.12.1/drivers/iio/imu/bno055/
Dbno055.c1057 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.12.1/drivers/iio/common/st_sensors/
Dst_sensors_buffer.c28 for_each_set_bit(i, indio_dev->active_scan_mask, num_data_channels) { in st_sensors_get_buffer_element()
Dst_sensors_trigger.c37 if (!indio_dev->active_scan_mask) in st_sensors_new_samples_available()
/linux-6.12.1/drivers/iio/pressure/
Dmpl3115.c171 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()
Drohm-bm1390.c387 if (test_bit(BM1390_CHAN_PRESSURE, idev->active_scan_mask)) { in __bm1390_fifo_flush()
413 if (test_bit(BM1390_CHAN_TEMP, idev->active_scan_mask)) { in __bm1390_fifo_flush()
653 if (test_bit(BM1390_CHAN_PRESSURE, idev->active_scan_mask)) { in bm1390_trigger_handler()
661 if (test_bit(BM1390_CHAN_TEMP, idev->active_scan_mask)) { in bm1390_trigger_handler()
/linux-6.12.1/drivers/iio/magnetometer/
Drm3100-core.c378 (*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.12.1/drivers/iio/proximity/
Dsx9500.c685 if (test_bit(i, indio_dev->active_scan_mask)) { in sx9500_buffer_postenable()
693 if (test_bit(i, indio_dev->active_scan_mask)) in sx9500_buffer_postenable()
709 if (test_bit(i, indio_dev->active_scan_mask)) { in sx9500_buffer_predisable()
717 if (test_bit(i, indio_dev->active_scan_mask)) in sx9500_buffer_predisable()
/linux-6.12.1/drivers/staging/iio/impedance-analyzer/
Dad5933.c550 if (bitmap_empty(indio_dev->active_scan_mask, 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.12.1/include/linux/iio/
Diio.h613 const unsigned long *active_scan_mask; member
892 for_each_set_bit((chan), (indio_dev)->active_scan_mask, \
/linux-6.12.1/drivers/iio/
Dindustrialio-buffer.c1053 if (bitmap_equal(indio_dev->active_scan_mask, in iio_buffer_update_demux()
1059 in_ind = find_next_bit(indio_dev->active_scan_mask, in iio_buffer_update_demux()
1069 in_ind = find_next_bit(indio_dev->active_scan_mask, in iio_buffer_update_demux()
1139 indio_dev->active_scan_mask = config->scan_mask; in iio_enable_buffers()
1159 indio_dev->active_scan_mask); in iio_enable_buffers()
1213 indio_dev->active_scan_mask = NULL; in iio_enable_buffers()
1259 iio_free_scan_mask(indio_dev, indio_dev->active_scan_mask); in iio_disable_buffers()
1260 indio_dev->active_scan_mask = NULL; in iio_disable_buffers()
/linux-6.12.1/drivers/iio/light/
Dmax44000.c501 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()
Dltr501.c1298 if (test_bit(0, indio_dev->active_scan_mask) || in ltr501_trigger_handler()
1299 test_bit(1, indio_dev->active_scan_mask)) in ltr501_trigger_handler()
1301 if (test_bit(2, indio_dev->active_scan_mask)) in ltr501_trigger_handler()
1313 if (test_bit(0, indio_dev->active_scan_mask)) in ltr501_trigger_handler()
1315 if (test_bit(1, indio_dev->active_scan_mask)) in ltr501_trigger_handler()
/linux-6.12.1/drivers/iio/health/
Dmax30102.c198 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()
/linux-6.12.1/Documentation/driver-api/iio/
Dtriggered-buffers.rst36 for_each_set_bit(bit, active_scan_mask, masklength)
/linux-6.12.1/drivers/iio/addac/
Dad74413r.c889 const unsigned long *active_scan_mask) in ad74413r_update_scan_mode() argument
903 for_each_clear_bit(channel, active_scan_mask, AD74413R_CHANNEL_MAX) { in ad74413r_update_scan_mode()
909 if (*active_scan_mask == 0) in ad74413r_update_scan_mode()
925 for_each_set_bit(channel, active_scan_mask, AD74413R_CHANNEL_MAX) { in ad74413r_update_scan_mode()
/linux-6.12.1/drivers/iio/humidity/
Dam2315.c172 if (*(indio_dev->active_scan_mask) == AM2315_ALL_CHANNEL_MASK) { in am2315_trigger_handler()

123