Lines Matching refs:egalax
40 struct egalax {
48 static void egalax_process_data(struct egalax *egalax)
50 struct input_dev *dev = egalax->input;
51 u8 *data = egalax->data;
71 struct egalax *egalax = serio_get_drvdata(serio);
74 egalax->data[egalax->idx++] = data;
76 if (likely(egalax->data[0] & EGALAX_FORMAT_START_BIT)) {
77 pkt_len = egalax->data[0] & EGALAX_FORMAT_PRESSURE_BIT ? 6 : 5;
78 if (pkt_len == egalax->idx) {
79 egalax_process_data(egalax);
80 egalax->idx = 0;
84 egalax->data[0]);
85 egalax->idx = 0;
93 * new serio device that supports egalax protocol and registers it as
98 struct egalax *egalax;
102 egalax = kzalloc(sizeof(struct egalax), GFP_KERNEL);
104 if (!egalax || !input_dev) {
109 egalax->serio = serio;
110 egalax->input = input_dev;
111 snprintf(egalax->phys, sizeof(egalax->phys),
115 input_dev->phys = egalax->phys;
128 serio_set_drvdata(serio, egalax);
146 kfree(egalax);
152 struct egalax *egalax = serio_get_drvdata(serio);
156 input_unregister_device(egalax->input);
157 kfree(egalax);
178 .name = "egalax",