Lines Matching refs:imon

40 	struct imon_dec *imon = &dev->raw->imon;  in ir_imon_decode_scancode()  local
43 if (imon->bits == 0x299115b7) in ir_imon_decode_scancode()
44 imon->stick_keyboard = !imon->stick_keyboard; in ir_imon_decode_scancode()
46 if ((imon->bits & 0xfc0000ff) == 0x680000b7) { in ir_imon_decode_scancode()
50 buf = imon->bits >> 16; in ir_imon_decode_scancode()
53 if (imon->bits & 0x02000000) in ir_imon_decode_scancode()
55 buf = imon->bits >> 8; in ir_imon_decode_scancode()
58 if (imon->bits & 0x01000000) in ir_imon_decode_scancode()
61 if (rel_x && rel_y && imon->stick_keyboard) { in ir_imon_decode_scancode()
63 imon->bits = rel_y > 0 ? in ir_imon_decode_scancode()
67 imon->bits = rel_x > 0 ? in ir_imon_decode_scancode()
72 if (!imon->stick_keyboard) { in ir_imon_decode_scancode()
74 .scancode = imon->bits, in ir_imon_decode_scancode()
80 input_event(imon->idev, EV_MSC, MSC_SCAN, imon->bits); in ir_imon_decode_scancode()
82 input_report_rel(imon->idev, REL_X, rel_x); in ir_imon_decode_scancode()
83 input_report_rel(imon->idev, REL_Y, rel_y); in ir_imon_decode_scancode()
85 input_report_key(imon->idev, BTN_LEFT, in ir_imon_decode_scancode()
86 (imon->bits & 0x00010000) != 0); in ir_imon_decode_scancode()
87 input_report_key(imon->idev, BTN_RIGHT, in ir_imon_decode_scancode()
88 (imon->bits & 0x00040000) != 0); in ir_imon_decode_scancode()
89 input_sync(imon->idev); in ir_imon_decode_scancode()
94 rc_keydown(dev, RC_PROTO_IMON, imon->bits, 0); in ir_imon_decode_scancode()
106 struct imon_dec *data = &dev->raw->imon; in ir_imon_decode()
247 struct imon_dec *imon = &dev->raw->imon; in ir_imon_register() local
254 snprintf(imon->name, sizeof(imon->name), in ir_imon_register()
256 idev->name = imon->name; in ir_imon_register()
271 input_set_drvdata(idev, imon); in ir_imon_register()
279 imon->idev = idev; in ir_imon_register()
280 imon->stick_keyboard = false; in ir_imon_register()
287 struct imon_dec *imon = &dev->raw->imon; in ir_imon_unregister() local
289 input_unregister_device(imon->idev); in ir_imon_unregister()
290 imon->idev = NULL; in ir_imon_unregister()