Lines Matching defs:report
39 * Reference the url below for the following HID report defines:
140 /* How many samples to sum before calculating average IMU report delta */
476 unsigned int imu_timestamp_us; /* timestamp we report to userspace */
477 unsigned int imu_last_pkt_ms; /* used to calc imu report delta */
478 /* the following are used to track the average imu report time delta */
515 hid_dbg(hdev, "Failed to send output report ret=%d\n", ret);
525 * report prior to sending the subcommand. This improves
540 "timeout waiting for input report\n");
590 * Wait a short time after receiving an input report before
706 struct joycon_input_report *report;
725 report = (struct joycon_input_report *)ctlr->input_buf;
727 *reply = &report->subcmd_reply.data[5];
1000 req->data[0] = 0x30; /* standard, full report mode */
1002 hid_dbg(ctlr->hdev, "setting controller report mode\n");
1087 * incrementing 8-bit counter per input report, but it is not very
1096 * - Each imu input report contains 3 IMU samples, (usually 5ms apart).
1114 * reported samples can vary based on the input report rate.
1123 * Keeping track of the average report delta allows us to submit our
1124 * timestamps to userspace based on that. Each report contains 3
1141 /* avg imu report delta housekeeping */
1179 /* Each IMU input report contains three samples */
1263 /* convert to micros and divide by 3 (3 samples per report). */
1339 /* report sticks */
1343 /* report buttons */
1395 /* report sticks */
1399 /* report buttons */
1421 * Was this input report a reasonable time delta compared to the prior
1422 * report? We use this information to decide when a safe time is to send
1433 * Our consecutive valid report tracking is only relevant for
1444 * Immediately after receiving a report is the most reliable time to
1446 * waiting for a report.
1682 /* We report joy-con d-pad inputs as buttons and pro controller as a hat. */
1777 /* Let's report joy-con S triggers separately */
2067 /* Set initially to unknown before receiving first input report */
2101 struct joycon_input_report *report;
2112 report = (struct joycon_input_report *)ctlr->input_buf;
2115 ctlr->mac_addr[j] = report->subcmd_reply.data[i];
2130 ctlr->ctlr_type = report->subcmd_reply.data[2];
2188 /* Set the reporting mode to 0x30, which is the full report mode */
2191 hid_err(hdev, "Failed to set report mode; ret=%d\n", ret);
2220 if (size >= 12) /* make sure it contains the input report */
2233 struct joycon_input_report *report;
2249 report = (struct joycon_input_report *)data;
2250 if (report->subcmd_reply.id == ctlr->subcmd_ack_match)
2276 struct hid_report *report, u8 *raw_data, int size)