Lines Matching refs:ops

620 	const struct wiimod_ops *ops;  in wiimote_modules_load()  local
647 ops = wiimod_table[*iter]; in wiimote_modules_load()
648 if (!ops->probe) in wiimote_modules_load()
651 ret = ops->probe(ops, wdata); in wiimote_modules_load()
669 ops = wiimod_table[*iter]; in wiimote_modules_load()
670 if (ops->remove) in wiimote_modules_load()
671 ops->remove(ops, wdata); in wiimote_modules_load()
683 const struct wiimod_ops *ops; in wiimote_modules_unload() local
702 ops = wiimod_table[*iter]; in wiimote_modules_unload()
703 if (ops->remove) in wiimote_modules_unload()
704 ops->remove(ops, wdata); in wiimote_modules_unload()
718 const struct wiimod_ops *ops; in wiimote_ext_load() local
721 ops = wiimod_ext_table[ext]; in wiimote_ext_load()
723 if (ops->probe) { in wiimote_ext_load()
724 ret = ops->probe(ops, wdata); in wiimote_ext_load()
737 const struct wiimod_ops *ops; in wiimote_ext_unload() local
739 ops = wiimod_ext_table[wdata->state.exttype]; in wiimote_ext_unload()
746 if (ops->remove) in wiimote_ext_unload()
747 ops->remove(ops, wdata); in wiimote_ext_unload()
753 const struct wiimod_ops *ops; in wiimote_mp_load() local
757 ops = &wiimod_mp; in wiimote_mp_load()
758 if (ops->probe) { in wiimote_mp_load()
759 ret = ops->probe(ops, wdata); in wiimote_mp_load()
772 const struct wiimod_ops *ops; in wiimote_mp_unload() local
777 ops = &wiimod_mp; in wiimote_mp_unload()
784 if (ops->remove) in wiimote_mp_unload()
785 ops->remove(ops, wdata); in wiimote_mp_unload()
1241 const struct wiimod_ops *ops; in handler_keys() local
1243 ops = wiimod_ext_table[wdata->state.exttype]; in handler_keys()
1244 if (ops->in_keys) { in handler_keys()
1245 ops->in_keys(wdata, payload); in handler_keys()
1251 ops = wiimod_table[*iter]; in handler_keys()
1252 if (ops->in_keys) { in handler_keys()
1253 ops->in_keys(wdata, payload); in handler_keys()
1262 const struct wiimod_ops *ops; in handler_accel() local
1264 ops = wiimod_ext_table[wdata->state.exttype]; in handler_accel()
1265 if (ops->in_accel) { in handler_accel()
1266 ops->in_accel(wdata, payload); in handler_accel()
1272 ops = wiimod_table[*iter]; in handler_accel()
1273 if (ops->in_accel) { in handler_accel()
1274 ops->in_accel(wdata, payload); in handler_accel()
1280 static bool valid_ext_handler(const struct wiimod_ops *ops, size_t len) in valid_ext_handler() argument
1282 if (!ops->in_ext) in valid_ext_handler()
1284 if ((ops->flags & WIIMOD_FLAG_EXT8) && len < 8) in valid_ext_handler()
1286 if ((ops->flags & WIIMOD_FLAG_EXT16) && len < 16) in valid_ext_handler()
1302 const struct wiimod_ops *ops; in handler_ext() local
1342 ops = wiimod_ext_table[wdata->state.exttype]; in handler_ext()
1343 if (is_mp && ops->in_mp) { in handler_ext()
1344 ops->in_mp(wdata, payload); in handler_ext()
1346 } else if (!is_mp && valid_ext_handler(ops, len)) { in handler_ext()
1347 ops->in_ext(wdata, payload); in handler_ext()
1352 ops = &wiimod_mp; in handler_ext()
1353 if (is_mp && ops->in_mp) { in handler_ext()
1354 ops->in_mp(wdata, payload); in handler_ext()
1356 } else if (!is_mp && valid_ext_handler(ops, len)) { in handler_ext()
1357 ops->in_ext(wdata, payload); in handler_ext()
1364 ops = wiimod_table[*iter]; in handler_ext()
1365 if (is_mp && ops->in_mp) { in handler_ext()
1366 ops->in_mp(wdata, payload); in handler_ext()
1368 } else if (!is_mp && valid_ext_handler(ops, len)) { in handler_ext()
1369 ops->in_ext(wdata, payload); in handler_ext()
1384 const struct wiimod_ops *ops; in handler_ir() local
1386 ops = wiimod_ext_table[wdata->state.exttype]; in handler_ir()
1387 if (ops->in_ir) { in handler_ir()
1388 ops->in_ir(wdata, payload, packed, id); in handler_ir()
1394 ops = wiimod_table[*iter]; in handler_ir()
1395 if (ops->in_ir) { in handler_ir()
1396 ops->in_ir(wdata, payload, packed, id); in handler_ir()