Lines Matching defs:packet

96 /* Send power-off packet to xpad360w after holding the mode button for this many
577 * This packet is required for all Xbox One pads with 2015
585 * This packet is required for Xbox One S (0x045e:0x02ea)
595 * This packet is required to get additional input data
604 * This packet is required for the Titanfall 2 Xbox One pads
614 * This packet is required for most (all?) of the PDP pads to start
623 * This packet is required for most (all?) of the PDP pads to start
632 * A specific rumble packet is required for some PowerA pads to start
641 * A rumble packet with zero FF intensity will immediately
655 * packet is going to be sent.
720 int packet_type; /* type of the extended packet */
996 /* Some packet formats force us to use this separate to poll paddle inputs */
1005 /* Elite Series 2 split packet paddle bits */
1013 } else if (data[0] == GIP_CMD_INPUT) { /* The main valid packet type for inputs */
1117 * (before the packet was split)
1199 /* This packet applies to our device, so prepare to send it */
1203 /* Update packet with current sequence number */
1214 struct xpad_output_packet *pkt, *packet = NULL;
1228 "%s - found pending output packet %d\n",
1230 packet = pkt;
1235 if (packet) {
1236 memcpy(xpad->odata, packet->data, packet->len);
1237 xpad->irq_out->transfer_buffer_length = packet->len;
1238 packet->pending = false;
1373 struct xpad_output_packet *packet =
1380 packet->data[0] = 0x08;
1381 packet->data[1] = 0x00;
1382 packet->data[2] = 0x0F;
1383 packet->data[3] = 0xC0;
1384 packet->data[4] = 0x00;
1385 packet->data[5] = 0x00;
1386 packet->data[6] = 0x00;
1387 packet->data[7] = 0x00;
1388 packet->data[8] = 0x00;
1389 packet->data[9] = 0x00;
1390 packet->data[10] = 0x00;
1391 packet->data[11] = 0x00;
1392 packet->len = 12;
1393 packet->pending = true;
1427 * Begin the init sequence by attempting to send a packet.
1428 * We will cycle through the init packet sequence before
1442 struct xpad_output_packet *packet =
1451 packet->len = sizeof(mode_report_ack);
1452 memcpy(packet->data, mode_report_ack, packet->len);
1453 packet->data[2] = seq_num;
1454 packet->pending = true;
1467 struct xpad_output_packet *packet = &xpad->out_packets[XPAD_OUT_FF_IDX];
1483 packet->data[0] = 0x00;
1484 packet->data[1] = 0x06;
1485 packet->data[2] = 0x00;
1486 packet->data[3] = strong / 256; /* left actuator */
1487 packet->data[4] = 0x00;
1488 packet->data[5] = weak / 256; /* right actuator */
1489 packet->len = 6;
1490 packet->pending = true;
1494 packet->data[0] = 0x00;
1495 packet->data[1] = 0x08;
1496 packet->data[2] = 0x00;
1497 packet->data[3] = strong / 256; /* left actuator? */
1498 packet->data[4] = weak / 256; /* right actuator? */
1499 packet->data[5] = 0x00;
1500 packet->data[6] = 0x00;
1501 packet->data[7] = 0x00;
1502 packet->len = 8;
1503 packet->pending = true;
1507 packet->data[0] = 0x00;
1508 packet->data[1] = 0x01;
1509 packet->data[2] = 0x0F;
1510 packet->data[3] = 0xC0;
1511 packet->data[4] = 0x00;
1512 packet->data[5] = strong / 256;
1513 packet->data[6] = weak / 256;
1514 packet->data[7] = 0x00;
1515 packet->data[8] = 0x00;
1516 packet->data[9] = 0x00;
1517 packet->data[10] = 0x00;
1518 packet->data[11] = 0x00;
1519 packet->len = 12;
1520 packet->pending = true;
1524 packet->data[0] = GIP_CMD_RUMBLE; /* activate rumble */
1525 packet->data[1] = 0x00;
1526 packet->data[2] = xpad->odata_serial++;
1527 packet->data[3] = GIP_PL_LEN(9);
1528 packet->data[4] = 0x00;
1529 packet->data[5] = GIP_MOTOR_ALL;
1530 packet->data[6] = 0x00; /* left trigger */
1531 packet->data[7] = 0x00; /* right trigger */
1532 packet->data[8] = strong / 512; /* left actuator */
1533 packet->data[9] = weak / 512; /* right actuator */
1534 packet->data[10] = 0xFF; /* on period */
1535 packet->data[11] = 0x00; /* off period */
1536 packet->data[12] = 0xFF; /* repeat count */
1537 packet->len = 13;
1538 packet->pending = true;
1604 struct xpad_output_packet *packet =
1614 packet->data[0] = 0x01;
1615 packet->data[1] = 0x03;
1616 packet->data[2] = command;
1617 packet->len = 3;
1618 packet->pending = true;
1622 packet->data[0] = 0x00;
1623 packet->data[1] = 0x00;
1624 packet->data[2] = 0x08;
1625 packet->data[3] = 0x40 + command;
1626 packet->data[4] = 0x00;
1627 packet->data[5] = 0x00;
1628 packet->data[6] = 0x00;
1629 packet->data[7] = 0x00;
1630 packet->data[8] = 0x00;
1631 packet->data[9] = 0x00;
1632 packet->data[10] = 0x00;
1633 packet->data[11] = 0x00;
1634 packet->len = 12;
1635 packet->pending = true;
1767 struct xpad_output_packet *packet =
1772 packet->data[0] = 0x00;
1773 packet->data[1] = 0x00;
1774 packet->data[2] = 0x08;
1775 packet->data[3] = 0xC0;
1776 packet->data[4] = 0x00;
1777 packet->data[5] = 0x00;
1778 packet->data[6] = 0x00;
1779 packet->data[7] = 0x00;
1780 packet->data[8] = 0x00;
1781 packet->data[9] = 0x00;
1782 packet->data[10] = 0x00;
1783 packet->data[11] = 0x00;
1784 packet->len = 12;
1785 packet->pending = true;
1803 * Send presence packet.
2102 * type of extended packet
2106 /* The elite 2 controller has seen multiple packet
2118 * prior to the update that split the packet
2122 /* The split packet format that was introduced