Lines Matching refs:rmem

384 ssize_t wiimote_cmd_read(struct wiimote_data *wdata, __u32 offset, __u8 *rmem,  in wiimote_cmd_read()  argument
392 wdata->state.cmd_read_buf = rmem; in wiimote_cmd_read()
435 static __u8 wiimote_cmd_read_ext(struct wiimote_data *wdata, __u8 *rmem) in wiimote_cmd_read_ext() argument
440 ret = wiimote_cmd_read(wdata, 0xa400fa, rmem, 6); in wiimote_cmd_read_ext()
444 hid_dbg(wdata->hdev, "extension ID: %6phC\n", rmem); in wiimote_cmd_read_ext()
446 if (rmem[0] == 0xff && rmem[1] == 0xff && rmem[2] == 0xff && in wiimote_cmd_read_ext()
447 rmem[3] == 0xff && rmem[4] == 0xff && rmem[5] == 0xff) in wiimote_cmd_read_ext()
450 if (rmem[4] == 0x00 && rmem[5] == 0x00) in wiimote_cmd_read_ext()
452 if (rmem[4] == 0x01 && rmem[5] == 0x01) in wiimote_cmd_read_ext()
454 if (rmem[4] == 0x04 && rmem[5] == 0x02) in wiimote_cmd_read_ext()
456 if (rmem[4] == 0x01 && rmem[5] == 0x20) in wiimote_cmd_read_ext()
458 if (rmem[0] == 0x01 && rmem[1] == 0x00 && in wiimote_cmd_read_ext()
459 rmem[4] == 0x01 && rmem[5] == 0x03) in wiimote_cmd_read_ext()
461 if (rmem[0] == 0x00 && rmem[1] == 0x00 && in wiimote_cmd_read_ext()
462 rmem[4] == 0x01 && rmem[5] == 0x03) in wiimote_cmd_read_ext()
513 static bool wiimote_cmd_read_mp(struct wiimote_data *wdata, __u8 *rmem) in wiimote_cmd_read_mp() argument
518 ret = wiimote_cmd_read(wdata, 0xa600fa, rmem, 6); in wiimote_cmd_read_mp()
522 hid_dbg(wdata->hdev, "motion plus ID: %6phC\n", rmem); in wiimote_cmd_read_mp()
524 if (rmem[5] == 0x05) in wiimote_cmd_read_mp()
527 hid_info(wdata->hdev, "unknown motion plus ID: %6phC\n", rmem); in wiimote_cmd_read_mp()
536 __u8 rmem[6]; in wiimote_cmd_read_mp_mapped() local
539 ret = wiimote_cmd_read(wdata, 0xa400fa, rmem, 6); in wiimote_cmd_read_mp_mapped()
543 hid_dbg(wdata->hdev, "mapped motion plus ID: %6phC\n", rmem); in wiimote_cmd_read_mp_mapped()
545 if (rmem[0] == 0xff && rmem[1] == 0xff && rmem[2] == 0xff && in wiimote_cmd_read_mp_mapped()
546 rmem[3] == 0xff && rmem[4] == 0xff && rmem[5] == 0xff) in wiimote_cmd_read_mp_mapped()
549 if (rmem[4] == 0x04 && rmem[5] == 0x05) in wiimote_cmd_read_mp_mapped()
551 else if (rmem[4] == 0x05 && rmem[5] == 0x05) in wiimote_cmd_read_mp_mapped()
553 else if (rmem[4] == 0x07 && rmem[5] == 0x05) in wiimote_cmd_read_mp_mapped()