Lines Matching refs:from

95     CARD32 *from, *to, *fromLast, *toLast;  in CopySwap32Write()  local
111 from = pbuf; in CopySwap32Write()
112 fromLast = from + size; in CopySwap32Write()
113 while (from < fromLast) { in CopySwap32Write()
117 toLast = to + min(bufsize, fromLast - from); in CopySwap32Write()
122 cpswapl(*from, *to); in CopySwap32Write()
123 from++; in CopySwap32Write()
142 short *from, *to, *fromLast, *toLast; in CopySwap16Write() local
158 from = pbuf; in CopySwap16Write()
159 fromLast = from + size; in CopySwap16Write()
160 while (from < fromLast) { in CopySwap16Write()
164 toLast = to + min(bufsize, fromLast - from); in CopySwap16Write()
169 cpswaps(*from, *to); in CopySwap16Write()
170 from++; in CopySwap16Write()
667 SErrorEvent(xError * from, xError * to) in SErrorEvent() argument
670 to->errorCode = from->errorCode; in SErrorEvent()
671 cpswaps(from->sequenceNumber, to->sequenceNumber); in SErrorEvent()
672 cpswapl(from->resourceID, to->resourceID); in SErrorEvent()
673 cpswaps(from->minorCode, to->minorCode); in SErrorEvent()
674 to->majorCode = from->majorCode; in SErrorEvent()
678 SKeyButtonPtrEvent(xEvent *from, xEvent *to) in SKeyButtonPtrEvent() argument
680 to->u.u.type = from->u.u.type; in SKeyButtonPtrEvent()
681 to->u.u.detail = from->u.u.detail; in SKeyButtonPtrEvent()
682 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SKeyButtonPtrEvent()
683 cpswapl(from->u.keyButtonPointer.time, to->u.keyButtonPointer.time); in SKeyButtonPtrEvent()
684 cpswapl(from->u.keyButtonPointer.root, to->u.keyButtonPointer.root); in SKeyButtonPtrEvent()
685 cpswapl(from->u.keyButtonPointer.event, to->u.keyButtonPointer.event); in SKeyButtonPtrEvent()
686 cpswapl(from->u.keyButtonPointer.child, to->u.keyButtonPointer.child); in SKeyButtonPtrEvent()
687 cpswaps(from->u.keyButtonPointer.rootX, to->u.keyButtonPointer.rootX); in SKeyButtonPtrEvent()
688 cpswaps(from->u.keyButtonPointer.rootY, to->u.keyButtonPointer.rootY); in SKeyButtonPtrEvent()
689 cpswaps(from->u.keyButtonPointer.eventX, to->u.keyButtonPointer.eventX); in SKeyButtonPtrEvent()
690 cpswaps(from->u.keyButtonPointer.eventY, to->u.keyButtonPointer.eventY); in SKeyButtonPtrEvent()
691 cpswaps(from->u.keyButtonPointer.state, to->u.keyButtonPointer.state); in SKeyButtonPtrEvent()
692 to->u.keyButtonPointer.sameScreen = from->u.keyButtonPointer.sameScreen; in SKeyButtonPtrEvent()
696 SEnterLeaveEvent(xEvent *from, xEvent *to) in SEnterLeaveEvent() argument
698 to->u.u.type = from->u.u.type; in SEnterLeaveEvent()
699 to->u.u.detail = from->u.u.detail; in SEnterLeaveEvent()
700 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SEnterLeaveEvent()
701 cpswapl(from->u.enterLeave.time, to->u.enterLeave.time); in SEnterLeaveEvent()
702 cpswapl(from->u.enterLeave.root, to->u.enterLeave.root); in SEnterLeaveEvent()
703 cpswapl(from->u.enterLeave.event, to->u.enterLeave.event); in SEnterLeaveEvent()
704 cpswapl(from->u.enterLeave.child, to->u.enterLeave.child); in SEnterLeaveEvent()
705 cpswaps(from->u.enterLeave.rootX, to->u.enterLeave.rootX); in SEnterLeaveEvent()
706 cpswaps(from->u.enterLeave.rootY, to->u.enterLeave.rootY); in SEnterLeaveEvent()
707 cpswaps(from->u.enterLeave.eventX, to->u.enterLeave.eventX); in SEnterLeaveEvent()
708 cpswaps(from->u.enterLeave.eventY, to->u.enterLeave.eventY); in SEnterLeaveEvent()
709 cpswaps(from->u.enterLeave.state, to->u.enterLeave.state); in SEnterLeaveEvent()
710 to->u.enterLeave.mode = from->u.enterLeave.mode; in SEnterLeaveEvent()
711 to->u.enterLeave.flags = from->u.enterLeave.flags; in SEnterLeaveEvent()
715 SFocusEvent(xEvent *from, xEvent *to) in SFocusEvent() argument
717 to->u.u.type = from->u.u.type; in SFocusEvent()
718 to->u.u.detail = from->u.u.detail; in SFocusEvent()
719 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SFocusEvent()
720 cpswapl(from->u.focus.window, to->u.focus.window); in SFocusEvent()
721 to->u.focus.mode = from->u.focus.mode; in SFocusEvent()
725 SExposeEvent(xEvent *from, xEvent *to) in SExposeEvent() argument
727 to->u.u.type = from->u.u.type; in SExposeEvent()
728 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SExposeEvent()
729 cpswapl(from->u.expose.window, to->u.expose.window); in SExposeEvent()
730 cpswaps(from->u.expose.x, to->u.expose.x); in SExposeEvent()
731 cpswaps(from->u.expose.y, to->u.expose.y); in SExposeEvent()
732 cpswaps(from->u.expose.width, to->u.expose.width); in SExposeEvent()
733 cpswaps(from->u.expose.height, to->u.expose.height); in SExposeEvent()
734 cpswaps(from->u.expose.count, to->u.expose.count); in SExposeEvent()
738 SGraphicsExposureEvent(xEvent *from, xEvent *to) in SGraphicsExposureEvent() argument
740 to->u.u.type = from->u.u.type; in SGraphicsExposureEvent()
741 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SGraphicsExposureEvent()
742 cpswapl(from->u.graphicsExposure.drawable, to->u.graphicsExposure.drawable); in SGraphicsExposureEvent()
743 cpswaps(from->u.graphicsExposure.x, to->u.graphicsExposure.x); in SGraphicsExposureEvent()
744 cpswaps(from->u.graphicsExposure.y, to->u.graphicsExposure.y); in SGraphicsExposureEvent()
745 cpswaps(from->u.graphicsExposure.width, to->u.graphicsExposure.width); in SGraphicsExposureEvent()
746 cpswaps(from->u.graphicsExposure.height, to->u.graphicsExposure.height); in SGraphicsExposureEvent()
747 cpswaps(from->u.graphicsExposure.minorEvent, in SGraphicsExposureEvent()
749 cpswaps(from->u.graphicsExposure.count, to->u.graphicsExposure.count); in SGraphicsExposureEvent()
750 to->u.graphicsExposure.majorEvent = from->u.graphicsExposure.majorEvent; in SGraphicsExposureEvent()
754 SNoExposureEvent(xEvent *from, xEvent *to) in SNoExposureEvent() argument
756 to->u.u.type = from->u.u.type; in SNoExposureEvent()
757 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SNoExposureEvent()
758 cpswapl(from->u.noExposure.drawable, to->u.noExposure.drawable); in SNoExposureEvent()
759 cpswaps(from->u.noExposure.minorEvent, to->u.noExposure.minorEvent); in SNoExposureEvent()
760 to->u.noExposure.majorEvent = from->u.noExposure.majorEvent; in SNoExposureEvent()
764 SVisibilityEvent(xEvent *from, xEvent *to) in SVisibilityEvent() argument
766 to->u.u.type = from->u.u.type; in SVisibilityEvent()
767 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SVisibilityEvent()
768 cpswapl(from->u.visibility.window, to->u.visibility.window); in SVisibilityEvent()
769 to->u.visibility.state = from->u.visibility.state; in SVisibilityEvent()
773 SCreateNotifyEvent(xEvent *from, xEvent *to) in SCreateNotifyEvent() argument
775 to->u.u.type = from->u.u.type; in SCreateNotifyEvent()
776 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SCreateNotifyEvent()
777 cpswapl(from->u.createNotify.window, to->u.createNotify.window); in SCreateNotifyEvent()
778 cpswapl(from->u.createNotify.parent, to->u.createNotify.parent); in SCreateNotifyEvent()
779 cpswaps(from->u.createNotify.x, to->u.createNotify.x); in SCreateNotifyEvent()
780 cpswaps(from->u.createNotify.y, to->u.createNotify.y); in SCreateNotifyEvent()
781 cpswaps(from->u.createNotify.width, to->u.createNotify.width); in SCreateNotifyEvent()
782 cpswaps(from->u.createNotify.height, to->u.createNotify.height); in SCreateNotifyEvent()
783 cpswaps(from->u.createNotify.borderWidth, to->u.createNotify.borderWidth); in SCreateNotifyEvent()
784 to->u.createNotify.override = from->u.createNotify.override; in SCreateNotifyEvent()
788 SDestroyNotifyEvent(xEvent *from, xEvent *to) in SDestroyNotifyEvent() argument
790 to->u.u.type = from->u.u.type; in SDestroyNotifyEvent()
791 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SDestroyNotifyEvent()
792 cpswapl(from->u.destroyNotify.event, to->u.destroyNotify.event); in SDestroyNotifyEvent()
793 cpswapl(from->u.destroyNotify.window, to->u.destroyNotify.window); in SDestroyNotifyEvent()
797 SUnmapNotifyEvent(xEvent *from, xEvent *to) in SUnmapNotifyEvent() argument
799 to->u.u.type = from->u.u.type; in SUnmapNotifyEvent()
800 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SUnmapNotifyEvent()
801 cpswapl(from->u.unmapNotify.event, to->u.unmapNotify.event); in SUnmapNotifyEvent()
802 cpswapl(from->u.unmapNotify.window, to->u.unmapNotify.window); in SUnmapNotifyEvent()
803 to->u.unmapNotify.fromConfigure = from->u.unmapNotify.fromConfigure; in SUnmapNotifyEvent()
807 SMapNotifyEvent(xEvent *from, xEvent *to) in SMapNotifyEvent() argument
809 to->u.u.type = from->u.u.type; in SMapNotifyEvent()
810 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SMapNotifyEvent()
811 cpswapl(from->u.mapNotify.event, to->u.mapNotify.event); in SMapNotifyEvent()
812 cpswapl(from->u.mapNotify.window, to->u.mapNotify.window); in SMapNotifyEvent()
813 to->u.mapNotify.override = from->u.mapNotify.override; in SMapNotifyEvent()
817 SMapRequestEvent(xEvent *from, xEvent *to) in SMapRequestEvent() argument
819 to->u.u.type = from->u.u.type; in SMapRequestEvent()
820 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SMapRequestEvent()
821 cpswapl(from->u.mapRequest.parent, to->u.mapRequest.parent); in SMapRequestEvent()
822 cpswapl(from->u.mapRequest.window, to->u.mapRequest.window); in SMapRequestEvent()
826 SReparentEvent(xEvent *from, xEvent *to) in SReparentEvent() argument
828 to->u.u.type = from->u.u.type; in SReparentEvent()
829 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SReparentEvent()
830 cpswapl(from->u.reparent.event, to->u.reparent.event); in SReparentEvent()
831 cpswapl(from->u.reparent.window, to->u.reparent.window); in SReparentEvent()
832 cpswapl(from->u.reparent.parent, to->u.reparent.parent); in SReparentEvent()
833 cpswaps(from->u.reparent.x, to->u.reparent.x); in SReparentEvent()
834 cpswaps(from->u.reparent.y, to->u.reparent.y); in SReparentEvent()
835 to->u.reparent.override = from->u.reparent.override; in SReparentEvent()
839 SConfigureNotifyEvent(xEvent *from, xEvent *to) in SConfigureNotifyEvent() argument
841 to->u.u.type = from->u.u.type; in SConfigureNotifyEvent()
842 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SConfigureNotifyEvent()
843 cpswapl(from->u.configureNotify.event, to->u.configureNotify.event); in SConfigureNotifyEvent()
844 cpswapl(from->u.configureNotify.window, to->u.configureNotify.window); in SConfigureNotifyEvent()
845 cpswapl(from->u.configureNotify.aboveSibling, in SConfigureNotifyEvent()
847 cpswaps(from->u.configureNotify.x, to->u.configureNotify.x); in SConfigureNotifyEvent()
848 cpswaps(from->u.configureNotify.y, to->u.configureNotify.y); in SConfigureNotifyEvent()
849 cpswaps(from->u.configureNotify.width, to->u.configureNotify.width); in SConfigureNotifyEvent()
850 cpswaps(from->u.configureNotify.height, to->u.configureNotify.height); in SConfigureNotifyEvent()
851 cpswaps(from->u.configureNotify.borderWidth, in SConfigureNotifyEvent()
853 to->u.configureNotify.override = from->u.configureNotify.override; in SConfigureNotifyEvent()
857 SConfigureRequestEvent(xEvent *from, xEvent *to) in SConfigureRequestEvent() argument
859 to->u.u.type = from->u.u.type; in SConfigureRequestEvent()
860 to->u.u.detail = from->u.u.detail; /* actually stack-mode */ in SConfigureRequestEvent()
861 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SConfigureRequestEvent()
862 cpswapl(from->u.configureRequest.parent, to->u.configureRequest.parent); in SConfigureRequestEvent()
863 cpswapl(from->u.configureRequest.window, to->u.configureRequest.window); in SConfigureRequestEvent()
864 cpswapl(from->u.configureRequest.sibling, to->u.configureRequest.sibling); in SConfigureRequestEvent()
865 cpswaps(from->u.configureRequest.x, to->u.configureRequest.x); in SConfigureRequestEvent()
866 cpswaps(from->u.configureRequest.y, to->u.configureRequest.y); in SConfigureRequestEvent()
867 cpswaps(from->u.configureRequest.width, to->u.configureRequest.width); in SConfigureRequestEvent()
868 cpswaps(from->u.configureRequest.height, to->u.configureRequest.height); in SConfigureRequestEvent()
869 cpswaps(from->u.configureRequest.borderWidth, in SConfigureRequestEvent()
871 cpswaps(from->u.configureRequest.valueMask, in SConfigureRequestEvent()
876 SGravityEvent(xEvent *from, xEvent *to) in SGravityEvent() argument
878 to->u.u.type = from->u.u.type; in SGravityEvent()
879 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SGravityEvent()
880 cpswapl(from->u.gravity.event, to->u.gravity.event); in SGravityEvent()
881 cpswapl(from->u.gravity.window, to->u.gravity.window); in SGravityEvent()
882 cpswaps(from->u.gravity.x, to->u.gravity.x); in SGravityEvent()
883 cpswaps(from->u.gravity.y, to->u.gravity.y); in SGravityEvent()
887 SResizeRequestEvent(xEvent *from, xEvent *to) in SResizeRequestEvent() argument
889 to->u.u.type = from->u.u.type; in SResizeRequestEvent()
890 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SResizeRequestEvent()
891 cpswapl(from->u.resizeRequest.window, to->u.resizeRequest.window); in SResizeRequestEvent()
892 cpswaps(from->u.resizeRequest.width, to->u.resizeRequest.width); in SResizeRequestEvent()
893 cpswaps(from->u.resizeRequest.height, to->u.resizeRequest.height); in SResizeRequestEvent()
897 SCirculateEvent(xEvent *from, xEvent *to) in SCirculateEvent() argument
899 to->u.u.type = from->u.u.type; in SCirculateEvent()
900 to->u.u.detail = from->u.u.detail; in SCirculateEvent()
901 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SCirculateEvent()
902 cpswapl(from->u.circulate.event, to->u.circulate.event); in SCirculateEvent()
903 cpswapl(from->u.circulate.window, to->u.circulate.window); in SCirculateEvent()
904 cpswapl(from->u.circulate.parent, to->u.circulate.parent); in SCirculateEvent()
905 to->u.circulate.place = from->u.circulate.place; in SCirculateEvent()
909 SPropertyEvent(xEvent *from, xEvent *to) in SPropertyEvent() argument
911 to->u.u.type = from->u.u.type; in SPropertyEvent()
912 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SPropertyEvent()
913 cpswapl(from->u.property.window, to->u.property.window); in SPropertyEvent()
914 cpswapl(from->u.property.atom, to->u.property.atom); in SPropertyEvent()
915 cpswapl(from->u.property.time, to->u.property.time); in SPropertyEvent()
916 to->u.property.state = from->u.property.state; in SPropertyEvent()
920 SSelectionClearEvent(xEvent *from, xEvent *to) in SSelectionClearEvent() argument
922 to->u.u.type = from->u.u.type; in SSelectionClearEvent()
923 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SSelectionClearEvent()
924 cpswapl(from->u.selectionClear.time, to->u.selectionClear.time); in SSelectionClearEvent()
925 cpswapl(from->u.selectionClear.window, to->u.selectionClear.window); in SSelectionClearEvent()
926 cpswapl(from->u.selectionClear.atom, to->u.selectionClear.atom); in SSelectionClearEvent()
930 SSelectionRequestEvent(xEvent *from, xEvent *to) in SSelectionRequestEvent() argument
932 to->u.u.type = from->u.u.type; in SSelectionRequestEvent()
933 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SSelectionRequestEvent()
934 cpswapl(from->u.selectionRequest.time, to->u.selectionRequest.time); in SSelectionRequestEvent()
935 cpswapl(from->u.selectionRequest.owner, to->u.selectionRequest.owner); in SSelectionRequestEvent()
936 cpswapl(from->u.selectionRequest.requestor, in SSelectionRequestEvent()
938 cpswapl(from->u.selectionRequest.selection, in SSelectionRequestEvent()
940 cpswapl(from->u.selectionRequest.target, to->u.selectionRequest.target); in SSelectionRequestEvent()
941 cpswapl(from->u.selectionRequest.property, to->u.selectionRequest.property); in SSelectionRequestEvent()
945 SSelectionNotifyEvent(xEvent *from, xEvent *to) in SSelectionNotifyEvent() argument
947 to->u.u.type = from->u.u.type; in SSelectionNotifyEvent()
948 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SSelectionNotifyEvent()
949 cpswapl(from->u.selectionNotify.time, to->u.selectionNotify.time); in SSelectionNotifyEvent()
950 cpswapl(from->u.selectionNotify.requestor, to->u.selectionNotify.requestor); in SSelectionNotifyEvent()
951 cpswapl(from->u.selectionNotify.selection, to->u.selectionNotify.selection); in SSelectionNotifyEvent()
952 cpswapl(from->u.selectionNotify.target, to->u.selectionNotify.target); in SSelectionNotifyEvent()
953 cpswapl(from->u.selectionNotify.property, to->u.selectionNotify.property); in SSelectionNotifyEvent()
957 SColormapEvent(xEvent *from, xEvent *to) in SColormapEvent() argument
959 to->u.u.type = from->u.u.type; in SColormapEvent()
960 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SColormapEvent()
961 cpswapl(from->u.colormap.window, to->u.colormap.window); in SColormapEvent()
962 cpswapl(from->u.colormap.colormap, to->u.colormap.colormap); in SColormapEvent()
963 to->u.colormap.new = from->u.colormap.new; in SColormapEvent()
964 to->u.colormap.state = from->u.colormap.state; in SColormapEvent()
968 SMappingEvent(xEvent *from, xEvent *to) in SMappingEvent() argument
970 to->u.u.type = from->u.u.type; in SMappingEvent()
971 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SMappingEvent()
972 to->u.mappingNotify.request = from->u.mappingNotify.request; in SMappingEvent()
973 to->u.mappingNotify.firstKeyCode = from->u.mappingNotify.firstKeyCode; in SMappingEvent()
974 to->u.mappingNotify.count = from->u.mappingNotify.count; in SMappingEvent()
978 SClientMessageEvent(xEvent *from, xEvent *to) in SClientMessageEvent() argument
980 to->u.u.type = from->u.u.type; in SClientMessageEvent()
981 to->u.u.detail = from->u.u.detail; /* actually format */ in SClientMessageEvent()
982 cpswaps(from->u.u.sequenceNumber, to->u.u.sequenceNumber); in SClientMessageEvent()
983 cpswapl(from->u.clientMessage.window, to->u.clientMessage.window); in SClientMessageEvent()
984 cpswapl(from->u.clientMessage.u.l.type, to->u.clientMessage.u.l.type); in SClientMessageEvent()
985 switch (from->u.u.detail) { in SClientMessageEvent()
988 from->u.clientMessage.u.b.bytes, 20); in SClientMessageEvent()
991 cpswaps(from->u.clientMessage.u.s.shorts0, in SClientMessageEvent()
993 cpswaps(from->u.clientMessage.u.s.shorts1, in SClientMessageEvent()
995 cpswaps(from->u.clientMessage.u.s.shorts2, in SClientMessageEvent()
997 cpswaps(from->u.clientMessage.u.s.shorts3, in SClientMessageEvent()
999 cpswaps(from->u.clientMessage.u.s.shorts4, in SClientMessageEvent()
1001 cpswaps(from->u.clientMessage.u.s.shorts5, in SClientMessageEvent()
1003 cpswaps(from->u.clientMessage.u.s.shorts6, in SClientMessageEvent()
1005 cpswaps(from->u.clientMessage.u.s.shorts7, in SClientMessageEvent()
1007 cpswaps(from->u.clientMessage.u.s.shorts8, in SClientMessageEvent()
1009 cpswaps(from->u.clientMessage.u.s.shorts9, in SClientMessageEvent()
1013 cpswapl(from->u.clientMessage.u.l.longs0, in SClientMessageEvent()
1015 cpswapl(from->u.clientMessage.u.l.longs1, in SClientMessageEvent()
1017 cpswapl(from->u.clientMessage.u.l.longs2, in SClientMessageEvent()
1019 cpswapl(from->u.clientMessage.u.l.longs3, in SClientMessageEvent()
1021 cpswapl(from->u.clientMessage.u.l.longs4, in SClientMessageEvent()
1028 SKeymapNotifyEvent(xEvent *from, xEvent *to) in SKeymapNotifyEvent() argument
1032 *to = *from; in SKeymapNotifyEvent()