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