Lines Matching defs:rmem

342 		hid_warn(wdata->hdev, "Invalid length %d rmem request\n", size);
381 ssize_t wiimote_cmd_read(struct wiimote_data *wdata, __u32 offset, __u8 *rmem,
389 wdata->state.cmd_read_buf = rmem;
432 static __u8 wiimote_cmd_read_ext(struct wiimote_data *wdata, __u8 *rmem)
437 ret = wiimote_cmd_read(wdata, 0xa400fa, rmem, 6);
441 hid_dbg(wdata->hdev, "extension ID: %6phC\n", rmem);
443 if (rmem[0] == 0xff && rmem[1] == 0xff && rmem[2] == 0xff &&
444 rmem[3] == 0xff && rmem[4] == 0xff && rmem[5] == 0xff)
447 if (rmem[4] == 0x00 && rmem[5] == 0x00)
449 if (rmem[4] == 0x01 && rmem[5] == 0x01)
451 if (rmem[4] == 0x04 && rmem[5] == 0x02)
453 if (rmem[4] == 0x01 && rmem[5] == 0x20)
455 if (rmem[0] == 0x01 && rmem[1] == 0x00 &&
456 rmem[4] == 0x01 && rmem[5] == 0x03)
458 if (rmem[0] == 0x00 && rmem[1] == 0x00 &&
459 rmem[4] == 0x01 && rmem[5] == 0x03)
461 if (rmem[0] == 0x03 && rmem[1] == 0x00 &&
462 rmem[4] == 0x01 && rmem[5] == 0x03)
514 static bool wiimote_cmd_read_mp(struct wiimote_data *wdata, __u8 *rmem)
519 ret = wiimote_cmd_read(wdata, 0xa600fa, rmem, 6);
523 hid_dbg(wdata->hdev, "motion plus ID: %6phC\n", rmem);
525 if (rmem[5] == 0x05)
528 hid_info(wdata->hdev, "unknown motion plus ID: %6phC\n", rmem);
537 __u8 rmem[6];
540 ret = wiimote_cmd_read(wdata, 0xa400fa, rmem, 6);
544 hid_dbg(wdata->hdev, "mapped motion plus ID: %6phC\n", rmem);
546 if (rmem[0] == 0xff && rmem[1] == 0xff && rmem[2] == 0xff &&
547 rmem[3] == 0xff && rmem[4] == 0xff && rmem[5] == 0xff)
550 if (rmem[4] == 0x04 && rmem[5] == 0x05)
552 else if (rmem[4] == 0x05 && rmem[5] == 0x05)
554 else if (rmem[4] == 0x07 && rmem[5] == 0x05)