Lines Matching +full:11 +full:mp
471 /* initialize MP */ in wiimote_cmd_init_mp()
491 /* map MP with correct pass-through mode */ in wiimote_cmd_map_mp()
770 wdata->state.mp = mode; in wiimote_mp_load()
779 if (wdata->state.mp < 2) in wiimote_mp_unload()
785 wdata->state.mp = 0; in wiimote_mp_unload()
895 /* schedule MP timer */ in wiimote_init_detect()
904 * MP hotplug events are not generated by the wiimote. Therefore, we need
905 * polling to detect it. We use a 4s interval for polling MP registers. This
911 bool mp; in wiimote_init_poll_mp() local
916 mp = wiimote_cmd_read_mp(wdata, mpdata); in wiimote_init_poll_mp()
919 /* load/unload MP module if it changed */ in wiimote_init_poll_mp()
920 if (mp) { in wiimote_init_poll_mp()
921 if (!wdata->state.mp) { in wiimote_init_poll_mp()
925 } else if (wdata->state.mp) { in wiimote_init_poll_mp()
954 /* If MP is used and active, but the extension is not, we expect: in wiimote_init_check()
958 * initialization of MP without extensions. in wiimote_init_check()
959 * - If MP is unplugged/replugged, read_mp_mapped() fails in wiimote_init_check()
962 wdata->state.mp > 0 && (flags & WIIPROTO_FLAG_MP_USED)) { in wiimote_init_check()
973 hid_dbg(wdata->hdev, "state left: !EXT && MP\n"); in wiimote_init_check()
975 /* while MP is mapped, we get EXT_PLUGGED events */ in wiimote_init_check()
981 /* If MP is unused, but the extension port is used, we expect: in wiimote_init_check()
984 * - If MP is plugged/unplugged, our timer detects it in wiimote_init_check()
997 hid_dbg(wdata->hdev, "state left: EXT && !MP\n"); in wiimote_init_check()
999 /* poll MP for hotplug events */ in wiimote_init_check()
1005 /* If neither MP nor an extension are used, we expect: in wiimote_init_check()
1010 * - If MP is plugged/unplugged, our timer detects it in wiimote_init_check()
1024 hid_dbg(wdata->hdev, "state left: !EXT && !MP\n"); in wiimote_init_check()
1026 /* poll MP for hotplug events */ in wiimote_init_check()
1032 /* The trickiest part is if both EXT and MP are active. We cannot read in wiimote_init_check()
1033 * the EXT ID, anymore, because MP is mapped over it. However, we use in wiimote_init_check()
1041 wdata->state.mp > 0 && (flags & WIIPROTO_FLAG_MP_USED)) { in wiimote_init_check()
1054 hid_dbg(wdata->hdev, "state left: EXT && MP\n"); in wiimote_init_check()
1056 /* while MP is mapped, we get EXT_PLUGGED events */ in wiimote_init_check()
1068 /* only poll for MP if requested and if state didn't change */ in wiimote_init_check()
1091 * the desired state. This involves mapping MP into the main extension
1099 bool mp; in wiimote_init_hotplug() local
1116 /* init extension and MP (deactivates current extension or MP) */ in wiimote_init_hotplug()
1119 mp = false; in wiimote_init_hotplug()
1122 mp = wiimote_cmd_read_mp(wdata, mpdata); in wiimote_init_hotplug()
1148 /* load/unload MP module if it changed */ in wiimote_init_hotplug()
1149 if (mp) { in wiimote_init_hotplug()
1150 if (!wdata->state.mp) { in wiimote_init_hotplug()
1154 } else if (wdata->state.mp) { in wiimote_init_hotplug()
1158 /* if MP is not used, do not map or activate it */ in wiimote_init_hotplug()
1160 mp = false; in wiimote_init_hotplug()
1162 /* map MP into main extension registers if used */ in wiimote_init_hotplug()
1163 if (mp) { in wiimote_init_hotplug()
1168 /* delete MP hotplug timer */ in wiimote_init_hotplug()
1171 /* reschedule MP hotplug timer */ in wiimote_init_hotplug()
1180 if (mp) { in wiimote_init_hotplug()
1199 hid_dbg(wdata->hdev, "detected extensions: MP: %d EXT: %d\n", in wiimote_init_hotplug()
1200 wdata->state.mp, wdata->state.exttype); in wiimote_init_hotplug()
1317 /* if MP is active, track MP slot hotplugging */ in handler_ext()
1325 hid_dbg(wdata->hdev, "MP hotplug: 1\n"); in handler_ext()
1331 hid_dbg(wdata->hdev, "MP hotplug: 0\n"); in handler_ext()
1338 /* detect MP data that is sent interleaved with EXT data */ in handler_ext()
1358 /* try forwarding to MP handler */ in handler_ext()
1508 ir_to_input2(wdata, &payload[11], false); in handler_drm_KAI()