| /netbsd-src/sys/arch/sun3/dev/ |
| H A D | i82586.h | 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 */ 108 #define IE_CU_START SWAP(0x0100) /* do-command command */ 109 #define IE_CU_RESUME SWAP(0x0200) /* resume a suspended cmd list */ [all …]
|
| H A D | if_ie.c | 142 #define SWAP(x) ((u_short)(XSWAP((u_short)(x)))) macro 241 return SWAP(pa); in vtop16sw() 405 scb->ie_command_list = SWAP(0xffff); in ie_setupram() 406 scb->ie_recv_list = SWAP(0xffff); in ie_setupram() 546 SWAP(scb->ie_err_crc) + in ierint() 547 SWAP(scb->ie_err_align) + in ierint() 548 SWAP(scb->ie_err_resource) + in ierint() 549 SWAP(scb->ie_err_overrun)); in ierint() 594 if_collisions, SWAP(status & IE_XS_MAXCOLL)); in ietint() 673 len = SWAP(sc->rbuffs[head]->ie_rbd_actual); in ie_buflen() [all …]
|
| /netbsd-src/usr.sbin/paxctl/ |
| H A D | paxctl.c | 183 #define SWAP(a) (swap == 0 ? (a) : \ in process_one() macro 188 #define EH(field) (size == 32 ? SWAP(e.h32.field) : SWAP(e.h64.field)) in process_one() 189 #define SH(field) (size == 32 ? SWAP(s.h32.field) : SWAP(s.h64.field)) in process_one() 190 #define NH(field) (size == 32 ? SWAP(n.h32.field) : SWAP(n.h64.field)) in process_one() 267 if (!pax_haveflags(SWAP(pax_tag.flags))) in process_one() 270 if (!pax_flags_sane(SWAP(pax_tag.flags))) in process_one() 272 (uint32_t)SWAP(pax_tag.flags)); in process_one() 278 pax_printflags(name, many, SWAP(pax_tag.flags)); in process_one() 286 pax_tag.flags |= SWAP(add_flags); in process_one() 287 pax_tag.flags &= SWAP(~del_flags); in process_one() [all …]
|
| /netbsd-src/external/ibm-public/postfix/dist/src/master/ |
| H A D | master_conf.c | 101 #define SWAP(type,a,b) { type temp = a; a = b; b = temp; } in master_config() macro 145 SWAP(char *, serv->ext_name, entry->ext_name); in master_config() 146 SWAP(char *, serv->path, entry->path); in master_config() 147 SWAP(ARGV *, serv->args, entry->args); in master_config() 148 SWAP(char *, serv->stress_param_val, entry->stress_param_val); in master_config()
|
| /netbsd-src/sys/arch/amiga/dev/ |
| H A D | if_es.c | 70 #define SWAP(x) (((x & 0xff) << 8) | ((x >> 8) & 0xff)) macro 210 SWAP(smc->b0.tcr), SWAP(smc->b0.ephsr), SWAP(smc->b0.rcr), in es_dump_smcregs() 211 SWAP(smc->b0.ecr), SWAP(smc->b0.mir), SWAP(smc->b0.mcr)); in es_dump_smcregs() 214 SWAP(smc->b1.cr), SWAP(smc->b1.bar), smc->b1.iar[0], smc->b1.iar[1], in es_dump_smcregs() 215 smc->b1.iar[2], smc->b1.gpr, SWAP(smc->b1.ctr)); in es_dump_smcregs() 218 SWAP(smc->b2.mmucr), smc->b2.pnr, smc->b2.arr, smc->b2.fifo, in es_dump_smcregs() 219 SWAP(smc->b2.ptr)); in es_dump_smcregs() 284 smc->b0.mcr = SWAP(0x0020); /* reserve 8K for transmit buffers */ in esinit() 573 smc->b2.ptr = PTR_RCV | PTR_AUTOINCR | PTR_READ | SWAP(0x0002); in esrint() 580 len = SWAP(len); /* Careful of macro side-effects */ in esrint() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/libctf/ |
| H A D | ctf-qsort_r.c | 39 #define SWAP(a, b, size) \ macro 133 SWAP (mid, lo, size); in _quicksort() 135 SWAP (mid, hi, size); in _quicksort() 139 SWAP (mid, lo, size); in _quicksort() 158 SWAP (left_ptr, right_ptr, size); in _quicksort() 230 SWAP (tmp_ptr, base_ptr, size); in _quicksort()
|
| /netbsd-src/external/gpl3/binutils/dist/libctf/ |
| H A D | ctf-qsort_r.c | 39 #define SWAP(a, b, size) \ macro 133 SWAP (mid, lo, size); in _quicksort() 135 SWAP (mid, hi, size); in _quicksort() 139 SWAP (mid, lo, size); in _quicksort() 158 SWAP (left_ptr, right_ptr, size); in _quicksort() 230 SWAP (tmp_ptr, base_ptr, size); in _quicksort()
|
| /netbsd-src/usr.bin/vmstat/ |
| H A D | drvstats.c | 80 #define SWAP(fld) do { \ in drvswap() macro 126 SWAP(rxfer[i]); in drvswap() 127 SWAP(wxfer[i]); in drvswap() 128 SWAP(seek[i]); in drvswap() 129 SWAP(rbytes[i]); in drvswap() 130 SWAP(wbytes[i]); in drvswap() 145 SWAP(tk_nin); in tkswap() 146 SWAP(tk_nout); in tkswap() 157 SWAP(cp_time[i]); in cpuswap() 171 #undef SWAP
|
| /netbsd-src/usr.sbin/pwd_mkdb/ |
| H A D | pwd_mkdb.c | 188 #define SWAP(sw) \ macro 193 #define SWAP(sw) sw macro 823 pwd.pw_uid = SWAP(pwd.pw_uid); in putdbents() 824 pwd.pw_gid = SWAP(pwd.pw_gid); in putdbents() 833 tmp = SWAP(tmp); \ in putdbents() 840 tmp = SWAP(tmp); \ in putdbents() 845 pwvar = SWAP(pwvar); \ in putdbents() 867 x = SWAP(x); in putdbents() 884 x = SWAP(x); in putdbents() 919 x = SWAP( in deldbent() [all...] |
| /netbsd-src/external/ibm-public/postfix/dist/src/global/ |
| H A D | recipient_list.c | 174 #define SWAP(t, x) do { t x = b->x; b->x = a->x ; a->x = x; } while (0) in recipient_list_swap() macro 176 SWAP(RECIPIENT *, info); in recipient_list_swap() 177 SWAP(int, len); in recipient_list_swap() 178 SWAP(int, avail); in recipient_list_swap()
|
| /netbsd-src/external/gpl2/xcvs/dist/lib/ |
| H A D | md5.c | 56 # define SWAP(n) \ macro 59 # define SWAP(n) (n) macro 94 ((md5_uint32 *) resbuf)[0] = SWAP (ctx->A); in md5_read_ctx() 95 ((md5_uint32 *) resbuf)[1] = SWAP (ctx->B); in md5_read_ctx() 96 ((md5_uint32 *) resbuf)[2] = SWAP (ctx->C); in md5_read_ctx() 97 ((md5_uint32 *) resbuf)[3] = SWAP (ctx->D); in md5_read_ctx() 123 *(md5_uint32 *) &ctx->buffer[bytes + pad] = SWAP (ctx->total[0] << 3); in md5_finish_ctx() 124 *(md5_uint32 *) &ctx->buffer[bytes + pad + 4] = SWAP ((ctx->total[1] << 3) | in md5_finish_ctx() 337 a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \ in md5_process_block()
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/aes/ |
| H A D | aes_local.h | 19 # define SWAP(x) (_lrotl(x, 8) & 0x00ff00ff | _lrotr(x, 8) & 0xff00ff00) macro 20 # define GETU32(p) SWAP(*((u32 *)(p))) 21 # define PUTU32(ct, st) { *((u32 *)(ct)) = SWAP((st)); }
|
| /netbsd-src/crypto/external/bsd/openssl.old/dist/crypto/aes/ |
| H A D | aes_local.h | 19 # define SWAP(x) (_lrotl(x, 8) & 0x00ff00ff | _lrotr(x, 8) & 0xff00ff00) macro 20 # define GETU32(p) SWAP(*((u32 *)(p))) 21 # define PUTU32(ct, st) { *((u32 *)(ct)) = SWAP((st)); }
|
| /netbsd-src/external/gpl3/binutils/dist/libiberty/ |
| H A D | md5.c | 50 # define SWAP(n) \ macro 53 # define SWAP(n) (n) macro 86 buffer[0] = SWAP (ctx->A); in md5_read_ctx() 87 buffer[1] = SWAP (ctx->B); in md5_read_ctx() 88 buffer[2] = SWAP (ctx->C); in md5_read_ctx() 89 buffer[3] = SWAP (ctx->D); in md5_read_ctx() 120 swap_bytes = SWAP (ctx->total[0] << 3); in md5_finish_ctx() 122 swap_bytes = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); in md5_finish_ctx() 318 a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \ in md5_process_block()
|
| /netbsd-src/external/gpl3/gcc.old/dist/libiberty/ |
| H A D | md5.c | 50 # define SWAP(n) \ macro 53 # define SWAP(n) (n) macro 86 buffer[0] = SWAP (ctx->A); in md5_read_ctx() 87 buffer[1] = SWAP (ctx->B); in md5_read_ctx() 88 buffer[2] = SWAP (ctx->C); in md5_read_ctx() 89 buffer[3] = SWAP (ctx->D); in md5_read_ctx() 120 swap_bytes = SWAP (ctx->total[0] << 3); in md5_finish_ctx() 122 swap_bytes = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); in md5_finish_ctx() 318 a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \ in md5_process_block()
|
| H A D | sha1.c | 37 # define SWAP(n) (n) macro 39 # define SWAP(n) \ macro 77 ((sha1_uint32 *) resbuf)[0] = SWAP (ctx->A); in sha1_read_ctx() 78 ((sha1_uint32 *) resbuf)[1] = SWAP (ctx->B); in sha1_read_ctx() 79 ((sha1_uint32 *) resbuf)[2] = SWAP (ctx->C); in sha1_read_ctx() 80 ((sha1_uint32 *) resbuf)[3] = SWAP (ctx->D); in sha1_read_ctx() 81 ((sha1_uint32 *) resbuf)[4] = SWAP (ctx->E); in sha1_read_ctx() 104 ctx->buffer[size - 2] = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); in sha1_finish_ctx() 105 ctx->buffer[size - 1] = SWAP (ctx->total[0] << 3); in sha1_finish_ctx() 327 x[t] = SWAP (*words); in sha1_process_block()
|
| /netbsd-src/external/gpl3/gcc/dist/libiberty/ |
| H A D | md5.c | 50 # define SWAP(n) \ macro 53 # define SWAP(n) (n) macro 86 buffer[0] = SWAP (ctx->A); in md5_read_ctx() 87 buffer[1] = SWAP (ctx->B); in md5_read_ctx() 88 buffer[2] = SWAP (ctx->C); in md5_read_ctx() 89 buffer[3] = SWAP (ctx->D); in md5_read_ctx() 120 swap_bytes = SWAP (ctx->total[0] << 3); in md5_finish_ctx() 122 swap_bytes = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); in md5_finish_ctx() 318 a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \ in md5_process_block()
|
| H A D | sha1.c | 37 # define SWAP(n) (n) macro 39 # define SWAP(n) \ macro 77 ((sha1_uint32 *) resbuf)[0] = SWAP (ctx->A); in sha1_read_ctx() 78 ((sha1_uint32 *) resbuf)[1] = SWAP (ctx->B); in sha1_read_ctx() 79 ((sha1_uint32 *) resbuf)[2] = SWAP (ctx->C); in sha1_read_ctx() 80 ((sha1_uint32 *) resbuf)[3] = SWAP (ctx->D); in sha1_read_ctx() 81 ((sha1_uint32 *) resbuf)[4] = SWAP (ctx->E); in sha1_read_ctx() 104 ctx->buffer[size - 2] = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); in sha1_finish_ctx() 105 ctx->buffer[size - 1] = SWAP (ctx->total[0] << 3); in sha1_finish_ctx() 327 x[t] = SWAP (*words); in sha1_process_block()
|
| /netbsd-src/external/gpl3/binutils.old/dist/libiberty/ |
| H A D | md5.c | 50 # define SWAP(n) \ macro 53 # define SWAP(n) (n) macro 86 buffer[0] = SWAP (ctx->A); in md5_read_ctx() 87 buffer[1] = SWAP (ctx->B); in md5_read_ctx() 88 buffer[2] = SWAP (ctx->C); in md5_read_ctx() 89 buffer[3] = SWAP (ctx->D); in md5_read_ctx() 120 swap_bytes = SWAP (ctx->total[0] << 3); in md5_finish_ctx() 122 swap_bytes = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); in md5_finish_ctx() 318 a += FF (b, c, d) + (*cwp++ = SWAP (*words)) + T; \ in md5_process_block()
|
| H A D | sha1.c | 37 # define SWAP(n) (n) macro 39 # define SWAP(n) \ macro 77 ((sha1_uint32 *) resbuf)[0] = SWAP (ctx->A); in sha1_read_ctx() 78 ((sha1_uint32 *) resbuf)[1] = SWAP (ctx->B); in sha1_read_ctx() 79 ((sha1_uint32 *) resbuf)[2] = SWAP (ctx->C); in sha1_read_ctx() 80 ((sha1_uint32 *) resbuf)[3] = SWAP (ctx->D); in sha1_read_ctx() 81 ((sha1_uint32 *) resbuf)[4] = SWAP (ctx->E); in sha1_read_ctx() 104 ctx->buffer[size - 2] = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); in sha1_finish_ctx() 105 ctx->buffer[size - 1] = SWAP (ctx->total[0] << 3); in sha1_finish_ctx() 323 x[t] = SWAP (*words); in sha1_process_block()
|
| /netbsd-src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| H A D | rc4.c | 43 #define SWAP(k,x,y) \ macro 59 SWAP(key, i, j); in RC4_set_key() 75 SWAP(key, x, y); in RC4()
|
| /netbsd-src/external/gpl2/texinfo/dist/intl/ |
| H A D | gettextP.h | 56 # define W(flag, data) ((flag) ? SWAP (data) : (data)) 62 # define SWAP(i) bswap_32 (i) macro 65 SWAP (i) in SWAP() function
|
| /netbsd-src/usr.sbin/tpctl/ |
| H A D | fb.c | 50 #define SWAP(a, b) do { \ macro 265 SWAP(x, y); in fb_drawpixel() 301 SWAP(x0, x1); in fb_drawline() 302 SWAP(y0, y1); in fb_drawline() 321 SWAP(x0, x1); in fb_drawline() 322 SWAP(y0, y1); in fb_drawline()
|
| /netbsd-src/external/gpl3/gdb.old/dist/intl/ |
| H A D | gettextP.h | 62 # define W(flag, data) ((flag) ? SWAP (data) : (data)) 68 # define SWAP(i) bswap_32 (i) macro 71 SWAP (i) in SWAP() function
|
| /netbsd-src/external/gpl3/gcc/dist/intl/ |
| H A D | gettextP.h | 62 # define W(flag, data) ((flag) ? SWAP (data) : (data)) 68 # define SWAP(i) bswap_32 (i) macro 71 SWAP (i) in SWAP() function
|