• Home
  • Raw
  • Download

Lines Matching refs:input_dev

53 	struct input_dev *dev;
110 struct input_dev *input_dev = hanwang->dev; in hanwang_parse_packet() local
127 input_report_key(input_dev, in hanwang_parse_packet()
135 input_report_key(input_dev, in hanwang_parse_packet()
146 input_report_key(input_dev, BTN_TOOL_PEN, 1); in hanwang_parse_packet()
152 input_report_key(input_dev, BTN_TOOL_RUBBER, 1); in hanwang_parse_packet()
180 input_report_abs(input_dev, ABS_X, in hanwang_parse_packet()
182 input_report_abs(input_dev, ABS_Y, in hanwang_parse_packet()
184 input_report_abs(input_dev, ABS_PRESSURE, p); in hanwang_parse_packet()
185 input_report_abs(input_dev, ABS_TILT_X, data[7] & 0x3f); in hanwang_parse_packet()
186 input_report_abs(input_dev, ABS_TILT_Y, data[8] & 0x7f); in hanwang_parse_packet()
187 input_report_key(input_dev, BTN_STYLUS, data[1] & 0x02); in hanwang_parse_packet()
190 input_report_key(input_dev, BTN_STYLUS2, in hanwang_parse_packet()
193 input_report_key(input_dev, BTN_TOOL_PEN, 1); in hanwang_parse_packet()
198 input_report_abs(input_dev, ABS_MISC, hanwang->current_id); in hanwang_parse_packet()
199 input_event(input_dev, EV_MSC, MSC_SERIAL, in hanwang_parse_packet()
209 input_report_key(input_dev, BTN_TOOL_FINGER, in hanwang_parse_packet()
211 input_report_abs(input_dev, ABS_WHEEL, data[1]); in hanwang_parse_packet()
212 input_report_key(input_dev, BTN_0, data[2]); in hanwang_parse_packet()
214 input_report_key(input_dev, in hanwang_parse_packet()
219 input_report_key(input_dev, BTN_TOOL_FINGER, data[1] || in hanwang_parse_packet()
222 input_report_abs(input_dev, ABS_RX, in hanwang_parse_packet()
224 input_report_abs(input_dev, ABS_RY, in hanwang_parse_packet()
226 input_report_key(input_dev, BTN_0, data[5] & 0x01); in hanwang_parse_packet()
228 input_report_key(input_dev, in hanwang_parse_packet()
230 input_report_key(input_dev, in hanwang_parse_packet()
240 input_report_abs(input_dev, ABS_MISC, hanwang->current_id); in hanwang_parse_packet()
241 input_event(input_dev, EV_MSC, MSC_SERIAL, 0xffffffff); in hanwang_parse_packet()
249 input_sync(input_dev); in hanwang_parse_packet()
282 static int hanwang_open(struct input_dev *dev) in hanwang_open()
293 static void hanwang_close(struct input_dev *dev) in hanwang_close()
321 struct input_dev *input_dev; in hanwang_probe() local
329 input_dev = input_allocate_device(); in hanwang_probe()
330 if (!hanwang || !input_dev) { in hanwang_probe()
354 hanwang->dev = input_dev; in hanwang_probe()
360 input_dev->name = hanwang->name; in hanwang_probe()
361 input_dev->phys = hanwang->phys; in hanwang_probe()
362 usb_to_input_id(dev, &input_dev->id); in hanwang_probe()
363 input_dev->dev.parent = &intf->dev; in hanwang_probe()
365 input_set_drvdata(input_dev, hanwang); in hanwang_probe()
367 input_dev->open = hanwang_open; in hanwang_probe()
368 input_dev->close = hanwang_close; in hanwang_probe()
371 __set_bit(hw_eventtypes[i], input_dev->evbit); in hanwang_probe()
374 __set_bit(hw_absevents[i], input_dev->absbit); in hanwang_probe()
377 __set_bit(hw_btnevents[i], input_dev->keybit); in hanwang_probe()
380 __set_bit(hw_mscevents[i], input_dev->mscbit); in hanwang_probe()
382 input_set_abs_params(input_dev, ABS_X, in hanwang_probe()
384 input_set_abs_params(input_dev, ABS_Y, in hanwang_probe()
386 input_set_abs_params(input_dev, ABS_TILT_X, in hanwang_probe()
388 input_set_abs_params(input_dev, ABS_TILT_Y, in hanwang_probe()
390 input_set_abs_params(input_dev, ABS_PRESSURE, in hanwang_probe()
412 fail1: input_free_device(input_dev); in hanwang_probe()