Lines Matching defs:packet
552 struct sisusb_packet *packet)
559 packet->data = 0;
567 SISUSB_CORRECT_ENDIANNESS_PACKET(packet);
569 /* 1. send the packet */
571 (char *)packet, NULL, 0, &bytes_transferred, 0, 0);
575 /* 2. if packet len == 6, it means we read, so wait for 32bit
576 * return value and write it to packet->data
581 packet->data = le32_to_cpu(tmp);
588 struct sisusb_packet *packet,
596 packet->data = 0;
604 SISUSB_CORRECT_ENDIANNESS_PACKET(packet);
606 /* 1. send the packet */
608 (char *)packet, NULL, 0, &bytes_transferred, tflags, 0);
612 /* 2. if packet len == 6, it means we read, so wait for 32bit
613 * return value and write it to packet->data
618 packet->data = le32_to_cpu(tmp);
639 struct sisusb_packet packet;
642 packet.header = (1 << (addr & 3)) | (type << 6);
643 packet.address = addr & ~3;
644 packet.data = data << ((addr & 3) << 3);
645 ret = sisusb_send_packet(sisusb, 10, &packet);
652 struct sisusb_packet packet;
655 packet.address = addr & ~3;
659 packet.header = (type << 6) | 0x0003;
660 packet.data = (u32)data;
661 ret = sisusb_send_packet(sisusb, 10, &packet);
664 packet.header = (type << 6) | 0x0006;
665 packet.data = (u32)data << 8;
666 ret = sisusb_send_packet(sisusb, 10, &packet);
669 packet.header = (type << 6) | 0x000c;
670 packet.data = (u32)data << 16;
671 ret = sisusb_send_packet(sisusb, 10, &packet);
674 packet.header = (type << 6) | 0x0008;
675 packet.data = (u32)data << 24;
676 ret = sisusb_send_packet(sisusb, 10, &packet);
677 packet.header = (type << 6) | 0x0001;
678 packet.address = (addr & ~3) + 4;
679 packet.data = (u32)data >> 8;
680 ret |= sisusb_send_packet(sisusb, 10, &packet);
689 struct sisusb_packet packet;
692 packet.address = addr & ~3;
696 packet.header = (type << 6) | 0x0007;
697 packet.data = data & 0x00ffffff;
698 ret = sisusb_send_packet(sisusb, 10, &packet);
701 packet.header = (type << 6) | 0x000e;
702 packet.data = data << 8;
703 ret = sisusb_send_packet(sisusb, 10, &packet);
706 packet.header = (type << 6) | 0x000c;
707 packet.data = data << 16;
708 ret = sisusb_send_packet(sisusb, 10, &packet);
709 packet.header = (type << 6) | 0x0001;
710 packet.address = (addr & ~3) + 4;
711 packet.data = (data >> 16) & 0x00ff;
712 ret |= sisusb_send_packet(sisusb, 10, &packet);
715 packet.header = (type << 6) | 0x0008;
716 packet.data = data << 24;
717 ret = sisusb_send_packet(sisusb, 10, &packet);
718 packet.header = (type << 6) | 0x0003;
719 packet.address = (addr & ~3) + 4;
720 packet.data = (data >> 8) & 0xffff;
721 ret |= sisusb_send_packet(sisusb, 10, &packet);
730 struct sisusb_packet packet;
733 packet.address = addr & ~3;
737 packet.header = (type << 6) | 0x000f;
738 packet.data = data;
739 ret = sisusb_send_packet(sisusb, 10, &packet);
742 packet.header = (type << 6) | 0x000e;
743 packet.data = data << 8;
744 ret = sisusb_send_packet(sisusb, 10, &packet);
745 packet.header = (type << 6) | 0x0001;
746 packet.address = (addr & ~3) + 4;
747 packet.data = data >> 24;
748 ret |= sisusb_send_packet(sisusb, 10, &packet);
751 packet.header = (type << 6) | 0x000c;
752 packet.data = data << 16;
753 ret = sisusb_send_packet(sisusb, 10, &packet);
754 packet.header = (type << 6) | 0x0003;
755 packet.address = (addr & ~3) + 4;
756 packet.data = data >> 16;
757 ret |= sisusb_send_packet(sisusb, 10, &packet);
760 packet.header = (type << 6) | 0x0008;
761 packet.data = data << 24;
762 ret = sisusb_send_packet(sisusb, 10, &packet);
763 packet.header = (type << 6) | 0x0007;
764 packet.address = (addr & ~3) + 4;
765 packet.data = data >> 8;
766 ret |= sisusb_send_packet(sisusb, 10, &packet);
787 struct sisusb_packet packet;
895 packet.header = 0x001f;
896 packet.address = 0x000001d4;
897 packet.data = addr;
899 &packet, 0);
900 packet.header = 0x001f;
901 packet.address = 0x000001d0;
902 packet.data = (length & ~3);
904 &packet, 0);
905 packet.header = 0x001f;
906 packet.address = 0x000001c0;
907 packet.data = flag | 0x16;
909 &packet, 0);
936 packet.header = 0x001f;
937 packet.address = 0x00000194;
938 packet.data = addr;
940 &packet, 0);
941 packet.header = 0x001f;
942 packet.address = 0x00000190;
943 packet.data = (length & ~3);
945 &packet, 0);
947 packet.header = 0x001f;
948 packet.address = 0x00000180;
949 packet.data = flag | 0x16;
951 &packet, 0);
998 /* Remember: Read data in packet is in machine-endianess! So for
1005 struct sisusb_packet packet;
1008 CLEARPACKET(&packet);
1009 packet.header = (1 << (addr & 3)) | (type << 6);
1010 packet.address = addr & ~3;
1011 ret = sisusb_send_packet(sisusb, 6, &packet);
1012 *data = (u8)(packet.data >> ((addr & 3) << 3));
1019 struct sisusb_packet packet;
1022 CLEARPACKET(&packet);
1024 packet.address = addr & ~3;
1028 packet.header = (type << 6) | 0x0003;
1029 ret = sisusb_send_packet(sisusb, 6, &packet);
1030 *data = (u16)(packet.data);
1033 packet.header = (type << 6) | 0x0006;
1034 ret = sisusb_send_packet(sisusb, 6, &packet);
1035 *data = (u16)(packet.data >> 8);
1038 packet.header = (type << 6) | 0x000c;
1039 ret = sisusb_send_packet(sisusb, 6, &packet);
1040 *data = (u16)(packet.data >> 16);
1043 packet.header = (type << 6) | 0x0008;
1044 ret = sisusb_send_packet(sisusb, 6, &packet);
1045 *data = (u16)(packet.data >> 24);
1046 packet.header = (type << 6) | 0x0001;
1047 packet.address = (addr & ~3) + 4;
1048 ret |= sisusb_send_packet(sisusb, 6, &packet);
1049 *data |= (u16)(packet.data << 8);
1058 struct sisusb_packet packet;
1061 packet.address = addr & ~3;
1065 packet.header = (type << 6) | 0x0007;
1066 ret = sisusb_send_packet(sisusb, 6, &packet);
1067 *data = packet.data & 0x00ffffff;
1070 packet.header = (type << 6) | 0x000e;
1071 ret = sisusb_send_packet(sisusb, 6, &packet);
1072 *data = packet.data >> 8;
1075 packet.header = (type << 6) | 0x000c;
1076 ret = sisusb_send_packet(sisusb, 6, &packet);
1077 *data = packet.data >> 16;
1078 packet.header = (type << 6) | 0x0001;
1079 packet.address = (addr & ~3) + 4;
1080 ret |= sisusb_send_packet(sisusb, 6, &packet);
1081 *data |= ((packet.data & 0xff) << 16);
1084 packet.header = (type << 6) | 0x0008;
1085 ret = sisusb_send_packet(sisusb, 6, &packet);
1086 *data = packet.data >> 24;
1087 packet.header = (type << 6) | 0x0003;
1088 packet.address = (addr & ~3) + 4;
1089 ret |= sisusb_send_packet(sisusb, 6, &packet);
1090 *data |= ((packet.data & 0xffff) << 8);
1099 struct sisusb_packet packet;
1102 packet.address = addr & ~3;
1106 packet.header = (type << 6) | 0x000f;
1107 ret = sisusb_send_packet(sisusb, 6, &packet);
1108 *data = packet.data;
1111 packet.header = (type << 6) | 0x000e;
1112 ret = sisusb_send_packet(sisusb, 6, &packet);
1113 *data = packet.data >> 8;
1114 packet.header = (type << 6) | 0x0001;
1115 packet.address = (addr & ~3) + 4;
1116 ret |= sisusb_send_packet(sisusb, 6, &packet);
1117 *data |= (packet.data << 24);
1120 packet.header = (type << 6) | 0x000c;
1121 ret = sisusb_send_packet(sisusb, 6, &packet);
1122 *data = packet.data >> 16;
1123 packet.header = (type << 6) | 0x0003;
1124 packet.address = (addr & ~3) + 4;
1125 ret |= sisusb_send_packet(sisusb, 6, &packet);
1126 *data |= (packet.data << 16);
1129 packet.header = (type << 6) | 0x0008;
1130 ret = sisusb_send_packet(sisusb, 6, &packet);
1131 *data = packet.data >> 24;
1132 packet.header = (type << 6) | 0x0007;
1133 packet.address = (addr & ~3) + 4;
1134 ret |= sisusb_send_packet(sisusb, 6, &packet);
1135 *data |= (packet.data << 8);
1375 struct sisusb_packet packet;
1378 packet.header = 0x008f;
1379 packet.address = regnum | 0x10000;
1380 packet.data = data;
1381 ret = sisusb_send_packet(sisusb, 10, &packet);
1388 struct sisusb_packet packet;
1391 packet.header = 0x008f;
1392 packet.address = (u32)regnum | 0x10000;
1393 ret = sisusb_send_packet(sisusb, 6, &packet);
1394 *data = packet.data;
2166 struct sisusb_packet packet;
2171 packet.header = 0x001f;
2172 packet.address = 0x00000324;
2173 packet.data = 0x00000004;
2174 ret = sisusb_send_bridge_packet(sisusb, 10, &packet, 0);
2176 packet.header = 0x001f;
2177 packet.address = 0x00000364;
2178 packet.data = 0x00000004;
2179 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0);
2181 packet.header = 0x001f;
2182 packet.address = 0x00000384;
2183 packet.data = 0x00000004;
2184 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0);
2186 packet.header = 0x001f;
2187 packet.address = 0x00000100;
2188 packet.data = 0x00000700;
2189 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0);
2191 packet.header = 0x000f;
2192 packet.address = 0x00000004;
2193 ret |= sisusb_send_bridge_packet(sisusb, 6, &packet, 0);
2194 packet.data |= 0x17;
2195 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0);
2228 packet.header = 0x001f;
2229 packet.address = 0x00000050;
2230 packet.data = 0x000000ff;
2231 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0);