Lines Matching refs: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)
510 static bool wiimote_cmd_read_mp(struct wiimote_data *wdata, __u8 *rmem)
515 ret = wiimote_cmd_read(wdata, 0xa600fa, rmem, 6);
519 hid_dbg(wdata->hdev, "motion plus ID: %6phC\n", rmem);
521 if (rmem[5] == 0x05)
524 hid_info(wdata->hdev, "unknown motion plus ID: %6phC\n", rmem);
533 __u8 rmem[6];
536 ret = wiimote_cmd_read(wdata, 0xa400fa, rmem, 6);
540 hid_dbg(wdata->hdev, "mapped motion plus ID: %6phC\n", rmem);
542 if (rmem[0] == 0xff && rmem[1] == 0xff && rmem[2] == 0xff &&
543 rmem[3] == 0xff && rmem[4] == 0xff && rmem[5] == 0xff)
546 if (rmem[4] == 0x04 && rmem[5] == 0x05)
548 else if (rmem[4] == 0x05 && rmem[5] == 0x05)
550 else if (rmem[4] == 0x07 && rmem[5] == 0x05)