Lines Matching refs:mp
2087 input_report_abs(wdata->mp, ABS_RX, x); in wiimod_mp_in_mp()
2088 input_report_abs(wdata->mp, ABS_RY, y); in wiimod_mp_in_mp()
2089 input_report_abs(wdata->mp, ABS_RZ, z); in wiimod_mp_in_mp()
2090 input_sync(wdata->mp); in wiimod_mp_in_mp()
2124 wdata->mp = input_allocate_device(); in wiimod_mp_probe()
2125 if (!wdata->mp) in wiimod_mp_probe()
2128 input_set_drvdata(wdata->mp, wdata); in wiimod_mp_probe()
2129 wdata->mp->open = wiimod_mp_open; in wiimod_mp_probe()
2130 wdata->mp->close = wiimod_mp_close; in wiimod_mp_probe()
2131 wdata->mp->dev.parent = &wdata->hdev->dev; in wiimod_mp_probe()
2132 wdata->mp->id.bustype = wdata->hdev->bus; in wiimod_mp_probe()
2133 wdata->mp->id.vendor = wdata->hdev->vendor; in wiimod_mp_probe()
2134 wdata->mp->id.product = wdata->hdev->product; in wiimod_mp_probe()
2135 wdata->mp->id.version = wdata->hdev->version; in wiimod_mp_probe()
2136 wdata->mp->name = WIIMOTE_NAME " Motion Plus"; in wiimod_mp_probe()
2138 set_bit(EV_ABS, wdata->mp->evbit); in wiimod_mp_probe()
2139 set_bit(ABS_RX, wdata->mp->absbit); in wiimod_mp_probe()
2140 set_bit(ABS_RY, wdata->mp->absbit); in wiimod_mp_probe()
2141 set_bit(ABS_RZ, wdata->mp->absbit); in wiimod_mp_probe()
2142 input_set_abs_params(wdata->mp, in wiimod_mp_probe()
2144 input_set_abs_params(wdata->mp, in wiimod_mp_probe()
2146 input_set_abs_params(wdata->mp, in wiimod_mp_probe()
2149 ret = input_register_device(wdata->mp); in wiimod_mp_probe()
2156 input_free_device(wdata->mp); in wiimod_mp_probe()
2157 wdata->mp = NULL; in wiimod_mp_probe()
2164 if (!wdata->mp) in wiimod_mp_remove()
2167 input_unregister_device(wdata->mp); in wiimod_mp_remove()
2168 wdata->mp = NULL; in wiimod_mp_remove()