Lines Matching refs:packet

527 		struct sisusb_packet *packet)  in sisusb_send_packet()  argument
534 packet->data = 0; in sisusb_send_packet()
542 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_packet()
546 (char *)packet, NULL, 0, &bytes_transferred, 0, 0); in sisusb_send_packet()
556 packet->data = le32_to_cpu(tmp); in sisusb_send_packet()
563 struct sisusb_packet *packet, unsigned int tflags) in sisusb_send_bridge_packet() argument
570 packet->data = 0; in sisusb_send_bridge_packet()
578 SISUSB_CORRECT_ENDIANNESS_PACKET(packet); in sisusb_send_bridge_packet()
582 (char *)packet, NULL, 0, &bytes_transferred, tflags, 0); in sisusb_send_bridge_packet()
592 packet->data = le32_to_cpu(tmp); in sisusb_send_bridge_packet()
613 struct sisusb_packet packet; in sisusb_write_memio_byte() local
615 packet.header = (1 << (addr & 3)) | (type << 6); in sisusb_write_memio_byte()
616 packet.address = addr & ~3; in sisusb_write_memio_byte()
617 packet.data = data << ((addr & 3) << 3); in sisusb_write_memio_byte()
618 return sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_byte()
624 struct sisusb_packet packet; in sisusb_write_memio_word() local
627 packet.address = addr & ~3; in sisusb_write_memio_word()
631 packet.header = (type << 6) | 0x0003; in sisusb_write_memio_word()
632 packet.data = (u32)data; in sisusb_write_memio_word()
633 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_word()
636 packet.header = (type << 6) | 0x0006; in sisusb_write_memio_word()
637 packet.data = (u32)data << 8; in sisusb_write_memio_word()
638 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_word()
641 packet.header = (type << 6) | 0x000c; in sisusb_write_memio_word()
642 packet.data = (u32)data << 16; in sisusb_write_memio_word()
643 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_word()
646 packet.header = (type << 6) | 0x0008; in sisusb_write_memio_word()
647 packet.data = (u32)data << 24; in sisusb_write_memio_word()
648 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_word()
649 packet.header = (type << 6) | 0x0001; in sisusb_write_memio_word()
650 packet.address = (addr & ~3) + 4; in sisusb_write_memio_word()
651 packet.data = (u32)data >> 8; in sisusb_write_memio_word()
652 ret |= sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_word()
661 struct sisusb_packet packet; in sisusb_write_memio_24bit() local
664 packet.address = addr & ~3; in sisusb_write_memio_24bit()
668 packet.header = (type << 6) | 0x0007; in sisusb_write_memio_24bit()
669 packet.data = data & 0x00ffffff; in sisusb_write_memio_24bit()
670 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_24bit()
673 packet.header = (type << 6) | 0x000e; in sisusb_write_memio_24bit()
674 packet.data = data << 8; in sisusb_write_memio_24bit()
675 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_24bit()
678 packet.header = (type << 6) | 0x000c; in sisusb_write_memio_24bit()
679 packet.data = data << 16; in sisusb_write_memio_24bit()
680 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_24bit()
681 packet.header = (type << 6) | 0x0001; in sisusb_write_memio_24bit()
682 packet.address = (addr & ~3) + 4; in sisusb_write_memio_24bit()
683 packet.data = (data >> 16) & 0x00ff; in sisusb_write_memio_24bit()
684 ret |= sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_24bit()
687 packet.header = (type << 6) | 0x0008; in sisusb_write_memio_24bit()
688 packet.data = data << 24; in sisusb_write_memio_24bit()
689 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_24bit()
690 packet.header = (type << 6) | 0x0003; in sisusb_write_memio_24bit()
691 packet.address = (addr & ~3) + 4; in sisusb_write_memio_24bit()
692 packet.data = (data >> 8) & 0xffff; in sisusb_write_memio_24bit()
693 ret |= sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_24bit()
702 struct sisusb_packet packet; in sisusb_write_memio_long() local
705 packet.address = addr & ~3; in sisusb_write_memio_long()
709 packet.header = (type << 6) | 0x000f; in sisusb_write_memio_long()
710 packet.data = data; in sisusb_write_memio_long()
711 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_long()
714 packet.header = (type << 6) | 0x000e; in sisusb_write_memio_long()
715 packet.data = data << 8; in sisusb_write_memio_long()
716 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_long()
717 packet.header = (type << 6) | 0x0001; in sisusb_write_memio_long()
718 packet.address = (addr & ~3) + 4; in sisusb_write_memio_long()
719 packet.data = data >> 24; in sisusb_write_memio_long()
720 ret |= sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_long()
723 packet.header = (type << 6) | 0x000c; in sisusb_write_memio_long()
724 packet.data = data << 16; in sisusb_write_memio_long()
725 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_long()
726 packet.header = (type << 6) | 0x0003; in sisusb_write_memio_long()
727 packet.address = (addr & ~3) + 4; in sisusb_write_memio_long()
728 packet.data = data >> 16; in sisusb_write_memio_long()
729 ret |= sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_long()
732 packet.header = (type << 6) | 0x0008; in sisusb_write_memio_long()
733 packet.data = data << 24; in sisusb_write_memio_long()
734 ret = sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_long()
735 packet.header = (type << 6) | 0x0007; in sisusb_write_memio_long()
736 packet.address = (addr & ~3) + 4; in sisusb_write_memio_long()
737 packet.data = data >> 8; in sisusb_write_memio_long()
738 ret |= sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_memio_long()
758 struct sisusb_packet packet; in sisusb_write_mem_bulk() local
857 packet.header = 0x001f; in sisusb_write_mem_bulk()
858 packet.address = 0x000001d4; in sisusb_write_mem_bulk()
859 packet.data = addr; in sisusb_write_mem_bulk()
861 &packet, 0); in sisusb_write_mem_bulk()
862 packet.header = 0x001f; in sisusb_write_mem_bulk()
863 packet.address = 0x000001d0; in sisusb_write_mem_bulk()
864 packet.data = (length & ~3); in sisusb_write_mem_bulk()
866 &packet, 0); in sisusb_write_mem_bulk()
867 packet.header = 0x001f; in sisusb_write_mem_bulk()
868 packet.address = 0x000001c0; in sisusb_write_mem_bulk()
869 packet.data = flag | 0x16; in sisusb_write_mem_bulk()
871 &packet, 0); in sisusb_write_mem_bulk()
898 packet.header = 0x001f; in sisusb_write_mem_bulk()
899 packet.address = 0x00000194; in sisusb_write_mem_bulk()
900 packet.data = addr; in sisusb_write_mem_bulk()
902 &packet, 0); in sisusb_write_mem_bulk()
903 packet.header = 0x001f; in sisusb_write_mem_bulk()
904 packet.address = 0x00000190; in sisusb_write_mem_bulk()
905 packet.data = (length & ~3); in sisusb_write_mem_bulk()
907 &packet, 0); in sisusb_write_mem_bulk()
909 packet.header = 0x001f; in sisusb_write_mem_bulk()
910 packet.address = 0x00000180; in sisusb_write_mem_bulk()
911 packet.data = flag | 0x16; in sisusb_write_mem_bulk()
913 10, &packet, 0); in sisusb_write_mem_bulk()
970 struct sisusb_packet packet; in sisusb_read_memio_byte() local
973 CLEARPACKET(&packet); in sisusb_read_memio_byte()
974 packet.header = (1 << (addr & 3)) | (type << 6); in sisusb_read_memio_byte()
975 packet.address = addr & ~3; in sisusb_read_memio_byte()
976 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_byte()
977 *data = (u8)(packet.data >> ((addr & 3) << 3)); in sisusb_read_memio_byte()
984 struct sisusb_packet packet; in sisusb_read_memio_word() local
987 CLEARPACKET(&packet); in sisusb_read_memio_word()
989 packet.address = addr & ~3; in sisusb_read_memio_word()
993 packet.header = (type << 6) | 0x0003; in sisusb_read_memio_word()
994 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_word()
995 *data = (u16)(packet.data); in sisusb_read_memio_word()
998 packet.header = (type << 6) | 0x0006; in sisusb_read_memio_word()
999 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_word()
1000 *data = (u16)(packet.data >> 8); in sisusb_read_memio_word()
1003 packet.header = (type << 6) | 0x000c; in sisusb_read_memio_word()
1004 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_word()
1005 *data = (u16)(packet.data >> 16); in sisusb_read_memio_word()
1008 packet.header = (type << 6) | 0x0008; in sisusb_read_memio_word()
1009 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_word()
1010 *data = (u16)(packet.data >> 24); in sisusb_read_memio_word()
1011 packet.header = (type << 6) | 0x0001; in sisusb_read_memio_word()
1012 packet.address = (addr & ~3) + 4; in sisusb_read_memio_word()
1013 ret |= sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_word()
1014 *data |= (u16)(packet.data << 8); in sisusb_read_memio_word()
1023 struct sisusb_packet packet; in sisusb_read_memio_24bit() local
1026 packet.address = addr & ~3; in sisusb_read_memio_24bit()
1030 packet.header = (type << 6) | 0x0007; in sisusb_read_memio_24bit()
1031 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_24bit()
1032 *data = packet.data & 0x00ffffff; in sisusb_read_memio_24bit()
1035 packet.header = (type << 6) | 0x000e; in sisusb_read_memio_24bit()
1036 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_24bit()
1037 *data = packet.data >> 8; in sisusb_read_memio_24bit()
1040 packet.header = (type << 6) | 0x000c; in sisusb_read_memio_24bit()
1041 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_24bit()
1042 *data = packet.data >> 16; in sisusb_read_memio_24bit()
1043 packet.header = (type << 6) | 0x0001; in sisusb_read_memio_24bit()
1044 packet.address = (addr & ~3) + 4; in sisusb_read_memio_24bit()
1045 ret |= sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_24bit()
1046 *data |= ((packet.data & 0xff) << 16); in sisusb_read_memio_24bit()
1049 packet.header = (type << 6) | 0x0008; in sisusb_read_memio_24bit()
1050 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_24bit()
1051 *data = packet.data >> 24; in sisusb_read_memio_24bit()
1052 packet.header = (type << 6) | 0x0003; in sisusb_read_memio_24bit()
1053 packet.address = (addr & ~3) + 4; in sisusb_read_memio_24bit()
1054 ret |= sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_24bit()
1055 *data |= ((packet.data & 0xffff) << 8); in sisusb_read_memio_24bit()
1064 struct sisusb_packet packet; in sisusb_read_memio_long() local
1067 packet.address = addr & ~3; in sisusb_read_memio_long()
1071 packet.header = (type << 6) | 0x000f; in sisusb_read_memio_long()
1072 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_long()
1073 *data = packet.data; in sisusb_read_memio_long()
1076 packet.header = (type << 6) | 0x000e; in sisusb_read_memio_long()
1077 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_long()
1078 *data = packet.data >> 8; in sisusb_read_memio_long()
1079 packet.header = (type << 6) | 0x0001; in sisusb_read_memio_long()
1080 packet.address = (addr & ~3) + 4; in sisusb_read_memio_long()
1081 ret |= sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_long()
1082 *data |= (packet.data << 24); in sisusb_read_memio_long()
1085 packet.header = (type << 6) | 0x000c; in sisusb_read_memio_long()
1086 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_long()
1087 *data = packet.data >> 16; in sisusb_read_memio_long()
1088 packet.header = (type << 6) | 0x0003; in sisusb_read_memio_long()
1089 packet.address = (addr & ~3) + 4; in sisusb_read_memio_long()
1090 ret |= sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_long()
1091 *data |= (packet.data << 16); in sisusb_read_memio_long()
1094 packet.header = (type << 6) | 0x0008; in sisusb_read_memio_long()
1095 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_long()
1096 *data = packet.data >> 24; in sisusb_read_memio_long()
1097 packet.header = (type << 6) | 0x0007; in sisusb_read_memio_long()
1098 packet.address = (addr & ~3) + 4; in sisusb_read_memio_long()
1099 ret |= sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_memio_long()
1100 *data |= (packet.data << 8); in sisusb_read_memio_long()
1334 struct sisusb_packet packet; in sisusb_write_pci_config() local
1336 packet.header = 0x008f; in sisusb_write_pci_config()
1337 packet.address = regnum | 0x10000; in sisusb_write_pci_config()
1338 packet.data = data; in sisusb_write_pci_config()
1339 return sisusb_send_packet(sisusb, 10, &packet); in sisusb_write_pci_config()
1345 struct sisusb_packet packet; in sisusb_read_pci_config() local
1348 packet.header = 0x008f; in sisusb_read_pci_config()
1349 packet.address = (u32)regnum | 0x10000; in sisusb_read_pci_config()
1350 ret = sisusb_send_packet(sisusb, 6, &packet); in sisusb_read_pci_config()
1351 *data = packet.data; in sisusb_read_pci_config()
2127 struct sisusb_packet packet; in sisusb_do_init_gfxdevice() local
2132 packet.header = 0x001f; in sisusb_do_init_gfxdevice()
2133 packet.address = 0x00000324; in sisusb_do_init_gfxdevice()
2134 packet.data = 0x00000004; in sisusb_do_init_gfxdevice()
2135 ret = sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()
2137 packet.header = 0x001f; in sisusb_do_init_gfxdevice()
2138 packet.address = 0x00000364; in sisusb_do_init_gfxdevice()
2139 packet.data = 0x00000004; in sisusb_do_init_gfxdevice()
2140 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()
2142 packet.header = 0x001f; in sisusb_do_init_gfxdevice()
2143 packet.address = 0x00000384; in sisusb_do_init_gfxdevice()
2144 packet.data = 0x00000004; in sisusb_do_init_gfxdevice()
2145 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()
2147 packet.header = 0x001f; in sisusb_do_init_gfxdevice()
2148 packet.address = 0x00000100; in sisusb_do_init_gfxdevice()
2149 packet.data = 0x00000700; in sisusb_do_init_gfxdevice()
2150 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()
2152 packet.header = 0x000f; in sisusb_do_init_gfxdevice()
2153 packet.address = 0x00000004; in sisusb_do_init_gfxdevice()
2154 ret |= sisusb_send_bridge_packet(sisusb, 6, &packet, 0); in sisusb_do_init_gfxdevice()
2155 packet.data |= 0x17; in sisusb_do_init_gfxdevice()
2156 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()
2189 packet.header = 0x001f; in sisusb_do_init_gfxdevice()
2190 packet.address = 0x00000050; in sisusb_do_init_gfxdevice()
2191 packet.data = 0x000000ff; in sisusb_do_init_gfxdevice()
2192 ret |= sisusb_send_bridge_packet(sisusb, 10, &packet, 0); in sisusb_do_init_gfxdevice()