Lines Matching refs:sensors

147 	struct input_dev *sensors;  member
620 struct input_dev *sensors; in ps_sensors_create() local
623 sensors = ps_allocate_input_dev(hdev, "Motion Sensors"); in ps_sensors_create()
624 if (IS_ERR(sensors)) in ps_sensors_create()
625 return ERR_CAST(sensors); in ps_sensors_create()
627 __set_bit(INPUT_PROP_ACCELEROMETER, sensors->propbit); in ps_sensors_create()
628 __set_bit(EV_MSC, sensors->evbit); in ps_sensors_create()
629 __set_bit(MSC_TIMESTAMP, sensors->mscbit); in ps_sensors_create()
632 input_set_abs_params(sensors, ABS_X, -accel_range, accel_range, 16, 0); in ps_sensors_create()
633 input_set_abs_params(sensors, ABS_Y, -accel_range, accel_range, 16, 0); in ps_sensors_create()
634 input_set_abs_params(sensors, ABS_Z, -accel_range, accel_range, 16, 0); in ps_sensors_create()
635 input_abs_set_res(sensors, ABS_X, accel_res); in ps_sensors_create()
636 input_abs_set_res(sensors, ABS_Y, accel_res); in ps_sensors_create()
637 input_abs_set_res(sensors, ABS_Z, accel_res); in ps_sensors_create()
640 input_set_abs_params(sensors, ABS_RX, -gyro_range, gyro_range, 16, 0); in ps_sensors_create()
641 input_set_abs_params(sensors, ABS_RY, -gyro_range, gyro_range, 16, 0); in ps_sensors_create()
642 input_set_abs_params(sensors, ABS_RZ, -gyro_range, gyro_range, 16, 0); in ps_sensors_create()
643 input_abs_set_res(sensors, ABS_RX, gyro_res); in ps_sensors_create()
644 input_abs_set_res(sensors, ABS_RY, gyro_res); in ps_sensors_create()
645 input_abs_set_res(sensors, ABS_RZ, gyro_res); in ps_sensors_create()
647 ret = input_register_device(sensors); in ps_sensors_create()
651 return sensors; in ps_sensors_create()
1130 input_report_abs(ds->sensors, ds->gyro_calib_data[i].abs_code, calib_data); in dualsense_parse_report()
1140 input_report_abs(ds->sensors, ds->accel_calib_data[i].abs_code, calib_data); in dualsense_parse_report()
1158 input_event(ds->sensors, EV_MSC, MSC_TIMESTAMP, ds->sensor_timestamp_us); in dualsense_parse_report()
1159 input_sync(ds->sensors); in dualsense_parse_report()
1404 ds->sensors = ps_sensors_create(hdev, DS_ACC_RANGE, DS_ACC_RES_PER_G, in dualsense_create()
1406 if (IS_ERR(ds->sensors)) { in dualsense_create()
1407 ret = PTR_ERR(ds->sensors); in dualsense_create()