Lines Matching refs:packet

97 /* Send power-off packet to xpad360w after holding the mode button for this many
647 * This packet is required for all Xbox One pads with 2015
655 * This packet is required for Xbox One S (0x045e:0x02ea)
665 * This packet is required to get additional input data
674 * This packet is required for the Titanfall 2 Xbox One pads
684 * This packet is sent by default on Windows, and is required for some pads to
692 * This packet is required for most (all?) of the PDP pads to start
701 * A specific rumble packet is required for some PowerA pads to start
710 * A rumble packet with zero FF intensity will immediately
724 * packet is going to be sent.
789 int packet_type; /* type of the extended packet */
1068 /* Some packet formats force us to use this separate to poll paddle inputs */
1077 /* Elite Series 2 split packet paddle bits */
1096 } else if (data[0] == GIP_CMD_INPUT) { /* The main valid packet type for inputs */
1204 * (before the packet was split)
1277 * an announce packet from them to send the init packet sequence.
1294 /* This packet applies to our device, so prepare to send it */
1298 /* Update packet with current sequence number */
1309 struct xpad_output_packet *pkt, *packet = NULL;
1323 "%s - found pending output packet %d\n",
1325 packet = pkt;
1330 if (packet) {
1331 memcpy(xpad->odata, packet->data, packet->len);
1332 xpad->irq_out->transfer_buffer_length = packet->len;
1333 packet->pending = false;
1466 struct xpad_output_packet *packet =
1471 packet->data[0] = 0x08;
1472 packet->data[1] = 0x00;
1473 packet->data[2] = 0x0F;
1474 packet->data[3] = 0xC0;
1475 packet->data[4] = 0x00;
1476 packet->data[5] = 0x00;
1477 packet->data[6] = 0x00;
1478 packet->data[7] = 0x00;
1479 packet->data[8] = 0x00;
1480 packet->data[9] = 0x00;
1481 packet->data[10] = 0x00;
1482 packet->data[11] = 0x00;
1483 packet->len = 12;
1484 packet->pending = true;
1513 * Begin the init sequence by attempting to send a packet.
1514 * We will cycle through the init packet sequence before
1523 struct xpad_output_packet *packet =
1532 packet->len = sizeof(mode_report_ack);
1533 memcpy(packet->data, mode_report_ack, packet->len);
1534 packet->data[2] = seq_num;
1535 packet->pending = true;
1546 struct xpad_output_packet *packet = &xpad->out_packets[XPAD_OUT_FF_IDX];
1560 packet->data[0] = 0x00;
1561 packet->data[1] = 0x06;
1562 packet->data[2] = 0x00;
1563 packet->data[3] = strong / 256; /* left actuator */
1564 packet->data[4] = 0x00;
1565 packet->data[5] = weak / 256; /* right actuator */
1566 packet->len = 6;
1567 packet->pending = true;
1571 packet->data[0] = 0x00;
1572 packet->data[1] = 0x08;
1573 packet->data[2] = 0x00;
1574 packet->data[3] = strong / 256; /* left actuator? */
1575 packet->data[4] = weak / 256; /* right actuator? */
1576 packet->data[5] = 0x00;
1577 packet->data[6] = 0x00;
1578 packet->data[7] = 0x00;
1579 packet->len = 8;
1580 packet->pending = true;
1584 packet->data[0] = 0x00;
1585 packet->data[1] = 0x01;
1586 packet->data[2] = 0x0F;
1587 packet->data[3] = 0xC0;
1588 packet->data[4] = 0x00;
1589 packet->data[5] = strong / 256;
1590 packet->data[6] = weak / 256;
1591 packet->data[7] = 0x00;
1592 packet->data[8] = 0x00;
1593 packet->data[9] = 0x00;
1594 packet->data[10] = 0x00;
1595 packet->data[11] = 0x00;
1596 packet->len = 12;
1597 packet->pending = true;
1601 packet->data[0] = GIP_CMD_RUMBLE; /* activate rumble */
1602 packet->data[1] = 0x00;
1603 packet->data[2] = xpad->odata_serial++;
1604 packet->data[3] = GIP_PL_LEN(9);
1605 packet->data[4] = 0x00;
1606 packet->data[5] = GIP_MOTOR_ALL;
1607 packet->data[6] = 0x00; /* left trigger */
1608 packet->data[7] = 0x00; /* right trigger */
1609 packet->data[8] = strong / 512; /* left actuator */
1610 packet->data[9] = weak / 512; /* right actuator */
1611 packet->data[10] = 0xFF; /* on period */
1612 packet->data[11] = 0x00; /* off period */
1613 packet->data[12] = 0xFF; /* repeat count */
1614 packet->len = 13;
1615 packet->pending = true;
1676 struct xpad_output_packet *packet =
1685 packet->data[0] = 0x01;
1686 packet->data[1] = 0x03;
1687 packet->data[2] = command;
1688 packet->len = 3;
1689 packet->pending = true;
1693 packet->data[0] = 0x00;
1694 packet->data[1] = 0x00;
1695 packet->data[2] = 0x08;
1696 packet->data[3] = 0x40 + command;
1697 packet->data[4] = 0x00;
1698 packet->data[5] = 0x00;
1699 packet->data[6] = 0x00;
1700 packet->data[7] = 0x00;
1701 packet->data[8] = 0x00;
1702 packet->data[9] = 0x00;
1703 packet->data[10] = 0x00;
1704 packet->data[11] = 0x00;
1705 packet->len = 12;
1706 packet->pending = true;
1835 struct xpad_output_packet *packet =
1840 packet->data[0] = 0x00;
1841 packet->data[1] = 0x00;
1842 packet->data[2] = 0x08;
1843 packet->data[3] = 0xC0;
1844 packet->data[4] = 0x00;
1845 packet->data[5] = 0x00;
1846 packet->data[6] = 0x00;
1847 packet->data[7] = 0x00;
1848 packet->data[8] = 0x00;
1849 packet->data[9] = 0x00;
1850 packet->data[10] = 0x00;
1851 packet->data[11] = 0x00;
1852 packet->len = 12;
1853 packet->pending = true;
1869 * Send presence packet.
2171 * type of extended packet
2175 /* The elite 2 controller has seen multiple packet
2187 * prior to the update that split the packet
2191 /* The split packet format that was introduced