Lines Matching refs:egalax
40 struct egalax { struct
48 static void egalax_process_data(struct egalax *egalax) in egalax_process_data() argument
50 struct input_dev *dev = egalax->input; in egalax_process_data()
51 u8 *data = egalax->data; in egalax_process_data()
71 struct egalax *egalax = serio_get_drvdata(serio); in egalax_interrupt() local
74 egalax->data[egalax->idx++] = data; in egalax_interrupt()
76 if (likely(egalax->data[0] & EGALAX_FORMAT_START_BIT)) { in egalax_interrupt()
77 pkt_len = egalax->data[0] & EGALAX_FORMAT_PRESSURE_BIT ? 6 : 5; in egalax_interrupt()
78 if (pkt_len == egalax->idx) { in egalax_interrupt()
79 egalax_process_data(egalax); in egalax_interrupt()
80 egalax->idx = 0; in egalax_interrupt()
84 egalax->data[0]); in egalax_interrupt()
85 egalax->idx = 0; in egalax_interrupt()
98 struct egalax *egalax; in egalax_connect() local
102 egalax = kzalloc(sizeof(*egalax), GFP_KERNEL); in egalax_connect()
104 if (!egalax || !input_dev) { in egalax_connect()
109 egalax->serio = serio; in egalax_connect()
110 egalax->input = input_dev; in egalax_connect()
111 snprintf(egalax->phys, sizeof(egalax->phys), in egalax_connect()
115 input_dev->phys = egalax->phys; in egalax_connect()
128 serio_set_drvdata(serio, egalax); in egalax_connect()
146 kfree(egalax); in egalax_connect()
152 struct egalax *egalax = serio_get_drvdata(serio); in egalax_disconnect() local
156 input_unregister_device(egalax->input); in egalax_disconnect()
157 kfree(egalax); in egalax_disconnect()