Lines Matching refs:getshort
56 #define getshort(s) ((((s) & 0xff) << 8) | (((s) >> 8) & 0xff)) macro
59 #define getshort(s) (s) macro
98 #define DS2UI(p) ((getshort((p)[1]) << 16) | getshort((p)[0]))
101 #define DS2I(p) ((getshort((p)[1]) << 16) | getshort((p)[0]))
560 switch (getshort(hp->id)) { in jupiter_receive()
705 getshort(hp->id)); in jupiter_receive()
822 flags = getshort(jp->flags); in jupiter_parse_t()
929 len = getshort(hp->len); in jupiter_send()
1048 sum += getshort(x); in jupiter_cksum()
1071 if (getshort(hp->sync) != JUPITER_SYNC) { in jupiter_recv()
1106 getshort(hp->hsum)) { in jupiter_recv()
1114 len = getshort(hp->len); in jupiter_recv()
1123 if (jupiter_cksum(sp, len) != getshort(sp[len])) { in jupiter_recv()