| /src/sys/arch/sun3/dev/ |
| i82586.h | 47 * XXX: the SWAP() macro used here to byte-swap word constants. 99 #define IE_RU_COMMAND SWAP(0x0070) /* mask for RU command */ 100 #define IE_RU_NOP SWAP(0) /* for completeness */ 101 #define IE_RU_START SWAP(0x0010) /* start receive unit command */ 102 #define IE_RU_ENABLE SWAP(0x0020) /* enable receiver command */ 103 #define IE_RU_DISABLE SWAP(0x0030) /* disable receiver command */ 104 #define IE_RU_ABORT SWAP(0x0040) /* abort current receive operation */ 106 #define IE_CU_COMMAND SWAP(0x0700) /* mask for CU command */ 107 #define IE_CU_NOP SWAP(0) /* included for completeness * [all...] |
| if_ie.c | 142 #define SWAP(x) ((u_short)(XSWAP((u_short)(x)))) 241 return SWAP(pa); 405 scb->ie_command_list = SWAP(0xffff); 406 scb->ie_recv_list = SWAP(0xffff); 546 SWAP(scb->ie_err_crc) + 547 SWAP(scb->ie_err_align) + 548 SWAP(scb->ie_err_resource) + 549 SWAP(scb->ie_err_overrun)); 594 if_collisions, SWAP(status & IE_XS_MAXCOLL)); 673 len = SWAP(sc->rbuffs[head]->ie_rbd_actual) [all...] |
| /src/usr.sbin/paxctl/ |
| paxctl.c | 186 #define SWAP(a) (swap == 0 ? (a) : \ 191 #define EH(field) (size == 32 ? SWAP(e.h32.field) : SWAP(e.h64.field)) 192 #define SH(field) (size == 32 ? SWAP(s.h32.field) : SWAP(s.h64.field)) 193 #define NH(field) (size == 32 ? SWAP(n.h32.field) : SWAP(n.h64.field)) 200 int fd, size, ok = 0, flagged = 0, swap, error = 1; local 221 swap = 0 [all...] |
| /src/sys/arch/sparc/fpu/ |
| fpu_emu.h | 131 SWAP(x, y); \ 133 #define SWAP(x, y) { \ 134 struct fpn *swap; \ 135 swap = (x), (x) = (y), (y) = swap; \
|
| fpu_add.c | 127 SWAP(x, y);
|
| /src/sys/arch/amiga/dev/ |
| if_es.c | 70 #define SWAP(x) (((x & 0xff) << 8) | ((x >> 8) & 0xff)) 210 SWAP(smc->b0.tcr), SWAP(smc->b0.ephsr), SWAP(smc->b0.rcr), 211 SWAP(smc->b0.ecr), SWAP(smc->b0.mir), SWAP(smc->b0.mcr)); 214 SWAP(smc->b1.cr), SWAP(smc->b1.bar), smc->b1.iar[0], smc->b1.iar[1], 215 smc->b1.iar[2], smc->b1.gpr, SWAP(smc->b1.ctr)) [all...] |
| /src/usr.bin/vmstat/ |
| drvstats.c | 80 #define SWAP(fld) do { \ 126 SWAP(rxfer[i]); 127 SWAP(wxfer[i]); 128 SWAP(seek[i]); 129 SWAP(rbytes[i]); 130 SWAP(wbytes[i]); 145 SWAP(tk_nin); 146 SWAP(tk_nout); 157 SWAP(cp_time[i]); 171 #undef SWAP [all...] |
| /src/sys/arch/powerpc/fpu/ |
| fpu_emu.h | 129 SWAP(x, y); \ 131 #define SWAP(x, y) { \ 132 struct fpn *swap; \ 133 swap = (x), (x) = (y), (y) = swap; \
|
| fpu_add.c | 144 SWAP(x, y);
|
| /src/usr.sbin/pwd_mkdb/ |
| pwd_mkdb.c | 187 #define SWAP(sw) \ 192 #define SWAP(sw) sw 822 pwd.pw_uid = SWAP(pwd.pw_uid); 823 pwd.pw_gid = SWAP(pwd.pw_gid); 832 tmp = SWAP(tmp); \ 839 tmp = SWAP(tmp); \ 844 pwvar = SWAP(pwvar); \ 866 x = SWAP(x); 883 x = SWAP(x); 918 x = SWAP(x) [all...] |
| /src/usr.sbin/tpctl/ |
| fb.c | 50 #define SWAP(a, b) do { \ 265 SWAP(x, y); 301 SWAP(x0, x1); 302 SWAP(y0, y1); 321 SWAP(x0, x1); 322 SWAP(y0, y1);
|
| /src/sys/arch/m68k/fpe/ |
| fpu_emulate.h | 136 SWAP(x, y); \ 138 #define SWAP(x, y) { \ 139 struct fpn *swap; \ 140 swap = (x), (x) = (y), (y) = swap; \
|
| fpu_add.c | 123 SWAP(x, y);
|
| /src/usr.sbin/inetd/ |
| parse.c | 165 #define SWAP(type, a, b) {type c = a; a = b; b = c;} 176 SWAP(char *, sep->se_user, cp->se_user); 177 SWAP(char *, sep->se_group, cp->se_group); 178 SWAP(char *, sep->se_server, cp->se_server); 180 SWAP(char *, sep->se_argv[i], cp->se_argv[i]); 182 SWAP(char *, sep->se_policy, cp->se_policy); 184 SWAP(service_type, cp->se_type, sep->se_type); 185 SWAP(size_t, cp->se_service_max, sep->se_service_max); 186 SWAP(size_t, cp->se_ip_max, sep->se_ip_max); 187 SWAP(size_t, cp->se_accept_max, sep->se_accept_max) [all...] |
| /src/games/rogue/ |
| level.c | 58 #define SWAP(x,y) (t = (x), (x) = (y), (y) = t) 435 SWAP(row1, row2); 436 SWAP(col1, col2); 450 SWAP(row1, row2); 451 SWAP(col1, col2); 664 SWAP(dirs[t1], dirs[t2]); 718 SWAP(row1, row2); 721 SWAP(col1, col2); 898 SWAP(random_rooms[x], random_rooms[y]);
|
| /src/usr.sbin/sysinst/arch/mac68k/ |
| menus.md.pl | 192 option "NetBSD SWAP", exit, action { 200 strcpy (map.blk[j].pmPartName, "NetBSD SWAP");
|
| /src/common/lib/libc/stdlib/ |
| heapsort.c | 79 * Swap two areas of size number of bytes. Although qsort(3) permits random 82 * isn't worth optimizing; the SWAP's get sped up by the cache, and pointer 85 #define SWAP(a, b, count, size, tmp) { \ 123 SWAP(par, child, count, size, tmp); \
|
| /src/sys/arch/i386/i386/ |
| cpu_in_cksum.S | 86 #define SWAP \ 101 SWAP ; \
|
| /src/sys/net/npf/ |
| npf_alg_icmp.c | 270 #define SWAP(type, x, y) { type tmp = x; x = y; y = tmp; } 271 SWAP(npf_addr_t *, enpc.npc_ips[NPF_SRC], enpc.npc_ips[NPF_DST]);
|
| /src/usr.bin/midiplay/ |
| midiplay.c | 841 #define SWAP(i, j) do { \ 859 SWAP(node, lc); 873 SWAP(node, mn);
|
| /src/sys/sys/ |
| disklabel.h | 357 x(SWAP, 1, "swap", NULL, NULL) /* swap */ \
|
| /src/sys/dist/pf/net/ |
| pf_table.c | 86 #define SWAP(type, a1, a2) \ 1735 SWAP(struct radix_node_head *, kt->pfrkt_ip4, 1737 SWAP(struct radix_node_head *, kt->pfrkt_ip6, 1739 SWAP(int, kt->pfrkt_cnt, shadow->pfrkt_cnt);
|