Lines Matching refs:ams_info
32 mutex_lock(&ams_info.lock); in ams_idev_poll()
36 x -= ams_info.xcalib; in ams_idev_poll()
37 y -= ams_info.ycalib; in ams_idev_poll()
38 z -= ams_info.zcalib; in ams_idev_poll()
46 mutex_unlock(&ams_info.lock); in ams_idev_poll()
57 ams_info.xcalib = x; in ams_input_enable()
58 ams_info.ycalib = y; in ams_input_enable()
59 ams_info.zcalib = z; in ams_input_enable()
66 input->id.bustype = ams_info.bustype; in ams_input_enable()
68 input->dev.parent = &ams_info.of_dev->dev; in ams_input_enable()
85 ams_info.idev = input; in ams_input_enable()
97 if (ams_info.idev) { in ams_input_disable()
98 input_unregister_device(ams_info.idev); in ams_input_disable()
99 ams_info.idev = NULL; in ams_input_disable()
146 return device_create_file(&ams_info.of_dev->dev, &dev_attr_joystick); in ams_input_init()
151 device_remove_file(&ams_info.of_dev->dev, &dev_attr_joystick); in ams_input_exit()