| /netbsd/src/sys/arch/sun3/dev/ |
| 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 …]
|
| 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/ |
| 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/ |
| 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/ |
| 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/usr.bin/vmstat/ |
| 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/ |
| 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(x); in deldbent() [all …]
|
| /netbsd/src/external/ibm-public/postfix/dist/src/global/ |
| 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()
|
| D | off_cvt.c | 69 #define SWAP(type, a, b) { type temp; temp = a; a = b; b = temp; } macro 128 SWAP(int, start[i], last[-i]); in off_cvt_number()
|
| /netbsd/src/external/gpl2/xcvs/dist/lib/ |
| 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/ |
| 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/ |
| 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()
|
| D | sha1.c | 42 # define SWAP(n) (n) macro 44 # define SWAP(n) \ macro 82 ((sha1_uint32 *) resbuf)[0] = SWAP (ctx->A); in sha1_read_ctx() 83 ((sha1_uint32 *) resbuf)[1] = SWAP (ctx->B); in sha1_read_ctx() 84 ((sha1_uint32 *) resbuf)[2] = SWAP (ctx->C); in sha1_read_ctx() 85 ((sha1_uint32 *) resbuf)[3] = SWAP (ctx->D); in sha1_read_ctx() 86 ((sha1_uint32 *) resbuf)[4] = SWAP (ctx->E); in sha1_read_ctx() 109 ctx->buffer[size - 2] = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); in sha1_finish_ctx() 110 ctx->buffer[size - 1] = SWAP (ctx->total[0] << 3); in sha1_finish_ctx() 328 x[t] = SWAP (*words); in sha1_process_block()
|
| /netbsd/src/external/gpl3/gcc/dist/libiberty/ |
| 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()
|
| 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/gdb/dist/libiberty/ |
| 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()
|
| D | sha1.c | 42 # define SWAP(n) (n) macro 44 # define SWAP(n) \ macro 82 ((sha1_uint32 *) resbuf)[0] = SWAP (ctx->A); in sha1_read_ctx() 83 ((sha1_uint32 *) resbuf)[1] = SWAP (ctx->B); in sha1_read_ctx() 84 ((sha1_uint32 *) resbuf)[2] = SWAP (ctx->C); in sha1_read_ctx() 85 ((sha1_uint32 *) resbuf)[3] = SWAP (ctx->D); in sha1_read_ctx() 86 ((sha1_uint32 *) resbuf)[4] = SWAP (ctx->E); in sha1_read_ctx() 109 ctx->buffer[size - 2] = SWAP ((ctx->total[1] << 3) | (ctx->total[0] >> 29)); in sha1_finish_ctx() 110 ctx->buffer[size - 1] = SWAP (ctx->total[0] << 3); in sha1_finish_ctx() 328 x[t] = SWAP (*words); in sha1_process_block()
|
| /netbsd/src/crypto/external/bsd/heimdal/dist/lib/hcrypto/ |
| 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/usr.sbin/tpctl/ |
| 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/gcc/dist/intl/ |
| 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/usr.sbin/inetd/ |
| D | parse.c | 165 #define SWAP(type, a, b) {type c = a; a = b; b = c;} in config() macro 176 SWAP(char *, sep->se_user, cp->se_user); in config() 177 SWAP(char *, sep->se_group, cp->se_group); in config() 178 SWAP(char *, sep->se_server, cp->se_server); in config() 180 SWAP(char *, sep->se_argv[i], cp->se_argv[i]); in config() 182 SWAP(char *, sep->se_policy, cp->se_policy); in config() 184 SWAP(service_type, cp->se_type, sep->se_type); in config() 185 SWAP(size_t, cp->se_service_max, sep->se_service_max); in config() 186 SWAP(size_t, cp->se_ip_max, sep->se_ip_max); in config() 187 #undef SWAP in config()
|
| /netbsd/src/games/rogue/ |
| D | level.c | 58 #define SWAP(x,y) (t = (x), (x) = (y), (y) = t) macro 435 SWAP(row1, row2); in draw_simple_passage() 436 SWAP(col1, col2); in draw_simple_passage() 450 SWAP(row1, row2); in draw_simple_passage() 451 SWAP(col1, col2); in draw_simple_passage() 664 SWAP(dirs[t1], dirs[t2]); in make_maze() 718 SWAP(row1, row2); in hide_boxed_passage() 721 SWAP(col1, col2); in hide_boxed_passage() 898 SWAP(random_rooms[x], random_rooms[y]); in mix_random_rooms()
|
| /netbsd/src/external/bsd/ntp/dist/ntpd/ |
| D | refclock_gpsvme.c | 62 #define SWAP(val) ( ((val) >> 24) | (((val) & 0x00ff0000) >> 8) | \ macro 187 tlo = SWAP(tlo); /* little to big endian swap on */ in psc_poll() 188 thi = SWAP(thi); /* copy of data */ in psc_poll()
|
| /netbsd/src/external/bsd/wpa/dist/src/crypto/ |
| D | aes_i.h | 109 #define SWAP(x) (_lrotl(x, 8) & 0x00ff00ff | _lrotr(x, 8) & 0xff00ff00) macro 110 #define GETU32(p) SWAP(*((u32 *)(p))) 111 #define PUTU32(ct, st) { *((u32 *)(ct)) = SWAP((st)); }
|
| /netbsd/src/sys/arch/sparc/fpu/ |
| D | fpu_emu.h | 131 SWAP(x, y); \ 133 #define SWAP(x, y) { \ macro
|