Lines Matching defs:ops

629 	const struct wiimod_ops *ops;
656 ops = wiimod_table[*iter];
657 if (!ops->probe)
660 ret = ops->probe(ops, wdata);
678 ops = wiimod_table[*iter];
679 if (ops->remove)
680 ops->remove(ops, wdata);
692 const struct wiimod_ops *ops;
711 ops = wiimod_table[*iter];
712 if (ops->remove)
713 ops->remove(ops, wdata);
727 const struct wiimod_ops *ops;
730 ops = wiimod_ext_table[ext];
732 if (ops->probe) {
733 ret = ops->probe(ops, wdata);
746 const struct wiimod_ops *ops;
748 ops = wiimod_ext_table[wdata->state.exttype];
755 if (ops->remove)
756 ops->remove(ops, wdata);
762 const struct wiimod_ops *ops;
766 ops = &wiimod_mp;
767 if (ops->probe) {
768 ret = ops->probe(ops, wdata);
781 const struct wiimod_ops *ops;
786 ops = &wiimod_mp;
793 if (ops->remove)
794 ops->remove(ops, wdata);
1253 const struct wiimod_ops *ops;
1255 ops = wiimod_ext_table[wdata->state.exttype];
1256 if (ops->in_keys) {
1257 ops->in_keys(wdata, payload);
1263 ops = wiimod_table[*iter];
1264 if (ops->in_keys) {
1265 ops->in_keys(wdata, payload);
1274 const struct wiimod_ops *ops;
1276 ops = wiimod_ext_table[wdata->state.exttype];
1277 if (ops->in_accel) {
1278 ops->in_accel(wdata, payload);
1284 ops = wiimod_table[*iter];
1285 if (ops->in_accel) {
1286 ops->in_accel(wdata, payload);
1292 static bool valid_ext_handler(const struct wiimod_ops *ops, size_t len)
1294 if (!ops->in_ext)
1296 if ((ops->flags & WIIMOD_FLAG_EXT8) && len < 8)
1298 if ((ops->flags & WIIMOD_FLAG_EXT16) && len < 16)
1314 const struct wiimod_ops *ops;
1354 ops = wiimod_ext_table[wdata->state.exttype];
1355 if (is_mp && ops->in_mp) {
1356 ops->in_mp(wdata, payload);
1358 } else if (!is_mp && valid_ext_handler(ops, len)) {
1359 ops->in_ext(wdata, payload);
1364 ops = &wiimod_mp;
1365 if (is_mp && ops->in_mp) {
1366 ops->in_mp(wdata, payload);
1368 } else if (!is_mp && valid_ext_handler(ops, len)) {
1369 ops->in_ext(wdata, payload);
1376 ops = wiimod_table[*iter];
1377 if (is_mp && ops->in_mp) {
1378 ops->in_mp(wdata, payload);
1380 } else if (!is_mp && valid_ext_handler(ops, len)) {
1381 ops->in_ext(wdata, payload);
1396 const struct wiimod_ops *ops;
1398 ops = wiimod_ext_table[wdata->state.exttype];
1399 if (ops->in_ir) {
1400 ops->in_ir(wdata, payload, packed, id);
1406 ops = wiimod_table[*iter];
1407 if (ops->in_ir) {
1408 ops->in_ir(wdata, payload, packed, id);