Lines Matching refs:imu_input
630 struct input_dev *imu_input; member
1367 struct input_dev *idev = ctlr->imu_input; in joycon_parse_imu_report()
2067 ctlr->imu_input = devm_input_allocate_device(&hdev->dev); in joycon_imu_input_create()
2068 if (!ctlr->imu_input) in joycon_imu_input_create()
2071 ctlr->imu_input->id.bustype = hdev->bus; in joycon_imu_input_create()
2072 ctlr->imu_input->id.vendor = hdev->vendor; in joycon_imu_input_create()
2073 ctlr->imu_input->id.product = hdev->product; in joycon_imu_input_create()
2074 ctlr->imu_input->id.version = hdev->version; in joycon_imu_input_create()
2075 ctlr->imu_input->uniq = ctlr->mac_addr_str; in joycon_imu_input_create()
2076 ctlr->imu_input->phys = hdev->phys; in joycon_imu_input_create()
2082 ctlr->imu_input->name = imu_name; in joycon_imu_input_create()
2084 input_set_drvdata(ctlr->imu_input, ctlr); in joycon_imu_input_create()
2087 input_set_abs_params(ctlr->imu_input, ABS_X, in joycon_imu_input_create()
2090 input_set_abs_params(ctlr->imu_input, ABS_Y, in joycon_imu_input_create()
2093 input_set_abs_params(ctlr->imu_input, ABS_Z, in joycon_imu_input_create()
2096 input_abs_set_res(ctlr->imu_input, ABS_X, JC_IMU_ACCEL_RES_PER_G); in joycon_imu_input_create()
2097 input_abs_set_res(ctlr->imu_input, ABS_Y, JC_IMU_ACCEL_RES_PER_G); in joycon_imu_input_create()
2098 input_abs_set_res(ctlr->imu_input, ABS_Z, JC_IMU_ACCEL_RES_PER_G); in joycon_imu_input_create()
2100 input_set_abs_params(ctlr->imu_input, ABS_RX, in joycon_imu_input_create()
2103 input_set_abs_params(ctlr->imu_input, ABS_RY, in joycon_imu_input_create()
2106 input_set_abs_params(ctlr->imu_input, ABS_RZ, in joycon_imu_input_create()
2110 input_abs_set_res(ctlr->imu_input, ABS_RX, JC_IMU_GYRO_RES_PER_DPS); in joycon_imu_input_create()
2111 input_abs_set_res(ctlr->imu_input, ABS_RY, JC_IMU_GYRO_RES_PER_DPS); in joycon_imu_input_create()
2112 input_abs_set_res(ctlr->imu_input, ABS_RZ, JC_IMU_GYRO_RES_PER_DPS); in joycon_imu_input_create()
2114 __set_bit(EV_MSC, ctlr->imu_input->evbit); in joycon_imu_input_create()
2115 __set_bit(MSC_TIMESTAMP, ctlr->imu_input->mscbit); in joycon_imu_input_create()
2116 __set_bit(INPUT_PROP_ACCELEROMETER, ctlr->imu_input->propbit); in joycon_imu_input_create()
2118 ret = input_register_device(ctlr->imu_input); in joycon_imu_input_create()