Lines Matching defs:wdata
48 struct wiimote_data *wdata = container_of(queue, struct wiimote_data, in wiimote_queue_worker() local
73 static void wiimote_queue(struct wiimote_data *wdata, const __u8 *buffer, in wiimote_queue()
127 static inline void wiiproto_keep_rumble(struct wiimote_data *wdata, __u8 *cmd1) in wiiproto_keep_rumble()
133 void wiiproto_req_rumble(struct wiimote_data *wdata, __u8 rumble) in wiiproto_req_rumble()
153 void wiiproto_req_leds(struct wiimote_data *wdata, int leds) in wiiproto_req_leds()
197 static __u8 select_drm(struct wiimote_data *wdata) in select_drm()
243 void wiiproto_req_drm(struct wiimote_data *wdata, __u8 drm) in wiiproto_req_drm()
261 void wiiproto_req_status(struct wiimote_data *wdata) in wiiproto_req_status()
272 void wiiproto_req_accel(struct wiimote_data *wdata, __u8 accel) in wiiproto_req_accel()
286 void wiiproto_req_ir1(struct wiimote_data *wdata, __u8 flags) in wiiproto_req_ir1()
297 void wiiproto_req_ir2(struct wiimote_data *wdata, __u8 flags) in wiiproto_req_ir2()
308 #define wiiproto_req_wreg(wdata, os, buf, sz) \ argument
311 #define wiiproto_req_weeprom(wdata, os, buf, sz) \ argument
314 static void wiiproto_req_wmem(struct wiimote_data *wdata, bool eeprom, in wiiproto_req_wmem()
339 void wiiproto_req_rmem(struct wiimote_data *wdata, bool eeprom, __u32 offset, in wiiproto_req_rmem()
365 int wiimote_cmd_write(struct wiimote_data *wdata, __u32 offset, in wiimote_cmd_write()
384 ssize_t wiimote_cmd_read(struct wiimote_data *wdata, __u32 offset, __u8 *rmem, in wiimote_cmd_read()
414 static int wiimote_cmd_init_ext(struct wiimote_data *wdata) in wiimote_cmd_init_ext()
435 static __u8 wiimote_cmd_read_ext(struct wiimote_data *wdata, __u8 *rmem) in wiimote_cmd_read_ext()
463 static int wiimote_cmd_init_mp(struct wiimote_data *wdata) in wiimote_cmd_init_mp()
484 static bool wiimote_cmd_map_mp(struct wiimote_data *wdata, __u8 exttype) in wiimote_cmd_map_mp()
505 static bool wiimote_cmd_read_mp(struct wiimote_data *wdata, __u8 *rmem) in wiimote_cmd_read_mp()
525 static __u8 wiimote_cmd_read_mp_mapped(struct wiimote_data *wdata) in wiimote_cmd_read_mp_mapped()
615 static void wiimote_modules_load(struct wiimote_data *wdata, in wiimote_modules_load()
680 static void wiimote_modules_unload(struct wiimote_data *wdata) in wiimote_modules_unload()
715 static void wiimote_ext_load(struct wiimote_data *wdata, unsigned int ext) in wiimote_ext_load()
734 static void wiimote_ext_unload(struct wiimote_data *wdata) in wiimote_ext_unload()
750 static void wiimote_mp_load(struct wiimote_data *wdata) in wiimote_mp_load()
769 static void wiimote_mp_unload(struct wiimote_data *wdata) in wiimote_mp_unload()
804 static void wiimote_init_set_type(struct wiimote_data *wdata, in wiimote_init_set_type()
858 static void wiimote_init_detect(struct wiimote_data *wdata) in wiimote_init_detect()
904 static void wiimote_init_poll_mp(struct wiimote_data *wdata) in wiimote_init_poll_mp()
937 static bool wiimote_init_check(struct wiimote_data *wdata) in wiimote_init_check()
1088 static void wiimote_init_hotplug(struct wiimote_data *wdata) in wiimote_init_hotplug()
1198 struct wiimote_data *wdata = container_of(work, struct wiimote_data, in wiimote_init_worker() local
1214 void __wiimote_schedule(struct wiimote_data *wdata) in __wiimote_schedule()
1220 static void wiimote_schedule(struct wiimote_data *wdata) in wiimote_schedule()
1231 struct wiimote_data *wdata = (void*)arg; in wiimote_init_timeout() local
1238 static void handler_keys(struct wiimote_data *wdata, const __u8 *payload) in handler_keys()
1259 static void handler_accel(struct wiimote_data *wdata, const __u8 *payload) in handler_accel()
1292 static void handler_ext(struct wiimote_data *wdata, const __u8 *payload, in handler_ext()
1375 #define ir_to_input0(wdata, ir, packed) handler_ir((wdata), (ir), (packed), 0) argument
1376 #define ir_to_input1(wdata, ir, packed) handler_ir((wdata), (ir), (packed), 1) argument
1377 #define ir_to_input2(wdata, ir, packed) handler_ir((wdata), (ir), (packed), 2) argument
1378 #define ir_to_input3(wdata, ir, packed) handler_ir((wdata), (ir), (packed), 3) argument
1380 static void handler_ir(struct wiimote_data *wdata, const __u8 *payload, in handler_ir()
1403 static void handler_status_K(struct wiimote_data *wdata, in handler_status_K()
1413 static void handler_status(struct wiimote_data *wdata, const __u8 *payload) in handler_status()
1441 static void handler_generic_K(struct wiimote_data *wdata, const __u8 *payload) in handler_generic_K()
1446 static void handler_data(struct wiimote_data *wdata, const __u8 *payload) in handler_data()
1467 static void handler_return(struct wiimote_data *wdata, const __u8 *payload) in handler_return()
1483 static void handler_drm_KA(struct wiimote_data *wdata, const __u8 *payload) in handler_drm_KA()
1489 static void handler_drm_KE(struct wiimote_data *wdata, const __u8 *payload) in handler_drm_KE()
1495 static void handler_drm_KAI(struct wiimote_data *wdata, const __u8 *payload) in handler_drm_KAI()
1505 static void handler_drm_KEE(struct wiimote_data *wdata, const __u8 *payload) in handler_drm_KEE()
1511 static void handler_drm_KIE(struct wiimote_data *wdata, const __u8 *payload) in handler_drm_KIE()
1521 static void handler_drm_KAE(struct wiimote_data *wdata, const __u8 *payload) in handler_drm_KAE()
1528 static void handler_drm_KAIE(struct wiimote_data *wdata, const __u8 *payload) in handler_drm_KAIE()
1539 static void handler_drm_E(struct wiimote_data *wdata, const __u8 *payload) in handler_drm_E()
1544 static void handler_drm_SKAI1(struct wiimote_data *wdata, const __u8 *payload) in handler_drm_SKAI1()
1556 static void handler_drm_SKAI2(struct wiimote_data *wdata, const __u8 *payload) in handler_drm_SKAI2()
1613 struct wiimote_data *wdata = hid_get_drvdata(hdev); in wiimote_hid_event() local
1644 struct wiimote_data *wdata = dev_to_wii(dev); in wiimote_ext_show() local
1674 struct wiimote_data *wdata = dev_to_wii(dev); in wiimote_ext_store() local
1692 struct wiimote_data *wdata = dev_to_wii(dev); in wiimote_dev_show() local
1724 struct wiimote_data *wdata; in wiimote_create() local
1748 static void wiimote_destroy(struct wiimote_data *wdata) in wiimote_destroy()
1778 struct wiimote_data *wdata; in wiimote_hid_probe() local
1849 struct wiimote_data *wdata = hid_get_drvdata(hdev); in wiimote_hid_remove() local