Lines Matching refs:pdynapro
58 static void dynapro_process_data(struct dynapro *pdynapro) in dynapro_process_data() argument
60 struct input_dev *dev = pdynapro->dev; in dynapro_process_data()
62 if (DYNAPRO_FORMAT_LENGTH == ++pdynapro->idx) { in dynapro_process_data()
63 input_report_abs(dev, ABS_X, DYNAPRO_GET_XC(pdynapro->data)); in dynapro_process_data()
64 input_report_abs(dev, ABS_Y, DYNAPRO_GET_YC(pdynapro->data)); in dynapro_process_data()
66 DYNAPRO_GET_TOUCHED(pdynapro->data)); in dynapro_process_data()
69 pdynapro->idx = 0; in dynapro_process_data()
76 struct dynapro *pdynapro = serio_get_drvdata(serio); in dynapro_interrupt() local
78 pdynapro->data[pdynapro->idx] = data; in dynapro_interrupt()
80 if (DYNAPRO_RESPONSE_BEGIN_BYTE & pdynapro->data[0]) in dynapro_interrupt()
81 dynapro_process_data(pdynapro); in dynapro_interrupt()
84 pdynapro->data[0]); in dynapro_interrupt()
91 struct dynapro *pdynapro = serio_get_drvdata(serio); in dynapro_disconnect() local
93 input_get_device(pdynapro->dev); in dynapro_disconnect()
94 input_unregister_device(pdynapro->dev); in dynapro_disconnect()
97 input_put_device(pdynapro->dev); in dynapro_disconnect()
98 kfree(pdynapro); in dynapro_disconnect()
109 struct dynapro *pdynapro; in dynapro_connect() local
113 pdynapro = kzalloc(sizeof(struct dynapro), GFP_KERNEL); in dynapro_connect()
115 if (!pdynapro || !input_dev) { in dynapro_connect()
120 pdynapro->serio = serio; in dynapro_connect()
121 pdynapro->dev = input_dev; in dynapro_connect()
122 snprintf(pdynapro->phys, sizeof(pdynapro->phys), in dynapro_connect()
126 input_dev->phys = pdynapro->phys; in dynapro_connect()
134 input_set_abs_params(pdynapro->dev, ABS_X, in dynapro_connect()
136 input_set_abs_params(pdynapro->dev, ABS_Y, in dynapro_connect()
139 serio_set_drvdata(serio, pdynapro); in dynapro_connect()
145 err = input_register_device(pdynapro->dev); in dynapro_connect()
154 kfree(pdynapro); in dynapro_connect()