Lines Matching refs:packet
1236 struct xpad_output_packet *pkt, *packet = NULL; in xpad_prepare_next_out_packet() local
1252 packet = pkt; in xpad_prepare_next_out_packet()
1257 if (packet) { in xpad_prepare_next_out_packet()
1258 memcpy(xpad->odata, packet->data, packet->len); in xpad_prepare_next_out_packet()
1259 xpad->irq_out->transfer_buffer_length = packet->len; in xpad_prepare_next_out_packet()
1260 packet->pending = false; in xpad_prepare_next_out_packet()
1392 struct xpad_output_packet *packet = in xpad_inquiry_pad_presence() local
1397 packet->data[0] = 0x08; in xpad_inquiry_pad_presence()
1398 packet->data[1] = 0x00; in xpad_inquiry_pad_presence()
1399 packet->data[2] = 0x0F; in xpad_inquiry_pad_presence()
1400 packet->data[3] = 0xC0; in xpad_inquiry_pad_presence()
1401 packet->data[4] = 0x00; in xpad_inquiry_pad_presence()
1402 packet->data[5] = 0x00; in xpad_inquiry_pad_presence()
1403 packet->data[6] = 0x00; in xpad_inquiry_pad_presence()
1404 packet->data[7] = 0x00; in xpad_inquiry_pad_presence()
1405 packet->data[8] = 0x00; in xpad_inquiry_pad_presence()
1406 packet->data[9] = 0x00; in xpad_inquiry_pad_presence()
1407 packet->data[10] = 0x00; in xpad_inquiry_pad_presence()
1408 packet->data[11] = 0x00; in xpad_inquiry_pad_presence()
1409 packet->len = 12; in xpad_inquiry_pad_presence()
1410 packet->pending = true; in xpad_inquiry_pad_presence()
1449 struct xpad_output_packet *packet = in xpadone_ack_mode_report() local
1458 packet->len = sizeof(mode_report_ack); in xpadone_ack_mode_report()
1459 memcpy(packet->data, mode_report_ack, packet->len); in xpadone_ack_mode_report()
1460 packet->data[2] = seq_num; in xpadone_ack_mode_report()
1461 packet->pending = true; in xpadone_ack_mode_report()
1472 struct xpad_output_packet *packet = &xpad->out_packets[XPAD_OUT_FF_IDX]; in xpad_play_effect() local
1486 packet->data[0] = 0x00; in xpad_play_effect()
1487 packet->data[1] = 0x06; in xpad_play_effect()
1488 packet->data[2] = 0x00; in xpad_play_effect()
1489 packet->data[3] = strong / 256; /* left actuator */ in xpad_play_effect()
1490 packet->data[4] = 0x00; in xpad_play_effect()
1491 packet->data[5] = weak / 256; /* right actuator */ in xpad_play_effect()
1492 packet->len = 6; in xpad_play_effect()
1493 packet->pending = true; in xpad_play_effect()
1497 packet->data[0] = 0x00; in xpad_play_effect()
1498 packet->data[1] = 0x08; in xpad_play_effect()
1499 packet->data[2] = 0x00; in xpad_play_effect()
1500 packet->data[3] = strong / 256; /* left actuator? */ in xpad_play_effect()
1501 packet->data[4] = weak / 256; /* right actuator? */ in xpad_play_effect()
1502 packet->data[5] = 0x00; in xpad_play_effect()
1503 packet->data[6] = 0x00; in xpad_play_effect()
1504 packet->data[7] = 0x00; in xpad_play_effect()
1505 packet->len = 8; in xpad_play_effect()
1506 packet->pending = true; in xpad_play_effect()
1510 packet->data[0] = 0x00; in xpad_play_effect()
1511 packet->data[1] = 0x01; in xpad_play_effect()
1512 packet->data[2] = 0x0F; in xpad_play_effect()
1513 packet->data[3] = 0xC0; in xpad_play_effect()
1514 packet->data[4] = 0x00; in xpad_play_effect()
1515 packet->data[5] = strong / 256; in xpad_play_effect()
1516 packet->data[6] = weak / 256; in xpad_play_effect()
1517 packet->data[7] = 0x00; in xpad_play_effect()
1518 packet->data[8] = 0x00; in xpad_play_effect()
1519 packet->data[9] = 0x00; in xpad_play_effect()
1520 packet->data[10] = 0x00; in xpad_play_effect()
1521 packet->data[11] = 0x00; in xpad_play_effect()
1522 packet->len = 12; in xpad_play_effect()
1523 packet->pending = true; in xpad_play_effect()
1527 packet->data[0] = GIP_CMD_RUMBLE; /* activate rumble */ in xpad_play_effect()
1528 packet->data[1] = 0x00; in xpad_play_effect()
1529 packet->data[2] = xpad->odata_serial++; in xpad_play_effect()
1530 packet->data[3] = GIP_PL_LEN(9); in xpad_play_effect()
1531 packet->data[4] = 0x00; in xpad_play_effect()
1532 packet->data[5] = GIP_MOTOR_ALL; in xpad_play_effect()
1533 packet->data[6] = 0x00; /* left trigger */ in xpad_play_effect()
1534 packet->data[7] = 0x00; /* right trigger */ in xpad_play_effect()
1535 packet->data[8] = strong / 512; /* left actuator */ in xpad_play_effect()
1536 packet->data[9] = weak / 512; /* right actuator */ in xpad_play_effect()
1537 packet->data[10] = 0xFF; /* on period */ in xpad_play_effect()
1538 packet->data[11] = 0x00; /* off period */ in xpad_play_effect()
1539 packet->data[12] = 0xFF; /* repeat count */ in xpad_play_effect()
1540 packet->len = 13; in xpad_play_effect()
1541 packet->pending = true; in xpad_play_effect()
1602 struct xpad_output_packet *packet = in xpad_send_led_command() local
1611 packet->data[0] = 0x01; in xpad_send_led_command()
1612 packet->data[1] = 0x03; in xpad_send_led_command()
1613 packet->data[2] = command; in xpad_send_led_command()
1614 packet->len = 3; in xpad_send_led_command()
1615 packet->pending = true; in xpad_send_led_command()
1619 packet->data[0] = 0x00; in xpad_send_led_command()
1620 packet->data[1] = 0x00; in xpad_send_led_command()
1621 packet->data[2] = 0x08; in xpad_send_led_command()
1622 packet->data[3] = 0x40 + command; in xpad_send_led_command()
1623 packet->data[4] = 0x00; in xpad_send_led_command()
1624 packet->data[5] = 0x00; in xpad_send_led_command()
1625 packet->data[6] = 0x00; in xpad_send_led_command()
1626 packet->data[7] = 0x00; in xpad_send_led_command()
1627 packet->data[8] = 0x00; in xpad_send_led_command()
1628 packet->data[9] = 0x00; in xpad_send_led_command()
1629 packet->data[10] = 0x00; in xpad_send_led_command()
1630 packet->data[11] = 0x00; in xpad_send_led_command()
1631 packet->len = 12; in xpad_send_led_command()
1632 packet->pending = true; in xpad_send_led_command()
1761 struct xpad_output_packet *packet = in xpad360w_poweroff_controller() local
1766 packet->data[0] = 0x00; in xpad360w_poweroff_controller()
1767 packet->data[1] = 0x00; in xpad360w_poweroff_controller()
1768 packet->data[2] = 0x08; in xpad360w_poweroff_controller()
1769 packet->data[3] = 0xC0; in xpad360w_poweroff_controller()
1770 packet->data[4] = 0x00; in xpad360w_poweroff_controller()
1771 packet->data[5] = 0x00; in xpad360w_poweroff_controller()
1772 packet->data[6] = 0x00; in xpad360w_poweroff_controller()
1773 packet->data[7] = 0x00; in xpad360w_poweroff_controller()
1774 packet->data[8] = 0x00; in xpad360w_poweroff_controller()
1775 packet->data[9] = 0x00; in xpad360w_poweroff_controller()
1776 packet->data[10] = 0x00; in xpad360w_poweroff_controller()
1777 packet->data[11] = 0x00; in xpad360w_poweroff_controller()
1778 packet->len = 12; in xpad360w_poweroff_controller()
1779 packet->pending = true; in xpad360w_poweroff_controller()