Lines Matching refs:imu_input
472 struct input_dev *imu_input; member
1025 struct input_dev *idev = ctlr->imu_input; in joycon_parse_imu_report()
1714 ctlr->imu_input = devm_input_allocate_device(&hdev->dev); in joycon_input_create()
1715 if (!ctlr->imu_input) in joycon_input_create()
1718 ctlr->imu_input->id.bustype = hdev->bus; in joycon_input_create()
1719 ctlr->imu_input->id.vendor = hdev->vendor; in joycon_input_create()
1720 ctlr->imu_input->id.product = hdev->product; in joycon_input_create()
1721 ctlr->imu_input->id.version = hdev->version; in joycon_input_create()
1722 ctlr->imu_input->uniq = ctlr->mac_addr_str; in joycon_input_create()
1723 ctlr->imu_input->name = imu_name; in joycon_input_create()
1724 ctlr->imu_input->phys = hdev->phys; in joycon_input_create()
1725 input_set_drvdata(ctlr->imu_input, ctlr); in joycon_input_create()
1728 input_set_abs_params(ctlr->imu_input, ABS_X, in joycon_input_create()
1731 input_set_abs_params(ctlr->imu_input, ABS_Y, in joycon_input_create()
1734 input_set_abs_params(ctlr->imu_input, ABS_Z, in joycon_input_create()
1737 input_abs_set_res(ctlr->imu_input, ABS_X, JC_IMU_ACCEL_RES_PER_G); in joycon_input_create()
1738 input_abs_set_res(ctlr->imu_input, ABS_Y, JC_IMU_ACCEL_RES_PER_G); in joycon_input_create()
1739 input_abs_set_res(ctlr->imu_input, ABS_Z, JC_IMU_ACCEL_RES_PER_G); in joycon_input_create()
1741 input_set_abs_params(ctlr->imu_input, ABS_RX, in joycon_input_create()
1744 input_set_abs_params(ctlr->imu_input, ABS_RY, in joycon_input_create()
1747 input_set_abs_params(ctlr->imu_input, ABS_RZ, in joycon_input_create()
1751 input_abs_set_res(ctlr->imu_input, ABS_RX, JC_IMU_GYRO_RES_PER_DPS); in joycon_input_create()
1752 input_abs_set_res(ctlr->imu_input, ABS_RY, JC_IMU_GYRO_RES_PER_DPS); in joycon_input_create()
1753 input_abs_set_res(ctlr->imu_input, ABS_RZ, JC_IMU_GYRO_RES_PER_DPS); in joycon_input_create()
1755 __set_bit(EV_MSC, ctlr->imu_input->evbit); in joycon_input_create()
1756 __set_bit(MSC_TIMESTAMP, ctlr->imu_input->mscbit); in joycon_input_create()
1757 __set_bit(INPUT_PROP_ACCELEROMETER, ctlr->imu_input->propbit); in joycon_input_create()
1759 ret = input_register_device(ctlr->imu_input); in joycon_input_create()