Lines Matching defs:report

342 /* The Navigation controller is a partial DS3 and uses the same HID report
488 /* Offsets relative to USB input report (0x1). Bluetooth (0x11) requires an
859 hid_info(hdev, "Fixing up Sony RF Receiver report descriptor\n");
871 * Some knock-off USB dongles incorrectly report their button count
881 hid_info(hdev, "Fixing up USB dongle report descriptor\n");
900 * It does not report the actual level while charging so it
959 * report type 1 when running over Bluetooth. However, when feature
960 * report 2 is requested during the controller initialization it starts
961 * sending input reports in report 17. Since report 17 is undefined
1080 * The first byte indicates the number of touch data in the report.
1200 static int sony_raw_event(struct hid_device *hdev, struct hid_report *report,
1206 * Sixaxis HID report has acclerometers/gyro with MSByte first, this
1212 * a report with the second byte 0xff and the rest zeroed.
1214 * This report does not reflect the actual state of the
1246 hid_dbg(sc->hdev, "DualShock 4 input report's CRC check failed, received crc 0x%0x != 0x%0x\n",
1286 /* Don't process the report since we don't have
1298 /* Return 0, so hidraw can get the report. */
1303 /* Return 0, so hidraw can get the report. */
1507 * to "operational". Without this, the ps3 controller will not report any
1561 static const u8 report[] = { 0xf4, 0x42, 0x03, 0x00, 0x00 };
1565 buf = kmemdup(report, sizeof(report), GFP_KERNEL);
1569 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(report),
1596 * Note: in Bluetooth mode feature report 0x02 also changes the state
1633 hid_warn(sc->hdev, "DualShock 4 calibration report's CRC check failed, received crc 0x%0x != 0x%0x\n",
1636 hid_warn(sc->hdev, "Retrying DualShock 4 get calibration report request\n");
1828 struct hid_report *report = list_entry(report_list->next,
1830 s32 *value = report->field[0]->value;
1841 hid_hw_request(hdev, report, HID_REQ_SET_REPORT);
1986 /* Validate expected report characteristics. */
2084 struct sixaxis_output_report *report =
2088 /* Initialize the report with default values */
2089 memcpy(report, &default_report, sizeof(struct sixaxis_output_report));
2092 report->rumble.right_motor_on = sc->right ? 1 : 0;
2093 report->rumble.left_motor_force = sc->left;
2096 report->leds_bitmap |= sc->led_state[0] << 1;
2097 report->leds_bitmap |= sc->led_state[1] << 2;
2098 report->leds_bitmap |= sc->led_state[2] << 3;
2099 report->leds_bitmap |= sc->led_state[3] << 4;
2102 if ((report->leds_bitmap & 0x1E) == 0)
2103 report->leds_bitmap |= 0x20;
2106 * The LEDs in the report are indexed in reverse order to their
2111 * default report values should be used or the controller LED will be
2116 report->led[3 - n].duty_off = sc->led_delay_off[n];
2117 report->led[3 - n].duty_on = sc->led_delay_on[n];
2123 hid_hw_output_report(sc->hdev, (u8 *)report,
2126 hid_hw_raw_request(sc->hdev, report->report_id, (u8 *)report,
2138 * NOTE: The lower 6 bits of buf[1] field of the Bluetooth report
2196 struct motion_output_report_02 *report =
2199 memset(report, 0, MOTION_REPORT_0x02_SIZE);
2201 report->type = 0x02; /* set leds */
2202 report->r = sc->led_state[0];
2203 report->g = sc->led_state[1];
2204 report->b = sc->led_state[2];
2207 report->rumble = max(sc->right, sc->left);
2210 hid_hw_output_report(hdev, (u8 *)report, MOTION_REPORT_0x02_SIZE);
2348 * if the battery is polled before the first device report is received.
2483 * retrieved with feature report 0x81. The address begins at
2491 hid_err(sc->hdev, "failed to retrieve feature report 0x81 with the DualShock 4 MAC address\n");
2508 * be retrieved with feature report 0xf2. The address begins at
2516 hid_err(sc->hdev, "failed to retrieve feature report 0xf2 with the Sixaxis MAC address\n");
2522 * The Sixaxis device MAC in the report is big-endian and must
2619 hid_err(hdev, "failed to allocate the output report buffer\n");
2636 * any state set by an output report, so the initial
2637 * configuration report is deferred until the first input
2638 * report arrives.