Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/iio/imu/inv_mpu6050/
A Dinv_mpu_trigger.c19 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 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()
A Dad7298.c104 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 Dti-adc108s102.c114 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 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()
A Ddln2-adc.c112 (*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 Dam2315.c172 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 Dst_accel_buffer.c30 err = st_sensors_set_axis_enable(indio_dev, indio_dev->active_scan_mask[0]); in st_accel_buffer_postenable()
A Dadxl367.c699 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 Dstk8ba50.c323 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 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.3-rc2/drivers/iio/dummy/
A Diio_simple_dummy_buffer.c71 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 Dst_sensors_buffer.c28 for_each_set_bit(i, indio_dev->active_scan_mask, num_data_channels) { in st_sensors_get_buffer_element()
A Dst_sensors_trigger.c37 if (!indio_dev->active_scan_mask) in st_sensors_new_samples_available()
/linux-6.3-rc2/drivers/iio/magnetometer/
A 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.3-rc2/drivers/iio/imu/bno055/
A 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.3-rc2/drivers/iio/proximity/
A Dsx9500.c657 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 Dsx_common.c373 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 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()
/linux-6.3-rc2/drivers/iio/
A Dindustrialio-buffer.c987 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 Dad5933.c551 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 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()
A Dltr501.c1297 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 Dtriggered-buffers.rst36 for_each_set_bit(bit, active_scan_mask, masklength)
/linux-6.3-rc2/drivers/iio/health/
A 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()

Completed in 53 milliseconds

1234