Lines Matching refs:report
918 static int sony_raw_event(struct hid_device *hdev, struct hid_report *report, in sony_raw_event() argument
1184 static const u8 report[] = { 0xf4, 0x42, 0x03, 0x00, 0x00 }; in sixaxis_set_operational_bt() local
1188 buf = kmemdup(report, sizeof(report), GFP_KERNEL); in sixaxis_set_operational_bt()
1192 ret = hid_hw_raw_request(hdev, buf[0], buf, sizeof(report), in sixaxis_set_operational_bt()
1231 struct hid_report *report = list_entry(report_list->next, in buzz_set_leds() local
1233 s32 *value = report->field[0]->value; in buzz_set_leds()
1244 hid_hw_request(hdev, report, HID_REQ_SET_REPORT); in buzz_set_leds()
1478 struct sixaxis_output_report *report = in sixaxis_send_output_report() local
1483 memcpy(report, &default_report, sizeof(struct sixaxis_output_report)); in sixaxis_send_output_report()
1486 report->rumble.right_motor_on = sc->right ? 1 : 0; in sixaxis_send_output_report()
1487 report->rumble.left_motor_force = sc->left; in sixaxis_send_output_report()
1490 report->leds_bitmap |= sc->led_state[0] << 1; in sixaxis_send_output_report()
1491 report->leds_bitmap |= sc->led_state[1] << 2; in sixaxis_send_output_report()
1492 report->leds_bitmap |= sc->led_state[2] << 3; in sixaxis_send_output_report()
1493 report->leds_bitmap |= sc->led_state[3] << 4; in sixaxis_send_output_report()
1496 if ((report->leds_bitmap & 0x1E) == 0) in sixaxis_send_output_report()
1497 report->leds_bitmap |= 0x20; in sixaxis_send_output_report()
1510 report->led[3 - n].duty_off = sc->led_delay_off[n]; in sixaxis_send_output_report()
1511 report->led[3 - n].duty_on = sc->led_delay_on[n]; in sixaxis_send_output_report()
1517 hid_hw_output_report(sc->hdev, (u8 *)report, in sixaxis_send_output_report()
1520 hid_hw_raw_request(sc->hdev, report->report_id, (u8 *)report, in sixaxis_send_output_report()
1528 struct motion_output_report_02 *report = in motion_send_output_report() local
1531 memset(report, 0, MOTION_REPORT_0x02_SIZE); in motion_send_output_report()
1533 report->type = 0x02; /* set leds */ in motion_send_output_report()
1534 report->r = sc->led_state[0]; in motion_send_output_report()
1535 report->g = sc->led_state[1]; in motion_send_output_report()
1536 report->b = sc->led_state[2]; in motion_send_output_report()
1539 report->rumble = max(sc->right, sc->left); in motion_send_output_report()
1542 hid_hw_output_report(hdev, (u8 *)report, MOTION_REPORT_0x02_SIZE); in motion_send_output_report()