Lines Matching defs:report

360 /* The Navigation controller is a partial DS3 and uses the same HID report
765 hid_info(hdev, "Fixing up Sony RF Receiver report descriptor\n");
777 * Some knock-off USB dongles incorrectly report their button count
787 hid_info(hdev, "Fixing up USB dongle report descriptor\n");
807 * It does not report the actual level while charging so it
918 static int sony_raw_event(struct hid_device *hdev, struct hid_report *report,
924 * Sixaxis HID report has acclerometers/gyro with MSByte first, this
930 * a report with the second byte 0xff and the rest zeroed.
932 * This report does not reflect the actual state of the
1130 * to "operational". Without this, the ps3 controller will not report any
1184 static const u8 report[] = { 0xf4, 0x42, 0x03, 0x00, 0x00 };
1188 buf = kmemdup(report, sizeof(report), GFP_KERNEL);
1192 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(report),
1231 struct hid_report *report = list_entry(report_list->next,
1233 s32 *value = report->field[0]->value;
1244 hid_hw_request(hdev, report, HID_REQ_SET_REPORT);
1389 /* Validate expected report characteristics. */
1478 struct sixaxis_output_report *report =
1482 /* Initialize the report with default values */
1483 memcpy(report, &default_report, sizeof(struct sixaxis_output_report));
1486 report->rumble.right_motor_on = sc->right ? 1 : 0;
1487 report->rumble.left_motor_force = sc->left;
1490 report->leds_bitmap |= sc->led_state[0] << 1;
1491 report->leds_bitmap |= sc->led_state[1] << 2;
1492 report->leds_bitmap |= sc->led_state[2] << 3;
1493 report->leds_bitmap |= sc->led_state[3] << 4;
1496 if ((report->leds_bitmap & 0x1E) == 0)
1497 report->leds_bitmap |= 0x20;
1500 * The LEDs in the report are indexed in reverse order to their
1505 * default report values should be used or the controller LED will be
1510 report->led[3 - n].duty_off = sc->led_delay_off[n];
1511 report->led[3 - n].duty_on = sc->led_delay_on[n];
1517 hid_hw_output_report(sc->hdev, (u8 *)report,
1520 hid_hw_raw_request(sc->hdev, report->report_id, (u8 *)report,
1528 struct motion_output_report_02 *report =
1531 memset(report, 0, MOTION_REPORT_0x02_SIZE);
1533 report->type = 0x02; /* set leds */
1534 report->r = sc->led_state[0];
1535 report->g = sc->led_state[1];
1536 report->b = sc->led_state[2];
1539 report->rumble = max(sc->right, sc->left);
1542 hid_hw_output_report(hdev, (u8 *)report, MOTION_REPORT_0x02_SIZE);
1668 * if the battery is polled before the first device report is received.
1803 * be retrieved with feature report 0xf2. The address begins at
1811 hid_err(sc->hdev, "failed to retrieve feature report 0xf2 with the Sixaxis MAC address\n");
1817 * The Sixaxis device MAC in the report is big-endian and must
1911 hid_err(hdev, "failed to allocate the output report buffer\n");
1928 * any state set by an output report, so the initial
1929 * configuration report is deferred until the first input
1930 * report arrives.