Symbol: mtouch
drivers/input/misc/xen-kbdfront.c
114
struct xenkbd_mtouch *mtouch)
drivers/input/misc/xen-kbdfront.c
116
if (unlikely(!info->mtouch))
drivers/input/misc/xen-kbdfront.c
119
if (mtouch->contact_id != info->mtouch_cur_contact_id) {
drivers/input/misc/xen-kbdfront.c
120
info->mtouch_cur_contact_id = mtouch->contact_id;
drivers/input/misc/xen-kbdfront.c
121
input_mt_slot(info->mtouch, mtouch->contact_id);
drivers/input/misc/xen-kbdfront.c
124
switch (mtouch->event_type) {
drivers/input/misc/xen-kbdfront.c
126
input_mt_report_slot_state(info->mtouch, MT_TOOL_FINGER, true);
drivers/input/misc/xen-kbdfront.c
130
input_report_abs(info->mtouch, ABS_MT_POSITION_X,
drivers/input/misc/xen-kbdfront.c
131
mtouch->u.pos.abs_x);
drivers/input/misc/xen-kbdfront.c
132
input_report_abs(info->mtouch, ABS_MT_POSITION_Y,
drivers/input/misc/xen-kbdfront.c
133
mtouch->u.pos.abs_y);
drivers/input/misc/xen-kbdfront.c
137
input_report_abs(info->mtouch, ABS_MT_TOUCH_MAJOR,
drivers/input/misc/xen-kbdfront.c
138
mtouch->u.shape.major);
drivers/input/misc/xen-kbdfront.c
139
input_report_abs(info->mtouch, ABS_MT_TOUCH_MINOR,
drivers/input/misc/xen-kbdfront.c
140
mtouch->u.shape.minor);
drivers/input/misc/xen-kbdfront.c
144
input_report_abs(info->mtouch, ABS_MT_ORIENTATION,
drivers/input/misc/xen-kbdfront.c
145
mtouch->u.orientation);
drivers/input/misc/xen-kbdfront.c
149
input_mt_report_slot_inactive(info->mtouch);
drivers/input/misc/xen-kbdfront.c
153
input_mt_sync_frame(info->mtouch);
drivers/input/misc/xen-kbdfront.c
154
input_sync(info->mtouch);
drivers/input/misc/xen-kbdfront.c
176
xenkbd_handle_mt_event(info, &event->mtouch);
drivers/input/misc/xen-kbdfront.c
206
struct input_dev *kbd, *ptr, *mtouch;
drivers/input/misc/xen-kbdfront.c
333
mtouch = input_allocate_device();
drivers/input/misc/xen-kbdfront.c
334
if (!mtouch)
drivers/input/misc/xen-kbdfront.c
347
mtouch->name = "Xen Virtual Multi-touch";
drivers/input/misc/xen-kbdfront.c
348
mtouch->phys = info->phys;
drivers/input/misc/xen-kbdfront.c
349
mtouch->id.bustype = BUS_PCI;
drivers/input/misc/xen-kbdfront.c
350
mtouch->id.vendor = 0x5853;
drivers/input/misc/xen-kbdfront.c
351
mtouch->id.product = 0xfffd;
drivers/input/misc/xen-kbdfront.c
353
input_set_abs_params(mtouch, ABS_MT_TOUCH_MAJOR,
drivers/input/misc/xen-kbdfront.c
355
input_set_abs_params(mtouch, ABS_MT_POSITION_X,
drivers/input/misc/xen-kbdfront.c
357
input_set_abs_params(mtouch, ABS_MT_POSITION_Y,
drivers/input/misc/xen-kbdfront.c
360
ret = input_mt_init_slots(mtouch, num_cont, INPUT_MT_DIRECT);
drivers/input/misc/xen-kbdfront.c
362
input_free_device(mtouch);
drivers/input/misc/xen-kbdfront.c
368
ret = input_register_device(mtouch);
drivers/input/misc/xen-kbdfront.c
370
input_free_device(mtouch);
drivers/input/misc/xen-kbdfront.c
376
info->mtouch = mtouch;
drivers/input/misc/xen-kbdfront.c
38
struct input_dev *mtouch;
drivers/input/misc/xen-kbdfront.c
416
if (info->mtouch)
drivers/input/misc/xen-kbdfront.c
417
input_unregister_device(info->mtouch);
drivers/input/touchscreen/mtouch.c
109
struct mtouch *mtouch = serio_get_drvdata(serio);
drivers/input/touchscreen/mtouch.c
111
input_get_device(mtouch->dev);
drivers/input/touchscreen/mtouch.c
112
input_unregister_device(mtouch->dev);
drivers/input/touchscreen/mtouch.c
115
input_put_device(mtouch->dev);
drivers/input/touchscreen/mtouch.c
116
kfree(mtouch);
drivers/input/touchscreen/mtouch.c
127
struct mtouch *mtouch;
drivers/input/touchscreen/mtouch.c
131
mtouch = kzalloc_obj(*mtouch);
drivers/input/touchscreen/mtouch.c
133
if (!mtouch || !input_dev) {
drivers/input/touchscreen/mtouch.c
138
mtouch->serio = serio;
drivers/input/touchscreen/mtouch.c
139
mtouch->dev = input_dev;
drivers/input/touchscreen/mtouch.c
140
scnprintf(mtouch->phys, sizeof(mtouch->phys), "%s/input0", serio->phys);
drivers/input/touchscreen/mtouch.c
143
input_dev->phys = mtouch->phys;
drivers/input/touchscreen/mtouch.c
151
input_set_abs_params(mtouch->dev, ABS_X, MTOUCH_MIN_XC, MTOUCH_MAX_XC, 0, 0);
drivers/input/touchscreen/mtouch.c
152
input_set_abs_params(mtouch->dev, ABS_Y, MTOUCH_MIN_YC, MTOUCH_MAX_YC, 0, 0);
drivers/input/touchscreen/mtouch.c
154
serio_set_drvdata(serio, mtouch);
drivers/input/touchscreen/mtouch.c
160
err = input_register_device(mtouch->dev);
drivers/input/touchscreen/mtouch.c
169
kfree(mtouch);
drivers/input/touchscreen/mtouch.c
61
static void mtouch_process_format_tablet(struct mtouch *mtouch)
drivers/input/touchscreen/mtouch.c
63
struct input_dev *dev = mtouch->dev;
drivers/input/touchscreen/mtouch.c
65
if (MTOUCH_FORMAT_TABLET_LENGTH == ++mtouch->idx) {
drivers/input/touchscreen/mtouch.c
66
input_report_abs(dev, ABS_X, MTOUCH_GET_XC(mtouch->data));
drivers/input/touchscreen/mtouch.c
67
input_report_abs(dev, ABS_Y, MTOUCH_MAX_YC - MTOUCH_GET_YC(mtouch->data));
drivers/input/touchscreen/mtouch.c
68
input_report_key(dev, BTN_TOUCH, MTOUCH_GET_TOUCHED(mtouch->data));
drivers/input/touchscreen/mtouch.c
71
mtouch->idx = 0;
drivers/input/touchscreen/mtouch.c
75
static void mtouch_process_response(struct mtouch *mtouch)
drivers/input/touchscreen/mtouch.c
77
if (MTOUCH_RESPONSE_END_BYTE == mtouch->data[mtouch->idx++]) {
drivers/input/touchscreen/mtouch.c
79
mtouch->idx = 0;
drivers/input/touchscreen/mtouch.c
80
} else if (MTOUCH_MAX_LENGTH == mtouch->idx) {
drivers/input/touchscreen/mtouch.c
82
mtouch->idx = 0;
drivers/input/touchscreen/mtouch.c
89
struct mtouch *mtouch = serio_get_drvdata(serio);
drivers/input/touchscreen/mtouch.c
91
mtouch->data[mtouch->idx] = data;
drivers/input/touchscreen/mtouch.c
93
if (MTOUCH_FORMAT_TABLET_STATUS_BIT & mtouch->data[0])
drivers/input/touchscreen/mtouch.c
94
mtouch_process_format_tablet(mtouch);
drivers/input/touchscreen/mtouch.c
95
else if (MTOUCH_RESPONSE_BEGIN_BYTE == mtouch->data[0])
drivers/input/touchscreen/mtouch.c
96
mtouch_process_response(mtouch);
drivers/input/touchscreen/mtouch.c
98
printk(KERN_DEBUG "mtouch.c: unknown/unsynchronized data from device, byte %x\n",mtouch->data[0]);
drivers/input/touchscreen/usbtouchscreen.c
477
DEFINE_SIMPLE_SYSFS_GROUP_VISIBLE(mtouch);
drivers/input/touchscreen/usbtouchscreen.c
480
.is_visible = SYSFS_GROUP_VISIBLE(mtouch),
include/xen/interface/io/kbdif.h
487
struct xenkbd_mtouch mtouch;