Lines Matching +full:11 +full:mp
474 /* initialize MP */ in wiimote_cmd_init_mp()
494 /* map MP with correct pass-through mode */ in wiimote_cmd_map_mp()
774 wdata->state.mp = mode; in wiimote_mp_load()
783 if (wdata->state.mp < 2) in wiimote_mp_unload()
789 wdata->state.mp = 0; in wiimote_mp_unload()
899 /* schedule MP timer */ in wiimote_init_detect()
908 * MP hotplug events are not generated by the wiimote. Therefore, we need
909 * polling to detect it. We use a 4s interval for polling MP registers. This
915 bool mp; in wiimote_init_poll_mp() local
920 mp = wiimote_cmd_read_mp(wdata, mpdata); in wiimote_init_poll_mp()
923 /* load/unload MP module if it changed */ in wiimote_init_poll_mp()
924 if (mp) { in wiimote_init_poll_mp()
925 if (!wdata->state.mp) { in wiimote_init_poll_mp()
929 } else if (wdata->state.mp) { in wiimote_init_poll_mp()
958 /* If MP is used and active, but the extension is not, we expect: in wiimote_init_check()
962 * initialization of MP without extensions. in wiimote_init_check()
963 * - If MP is unplugged/replugged, read_mp_mapped() fails in wiimote_init_check()
966 wdata->state.mp > 0 && (flags & WIIPROTO_FLAG_MP_USED)) { in wiimote_init_check()
977 hid_dbg(wdata->hdev, "state left: !EXT && MP\n"); in wiimote_init_check()
979 /* while MP is mapped, we get EXT_PLUGGED events */ in wiimote_init_check()
985 /* If MP is unused, but the extension port is used, we expect: in wiimote_init_check()
988 * - If MP is plugged/unplugged, our timer detects it in wiimote_init_check()
1001 hid_dbg(wdata->hdev, "state left: EXT && !MP\n"); in wiimote_init_check()
1003 /* poll MP for hotplug events */ in wiimote_init_check()
1009 /* If neither MP nor an extension are used, we expect: in wiimote_init_check()
1014 * - If MP is plugged/unplugged, our timer detects it in wiimote_init_check()
1028 hid_dbg(wdata->hdev, "state left: !EXT && !MP\n"); in wiimote_init_check()
1030 /* poll MP for hotplug events */ in wiimote_init_check()
1036 /* The trickiest part is if both EXT and MP are active. We cannot read in wiimote_init_check()
1037 * the EXT ID, anymore, because MP is mapped over it. However, we use in wiimote_init_check()
1045 wdata->state.mp > 0 && (flags & WIIPROTO_FLAG_MP_USED)) { in wiimote_init_check()
1058 hid_dbg(wdata->hdev, "state left: EXT && MP\n"); in wiimote_init_check()
1060 /* while MP is mapped, we get EXT_PLUGGED events */ in wiimote_init_check()
1072 /* only poll for MP if requested and if state didn't change */ in wiimote_init_check()
1096 * the desired state. This involves mapping MP into the main extension
1104 bool mp; in wiimote_init_hotplug() local
1121 /* init extension and MP (deactivates current extension or MP) */ in wiimote_init_hotplug()
1124 mp = false; in wiimote_init_hotplug()
1127 mp = wiimote_cmd_read_mp(wdata, mpdata); in wiimote_init_hotplug()
1153 /* load/unload MP module if it changed */ in wiimote_init_hotplug()
1154 if (mp) { in wiimote_init_hotplug()
1155 if (!wdata->state.mp) { in wiimote_init_hotplug()
1159 } else if (wdata->state.mp) { in wiimote_init_hotplug()
1163 /* if MP is not used, do not map or activate it */ in wiimote_init_hotplug()
1165 mp = false; in wiimote_init_hotplug()
1167 /* map MP into main extension registers if used */ in wiimote_init_hotplug()
1168 if (mp) { in wiimote_init_hotplug()
1173 /* delete MP hotplug timer */ in wiimote_init_hotplug()
1176 /* reschedule MP hotplug timer */ in wiimote_init_hotplug()
1185 if (mp) { in wiimote_init_hotplug()
1204 hid_dbg(wdata->hdev, "detected extensions: MP: %d EXT: %d\n", in wiimote_init_hotplug()
1205 wdata->state.mp, wdata->state.exttype); in wiimote_init_hotplug()
1322 /* if MP is active, track MP slot hotplugging */ in handler_ext()
1330 hid_dbg(wdata->hdev, "MP hotplug: 1\n"); in handler_ext()
1336 hid_dbg(wdata->hdev, "MP hotplug: 0\n"); in handler_ext()
1343 /* detect MP data that is sent interleaved with EXT data */ in handler_ext()
1363 /* try forwarding to MP handler */ in handler_ext()
1513 ir_to_input2(wdata, &payload[11], false); in handler_drm_KAI()