x 528 altq/altq_cdnr.c #define TB_SCALE(x) ((u_int64_t)(x) << TB_SHIFT) x 529 altq/altq_cdnr.c #define TB_UNSCALE(x) ((x) >> TB_SHIFT) x 1332 altq/altq_hfsc.c seg_x2y(u_int64_t x, u_int64_t sm) x 1425 altq/altq_hfsc.c rtsc_init(struct runtime_sc *rtsc, struct internal_sc * isc, u_int64_t x, x 1464 altq/altq_hfsc.c rtsc_x2y(struct runtime_sc *rtsc, u_int64_t x) x 1485 altq/altq_hfsc.c rtsc_min(struct runtime_sc *rtsc, struct internal_sc *isc, u_int64_t x, x 86 altq/altq_rmclass_debug.h #define UNLOCK_TRACE(x) splx(x) x 205 altq/altq_subr.c #define TBR_SCALE(x) ((int64_t)(x) << TBR_SHIFT) x 206 altq/altq_subr.c #define TBR_UNSCALE(x) ((x) >> TBR_SHIFT) x 73 arch/i386/i386/apm.c #define DPRINTF(x) printf x x 75 arch/i386/i386/apm.c #define DPRINTF(x) /**/ x 105 arch/i386/i386/db_disasm.c #define op1(x) (x) x 106 arch/i386/i386/db_disasm.c #define op2(x,y) ((x)|((y)<<8)) x 107 arch/i386/i386/db_disasm.c #define op3(x,y,z) ((x)|((y)<<8)|((z)<<16)) x 39 arch/i386/i386/esm.c #define DPRINTF(x...) do { if (esmdebug) printf(x); } while (0) x 40 arch/i386/i386/esm.c #define DPRINTFN(n,x...) do { if (esmdebug > (n)) printf(x); } while (0) x 43 arch/i386/i386/esm.c #define DPRINTF(x...) /* x */ x 44 arch/i386/i386/esm.c #define DPRINTFN(n,x...) /* n: x */ x 228 arch/i386/i386/esmreg.h #define ESM2_V_PSU_ID(x) ((x)>>8 & 0xff) x 850 arch/i386/i386/est.c #define NELEM(x) (sizeof(x) / sizeof((x)[0])) x 393 arch/i386/i386/ioapic.c #define LEGAL_IRQ(x) ((x) >= 0 && (x) < APIC_ICU_LEN && (x) != 2) x 50 arch/i386/i386/longrun.c #define LONGRUN_MODE_MASK(x) ((x) & 0x000000007f) x 51 arch/i386/i386/longrun.c #define LONGRUN_MODE_RESERVED(x) ((x) & 0xffffff80) x 52 arch/i386/i386/longrun.c #define LONGRUN_MODE_WRITE(x, y) (LONGRUN_MODE_RESERVED(x) | LONGRUN_MODE_MASK(y)) x 490 arch/i386/i386/pmapae.c #define i386_round_pdr(x) ((((unsigned)(x)) + ~PD_MASK) & PD_MASK) x 68 arch/i386/i386/powernow-k7.c #define PN7_CTR_FID(x) ((x) & 0x1f) x 69 arch/i386/i386/powernow-k7.c #define PN7_CTR_VID(x) (((x) & 0x1f) << 8) x 73 arch/i386/i386/powernow-k7.c #define PN7_CTR_SGTC(x) (((uint64_t)(x) & 0x000fffff) << 32) x 75 arch/i386/i386/powernow-k7.c #define PN7_STA_CFID(x) ((x) & 0x1f) x 76 arch/i386/i386/powernow-k7.c #define PN7_STA_SFID(x) (((x) >> 8) & 0x1f) x 77 arch/i386/i386/powernow-k7.c #define PN7_STA_MFID(x) (((x) >> 16) & 0x1f) x 78 arch/i386/i386/powernow-k7.c #define PN7_STA_CVID(x) (((x) >> 32) & 0x1f) x 79 arch/i386/i386/powernow-k7.c #define PN7_STA_SVID(x) (((x) >> 40) & 0x1f) x 80 arch/i386/i386/powernow-k7.c #define PN7_STA_MVID(x) (((x) >> 48) & 0x1f) x 85 arch/i386/i386/powernow-k7.c #define PN7_ACPI_CTRL_TO_FID(x) ((x) & 0x1f) x 86 arch/i386/i386/powernow-k7.c #define PN7_ACPI_CTRL_TO_VID(x) (((x) >> 5) & 0x1f) x 87 arch/i386/i386/powernow-k7.c #define PN7_ACPI_CTRL_TO_SGTC(x) (((x) >> 10) & 0xffff) x 63 arch/i386/i386/powernow-k8.c #define PN8_CTR_FID(x) ((x) & 0x3f) x 64 arch/i386/i386/powernow-k8.c #define PN8_CTR_VID(x) (((x) & 0x1f) << 8) x 65 arch/i386/i386/powernow-k8.c #define PN8_CTR_PENDING(x) (((x) & 1) << 32) x 67 arch/i386/i386/powernow-k8.c #define PN8_STA_CFID(x) ((x) & 0x3f) x 68 arch/i386/i386/powernow-k8.c #define PN8_STA_SFID(x) (((x) >> 8) & 0x3f) x 69 arch/i386/i386/powernow-k8.c #define PN8_STA_MFID(x) (((x) >> 16) & 0x3f) x 70 arch/i386/i386/powernow-k8.c #define PN8_STA_PENDING(x) (((x) >> 31) & 0x01) x 71 arch/i386/i386/powernow-k8.c #define PN8_STA_CVID(x) (((x) >> 32) & 0x1f) x 72 arch/i386/i386/powernow-k8.c #define PN8_STA_SVID(x) (((x) >> 40) & 0x1f) x 73 arch/i386/i386/powernow-k8.c #define PN8_STA_MVID(x) (((x) >> 48) & 0x1f) x 77 arch/i386/i386/powernow-k8.c #define PN8_PSB_TO_RVO(x) ((x) & 0x03) x 78 arch/i386/i386/powernow-k8.c #define PN8_PSB_TO_IRT(x) (((x) >> 2) & 0x03) x 79 arch/i386/i386/powernow-k8.c #define PN8_PSB_TO_MVS(x) (((x) >> 4) & 0x03) x 80 arch/i386/i386/powernow-k8.c #define PN8_PSB_TO_BATT(x) (((x) >> 6) & 0x03) x 83 arch/i386/i386/powernow-k8.c #define PN8_ACPI_CTRL_TO_FID(x) ((x) & 0x3f) x 84 arch/i386/i386/powernow-k8.c #define PN8_ACPI_CTRL_TO_VID(x) (((x) >> 6) & 0x1f) x 85 arch/i386/i386/powernow-k8.c #define PN8_ACPI_CTRL_TO_VST(x) (((x) >> 11) & 0x1f) x 86 arch/i386/i386/powernow-k8.c #define PN8_ACPI_CTRL_TO_MVS(x) (((x) >> 18) & 0x03) x 87 arch/i386/i386/powernow-k8.c #define PN8_ACPI_CTRL_TO_PLL(x) (((x) >> 20) & 0x7f) x 88 arch/i386/i386/powernow-k8.c #define PN8_ACPI_CTRL_TO_RVO(x) (((x) >> 28) & 0x03) x 89 arch/i386/i386/powernow-k8.c #define PN8_ACPI_CTRL_TO_IRT(x) (((x) >> 30) & 0x03) x 91 arch/i386/i386/powernow-k8.c #define PN8_PLL_LOCK(x) ((x) * 1000/5) x 77 arch/i386/include/apmvar.h #define APM_DEV_DISPLAY(x) (0x0100|((x)&0xff)) x 78 arch/i386/include/apmvar.h #define APM_DEV_DISK(x) (0x0200|((x)&0xff)) x 79 arch/i386/include/apmvar.h #define APM_DEV_PARALLEL(x) (0x0300|((x)&0xff)) x 80 arch/i386/include/apmvar.h #define APM_DEV_SERIAL(x) (0x0400|((x)&0xff)) x 81 arch/i386/include/apmvar.h #define APM_DEV_NETWORK(x) (0x0500|((x)&0xff)) x 82 arch/i386/include/apmvar.h #define APM_DEV_PCMCIA(x) (0x0600|((x)&0xff)) x 83 arch/i386/include/apmvar.h #define APM_DEV_BATTERIES(x) (0x8000|((x)&0xff)) x 50 arch/i386/include/asm.h #define PIC_PLT(x) x@PLT x 51 arch/i386/include/asm.h #define PIC_GOT(x) x@GOT(%ebx) x 52 arch/i386/include/asm.h #define PIC_GOTOFF(x) x@GOTOFF(%ebx) x 56 arch/i386/include/asm.h #define PIC_PLT(x) x x 57 arch/i386/include/asm.h #define PIC_GOT(x) x x 58 arch/i386/include/asm.h #define PIC_GOTOFF(x) x x 62 arch/i386/include/asm.h #define _ASM_LABEL(x) x x 64 arch/i386/include/asm.h #define CVAROFF(x, y) _C_LABEL(x) + y x 67 arch/i386/include/asm.h # define __CONCAT(x,y) x ## y x 68 arch/i386/include/asm.h # define __STRING(x) #x x 70 arch/i386/include/asm.h # define __CONCAT(x,y) x/**/y x 71 arch/i386/include/asm.h # define __STRING(x) "x" x 92 arch/i386/include/asm.h #define _ENTRY(x) \ x 111 arch/i386/include/asm.h #define RCSID(x) .text; .asciz x x 264 arch/i386/include/cpu.h #define DELAY(x) (*delay_func)(x) x 265 arch/i386/include/cpu.h #define delay(x) (*delay_func)(x) x 32 arch/i386/include/endian.h #define __swap32md(x) ({ \ x 39 arch/i386/include/endian.h #define __swap64md(x) ({ \ x 45 arch/i386/include/endian.h #define __swap16md(x) ({ \ x 87 arch/i386/include/i82093var.h #define APIC_IRQ_APIC(x) ((x & APIC_INT_APIC_MASK) >> APIC_INT_APIC_SHIFT) x 88 arch/i386/include/i82093var.h #define APIC_IRQ_PIN(x) ((x & APIC_INT_PIN_MASK) >> APIC_INT_PIN_SHIFT) x 116 arch/i386/include/param.h #define ctod(x) ((x) << (PGSHIFT - DEV_BSHIFT)) x 117 arch/i386/include/param.h #define dtoc(x) ((x) >> (PGSHIFT - DEV_BSHIFT)) x 120 arch/i386/include/param.h #define ctob(x) ((x) << PGSHIFT) x 121 arch/i386/include/param.h #define btoc(x) (((x) + PGOFSET) >> PGSHIFT) x 124 arch/i386/include/param.h #define dbtob(x) ((x) << DEV_BSHIFT) x 125 arch/i386/include/param.h #define btodb(x) ((x) >> DEV_BSHIFT) x 130 arch/i386/include/param.h #define i386_round_pdr(x) ((((unsigned)(x)) + PDOFSET) & ~PDOFSET) x 131 arch/i386/include/param.h #define i386_trunc_pdr(x) ((unsigned)(x) & ~PDOFSET) x 44 arch/i386/include/vm86.h #define VM86_TYPE(x) ((x) & 0xff) x 45 arch/i386/include/vm86.h #define VM86_ARG(x) (((x) & 0xff00) >> 8) x 368 arch/i386/isa/isa_machdep.c #define LEGAL_IRQ(x) ((x) >= 0 && (x) < ICU_LEN && (x) != 2) x 5 arch/i386/isa/npx.c #define IPRINTF(x) printf x x 7 arch/i386/isa/npx.c #define IPRINTF(x) x 168 arch/i386/isa/pccom.c #define DEVUNIT(x) (minor(x) & 0x7f) x 169 arch/i386/isa/pccom.c #define DEVCUA(x) (minor(x) & 0x80) x 65 arch/i386/pci/opti82c558reg.h #define VIPER_PIRQ(reg, x) (((reg) >> ((x) * VIPER_PIRQ_SELECT_SHIFT)) \ x 49 arch/i386/pci/piixreg.h #define PIIX_PIRQ(reg, x) (((reg) >> ((x) << 3)) & 0xff) x 65 compat/aout/compat_aout.c #define syscallarg(x) \ x 29 compat/bsdos/bsdos_ioctl.h #define BSDOS_IOCGROUP(x) (((x) >> 8) & 0xff) x 14 compat/bsdos/bsdos_syscallargs.h #define syscallarg(x) \ x 48 compat/freebsd/freebsd_exec.h #define FREEBSD_N_ALIGN(ex,x) \ x 38 compat/freebsd/freebsd_ioctl.h #define FREEBSD_IOCGROUP(x) (((x) >> 8) & 0xff) x 14 compat/freebsd/freebsd_syscallargs.h #define syscallarg(x) \ x 14 compat/hpux/hppa/hpux_syscallargs.h #define syscallarg(x) \ x 84 compat/hpux/m68k/hpux_exec.h #define HPUX_SEGMENT_ROUND(x) \ x 87 compat/hpux/m68k/hpux_exec.h #define HPUX_TXTOFF(x, m) \ x 93 compat/hpux/m68k/hpux_exec.h #define HPUX_DATAOFF(x, m) \ x 100 compat/hpux/m68k/hpux_exec.h #define HPUX_PASOFF(x, m) \ x 108 compat/hpux/m68k/hpux_exec.h #define HPUX_SYMOFF(x, m) (HPUX_PASOFF((x), (m)) + (x).ha_pascal) x 109 compat/hpux/m68k/hpux_exec.h #define HPUX_SUPSYMOFF(x, m) (HPUX_SYMOFF((x), (m)) + (x).ha_symbols) x 110 compat/hpux/m68k/hpux_exec.h #define HPUX_RTEXTOFF(x, m) (HPUX_SUPSYMOFF((x), (m)) + (x).ha_supsyms) x 111 compat/hpux/m68k/hpux_exec.h #define HPUX_RDATAOFF(x, m) (HPUX_RTEXTOFF((x), (m)) + (x).ha_trsize) x 112 compat/hpux/m68k/hpux_exec.h #define HPUX_EXTOFF(x, m) ((x).ha_extentions) x 14 compat/hpux/m68k/hpux_syscallargs.h #define syscallarg(x) \ x 80 compat/ibcs2/ibcs2_signal.h #define IBCS2_SIGNO(x) ((x) & IBCS2_SIGNO_MASK) x 81 compat/ibcs2/ibcs2_signal.h #define IBCS2_SIGCALL(x) ((x) & ~IBCS2_SIGNO_MASK) x 14 compat/ibcs2/ibcs2_syscallargs.h #define syscallarg(x) \ x 52 compat/linux/linux_exec.h #define LINUX_N_TXTOFF(x,m) \ x 55 compat/linux/linux_exec.h #define LINUX_N_DATOFF(x,m) (LINUX_N_TXTOFF(x,m) + (x).a_text) x 57 compat/linux/linux_exec.h #define LINUX_N_TXTADDR(x,m) ((m) == QMAGIC ? PAGE_SIZE : 0) x 59 compat/linux/linux_exec.h #define LINUX__N_SEGMENT_ROUND(x) (((x) + NBPG - 1) & ~(NBPG - 1)) x 61 compat/linux/linux_exec.h #define LINUX__N_TXTENDADDR(x,m) (LINUX_N_TXTADDR(x,m)+(x).a_text) x 63 compat/linux/linux_exec.h #define LINUX_N_DATADDR(x,m) \ x 67 compat/linux/linux_exec.h #define LINUX_N_BSSADDR(x,m) (LINUX_N_DATADDR(x,m) + (x).a_data) x 79 compat/linux/linux_ioctl.h #define LINUX_IOCGROUP(x) _LINUX_IOC_TYPE(x) x 14 compat/linux/linux_syscallargs.h #define syscallarg(x) \ x 205 compat/osf1/osf1.h #define OSF1_IOCPARM_LEN(x) (((x) >> 16) & OSF1_IOCPARM_MASK) x 206 compat/osf1/osf1.h #define OSF1_IOCGROUP(x) (((x) >> 8) & 0xff) x 207 compat/osf1/osf1.h #define OSF1_IOCCMD(x) ((x) & 0xff) x 546 compat/osf1/osf1.h #define osf1_major(x) ((((dev_t)(x)) >> 20) & 0x00000fff) x 547 compat/osf1/osf1.h #define osf1_minor(x) ((((dev_t)(x)) >> 0) & 0x000fffff) x 548 compat/osf1/osf1.h #define osf1_makedev(x,y) ((((dev_t)(x)) << 20) | ((dev_t)(y))) x 14 compat/osf1/osf1_syscallargs.h #define syscallarg(x) \ x 53 compat/ossaudio/ossaudio.c #define DPRINTF(x) if (ossdebug) printf x x 56 compat/ossaudio/ossaudio.c #define DPRINTF(x) x 59 compat/ossaudio/ossaudio.c #define TO_OSSVOL(x) ((x) * 100 / 255) x 60 compat/ossaudio/ossaudio.c #define FROM_OSSVOL(x) ((x) * 255 / 100) x 48 compat/ossaudio/ossaudiovar.h #define _OSS_IOCTL(w,x,y,z) ((u_long)((w)|(((z)&OSS_IOCPARM_MASK)<<16)|((x)<<8)|(y))) x 49 compat/ossaudio/ossaudiovar.h #define _OSS_IO(x,y) _OSS_IOCTL(OSS_IOC_VOID, x, y, 0) x 50 compat/ossaudio/ossaudiovar.h #define _OSS_IOR(x,y,t) _OSS_IOCTL(OSS_IOC_OUT, x, y, sizeof(t)) x 51 compat/ossaudio/ossaudiovar.h #define _OSS_IOW(x,y,t) _OSS_IOCTL(OSS_IOC_IN, x, y, sizeof(t)) x 52 compat/ossaudio/ossaudiovar.h #define _OSS_IOWR(x,y,t) _OSS_IOCTL(OSS_IOC_INOUT, x, y, sizeof(t)) x 135 compat/sunos/sunos_exec.c #define SUNOS_N_TXTADDR(x,m) __LDPGSZ x 136 compat/sunos/sunos_exec.c #define SUNOS_N_DATADDR(x,m) (((m)==OMAGIC) ? \ x 139 compat/sunos/sunos_exec.c #define SUNOS_N_BSSADDR(x,m) (SUNOS_N_DATADDR(x,m)+(x).a_data) x 141 compat/sunos/sunos_exec.c #define SUNOS_N_TXTOFF(x,m) ((m)==ZMAGIC ? 0 : sizeof (struct exec)) x 142 compat/sunos/sunos_exec.c #define SUNOS_N_DATOFF(x,m) (SUNOS_N_TXTOFF(x,m) + (x).a_text) x 14 compat/sunos/sunos_syscallargs.h #define syscallarg(x) \ x 89 compat/svr4/svr4_fcntl.h #define SVR4_LK_CMDTYPE(x) (((x) >> 12) & 0x7) x 90 compat/svr4/svr4_fcntl.h #define SVR4_LK_LCKTYPE(x) (((x) >> 8) & 0x7) x 14 compat/svr4/svr4_syscallargs.h #define syscallarg(x) \ x 75 compat/svr4/svr4_types.h #define svr4_omajor(x) ((int32_t)((((x) & 0x7f00) >> 8))) x 76 compat/svr4/svr4_types.h #define svr4_ominor(x) ((int32_t)((((x) & 0x00ff) >> 0))) x 77 compat/svr4/svr4_types.h #define svr4_omakedev(x,y) ((svr4_o_dev_t)((((x) << 8) & 0x7f00) | \ x 82 compat/svr4/svr4_types.h #define svr4_major(x) ((int32_t)((((x) & 0xfffc0000) >> 18))) x 83 compat/svr4/svr4_types.h #define svr4_minor(x) ((int32_t)((((x) & 0x0003ffff) >> 0))) x 84 compat/svr4/svr4_types.h #define svr4_makedev(x,y) ((svr4_dev_t)((((x) << 18) & 0xfffc0000) | \ x 14 compat/ultrix/ultrix_syscallargs.h #define syscallarg(x) \ x 22 crypto/arc4.c #define RC4SWAP(x,y) \ x 57 crypto/blf.c #define F(s, x) ((((s)[ (((x)>>24)&0xFF)] \ x 65 crypto/blf.c Blowfish_encipher(blf_ctx *c, u_int32_t *x) x 90 crypto/blf.c Blowfish_decipher(blf_ctx *c, u_int32_t *x) x 15 crypto/cast.c #define U_INT8_Ta(x) ( (u_int8_t) (x>>24) ) x 16 crypto/cast.c #define U_INT8_Tb(x) ( (u_int8_t) ((x>>16)&255) ) x 17 crypto/cast.c #define U_INT8_Tc(x) ( (u_int8_t) ((x>>8)&255) ) x 18 crypto/cast.c #define U_INT8_Td(x) ( (u_int8_t) ((x)&255) ) x 21 crypto/cast.c #define ROL(x, n) ( ((x)<<(n)) | ((x)>>(32-(n))) ) x 68 crypto/cryptosoft.c #define COPYBACK(x, a, b, c, d) \ x 71 crypto/cryptosoft.c #define COPYDATA(x, a, b, c, d) \ x 131 crypto/md5.c #define F1(x, y, z) (z ^ (x & (y ^ z))) x 132 crypto/md5.c #define F2(x, y, z) F1(z, x, y) x 133 crypto/md5.c #define F3(x, y, z) (x ^ y ^ z) x 134 crypto/md5.c #define F4(x, y, z) (y ^ (x | ~z)) x 137 crypto/md5.c #define MD5STEP(f, w, x, y, z, data, s) \ x 30 crypto/michael.c #define ROL(n, x) (((x) << (n)) | ((x) >> (32 - (n)))) x 31 crypto/michael.c #define ROR(n, x) (((x) >> (n)) | ((x) << (32 - (n)))) x 32 crypto/michael.c #define VAL32(x) (*((u_int32_t *)(x))) x 33 crypto/michael.c #define XSWAP(x) (((x) & 0xff00ff00UL) >> 8) | ((((x) & 0x00ff00ffUL) << 8)) x 70 crypto/rmd160.c #define ROL(n, x) (((x) << (n)) | ((x) >> (32-(n)))) x 72 crypto/rmd160.c #define F0(x, y, z) ((x) ^ (y) ^ (z)) x 73 crypto/rmd160.c #define F1(x, y, z) (((x) & (y)) | ((~x) & (z))) x 74 crypto/rmd160.c #define F2(x, y, z) (((x) | (~y)) ^ (z)) x 75 crypto/rmd160.c #define F3(x, y, z) (((x) & (z)) | ((y) & (~z))) x 76 crypto/rmd160.c #define F4(x, y, z) ((x) ^ ((y) | (~z))) x 41 crypto/sha1.c #define R0(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk0(i)+0x5A827999+rol(v,5);w=rol(w,30); x 42 crypto/sha1.c #define R1(v,w,x,y,z,i) z+=((w&(x^y))^y)+blk(i)+0x5A827999+rol(v,5);w=rol(w,30); x 43 crypto/sha1.c #define R2(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0x6ED9EBA1+rol(v,5);w=rol(w,30); x 44 crypto/sha1.c #define R3(v,w,x,y,z,i) z+=(((w|x)&y)|(w&x))+blk(i)+0x8F1BBCDC+rol(v,5);w=rol(w,30); x 45 crypto/sha1.c #define R4(v,w,x,y,z,i) z+=(w^x^y)+blk(i)+0xCA62C1D6+rol(v,5);w=rol(w,30); x 99 crypto/sha2.c #define REVERSE32(w,x) { \ x 104 crypto/sha2.c #define REVERSE64(w,x) { \ x 136 crypto/sha2.c #define R(b,x) ((x) >> (b)) x 138 crypto/sha2.c #define S32(b,x) (((x) >> (b)) | ((x) << (32 - (b)))) x 140 crypto/sha2.c #define S64(b,x) (((x) >> (b)) | ((x) << (64 - (b)))) x 143 crypto/sha2.c #define Ch(x,y,z) (((x) & (y)) ^ ((~(x)) & (z))) x 144 crypto/sha2.c #define Maj(x,y,z) (((x) & (y)) ^ ((x) & (z)) ^ ((y) & (z))) x 147 crypto/sha2.c #define Sigma0_256(x) (S32(2, (x)) ^ S32(13, (x)) ^ S32(22, (x))) x 148 crypto/sha2.c #define Sigma1_256(x) (S32(6, (x)) ^ S32(11, (x)) ^ S32(25, (x))) x 149 crypto/sha2.c #define sigma0_256(x) (S32(7, (x)) ^ S32(18, (x)) ^ R(3 , (x))) x 150 crypto/sha2.c #define sigma1_256(x) (S32(17, (x)) ^ S32(19, (x)) ^ R(10, (x))) x 153 crypto/sha2.c #define Sigma0_512(x) (S64(28, (x)) ^ S64(34, (x)) ^ S64(39, (x))) x 154 crypto/sha2.c #define Sigma1_512(x) (S64(14, (x)) ^ S64(18, (x)) ^ S64(41, (x))) x 155 crypto/sha2.c #define sigma0_512(x) (S64( 1, (x)) ^ S64( 8, (x)) ^ R( 7, (x))) x 156 crypto/sha2.c #define sigma1_512(x) (S64(19, (x)) ^ S64(61, (x)) ^ R( 6, (x))) x 133 ddb/db_aout.c #define round_to_size(x) \ x 117 dev/acpi/acpi.c #define pch(x) (((x)>=' ' && (x)<='z') ? (x) : ' ') x 441 dev/acpi/acpireg.h #define ACPI_PM1_SLP_TYPX(x) ((x) << 10) x 27 dev/acpi/acpivar.h #define dprintf(x...) do { if (acpi_debug) printf(x); } while (0) x 28 dev/acpi/acpivar.h #define dnprintf(n,x...) do { if (acpi_debug > (n)) printf(x); } while (0) x 30 dev/acpi/acpivar.h #define dprintf(x...) x 31 dev/acpi/acpivar.h #define dnprintf(n,x...) x 336 dev/acpi/amltypes.h #define aml_bytealigned(x) !((x)&0x7) x 82 dev/acpi/dsdt.c #define aml_delref(x) _aml_delref(x, __FUNCTION__, __LINE__) x 114 dev/acpi/dsdt.c #define aml_die(x...) _aml_die(__FUNCTION__, __LINE__, x) x 214 dev/acpi/dsdt.h #define AML_CRSTYPE(x) ((x)->hdr.typecode & 0x80 ? \ x 216 dev/acpi/dsdt.h #define AML_CRSLEN(x) ((x)->hdr.typecode & 0x80 ? \ x 230 dev/acpi/dsdt.h #define aml_letohost16(x) letoh16(x) x 231 dev/acpi/dsdt.h #define aml_letohost32(x) letoh32(x) x 232 dev/acpi/dsdt.h #define aml_letohost64(x) letoh64(x) x 50 dev/ata/atareg.h #define ATAPI_CFG_TYPE(x) (((x) & ATAPI_CFG_TYPE_MASK) >> 8) x 162 dev/ata/satareg.h #define SControl_PMP(x) ((x) << 16) x 93 dev/audio.c #define DPRINTF(x) if (audiodebug) printf x x 94 dev/audio.c #define DPRINTFN(n,x) if (audiodebug>(n)) printf x x 97 dev/audio.c #define DPRINTF(x) x 98 dev/audio.c #define DPRINTFN(n,x) x 101 dev/audio.c #define ROUNDSIZE(x) x &= -16 /* round to nice boundary */ x 153 dev/audio_if.h #define AUDIOUNIT(x) (minor(x)&0x0f) x 154 dev/audio_if.h #define AUDIODEV(x) (minor(x)&0xf0) x 156 dev/audio_if.h #define ISDEVSOUND(x) (AUDIODEV((x)) == SOUND_DEVICE) x 157 dev/audio_if.h #define ISDEVAUDIO(x) (AUDIODEV((x)) == AUDIO_DEVICE) x 158 dev/audio_if.h #define ISDEVAUDIOCTL(x) (AUDIODEV((x)) == AUDIOCTL_DEVICE) x 159 dev/audio_if.h #define ISDEVMIXER(x) (AUDIODEV((x)) == MIXER_DEVICE) x 901 dev/cardbus/cardbus.c #define NAME_LEN(x) (sizeof(x)/sizeof(x[0])) x 157 dev/cardbus/cardbusvar.h # define CARDBUS_CIS_ASI(x) (CARDBUS_CIS_ASIMASK & (x)) x 167 dev/cardbus/cardbusvar.h # define CARDBUS_CIS_ADDR(x) (CARDBUS_CIS_ADDRMASK & (x)) x 168 dev/cardbus/cardbusvar.h # define CARDBUS_CIS_ASI_BAR(x) (((CARDBUS_CIS_ASIMASK & (x))-1)*4+0x10) x 169 dev/cardbus/cardbusvar.h # define CARDBUS_CIS_ASI_ROM_IMAGE(x) (((x) >> 28) & 0xf) x 93 dev/cardbus/cardslotvar.h #define CARDSLOT_CARDTYPE(x) ((x) & CARDSLOT_STATUS_CARD_MASK) x 94 dev/cardbus/cardslotvar.h #define CARDSLOT_SET_CARDTYPE(x, type) \ x 102 dev/cardbus/cardslotvar.h #define CARDSLOT_WORK(x) ((x) & CARDSLOT_STATUS_WORK_MASK) x 103 dev/cardbus/cardslotvar.h #define CARDSLOT_SET_WORK(x, type) \ x 123 dev/cardbus/cardslotvar.h #define IS_CARDSLOT_INSERT_REMOVE_EV(x) (0 <= (x) && (x) <= 3) x 62 dev/cardbus/ehci_cardbus.c #define DPRINTF(x) if (ehcidebug) printf x x 65 dev/cardbus/ehci_cardbus.c #define DPRINTF(x) x 48 dev/cardbus/rbus.c #define DDELAY(x) delay((x)*1000*1000) x 79 dev/eisa/aha1742.c #define KVTOPHYS(x) kvtop((caddr_t)x) x 84 dev/eisa/aha1742.c #define ECB_HASH(x) ((((long)(x))>>ECB_HASH_SHIFT) & (ECB_HASH_SIZE - 1)) x 67 dev/eisa/uha_eisa.c #define KVTOPHYS(x) vtophys((vaddr_t)(x)) x 111 dev/flashvar.h #define flashsafe(x) (minor(x) & 0x800) x 112 dev/flashvar.h #define flashunit(x) DISKUNIT(makedev(major(x), minor(x) & 0x7ff)) x 113 dev/flashvar.h #define flashpart(x) DISKPART(makedev(major(x), minor(x) & 0x7ff)) x 114 dev/flashvar.h #define flashlabeldev(x) (MAKEDISKDEV(major(x), flashunit(x), RAW_PART)\ x 144 dev/hil/hilreg.h #define ar_format(x) ~((x - 10) / 10) x 31 dev/i2c/adm1030.c #define ADM1024_FANC_VAL(x) (x >> 6) x 34 dev/i2c/adm1031.c #define ADM1024_FANC_VAL(x) (x >> 6) x 29 dev/i2c/fcu.c #define FCU_FANREAD(x) 0x11 + (x)*2 x 30 dev/i2c/fcu.c #define FCU_FANSET(x) 0x10 + (x)*2 x 33 dev/i2c/fcu.c #define FCU_PWMREAD(x) 0x30 + (x)*2 x 48 dev/i2c/i2c_bitbang.c #define BB_SET(x) ops->ibo_set_bits(v, (x)) x 49 dev/i2c/i2c_bitbang.c #define BB_DIR(x) ops->ibo_set_dir(v, (x)) x 55 dev/i2c/i2c_io.h #define I2C_OP_READ_P(x) (((int)(x) & 2) == 0) x 56 dev/i2c/i2c_io.h #define I2C_OP_WRITE_P(x) (! I2C_OP_READ_P(x)) x 57 dev/i2c/i2c_io.h #define I2C_OP_STOP_P(x) (((int)(x) & 1) != 0) x 62 dev/i2c/w83l784r.c #define RFACT(x, y) (RFACT_NONE * ((x) + (y)) / (y)) x 29 dev/i2c/wm8750reg.h #define LINVOL_GET_LINVOL(x) ((x) & 0x3F) x 30 dev/i2c/wm8750reg.h #define LINVOL_SET_LINVOL(x) (x) x 37 dev/i2c/wm8750reg.h #define RINVOL_GET_RINVOL(x) ((x) & 0x3F) x 38 dev/i2c/wm8750reg.h #define RINVOL_SET_RINVOL(x) (x) x 44 dev/i2c/wm8750reg.h #define LOUT1VOL_GET_LOUT1VOL(x) ((x) & 0x7F) x 45 dev/i2c/wm8750reg.h #define LOUT1VOL_SET_LOUT1VOL(x) (x) x 51 dev/i2c/wm8750reg.h #define ROUT1VOL_GET_ROUT1VOL(x) ((x) & 0x7F) x 52 dev/i2c/wm8750reg.h #define ROUT1VOL_SET_ROUT1VOL(x) (x) x 58 dev/i2c/wm8750reg.h #define ADCDACCTL_GET_ADCPOL(x) (((x) >> 5) & 0x60) x 59 dev/i2c/wm8750reg.h #define ADCDACCTL_SET_ADCPOL(x) ((x) << 5) x 63 dev/i2c/wm8750reg.h #define ADCDACCTL_GET_DEEMPH(x) (((x) >> 1) & 0x6) x 64 dev/i2c/wm8750reg.h #define ADCDACCTL_SET_DEEMPH(x) ((x) << 1) x 73 dev/i2c/wm8750reg.h #define AUDINT_GET_WL(x) (((x) >> 2) & 0xC) x 74 dev/i2c/wm8750reg.h #define AUDINT_SET_WL(x) ((x) << 2) x 76 dev/i2c/wm8750reg.h #define AUDINT_GET_FORMAT(x) ((x) & 0x3) x 77 dev/i2c/wm8750reg.h #define AUDINT_SET_FORMAT(x) (x) x 81 dev/i2c/wm8750reg.h #define SRATE_GET_BCM(x) (((x) >> 7) & 0x180) x 82 dev/i2c/wm8750reg.h #define SRATE_SET_BCM(x) ((x) << 7) x 85 dev/i2c/wm8750reg.h #define SRATE_GET_SR(x) (((x) >> 1) & 0x3E) x 86 dev/i2c/wm8750reg.h #define SRATE_SET_SR(x) ((x) << 1) x 92 dev/i2c/wm8750reg.h #define LDACVOL_GET_LDACVOL(x) ((x) & 0xFF) x 93 dev/i2c/wm8750reg.h #define LDACVOL_SET_LDACVOL(x) (x) x 98 dev/i2c/wm8750reg.h #define RDACVOL_GET_RDACVOL(x) ((x) & 0xFF) x 99 dev/i2c/wm8750reg.h #define RDACVOL_SET_RDACVOL(x) (x) x 105 dev/i2c/wm8750reg.h #define BASSCTL_GET_BASS(x) ((x) & 0xF) x 106 dev/i2c/wm8750reg.h #define BASSCTL_SET_BASS(x) (x) x 111 dev/i2c/wm8750reg.h #define TREBCTL_GET_TRBL(x) ((x) & 0xF) x 112 dev/i2c/wm8750reg.h #define TREBCTL_SET_TRBL(x) (x) x 121 dev/i2c/wm8750reg.h #define C3DCTL_GET_3DDEPTH(x) (((x) >> 1) & 0x1E) x 122 dev/i2c/wm8750reg.h #define C3DCTL_SET_3DDEPTH(x) ((x) << 1) x 127 dev/i2c/wm8750reg.h #define ALC1_GET_ALCSEL(x) (((x) >> 7) & 0x180) x 128 dev/i2c/wm8750reg.h #define ALC1_SET_ALCSEL(x) ((x) << 7) x 130 dev/i2c/wm8750reg.h #define ALC1_GET_MAXGAIN(x) (((x) >> 4) & 0x70) x 131 dev/i2c/wm8750reg.h #define ALC1_SET_MAXGAIN(x) ((x) << 4) x 133 dev/i2c/wm8750reg.h #define ALC1_GET_ALCL(x) ((x) & 0xF) x 134 dev/i2c/wm8750reg.h #define ALC1_SET_ALCL(x) (x) x 139 dev/i2c/wm8750reg.h #define ALC2_GET_HLD(x) ((x) & 0xF) x 140 dev/i2c/wm8750reg.h #define ALC2_SET_HLD(x) (x) x 144 dev/i2c/wm8750reg.h #define ALC3_GET_DCY(x) (((x) >> 4) & 0xF0) x 145 dev/i2c/wm8750reg.h #define ALC3_SET_DCY(x) ((x) << 4) x 147 dev/i2c/wm8750reg.h #define ALC3_GET_ATK(x) ((x) & 0xF) x 148 dev/i2c/wm8750reg.h #define ALC3_SET_ATK(x) (x) x 152 dev/i2c/wm8750reg.h #define NOISEGATE_GET_NGTH(x) (((x) >> 3) & 0xF8) x 153 dev/i2c/wm8750reg.h #define NOISEGATE_SET_NGTH(x) ((x) << 3) x 155 dev/i2c/wm8750reg.h #define NOISEGATE_GET_NGG(x) (((x) >> 1) & 0x6) x 156 dev/i2c/wm8750reg.h #define NOISEGATE_SET_NGG(x) ((x) << 1) x 162 dev/i2c/wm8750reg.h #define LADCVOL_GET_LADCVOL(x) ((x) & 0xFF) x 163 dev/i2c/wm8750reg.h #define LADCVOL_SET_LADCVOL(x) (x) x 168 dev/i2c/wm8750reg.h #define RADCVOL_GET_RADCVOL(x) ((x) & 0xFF) x 169 dev/i2c/wm8750reg.h #define RADCVOL_SET_RADCVOL(x) (x) x 174 dev/i2c/wm8750reg.h #define ADCTL1_GET_VSEL(x) (((x) >> 6) & 0xC0) x 175 dev/i2c/wm8750reg.h #define ADCTL1_SET_VSEL(x) ((x) << 6) x 177 dev/i2c/wm8750reg.h #define ADCTL1_GET_DMONOMIX(x) (((x) >> 4) & 0x30) x 178 dev/i2c/wm8750reg.h #define ADCTL1_SET_DMONOMIX(x) ((x) << 4) x 180 dev/i2c/wm8750reg.h #define ADCTL1_GET_DATSEL(x) (((x) >> 2) & 0xC) x 181 dev/i2c/wm8750reg.h #define ADCTL1_SET_DATSEL(x) ((x) << 2) x 187 dev/i2c/wm8750reg.h #define ADCTL2_GET_OUTSW3(x) (((x) >> 7) & 0x180) x 188 dev/i2c/wm8750reg.h #define ADCTL2_SET_OUTSW3(x) ((x) << 7) x 199 dev/i2c/wm8750reg.h #define PWRMGMT1_GET_VMIDSEL(x) (((x) >> 7) & 0x180) x 200 dev/i2c/wm8750reg.h #define PWRMGMT1_SET_VMIDSEL(x) ((x) << 7) x 221 dev/i2c/wm8750reg.h #define ADCTL3_GET_ADCLRM(x) (((x) >> 7) & 0x180) x 222 dev/i2c/wm8750reg.h #define ADCTL3_SET_ADCLRM(x) ((x) << 7) x 229 dev/i2c/wm8750reg.h #define ADCINPMODE_GET_MONOMIX(x) (((x) >> 6) & 0xC0) x 230 dev/i2c/wm8750reg.h #define ADCINPMODE_SET_MONOMIX(x) ((x) << 6) x 236 dev/i2c/wm8750reg.h #define ADCLSPATH_GET_LINSEL(x) (((x) >> 6) & 0xC0) x 237 dev/i2c/wm8750reg.h #define ADCLSPATH_SET_LINSEL(x) ((x) << 6) x 239 dev/i2c/wm8750reg.h #define ADCLSPATH_GET_LMICBOOST(x) (((x) >> 4) & 0x30) x 240 dev/i2c/wm8750reg.h #define ADCLSPATH_SET_LMICBOOST(x) ((x) << 4) x 244 dev/i2c/wm8750reg.h #define ADCRSPATH_GET_RINSEL(x) (((x) >> 6) & 0xC0) x 245 dev/i2c/wm8750reg.h #define ADCRSPATH_SET_RINSEL(x) ((x) << 6) x 247 dev/i2c/wm8750reg.h #define ADCRSPATH_GET_RMICBOOST(x) (((x) >> 4) & 0x30) x 248 dev/i2c/wm8750reg.h #define ADCRSPATH_SET_RMICBOOST(x) ((x) << 4) x 254 dev/i2c/wm8750reg.h #define LOUTMIX1_GET_LI2LOVOL(x) (((x) >> 4) & 0x70) x 255 dev/i2c/wm8750reg.h #define LOUTMIX1_SET_LI2LOVOL(x) ((x) << 4) x 257 dev/i2c/wm8750reg.h #define LOUTMIX1_GET_LMIXSEL(x) ((x) & 0x7) x 258 dev/i2c/wm8750reg.h #define LOUTMIX1_SET_LMIXSEL(x) (x) x 264 dev/i2c/wm8750reg.h #define LOUTMIX2_GET_RI2LOVOL(x) (((x) >> 4) & 0x70) x 265 dev/i2c/wm8750reg.h #define LOUTMIX2_SET_RI2LOVOL(x) ((x) << 4) x 271 dev/i2c/wm8750reg.h #define ROUTMIX1_GET_LI2ROVOL(x) (((x) >> 4) & 0x70) x 272 dev/i2c/wm8750reg.h #define ROUTMIX1_SET_LI2ROVOL(x) ((x) << 4) x 274 dev/i2c/wm8750reg.h #define ROUTMIX1_GET_RMIXSEL(x) ((x) & 0x7) x 275 dev/i2c/wm8750reg.h #define ROUTMIX1_SET_RMIXSEL(x) (x) x 281 dev/i2c/wm8750reg.h #define ROUTMIX2_GET_RI2ROVOL(x) (((x) >> 4) & 0x70) x 282 dev/i2c/wm8750reg.h #define ROUTMIX2_SET_RI2ROVOL(x) ((x) << 4) x 288 dev/i2c/wm8750reg.h #define MOUTMIX1_GET_LI2MOVOL(x) (((x) >> 4) & 0x70) x 289 dev/i2c/wm8750reg.h #define MOUTMIX1_SET_LI2MOVOL(x) ((x) << 4) x 295 dev/i2c/wm8750reg.h #define MOUTMIX2_GET_RI2MOVOL(x) (((x) >> 4) & 0x70) x 296 dev/i2c/wm8750reg.h #define MOUTMIX2_SET_RI2MOVOL(x) ((x) << 4) x 302 dev/i2c/wm8750reg.h #define LOUT2VOL_GET_LOUT2VOL(x) ((x) & 0x7F) x 303 dev/i2c/wm8750reg.h #define LOUT2VOL_SET_LOUT2VOL(x) (x) x 309 dev/i2c/wm8750reg.h #define ROUT2VOL_GET_ROUT2VOL(x) ((x) & 0x7F) x 310 dev/i2c/wm8750reg.h #define ROUT2VOL_SET_ROUT2VOL(x) (x) x 315 dev/i2c/wm8750reg.h #define MOUTVOL_GET_MOUTVOL(x) ((x) & 0x7F) x 316 dev/i2c/wm8750reg.h #define MOUTVOL_SET_MOUTVOL(x) (x) x 76 dev/i2o/iop.c #define DPRINTF(x) printf x x 78 dev/i2o/iop.c #define DPRINTF(x) x 82 dev/i2o/iop.c #define IFVERBOSE(x) x x 83 dev/i2o/iop.c #define COMMENT(x) NULL x 85 dev/i2o/iop.c #define IFVERBOSE(x) x 86 dev/i2o/iop.c #define COMMENT(x) x 96 dev/i2o/ioprbs.c #define DPRINTF(x) printf x x 98 dev/i2o/ioprbs.c #define DPRINTF(x) x 78 dev/ic/aac_tables.h #define AAC_COMMAND_STATUS(x) aac_describe_code(aac_command_status_table, x) x 545 dev/ic/ac97.c #define DPRINTF(x) if (ac97debug) printf x x 546 dev/ic/ac97.c #define DPRINTFN(n,x) if (ac97debug>(n)) printf x x 553 dev/ic/ac97.c #define DPRINTF(x) x 554 dev/ic/ac97.c #define DPRINTFN(n,x) x 492 dev/ic/acxreg.h #define PCIR_BAR(x) (PCI_MAPS + (x) * 4) x 58 dev/ic/acxvar.h #define DPRINTF(x) do { if (acxdebug) printf x; } while (0) x 59 dev/ic/acxvar.h #define DPRINTFN(n,x) do { if (acxdebug >= (n)) printf x; } while (0) x 61 dev/ic/acxvar.h #define DPRINTF(x) x 62 dev/ic/acxvar.h #define DPRINTFN(n,x) x 76 dev/ic/advlib.h #define LO_BYTE(x) (*((u_int8_t *)(&(x))+1)) x 77 dev/ic/advlib.h #define HI_BYTE(x) (*((u_int8_t *)&(x))) x 78 dev/ic/advlib.h #define LO_WORD(x) (*((u_int16_t *)(&(x))+1)) x 79 dev/ic/advlib.h #define HI_WORD(x) (*((u_int16_t *)&(x))) x 81 dev/ic/advlib.h #define HI_BYTE(x) (*((u_int8_t *)(&(x))+1)) x 82 dev/ic/advlib.h #define LO_BYTE(x) (*((u_int8_t *)&(x))) x 83 dev/ic/advlib.h #define HI_WORD(x) (*((u_int16_t *)(&(x))+1)) x 84 dev/ic/advlib.h #define LO_WORD(x) (*((u_int16_t *)&(x))) x 278 dev/ic/advlib.h #define ASC_CCB_HOST(x) ((u_int8_t)((u_int8_t)(x) >> 4)) x 279 dev/ic/advlib.h #define ASC_CCB_TID(x) ((u_int8_t)((u_int8_t)(x) & (u_int8_t)0x0F)) x 280 dev/ic/advlib.h #define ASC_CCB_LUN(x) ((u_int8_t)((uint)(x) >> 13)) x 734 dev/ic/adwlib.h #define CCB_HASH(x) ((((x)) >> CCB_HASH_SHIFT) & (CCB_HASH_SIZE - 1)) x 195 dev/ic/aic6360var.h #define AIC_ASSERT(x) \ x 206 dev/ic/aic6360var.h #define AIC_ASSERT(x) x 103 dev/ic/aic6915.h #define RCD_W0_Length(x) ((x) & 0xffff) x 104 dev/ic/aic6915.h #define RCD_W0_EndIndex(x) (((x) >> 16) & 0x7ff) x 131 dev/ic/aic6915.h #define RCD_W1_VLANID(x) ((x) & 0xffff) x 132 dev/ic/aic6915.h #define RCD_W1_TCP_UDP_Checksum(x) ((x) & 0xffff) x 141 dev/ic/aic6915.h #define RCD_W1_StartIndex(x) ((x) & 0x7ff) x 143 dev/ic/aic6915.h #define RCD_W2_TCP_UDP_Checksum(x) ((x) >> 16) x 144 dev/ic/aic6915.h #define RCD_W2_VLANID(x) ((x) & 0xffff) x 208 dev/ic/aic6915.h #define TCD_INDEX(x) ((x) & 0x7fff) x 210 dev/ic/aic6915.h #define TCD_TIMESTAMP(x) (((x) >> 16) & 0x1fff) x 232 dev/ic/aic6915.h #define SF_TXDINDEX_TO_HOST(x) ((x) >> 4) x 233 dev/ic/aic6915.h #define SF_TXDINDEX_TO_CHIP(x) ((x) << 4) x 241 dev/ic/aic6915.h #define SF_TCD_INDEX_TO_HOST(x) ((x) >> 7) x 382 dev/ic/aic6915.h #define GPIOCtrl(x) (1U << (24 + (x))) x 383 dev/ic/aic6915.h #define GPIOOutMode(x) (1U << (16 + (x))) x 384 dev/ic/aic6915.h #define GPIOInpMode(x, y) ((y) << (8 + ((x) * 2))) x 385 dev/ic/aic6915.h #define GPIOData(x) (1U << (x)) x 388 dev/ic/aic6915.h #define TDQC_TxHighPriorityFifoThreshold(x) ((x) << 24) x 389 dev/ic/aic6915.h #define TDQC_SkipLength(x) ((x) << 16) x 390 dev/ic/aic6915.h #define TDQC_TxDmaBurstSize(x) ((x) << 8) x 392 dev/ic/aic6915.h #define TDQC_MinFrameSpacing(x) ((x) << 4) x 394 dev/ic/aic6915.h #define TDQC_TxDescType(x) ((x) << 0) x 403 dev/ic/aic6915.h #define TDQPI_HiPrTxProducerIndex(x) ((x) << 16) x 404 dev/ic/aic6915.h #define TDQPI_LoPrTxProducerIndex(x) ((x) << 0) x 405 dev/ic/aic6915.h #define TDQPI_HiPrTxProducerIndex_get(x) (((x) >> 16) & 0x7ff) x 406 dev/ic/aic6915.h #define TDQPI_LoPrTxProducerIndex_get(x) (((x) >> 0) & 0x7ff) x 409 dev/ic/aic6915.h #define TDQCI_HiPrTxConsumerIndex(x) (((x) >> 16) & 0x7ff) x 420 dev/ic/aic6915.h #define TFCSR_TransmitThreshold(x) ((x) << 0) x 436 dev/ic/aic6915.h #define RCQ1C_RxCompletionQ1Type(x) ((x) << 4) x 437 dev/ic/aic6915.h #define RCQ1C_RxCompletionQ1Threshold(x) ((x) << 0) x 443 dev/ic/aic6915.h #define RCQ1C_RxCompletionQ2Type(x) ((x) << 4) x 444 dev/ic/aic6915.h #define RCQ1C_RxCompletionQ2Threshold(x) ((x) << 0) x 448 dev/ic/aic6915.h #define CQCI_TxCompletionConsumerIndex(x) ((x) << 16) x 449 dev/ic/aic6915.h #define CQCI_TxCompletionConsumerIndex_get(x) (((x) >> 16) & 0x7ff) x 451 dev/ic/aic6915.h #define CQCI_RxCompletionQ1ConsumerIndex(x) ((x) << 0) x 452 dev/ic/aic6915.h #define CQCI_RxCompletionQ1ConsumerIndex_get(x) ((x) & 0x7ff) x 455 dev/ic/aic6915.h #define CQPI_TxCompletionProducerIndex(x) ((x) << 16) x 456 dev/ic/aic6915.h #define CQPI_TxCompletionProducerIndex_get(x) (((x) >> 16) & 0x7ff) x 457 dev/ic/aic6915.h #define CQPI_RxCompletionQ1ProducerIndex(x) ((x) << 0) x 458 dev/ic/aic6915.h #define CQPI_RxCompletionQ1ProducerIndex_get(x) ((x) & 0x7ff) x 461 dev/ic/aic6915.h #define RHPCP_RxCompletionQ2ProducerIndex(x) ((x) << 16) x 463 dev/ic/aic6915.h #define RHPCP_RxCompletionQ2ConsumerIndex(x) ((x) << 0) x 472 dev/ic/aic6915.h #define RDC_RxChecksumMode(x) ((x) << 24) x 474 dev/ic/aic6915.h #define RDC_RxDmaQueueMode(x) ((x) << 20) x 477 dev/ic/aic6915.h #define RDC_RxEarlyIntThreshold(x) ((x) << 12) x 478 dev/ic/aic6915.h #define RDC_RxHighPriorityThreshold(x) ((x) << 8) x 479 dev/ic/aic6915.h #define RDC_RxBurstSize(x) ((x) << 0) x 482 dev/ic/aic6915.h #define RDQ1C_RxQ1BufferLength(x) ((x) << 16) x 488 dev/ic/aic6915.h #define RDQ1C_RxDescSpacing(x) ((x) << 8) x 490 dev/ic/aic6915.h #define RDQ1C_RxQ1MinDescriptorsThreshold(x) ((x) << 0) x 493 dev/ic/aic6915.h #define RDQ2C_RxQ2BufferLength(x) ((x) << 16) x 495 dev/ic/aic6915.h #define RDQ2C_RxQ2MinDescriptorsThreshold(x) ((x) << 0) x 504 dev/ic/aic6915.h #define RXQ1P_RxDescQ1Consumer(x) ((x) << 16) x 505 dev/ic/aic6915.h #define RXQ1P_RxDescQ1Producer(x) ((x) << 0) x 506 dev/ic/aic6915.h #define RXQ1P_RxDescQ1Producer_get(x) ((x) & 0x7ff) x 509 dev/ic/aic6915.h #define RXQ2P_RxDescQ2Consumer(x) ((x) << 16) x 510 dev/ic/aic6915.h #define RXQ2P_RxDescQ2Producer(x) ((x) << 0) x 513 dev/ic/aic6915.h #define RDS_RxFramesLostCount(x) ((x) & 0xffff) x 516 dev/ic/aic6915.h #define RAFC_PerfectAddressPriority(x) (1U << ((x) + 16)) x 517 dev/ic/aic6915.h #define RAFC_MinVlanPriority(x) ((x) << 13) x 519 dev/ic/aic6915.h #define RAFC_WakeupMode(x) ((x) << 10) x 520 dev/ic/aic6915.h #define RAFC_VlanMode(x) ((x) << 8) x 521 dev/ic/aic6915.h #define RAFC_PerfectFilteringMode(x) ((x) << 6) x 522 dev/ic/aic6915.h #define RAFC_HashFilteringMode(x) ((x) << 4) x 567 dev/ic/aic6915.h #define MiiRegDataPort(x) ((x) & 0xffff) x 582 dev/ic/aic6915.h #define MC1_TestMode(x) ((x) << 12) x 699 dev/ic/aic6915.h #define SF_NEXTTX(x) ((x + 1) & SF_NTXDESC_MASK) x 706 dev/ic/aic6915.h #define SF_NEXTTCD(x) ((x + 1) & SF_NTCD_MASK) x 713 dev/ic/aic6915.h #define SF_NEXTRX(x) ((x + 1) & SF_NRXDESC_MASK) x 720 dev/ic/aic6915.h #define SF_NEXTRCD(x) ((x + 1) & SF_NRCD_MASK) x 749 dev/ic/aic6915.h #define SF_CDOFF(x) offsetof(struct sf_control_data, x) x 750 dev/ic/aic6915.h #define SF_CDTXDOFF(x) SF_CDOFF(scd_txdescs[(x)]) x 751 dev/ic/aic6915.h #define SF_CDTXCOFF(x) SF_CDOFF(scd_txcomp[(x)]) x 752 dev/ic/aic6915.h #define SF_CDRXDOFF(x) SF_CDOFF(scd_rxbufdescs[(x)]) x 753 dev/ic/aic6915.h #define SF_CDRXCOFF(x) SF_CDOFF(scd_rxcomp[(x)]) x 811 dev/ic/aic6915.h #define SF_CDTXDADDR(sc, x) ((sc)->sc_cddma + SF_CDTXDOFF((x))) x 812 dev/ic/aic6915.h #define SF_CDTXCADDR(sc, x) ((sc)->sc_cddma + SF_CDTXCOFF((x))) x 813 dev/ic/aic6915.h #define SF_CDRXDADDR(sc, x) ((sc)->sc_cddma + SF_CDRXDOFF((x))) x 814 dev/ic/aic6915.h #define SF_CDRXCADDR(sc, x) ((sc)->sc_cddma + SF_CDRXCOFF((x))) x 816 dev/ic/aic6915.h #define SF_CDTXDSYNC(sc, x, ops) \ x 820 dev/ic/aic6915.h #define SF_CDTXCSYNC(sc, x, ops) \ x 824 dev/ic/aic6915.h #define SF_CDRXDSYNC(sc, x, ops) \ x 828 dev/ic/aic6915.h #define SF_CDRXCSYNC(sc, x, ops) \ x 832 dev/ic/aic6915.h #define SF_INIT_RXDESC(sc, x) \ x 220 dev/ic/aic79xx.h #define AHD_QIN_WRAP(x) ((x) & (AHD_QIN_SIZE-1)) x 1075 dev/ic/aic79xx.h #define AHD_MK_MSK(x) (0x01 << (x)) x 208 dev/ic/aic79xx_openbsd.h #define ahd_list_lockinit(x) x 88 dev/ic/aic7xxx_cam.h #define aic_htobe16(x) htobe16(x) x 89 dev/ic/aic7xxx_cam.h #define aic_htobe32(x) htobe32(x) x 90 dev/ic/aic7xxx_cam.h #define aic_htobe64(x) htobe64(x) x 91 dev/ic/aic7xxx_cam.h #define aic_htole16(x) htole16(x) x 92 dev/ic/aic7xxx_cam.h #define aic_htole32(x) htole32(x) x 93 dev/ic/aic7xxx_cam.h #define aic_htole64(x) htole64(x) x 95 dev/ic/aic7xxx_cam.h #define aic_be16toh(x) be16toh(x) x 96 dev/ic/aic7xxx_cam.h #define aic_be32toh(x) be32toh(x) x 97 dev/ic/aic7xxx_cam.h #define aic_be64toh(x) be64toh(x) x 98 dev/ic/aic7xxx_cam.h #define aic_le16toh(x) letoh16(x) x 99 dev/ic/aic7xxx_cam.h #define aic_le32toh(x) letoh32(x) x 100 dev/ic/aic7xxx_cam.h #define aic_le64toh(x) letoh64(x) x 89 dev/ic/am79c930.c #define AM930_DELAY(x) /*nothing*/ x 68 dev/ic/anvar.h #define AN_INC(x, y) (x) = (x + 1) % y x 603 dev/ic/ar5210reg.h #define AR5K_AR5210_KEYTABLE_OFF(_n, x) (AR5K_AR5210_KEYTABLE(_n) + (x << 2)) x 897 dev/ic/ar5211reg.h #define AR5K_AR5211_KEYTABLE_OFF(_n, x) (AR5K_AR5211_KEYTABLE(_n) + (x << 2)) x 1018 dev/ic/ar5212reg.h #define AR5K_AR5212_KEYTABLE_OFF(_n, x) (AR5K_AR5212_KEYTABLE(_n) + (x << 2)) x 1462 dev/ic/ath.c #define MS_TO_TU(x) (((x) * 1000) / 1024) x 155 dev/ic/atw.c #define ATW_DPRINTF(x) if (atw_debug > 0) printf x x 156 dev/ic/atw.c #define ATW_DPRINTF2(x) if (atw_debug > 1) printf x x 157 dev/ic/atw.c #define ATW_DPRINTF3(x) if (atw_debug > 2) printf x x 158 dev/ic/atw.c #define DPRINTF(sc, x) if ((sc)->sc_ic.ic_if.if_flags & IFF_DEBUG) printf x x 159 dev/ic/atw.c #define DPRINTF2(sc, x) if ((sc)->sc_ic.ic_if.if_flags & IFF_DEBUG) ATW_DPRINTF2(x) x 160 dev/ic/atw.c #define DPRINTF3(sc, x) if ((sc)->sc_ic.ic_if.if_flags & IFF_DEBUG) ATW_DPRINTF3(x) x 176 dev/ic/atw.c #define ATW_DPRINTF(x) x 177 dev/ic/atw.c #define ATW_DPRINTF2(x) x 178 dev/ic/atw.c #define ATW_DPRINTF3(x) x 179 dev/ic/atw.c #define DPRINTF(sc, x) /* nothing */ x 180 dev/ic/atw.c #define DPRINTF2(sc, x) /* nothing */ x 181 dev/ic/atw.c #define DPRINTF3(sc, x) /* nothing */ x 62 dev/ic/atwreg.h #define LOWEST_SET_BIT(x) ((((x) - 1) & (x)) ^ (x)) x 65 dev/ic/atwreg.h #define GTEQ_POWER(x, p) (((u_long)(x) >> (p)) != 0) x 89 dev/ic/atwreg.h #define MASK_AND_RSHIFT(x, mask) (((x) & (mask)) >> MASK_TO_SHIFT(mask)) x 90 dev/ic/atwreg.h #define LSHIFT(x, mask) ((x) << MASK_TO_SHIFT(mask)) x 68 dev/ic/atwvar.h #define ATW_NEXTTX(x) ((x + 1) & ATW_NTXDESC_MASK) x 76 dev/ic/atwvar.h #define ATW_NEXTRX(x) ((x + 1) & ATW_NRXDESC_MASK) x 95 dev/ic/atwvar.h #define ATW_CDOFF(x) offsetof(struct atw_control_data, x) x 96 dev/ic/atwvar.h #define ATW_CDTXOFF(x) ATW_CDOFF(acd_txdescs[(x)]) x 97 dev/ic/atwvar.h #define ATW_CDRXOFF(x) ATW_CDOFF(acd_rxdescs[(x)]) x 378 dev/ic/atwvar.h #define ATW_CDTXADDR(sc, x) ((sc)->sc_cddma + ATW_CDTXOFF((x))) x 379 dev/ic/atwvar.h #define ATW_CDRXADDR(sc, x) ((sc)->sc_cddma + ATW_CDRXOFF((x))) x 381 dev/ic/atwvar.h #define ATW_CDTXSYNC(sc, x, n, ops) \ x 402 dev/ic/atwvar.h #define ATW_CDRXSYNC(sc, x, ops) \ x 411 dev/ic/atwvar.h #define ATW_INIT_RXDESC(sc, x) \ x 52 dev/ic/bhavar.h #define CCB_HASH(x) ((((long)(x))>>CCB_HASH_SHIFT) & (CCB_HASH_SIZE - 1)) x 65 dev/ic/cacvar.h #define CAC_GET1(x) \ x 67 dev/ic/cacvar.h #define CAC_GET2(x) \ x 69 dev/ic/cacvar.h #define CAC_GET4(x) \ x 148 dev/ic/com.c #define DEVUNIT(x) (minor(x) & 0x7f) x 149 dev/ic/com.c #define DEVCUA(x) (minor(x) & 0x80) x 97 dev/ic/cyreg.h #define CY_PORT(x) (minor(x) & 0xf) x 98 dev/ic/cyreg.h #define CY_CARD(x) ((minor(x) >> 5) & 3) x 99 dev/ic/cyreg.h #define CY_DIALOUT(x) ((minor(x) & 0x80) != 0) x 100 dev/ic/cyreg.h #define CY_DIALIN(x) (!CY_DIALOUT(x)) x 197 dev/ic/dc.c #define DC_SETBIT(sc, reg, x) \ x 200 dev/ic/dc.c #define DC_CLRBIT(sc, reg, x) \ x 203 dev/ic/dc.c #define SIO_SET(x) DC_SETBIT(sc, DC_SIO, (x)) x 204 dev/ic/dc.c #define SIO_CLR(x) DC_CLRBIT(sc, DC_SIO, (x)) x 545 dev/ic/dc21040reg.h #define PCI_VENDORID(x) ((x) & 0xFFFF) x 546 dev/ic/dc21040reg.h #define PCI_CHIPID(x) (((x) >> 16) & 0xFFFF) x 89 dev/ic/dcreg.h #define DC_IS_MACRONIX(x) \ x 94 dev/ic/dcreg.h #define DC_IS_ADMTEK(x) \ x 98 dev/ic/dcreg.h #define DC_IS_CENTAUR(x) \ x 101 dev/ic/dcreg.h #define DC_IS_INTEL(x) \ x 105 dev/ic/dcreg.h #define DC_IS_ASIX(x) (x->dc_type == DC_TYPE_ASIX) x 106 dev/ic/dcreg.h #define DC_IS_COMET(x) (x->dc_type == DC_TYPE_AL981) x 107 dev/ic/dcreg.h #define DC_IS_CENTAUR(x) (x->dc_type == DC_TYPE_AN983) x 108 dev/ic/dcreg.h #define DC_IS_DAVICOM(x) (x->dc_type == DC_TYPE_DM9102) x 109 dev/ic/dcreg.h #define DC_IS_PNICII(x) (x->dc_type == DC_TYPE_PNICII) x 110 dev/ic/dcreg.h #define DC_IS_PNIC(x) (x->dc_type == DC_TYPE_PNIC) x 111 dev/ic/dcreg.h #define DC_IS_XIRCOM(x) (x->dc_type == DC_TYPE_XIRCOM) x 112 dev/ic/dcreg.h #define DC_IS_CONEXANT(x) (x->dc_type == DC_TYPE_CONEXANT) x 436 dev/ic/dcreg.h #define DC_RXBYTES(x) ((x & DC_RXSTAT_RXLEN) >> 16) x 479 dev/ic/dcreg.h #define DC_INC(x, y) (x) = (x + 1) % y x 1057 dev/ic/dcreg.h #define DC_SP_FIELD_C(x) ((x) << 16) x 1059 dev/ic/dcreg.h #define DC_SP_FIELD_C(x) (x) x 1061 dev/ic/dcreg.h #define DC_SP_FIELD(x,f) DC_SP_FIELD_C(((u_int16_t *)(x))[(f)]) x 49 dev/ic/dptreg.h #define SWAP32(x) bswap32((x)) x 50 dev/ic/dptreg.h #define SWAP16(x) bswap16((x)) x 51 dev/ic/dptreg.h #define RSWAP32(x) (x) x 52 dev/ic/dptreg.h #define RSWAP16(x) (x) x 54 dev/ic/dptreg.h #define SWAP32(x) (x) x 55 dev/ic/dptreg.h #define SWAP16(x) (x) x 56 dev/ic/dptreg.h #define RSWAP32(x) bswap32((x)) x 57 dev/ic/dptreg.h #define RSWAP16(x) bswap16((x)) x 65 dev/ic/dptreg.h #define dpt_inb(x, o) \ x 68 dev/ic/dptreg.h #define dpt_inw(x, o) \ x 71 dev/ic/dptreg.h #define dpt_inl(x, o) \ x 74 dev/ic/dptreg.h #define dpt_outb(x, o, d) \ x 77 dev/ic/dptreg.h #define dpt_outw(x, o, d) \ x 80 dev/ic/dptreg.h #define dpt_outl(x, o, d) \ x 518 dev/ic/elink3reg.h #define GO_WINDOW(x) bus_space_write_2(sc->sc_iot, \ x 122 dev/ic/gem.c #define DPRINTF(sc, x) if ((sc)->sc_arpcom.ac_if.if_flags & IFF_DEBUG) \ x 125 dev/ic/gem.c #define DPRINTF(sc, x) /* nothing */ x 548 dev/ic/gemreg.h #define GEM_RD_BUFLEN(x) (((x)&GEM_RD_BUFSIZE)>>GEM_RD_BUFSHIFT) x 53 dev/ic/gemvar.h #define GEM_NEXTTX(x) ((x + 1) & GEM_NTXDESC_MASK) x 66 dev/ic/gemvar.h #define GEM_NEXTRX(x) ((x + 1) & GEM_NRXDESC_MASK) x 85 dev/ic/gemvar.h #define GEM_CDOFF(x) offsetof(struct gem_control_data, x) x 86 dev/ic/gemvar.h #define GEM_CDTXOFF(x) GEM_CDOFF(gcd_txdescs[(x)]) x 87 dev/ic/gemvar.h #define GEM_CDRXOFF(x) GEM_CDOFF(gcd_rxdescs[(x)]) x 227 dev/ic/gemvar.h #define GEM_CDTXADDR(sc, x) ((sc)->sc_cddma + GEM_CDTXOFF((x))) x 228 dev/ic/gemvar.h #define GEM_CDRXADDR(sc, x) ((sc)->sc_cddma + GEM_CDRXOFF((x))) x 232 dev/ic/gemvar.h #define GEM_CDTXSYNC(sc, x, n, ops) \ x 253 dev/ic/gemvar.h #define GEM_CDRXSYNC(sc, x, ops) \ x 261 dev/ic/gemvar.h #define GEM_INIT_RXDESC(sc, x) \ x 74 dev/ic/i8253reg.h #define TIMER_DIV(x) ((TIMER_FREQ+(x)/2)/(x)) x 114 dev/ic/i82586reg.h #define IE_ACTION_COMMAND(x) (((x) & IE_CU_COMMAND) == IE_CU_START) x 186 dev/ic/i82596reg.h #define IE_ACTION_COMMAND(x) (((x) & IE_CUC_MASK) == IE_CUC_START) x 4781 dev/ic/isp.c #define HIBYT(x) ((x) >> 0x8) x 4782 dev/ic/isp.c #define LOBYT(x) ((x) & 0xff) x 123 dev/ic/isp_openbsd.h #define USEC_DELAY(x) delay(x) x 124 dev/ic/isp_openbsd.h #define USEC_SLEEP(isp, x) \ x 133 dev/ic/isp_openbsd.h #define GET_NANOSEC(x) (((x)->tv_sec * 1000000000 + (x)->tv_nsec)) x 249 dev/ic/isp_openbsd.h #define DEFAULT_IID(x) 7 x 250 dev/ic/isp_openbsd.h #define DEFAULT_LOOPID(x) 107 x 344 dev/ic/isp_target.h #define GET_IID_VAL(x) (x & 0x3f) x 345 dev/ic/isp_target.h #define GET_BUS_VAL(x) ((x >> 7) & 0x1) x 346 dev/ic/isp_target.h #define SET_IID_VAL(y, x) y = ((y & ~0x3f) | (x & 0x3f)) x 347 dev/ic/isp_target.h #define SET_BUS_VAL(y, x) y = ((y & 0x3f) | ((x & 0x1) << 7)) x 181 dev/ic/ispmbox.h #define MBLOGMASK(x) ((x) & 0xf) x 930 dev/ic/ispmbox.h #define SNS_GID_FT_RESP_SIZE(x) ((sizeof (sns_gid_ft_rsp_t)) + ((x - 1) << 2)) x 153 dev/ic/ispvar.h #define RQUEST_QUEUE_LEN(x) MAXISPREQUEST(x) x 155 dev/ic/ispvar.h #define RESULT_QUEUE_LEN(x) MAXISPREQUEST(x) x 157 dev/ic/ispvar.h #define RESULT_QUEUE_LEN(x) \ x 575 dev/ic/ispvar.h #define DMA_WD3(x) (((x) >> 48) & 0xffff) x 576 dev/ic/ispvar.h #define DMA_WD2(x) (((x) >> 32) & 0xffff) x 578 dev/ic/ispvar.h #define DMA_WD3(x) 0 x 579 dev/ic/ispvar.h #define DMA_WD2(x) 0 x 581 dev/ic/ispvar.h #define DMA_WD1(x) (((x) >> 16) & 0xffff) x 582 dev/ic/ispvar.h #define DMA_WD0(x) (((x) & 0xffff)) x 137 dev/ic/lancereg.h #define LE_BCNT(x) (~(x) + 1) x 374 dev/ic/lancereg.h #define LE_C15_PORTSEL(x) ((x) << 7) /* port select */ x 390 dev/ic/lancereg.h #define LE_C80_RCVFW(x) ((x) << 12) /* Receive FIFO Watermark */ x 392 dev/ic/lancereg.h #define LE_C80_XMTSP(x) ((x) << 10) /* Transmit Start Point */ x 394 dev/ic/lancereg.h #define LE_C80_XMTFW(x) ((x) << 8) /* Transmit FIFO Watermark */ x 597 dev/ic/lancereg.h #define CHIPID_MANFID(x) (((x) >> 1) & 0x3ff) x 598 dev/ic/lancereg.h #define CHIPID_PARTID(x) (((x) >> 12) & 0xffff) x 599 dev/ic/lancereg.h #define CHIPID_VER(x) (((x) >> 28) & 0x7) x 41 dev/ic/lm700x.h #define LM700X_FREQ(x) (x << 0) /* 0x003FFF */ x 42 dev/ic/lm700x.h #define LM700X_LSI(x) (x << 14) /* 0x00C000 */ /* always zero */ x 43 dev/ic/lm700x.h #define LM700X_BAND(x) (x << 16) /* 0x070000 */ x 46 dev/ic/lm700x.h #define LM700X_TIME_BASE(x) (x << 19) /* 0x080000 */ /* always zero */ x 47 dev/ic/lm700x.h #define LM700X_REF_FREQ(x) (x << 20) /* 0x700000 */ x 30 dev/ic/lm78.c #define DPRINTF(x) do { printf x; } while (0) x 32 dev/ic/lm78.c #define DPRINTF(x) x 43 dev/ic/lm78.c #define RFACT(x, y) (RFACT_NONE * ((x) + (y)) / (y)) x 44 dev/ic/lm78.c #define NRFACT(x, y) (-RFACT_NONE * (x) / (y)) x 76 dev/ic/lsi64854.c #define DPRINTF(a,x) do { if (lsi64854debug & (a)) printf x ; } while (0) x 78 dev/ic/lsi64854.c #define DPRINTF(a,x) x 56 dev/ic/malo.c #define DPRINTF(x) do { if (malo_debug > 0) printf x; } while (0) x 57 dev/ic/malo.c #define DPRINTFN(n, x) do { if (malo_debug >= (n)) printf x; } while (0) x 60 dev/ic/malo.c #define DPRINTF(x) x 61 dev/ic/malo.c #define DPRINTFN(n, x) x 222 dev/ic/malo.c #define malo_mem_write4(sc, off, x) \ x 224 dev/ic/malo.c #define malo_mem_write2(sc, off, x) \ x 226 dev/ic/malo.c #define malo_mem_write1(sc, off, x) \ x 234 dev/ic/malo.c #define malo_ctl_write4(sc, off, x) \ x 25 dev/ic/mfivar.h #define DPRINTF(x...) do { if (mfi_debug) printf(x); } while(0) x 26 dev/ic/mfivar.h #define DNPRINTF(n,x...) do { if (mfi_debug & n) printf(x); } while(0) x 36 dev/ic/mfivar.h #define DPRINTF(x...) x 37 dev/ic/mfivar.h #define DNPRINTF(n,x...) x 25 dev/ic/midwayreg.h #define vtophys(x) ((u_int32_t)(x)) /* sun4c dvma */ x 51 dev/ic/mpireg.h #define MPI_DOORBELL_FUNCTION(x) \ x 55 dev/ic/mpireg.h #define MPI_DOORBELL_DWORDS(x) \ x 641 dev/ic/mpireg.h #define MPI_EVT_SASPHY_LINK_CUR(x) (((x) & 0xf0) >> 4) x 642 dev/ic/mpireg.h #define MPI_EVT_SASPHY_LINK_PREV(x) ((x) & 0x0f) x 1138 dev/ic/mpireg.h #define MPI_CFG_SPI_DEV_2_DATA_PIPE_SELECT(x) (0x3<<((x)*2)) x 24 dev/ic/mpivar.h #define DPRINTF(x...) do { if (mpi_debug) printf(x); } while(0) x 25 dev/ic/mpivar.h #define DNPRINTF(n,x...) do { if (mpi_debug & (n)) printf(x); } while(0) x 38 dev/ic/mpivar.h #define DPRINTF(x...) x 39 dev/ic/mpivar.h #define DNPRINTF(n,x...) x 139 dev/ic/mtd8xxreg.h #define ISR_ET(x) ((x) & ISR_ETMASK) x 184 dev/ic/mtd8xxreg.h #define TSR_NCR_GET(x) (((x) & TSR_NCR_MASK) >> TSR_NCR_SHIFT) x 52 dev/ic/mtd8xxvar.h #define TSW_NCR_GET(x) (((x) & TSW_NCR_MASK) >> TSW_NCR_SHIFT) x 65 dev/ic/mtd8xxvar.h #define TCW_PKTS_GET(x) (((x) & TCW_PKTS_MASK) >> TCW_PKTS_SHIFT) x 69 dev/ic/mtd8xxvar.h #define TCW_TBS_GET(x) (((x) & TCW_TBS_MASK) >> TCW_TBS_SHIFT) x 84 dev/ic/mtd8xxvar.h #define RSR_FLNG_GET(x) (((x) & RSR_FLNG_MASK) >> RSR_FLNG_SHIFT) x 100 dev/ic/mtd8xxvar.h #define RCW_RBS_GET(x) (((x) & RCW_RBS_MASK) >> RCW_RBS_SHIFT) x 135 dev/ic/ncr5380reg.h #define SCI_TCMD_PHASE(x) ((x) & 0x7) x 149 dev/ic/ncr5380reg.h #define SCI_BUS_PHASE(x) (((x) >> 2) & 7) x 48 dev/ic/oosiopvar.h #define OOSIOP_XFEROFF(x) offsetof(struct oosiop_xfer, x) x 68 dev/ic/opl.c #define DPRINTF(x) if (opldebug) printf x x 69 dev/ic/opl.c #define DPRINTFN(n,x) if (opldebug >= (n)) printf x x 72 dev/ic/opl.c #define DPRINTF(x) x 73 dev/ic/opl.c #define DPRINTFN(n,x) x 592 dev/ic/opl.c oplsyn_pitchbend(ms, voice, parm, x) x 594 dev/ic/opl.c u_int32_t voice, parm, x; x 188 dev/ic/osiopreg.h #define OSIOP_PHASE(x) ((x) & (OSIOP_MSG|OSIOP_CD|OSIOP_IO)) x 125 dev/ic/osiopvar.h #define OSIOP_DSOFF(x) offsetof(struct osiop_ds, x) x 293 dev/ic/p9000.h #define P9000_COORDS(x,y) ((((x) & 0x0fff) << 16) | ((y) & 0x0fff)) x 48 dev/ic/pdq.c #define PDQ_ROUNDUP(n, x) (((n) + ((x) - 1)) & ~((x) - 1)) x 52 dev/ic/pdq.c #define PDQ_PRINTF(x) printf x x 54 dev/ic/pdq.c #define PDQ_PRINTF(x) do { } while (0) x 45 dev/ic/pdqreg.h #define PDQ_ASSERT(x) do { } while(0) x 98 dev/ic/pgt.c #define DPRINTF(x) do { printf x; } while (0) x 100 dev/ic/pgt.c #define DPRINTF(x) x 52 dev/ic/pt2254a.h #define PT2254A_ATTENUATION_MAJOR(x) (1 << x) x 59 dev/ic/pt2254a.h #define PT2254A_ATTENUATION_MINOR(x) (1 << (7 + x / 2)) x 156 dev/ic/re.c #define DPRINTF(x) do { if (redebug) printf x; } while (0) x 158 dev/ic/re.c #define DPRINTF(x) x 200 dev/ic/re.c #define EE_SET(x) \ x 204 dev/ic/re.c #define EE_CLR(x) \ x 70 dev/ic/rt2560.c #define DPRINTF(x) do { if (rt2560_debug > 0) printf x; } while (0) x 71 dev/ic/rt2560.c #define DPRINTFN(n, x) do { if (rt2560_debug >= (n)) printf x; } while (0) x 74 dev/ic/rt2560.c #define DPRINTF(x) x 75 dev/ic/rt2560.c #define DPRINTFN(n, x) x 132 dev/ic/rt2560reg.h #define RT2560_ENABLE_TSF_SYNC(x) (((x) & 0x3) << 1) x 210 dev/ic/rt2560reg.h #define RT2560_LOGCWMAX(x) (((x) & 0xf) << 12) x 211 dev/ic/rt2560reg.h #define RT2560_LOGCWMIN(x) (((x) & 0xf) << 8) x 212 dev/ic/rt2560reg.h #define RT2560_AIFSN(x) (((x) & 0x3) << 6) x 213 dev/ic/rt2560reg.h #define RT2560_IVOFFSET(x) (((x) & 0x3f)) x 70 dev/ic/rt2661.c #define DPRINTF(x) do { if (rt2661_debug > 0) printf x; } while (0) x 71 dev/ic/rt2661.c #define DPRINTFN(n, x) do { if (rt2661_debug >= (n)) printf x; } while (0) x 74 dev/ic/rt2661.c #define DPRINTF(x) x 75 dev/ic/rt2661.c #define DPRINTFN(n, x) x 168 dev/ic/rt2661reg.h #define RT2661_TSF_MODE(x) (((x) & 0x3) << 17) x 165 dev/ic/rtl81x9.c #define EE_SET(x) \ x 169 dev/ic/rtl81x9.c #define EE_CLR(x) \ x 270 dev/ic/rtl81x9.c #define MII_SET(x) \ x 274 dev/ic/rtl81x9.c #define MII_CLR(x) \ x 454 dev/ic/rtl81x9reg.h #define RL_TXTHRESH(x) ((x) << 11) x 563 dev/ic/rtl81x9reg.h #define RL_TCPPKT(x) (((x) & RL_RDESC_STAT_PROTOID) == \ x 565 dev/ic/rtl81x9reg.h #define RL_UDPPKT(x) (((x) & RL_RDESC_STAT_PROTOID) == \ x 600 dev/ic/rtl81x9reg.h #define RL_PKTSZ(x) ((x)/* >> 3*/) x 613 dev/ic/rtl81x9reg.h #define RL_NEXT_TX_DESC(sc, x) \ x 615 dev/ic/rtl81x9reg.h #define RL_NEXT_RX_DESC(sc, x) \ x 617 dev/ic/rtl81x9reg.h #define RL_NEXT_TXQ(sc, x) \ x 642 dev/ic/rtl81x9reg.h #define RL_INC(x) (x = (x + 1) % RL_TX_LIST_CNT) x 643 dev/ic/rtl81x9reg.h #define RL_CUR_TXADDR(x) ((x->rl_cdata.cur_tx * 4) + RL_TXADDR0) x 644 dev/ic/rtl81x9reg.h #define RL_CUR_TXSTAT(x) ((x->rl_cdata.cur_tx * 4) + RL_TXSTAT0) x 645 dev/ic/rtl81x9reg.h #define RL_CUR_TXMBUF(x) (x->rl_cdata.rl_tx_chain[x->rl_cdata.cur_tx]) x 646 dev/ic/rtl81x9reg.h #define RL_CUR_TXMAP(x) (x->rl_cdata.rl_tx_dmamap[x->rl_cdata.cur_tx]) x 647 dev/ic/rtl81x9reg.h #define RL_LAST_TXADDR(x) ((x->rl_cdata.last_tx * 4) + RL_TXADDR0) x 648 dev/ic/rtl81x9reg.h #define RL_LAST_TXSTAT(x) ((x->rl_cdata.last_tx * 4) + RL_TXSTAT0) x 649 dev/ic/rtl81x9reg.h #define RL_LAST_TXMBUF(x) (x->rl_cdata.rl_tx_chain[x->rl_cdata.last_tx]) x 650 dev/ic/rtl81x9reg.h #define RL_LAST_TXMAP(x) (x->rl_cdata.rl_tx_dmamap[x->rl_cdata.last_tx]) x 680 dev/ic/rtl81x9reg.h #define RL_ISCPLUS(x) ((x)->rl_type == RL_8139CPLUS || \ x 45 dev/ic/rtwreg.h #define LOWEST_SET_BIT(x) ((((x) - 1) & (x)) ^ (x)) x 50 dev/ic/rtwreg.h #define GTEQ_POWER(x, p) (((u_long)(x) >> (p)) != 0) x 74 dev/ic/rtwreg.h #define MASK_AND_RSHIFT(x, mask) (((x) & (mask)) >> MASK_TO_SHIFT(mask)) x 75 dev/ic/rtwreg.h #define LSHIFT(x, mask) ((x) << MASK_TO_SHIFT(mask)) x 129 dev/ic/siop.c #define INCSTAT(x) x++ x 131 dev/ic/siop.c #define INCSTAT(x) x 214 dev/ic/siopvar_common.h #define siop_htoc32(sc, x) \ x 217 dev/ic/siopvar_common.h #define siop_ctoh32(sc, x) \ x 61 dev/ic/smc83c170reg.h #define TXSTAT_TXLENGTH(x) ((x) << TXSTAT_TXLENGTH_SHIFT) x 74 dev/ic/smc83c170reg.h #define TXSTAT_COLLISIONS(x) (((x) & ET_TXSTAT_COLLMASK) >> 8) x 78 dev/ic/smc83c170reg.h #define TXCTL_BUFLENGTH(x) ((x) & TXCTL_BUFLENGTH_MASK) x 98 dev/ic/smc83c170reg.h #define RXSTAT_RXLENGTH(x) ((x) >> RXSTAT_RXLENGTH_SHIFT) x 114 dev/ic/smc83c170reg.h #define RXCTL_BUFLENGTH(x) ((x) & RXCTL_BUFLENGTH_MASK) x 231 dev/ic/smc83c170reg.h #define NVCTL_IPG_DLY(x) (((x) & NVCTL_IPG_DLY_MASK) >> 7) x 56 dev/ic/smc83c170var.h #define EPIC_NEXTTX(x) ((x + 1) & EPIC_NTXDESC_MASK) x 63 dev/ic/smc83c170var.h #define EPIC_NEXTRX(x) ((x + 1) & EPIC_NRXDESC_MASK) x 87 dev/ic/smc83c170var.h #define EPIC_CDOFF(x) offsetof(struct epic_control_data, x) x 88 dev/ic/smc83c170var.h #define EPIC_CDTXOFF(x) EPIC_CDOFF(ecd_txdescs[(x)]) x 89 dev/ic/smc83c170var.h #define EPIC_CDRXOFF(x) EPIC_CDOFF(ecd_rxdescs[(x)]) x 90 dev/ic/smc83c170var.h #define EPIC_CDFLOFF(x) EPIC_CDOFF(ecd_txfrags[(x)]) x 144 dev/ic/smc83c170var.h #define EPIC_CDTXADDR(sc, x) ((sc)->sc_cddma + EPIC_CDTXOFF((x))) x 145 dev/ic/smc83c170var.h #define EPIC_CDRXADDR(sc, x) ((sc)->sc_cddma + EPIC_CDRXOFF((x))) x 146 dev/ic/smc83c170var.h #define EPIC_CDFLADDR(sc, x) ((sc)->sc_cddma + EPIC_CDFLOFF((x))) x 148 dev/ic/smc83c170var.h #define EPIC_CDTX(sc, x) (&(sc)->sc_control_data->ecd_txdescs[(x)]) x 149 dev/ic/smc83c170var.h #define EPIC_CDRX(sc, x) (&(sc)->sc_control_data->ecd_rxdescs[(x)]) x 150 dev/ic/smc83c170var.h #define EPIC_CDFL(sc, x) (&(sc)->sc_control_data->ecd_txfrags[(x)]) x 152 dev/ic/smc83c170var.h #define EPIC_DSTX(sc, x) (&(sc)->sc_txsoft[(x)]) x 153 dev/ic/smc83c170var.h #define EPIC_DSRX(sc, x) (&(sc)->sc_rxsoft[(x)]) x 155 dev/ic/smc83c170var.h #define EPIC_CDTXSYNC(sc, x, ops) \ x 159 dev/ic/smc83c170var.h #define EPIC_CDRXSYNC(sc, x, ops) \ x 163 dev/ic/smc83c170var.h #define EPIC_CDFLSYNC(sc, x, ops) \ x 167 dev/ic/smc83c170var.h #define EPIC_INIT_RXDESC(sc, x) \ x 183 dev/ic/smc91cxxreg.h #define MCR_MEM_MULT(x) (((x)>>9)&7) /* Memory size multiplier */ x 386 dev/ic/smc91cxxreg.h #define RR_REV(x) ((x) & 0x0f) x 387 dev/ic/smc91cxxreg.h #define RR_ID(x) (((x) >> 4) & 0x0f) x 65 dev/ic/smc91cxxvar.h #define SMC_SELECT_BANK(sc, x) \ x 77 dev/ic/tc921x.h #define TC921X_D2_GATE_TIME(x) (x << 0) x 83 dev/ic/tc921x.h #define TC921X_D2_COUNTER_MODE(x) (x << 2) x 92 dev/ic/tc921x.h #define TC921X_D2_IO_PORT(x) (x << 10) x 93 dev/ic/tc921x.h #define TC921X_D2_IO_PORT_OUTPUT(x) (x << 15) x 94 dev/ic/tc921x.h #define TC921X_D2_IO_PORT_INPUT(x) (x << 19) x 799 dev/ic/tcic2reg.h #define INVALID_AR_SYSCFG(x) ((((x)&0x1000) && (((x)&0x0c00) != 0x0200)) \ x 803 dev/ic/tcic2reg.h #define INVALID_AR_SYSCFG(x) ((((x)&0x0800) && (((x)&0x0600) != 0x0100)) \ x 809 dev/ic/tcic2reg.h #define INVALID_AR_ILOCK(x) (((x)&0xc0)==0 || (((x)&0xc0)==0xc0)) x 812 dev/ic/tcic2reg.h #define INVALID_AR_TEST(x) (((x)&0154) != 0) x 87 dev/ic/uha.c #define KVTOPHYS(x) vtophys((vaddr_t)x) x 36 dev/ic/uhavar.h #define MSCP_HASH(x) ((((long)(x))>>MSCP_HASH_SHIFT) & (MSCP_HASH_SIZE - 1)) x 252 dev/ic/xl.c #define MII_SET(x) \ x 256 dev/ic/xl.c #define MII_CLR(x) \ x 455 dev/ic/xlreg.h #define XL_INC(x, y) (x) = (x + 1) % (y) x 609 dev/ic/xlreg.h #define xl_rx_goodframes(x) \ x 612 dev/ic/xlreg.h #define xl_tx_goodframes(x) \ x 648 dev/ic/xlreg.h #define XL_SEL_WIN(x) \ x 84 dev/ipmi.c #define SMIPMI_FLAG_IFSPACING(x) (((x)>>6)&0x3) x 121 dev/ipmi.c #define byteof(x) ((x) >> 3) x 122 dev/ipmi.c #define bitof(x) (1L << ((x) & 0x7)) x 96 dev/isa/ad1848.c #define DPRINTF(x) if (ad1848debug) printf x x 99 dev/isa/ad1848.c #define DPRINTF(x) x 101 dev/isa/aha.c #define CCB_HASH(x) ((((long)(x))>>CCB_HASH_SHIFT) & (CCB_HASH_SIZE - 1)) x 35 dev/isa/aps.c #define DPRINTF(x) do { printf x; } while (0) x 37 dev/isa/aps.c #define DPRINTF(x) x 87 dev/isa/aria.c #define DPRINTF(x) if (ariadebug) Dprintf x x 90 dev/isa/aria.c #define DPRINTF(x) x 59 dev/isa/aztech.c #define VOLUME_RATIO(x) (255 * x / MAX_VOL) x 61 dev/isa/aztech.c #define AZ_BASE_VALID(x) ((x == 0x350) || (x == 0x358)) x 95 dev/isa/ess.c #define DPRINTF(x) if (essdebug) printf x x 96 dev/isa/ess.c #define DPRINTFN(n,x) if (essdebug>(n)) printf x x 99 dev/isa/ess.c #define DPRINTF(x) x 100 dev/isa/ess.c #define DPRINTFN(n,x) x 55 dev/isa/ess_isapnp.c #define DPRINTF(x) printf x x 57 dev/isa/ess_isapnp.c #define DPRINTF(x) x 183 dev/isa/essreg.h #define ESS_4BIT_GAIN(x) ((x) & 0xf0) x 184 dev/isa/essreg.h #define ESS_3BIT_GAIN(x) (((x) & 0xe0) >> 1) x 186 dev/isa/essreg.h #define ESS_MONO_GAIN(x) ((x) >> 4) x 247 dev/isa/fdc.c out_fdc(iot, ioh, x) x 250 dev/isa/fdc.c u_char x; x 134 dev/isa/gus.c #define DPRINTF(x) if (gusdebug) printf x x 135 dev/isa/gus.c #define DMAPRINTF(x) if (gusdmadebug) printf x x 139 dev/isa/gus.c #define DPRINTF(x) x 140 dev/isa/gus.c #define DMAPRINTF(x) x 283 dev/isa/gusvar.h #define DPRINTF(x) if (gusdebug) printf x x 284 dev/isa/gusvar.h #define DMAPRINTF(x) if (gusdmadebug) printf x x 288 dev/isa/gusvar.h #define DPRINTF(x) x 289 dev/isa/gusvar.h #define DMAPRINTF(x) x 399 dev/isa/gusvar.h #define SELECT_GUS_REG(iot,ioh1,x) bus_space_write_1(iot,ioh1,GUS_REG_SELECT,x) x 400 dev/isa/gusvar.h #define ADDR_HIGH(x) (unsigned int) ((x >> 7L) & 0x1fffL) x 401 dev/isa/gusvar.h #define ADDR_LOW(x) (unsigned int) ((x & 0x7fL) << 9L) x 811 dev/isa/if_ef_isapnp.c #define MII_SET(sc, x) \ x 816 dev/isa/if_ef_isapnp.c #define MII_CLR(sc, x) \ x 80 dev/isa/if_eg.c #define DPRINTF(x) printf x x 82 dev/isa/if_eg.c #define DPRINTF(x) x 58 dev/isa/if_el.c #define dprintf(x) printf x x 60 dev/isa/if_el.c #define dprintf(x) x 13 dev/isa/if_ieatt.h #define SL_BOARD(x) ((x) & 0x0f) x 14 dev/isa/if_ieatt.h #define SL_REV(x) ((x) >> 4) x 41 dev/isa/it.c #define DPRINTF(x) do { printf x; } while (0) x 43 dev/isa/it.c #define DPRINTF(x) x 54 dev/isa/it.c #define RFACT(x, y) (RFACT_NONE * ((x) + (y)) / (y)) x 38 dev/isa/lm78_isa.c #define DPRINTF(x) do { printf x; } while (0) x 40 dev/isa/lm78_isa.c #define DPRINTF(x) x 65 dev/isa/mpu401.c #define DPRINTF(x) if (mpu401debug) printf x x 66 dev/isa/mpu401.c #define DPRINTFN(n,x) if (mpu401debug >= (n)) printf x x 69 dev/isa/mpu401.c #define DPRINTF(x) x 70 dev/isa/mpu401.c #define DPRINTFN(n,x) x 54 dev/isa/mpu_isa.c #define DPRINTF(x) if (mpu_debug) printf x x 57 dev/isa/mpu_isa.c #define DPRINTF(x) x 52 dev/isa/nsclpcsio_isa.c #define DPRINTF(x) do { printf x; } while (0) x 54 dev/isa/nsclpcsio_isa.c #define DPRINTF(x) x 76 dev/isa/pas.c #define DPRINTF(x) if (pasdebug) printf x x 79 dev/isa/pas.c #define DPRINTF(x) x 149 dev/isa/pss.c #define DPRINTF(x) if (pssdebug) printf x x 152 dev/isa/pss.c #define DPRINTF(x) x 49 dev/isa/radiotrack2.c #define RTII_BASE_VALID(x) ((x == 0x20C) || (x == 0x30C)) x 41 dev/isa/rtreg.h #define VOLUME_RATIO(x) (255 * x / MAX_VOL) x 43 dev/isa/rtreg.h #define RT_BASE_VALID(x) ((x == 0x20C) || (x == 0x30C)) x 135 dev/isa/sb.c #define DPRINTF(x) if (sbdebug) printf x x 138 dev/isa/sb.c #define DPRINTF(x) x 76 dev/isa/sbdsp.c #define DPRINTF(x) if (sbdspdebug) printf x x 77 dev/isa/sbdsp.c #define DPRINTFN(n,x) if (sbdspdebug >= (n)) printf x x 80 dev/isa/sbdsp.c #define DPRINTF(x) x 81 dev/isa/sbdsp.c #define DPRINTFN(n,x) x 122 dev/isa/sbdsp.c #define SB_RATE_TO_TC(x) (256 - 1000000 / (x)) x 81 dev/isa/sbdspvar.h #define SB_IS_IN_MUTE(x) ((x) < SB_CD_SWAP) x 163 dev/isa/sbdspvar.h #define ISSBM1745(x) ((x)->sc_mixer_model >= SBM_CT1XX5) x 148 dev/isa/sbreg.h #define SB_SRC_R_TO_L(x) ((x) << 1) x 153 dev/isa/sbreg.h #define SB_ADJUST_MIC_GAIN(sc, x) sbdsp_adjust((x), ISSB16CLASS(sc) ? 0xf8 : 0xc0) x 154 dev/isa/sbreg.h #define SB_ADJUST_GAIN(sc, x) sbdsp_adjust((x), ISSB16CLASS(sc) ? 0xf8 : 0xe0) x 155 dev/isa/sbreg.h #define SB_ADJUST_2_GAIN(sc, x) sbdsp_adjust((x), 0xc0) x 157 dev/isa/sbreg.h #define SB_1335_GAIN(x) ((x) >> 4) x 158 dev/isa/sbreg.h #define SB_1335_MASTER_GAIN(x) ((x) >> 5) x 44 dev/isa/sf16fmr.c #define SF16FMR_BASE_VALID(x) (x == 0x384 || x == 0x284) x 50 dev/isa/sf16fmr2.c #define SF16FMR2_BASE_VALID(x) (x == 0x384) x 66 dev/isa/uha_isa.c #define KVTOPHYS(x) vtophys((vaddr_t)(x)) x 37 dev/isa/viasio.c #define DPRINTF(x) printf x x 39 dev/isa/viasio.c #define DPRINTF(x) x 91 dev/isa/wds.c #define SCB_HASH(x) ((((long)(x))>>SCB_HASH_SHIFT) & (SCB_HASH_SIZE - 1)) x 107 dev/isa/wds.c #define KVTOPHYS(x) vtophys((vaddr_t)(x)) x 65 dev/isa/wss.c #define DPRINTF(x) if (wssdebug) printf x x 68 dev/isa/wss.c #define DPRINTF(x) x 69 dev/isa/wss_isa.c #define DPRINTF(x) if (wssdebug) printf x x 72 dev/isa/wss_isa.c #define DPRINTF(x) x 87 dev/microcode/adw/adwmcode.h #define ADW_CARRIER_BADDR(dmamap, carriers, x) ((dmamap)->dm_segs[0].ds_addr +\ x 93 dev/microcode/adw/adwmcode.h #define ADW_CARRIER_VADDR(sc, x) ((ADW_CARRIER *) \ x 38 dev/microcode/fxp/build.c #define UCODE(x) x, sizeof(x) x 61 dev/midisyn.c #define DPRINTF(x) if (midisyndebug) printf x x 62 dev/midisyn.c #define DPRINTFN(n,x) if (midisyndebug >= (n)) printf x x 65 dev/midisyn.c #define DPRINTF(x) x 66 dev/midisyn.c #define DPRINTFN(n,x) x 313 dev/mii/ciphy.c #define PHY_SETBIT(x, y, z) \ x 315 dev/mii/ciphy.c #define PHY_CLRBIT(x, y, z) \ x 71 dev/mii/dcphy.c #define DC_SETBIT(sc, reg, x) \ x 75 dev/mii/dcphy.c #define DC_CLRBIT(sc, reg, x) \ x 70 dev/mii/mii.h #define BMCR_SPEED(x) ((x) & (BMCR_SPEED0|BMCR_SPEED1)) x 102 dev/mii/mii.h #define BMSR_MEDIA_TO_ANAR(x) (((x) & BMSR_MEDIAMASK) >> 6) x 55 dev/mii/mii_bitbang.c #define WRITE(x) \ x 234 dev/mii/miivar.h #define mii_phy_probe(x, y, z) \ x 379 dev/mii/rgephy.c #define PHY_SETBIT(x, y, z) \ x 381 dev/mii/rgephy.c #define PHY_CLRBIT(x, y, z) \ x 53 dev/mii/urlphy.c #define DPRINTF(x) if (urlphydebug) printf x x 54 dev/mii/urlphy.c #define DPRINTFN(n,x) if (urlphydebug>(n)) printf x x 57 dev/mii/urlphy.c #define DPRINTF(x) x 58 dev/mii/urlphy.c #define DPRINTFN(n,x) x 37 dev/onewire/onewire.c #define DPRINTF(x) printf x x 39 dev/onewire/onewire.c #define DPRINTF(x) x 31 dev/onewire/onewirereg.h #define ONEWIRE_ROM_FAMILY(x) ((x) & 0xff) x 32 dev/onewire/onewirereg.h #define ONEWIRE_ROM_FAMILY_TYPE(x) ((x) & 0x7f) x 33 dev/onewire/onewirereg.h #define ONEWIRE_ROM_FAMILY_CUSTOM(x) (((x) >> 7) & 0x1) x 36 dev/onewire/onewirereg.h #define ONEWIRE_ROM_SN(x) (((x) >> 8) & 0xffffffffffffULL) x 39 dev/onewire/onewirereg.h #define ONEWIRE_ROM_CRC(x) (((x) >> 56) & 0xff) x 44 dev/pci/agpreg.h #define AGP_CAPID_GET_MAJOR(x) (((x) & 0x00f00000U) >> 20) x 45 dev/pci/agpreg.h #define AGP_CAPID_GET_MINOR(x) (((x) & 0x000f0000U) >> 16) x 46 dev/pci/agpreg.h #define AGP_CAPID_GET_NEXT_PTR(x) (((x) & 0x0000ff00U) >> 8) x 47 dev/pci/agpreg.h #define AGP_CAPID_GET_CAP_ID(x) (((x) & 0x000000ffU) >> 0) x 45 dev/pci/agpvar.h #define AGPUNIT(x) minor(x) x 77 dev/pci/alipm.c #define ALIPM_SMB_TXSLVA_ADDR(x) (((x) & 0x7f) << 1) /* 7-bit address */ x 92 dev/pci/alipm.c #define DPRINTF(x) printf x x 94 dev/pci/alipm.c #define DPRINTF(x) x 39 dev/pci/amdiic.c #define DPRINTF(x) printf x x 41 dev/pci/amdiic.c #define DPRINTF(x) x 79 dev/pci/amdiic.c #define AMD8111_SMB_DATA(x) (0x04 + (x)) /* SMBus data */ x 76 dev/pci/amdpm.c #define DPRINTF(x...) printf(x) x 78 dev/pci/amdpm.c #define DPRINTF(x...) x 119 dev/pci/amdpm.c #define AMDPM_PMBASE(x) ((x) & 0xff00) /* PMxx base address */ x 158 dev/pci/amdpm.c #define AMDPM_SMBADDR_ADDR(x) (((x) & 0x7f) << 1) /* 7-bit address */ x 213 dev/pci/auich.c #define DPRINTF(l,x) do { if (auich_debug & (l)) printf x; } while(0) x 219 dev/pci/auich.c #define DPRINTF(x,y) /* nothing */ x 173 dev/pci/auixp.c #define DPRINTF(x) printf x; x 175 dev/pci/auixp.c #define DPRINTF(x) x 142 dev/pci/auixpreg.h #define ATI_REG_OUT_DMA_SLOT_BIT(x) (1U << ((x) - 3)) x 66 dev/pci/autri.c # define DPRINTF(x) if (autridebug) printf x x 67 dev/pci/autri.c # define DPRINTFN(n,x) if (autridebug > (n)) printf x x 70 dev/pci/autri.c # define DPRINTF(x) x 71 dev/pci/autri.c # define DPRINTFN(n,x) x 84 dev/pci/autri.c #define TWRITE1(sc, r, x) bus_space_write_1((sc)->memt, (sc)->memh, (r), (x)) x 85 dev/pci/autri.c #define TWRITE2(sc, r, x) bus_space_write_2((sc)->memt, (sc)->memh, (r), (x)) x 86 dev/pci/autri.c #define TWRITE4(sc, r, x) bus_space_write_4((sc)->memt, (sc)->memh, (r), (x)) x 79 dev/pci/auvia.c #define AUVIA_DMAOP_COUNT(x) ((x)&0x00FFFFFF) x 165 dev/pci/auvia.c #define AUVIA_CODEC_INDEX(x) ((x)<<16) x 73 dev/pci/azalia.c #define auconv_delete_encodings(x...) x 74 dev/pci/azalia.c #define auconv_query_encoding(x...) (EINVAL) x 75 dev/pci/azalia.c #define auconv_create_encodings(x...) (0) x 49 dev/pci/azalia.h #define HDA_GCAP_OSS(x) ((x & 0xf000) >> 12) x 50 dev/pci/azalia.h #define HDA_GCAP_ISS(x) ((x & 0x0f00) >> 8) x 51 dev/pci/azalia.h #define HDA_GCAP_BSS(x) ((x & 0x00f8) >> 3) x 197 dev/pci/azalia.h #define COP_VID_VENDOR(x) (x >> 16) x 198 dev/pci/azalia.h #define COP_VID_DEVICE(x) (x & 0xffff) x 200 dev/pci/azalia.h #define COP_RID_MAJ(x) ((x >> 20) & 0x0f) x 201 dev/pci/azalia.h #define COP_RID_MIN(x) ((x >> 16) & 0x0f) x 202 dev/pci/azalia.h #define COP_RID_REVISION(x) ((x >> 8) & 0xff) x 203 dev/pci/azalia.h #define COP_RID_STEPPING(x) (x & 0xff) x 205 dev/pci/azalia.h #define COP_START_NID(x) ((x & 0x00ff0000) >> 16) x 206 dev/pci/azalia.h #define COP_NSUBNODES(x) (x & 0x000000ff) x 208 dev/pci/azalia.h #define COP_FTYPE(x) (x & 0x000000ff) x 214 dev/pci/azalia.h #define COP_AWCAP_TYPE(x) ((x >> 20) & 0xf) x 236 dev/pci/azalia.h #define COP_AWCAP_DELAY(x) ((x >> 16) & 0xf) x 267 dev/pci/azalia.h #define COP_PINCAP_VREF(x) ((x >> 8) & 0xff) x 270 dev/pci/azalia.h #define COP_AMPCAP_OFFSET(x) (x & 0x0000007f) x 271 dev/pci/azalia.h #define COP_AMPCAP_NUMSTEPS(x) ((x >> 8) & 0x7f) x 272 dev/pci/azalia.h #define COP_AMPCAP_STEPSIZE(x) ((x >> 16) & 0x7f) x 276 dev/pci/azalia.h #define COP_CLL_LENGTH(x) (x & 0x0000007f) x 283 dev/pci/azalia.h #define COP_VKCAP_NUMSTEPS(x) (x & 0x7f) x 285 dev/pci/azalia.h #define CORB_CSC_INDEX(x) (x & 0xff) x 288 dev/pci/azalia.h #define CORB_CLE_LONG_0(x) (x & 0x0000ffff) x 289 dev/pci/azalia.h #define CORB_CLE_LONG_1(x) ((x & 0xffff0000) >> 16) x 290 dev/pci/azalia.h #define CORB_CLE_SHORT_0(x) (x & 0xff) x 291 dev/pci/azalia.h #define CORB_CLE_SHORT_1(x) ((x >> 8) & 0xff) x 292 dev/pci/azalia.h #define CORB_CLE_SHORT_2(x) ((x >> 16) & 0xff) x 293 dev/pci/azalia.h #define CORB_CLE_SHORT_3(x) ((x >> 24) & 0xff) x 306 dev/pci/azalia.h #define CORB_GAGM_GAIN(x) (x & 0x0000007f) x 343 dev/pci/azalia.h #define CORB_UNSOL_TAG(x) (x & 0x3f) x 346 dev/pci/azalia.h #define CORB_PS_IMPEDANCE(x) (x & 0x7fffffff) x 378 dev/pci/azalia.h #define CORB_VKNOB_VOLUME(x) (x & 0x7f) x 389 dev/pci/azalia.h #define CORB_CD_SEQUENCE(x) (x & 0x0000000f) x 391 dev/pci/azalia.h #define CORB_CD_ASSOCIATION(x) ((x >> 4) & 0xf) x 394 dev/pci/azalia.h #define CORB_CD_COLOR(x) ((x >> 12) & 0xf) x 408 dev/pci/azalia.h #define CORB_CD_DEVICE(x) ((x >> 20) & 0xf) x 460 dev/pci/azalia.h # define DPRINTF(x) do { printf x; } while (0/*CONSTCOND*/) x 462 dev/pci/azalia.h # define DPRINTF(x) do {} while (0/*CONSTCOND*/) x 464 dev/pci/azalia.h #define PTR_UPPER32(x) ((uint64_t)(x) >> 32) x 2370 dev/pci/bktr/bktr_core.c notclipped (bktr_reg_t * bktr, int x, int width) { x 2398 dev/pci/bktr/bktr_core.c getline(bktr_reg_t *bktr, int x ) { x 80 dev/pci/bktr/bktr_os.c #define DPR(x) (bktr_debug ? printf x : 0) x 82 dev/pci/bktr/bktr_os.c #define DPR(x) x 342 dev/pci/bktr/bktr_os.c #define UNIT(x) (minor((x) & 0x0f)) x 343 dev/pci/bktr/bktr_os.c #define FUNCTION(x) (minor((x >> 4) & 0x0f)) x 58 dev/pci/bt8370.c #define bt8370_print_status(x) x 59 dev/pci/bt8370.c #define bt8370_print_counters(x) x 60 dev/pci/bt8370.c #define bt8370_dump_registers(x) x 52 dev/pci/cmpci.c #define DPRINTF(x) if (cmpcidebug) printf x x 55 dev/pci/cmpci.c #define DPRINTF(x) x 169 dev/pci/cmpcireg.h # define CMPCI_ADJUST_MIC_GAIN(sc, x) cmpci_adjust((x), 0xf8) x 170 dev/pci/cmpcireg.h # define CMPCI_ADJUST_GAIN(sc, x) cmpci_adjust((x), 0xf8) x 171 dev/pci/cmpcireg.h # define CMPCI_ADJUST_2_GAIN(sc, x) cmpci_adjust((x), 0xc0) x 191 dev/pci/cmpcireg.h # define CMPCI_ADJUST_ADMIC_GAIN(sc, x) (cmpci_adjust((x), 0xe0) >> 5) x 60 dev/pci/cs4280.c #define DPRINTF(x) if (cs4280debug) printf x x 61 dev/pci/cs4280.c #define DPRINTFN(n,x) if (cs4280debug>(n)) printf x x 64 dev/pci/cs4280.c #define DPRINTF(x) x 65 dev/pci/cs4280.c #define DPRINTFN(n,x) x 166 dev/pci/cs4280.c #define BA0WRITE4(sc, r, x) bus_space_write_4((sc)->ba0t, (sc)->ba0h, (r), (x)) x 168 dev/pci/cs4280.c #define BA1WRITE4(sc, r, x) bus_space_write_4((sc)->ba1t, (sc)->ba1h, (r), (x)) x 194 dev/pci/cs4280reg.h #define CS4280_MK_PDTC(x) ((x)/2 - 1) x 149 dev/pci/cs4281.c #define BA0WRITE4(sc, r, x) bus_space_write_4((sc)->ba0t, (sc)->ba0h, (r), (x)) x 203 dev/pci/cs4281.c #define DPRINTF(x) if (cs4281_debug) printf x x 204 dev/pci/cs4281.c #define DPRINTFN(n,x) if (cs4281_debug>(n)) printf x x 207 dev/pci/cs4281.c #define DPRINTF(x) x 208 dev/pci/cs4281.c #define DPRINTFN(n,x) x 89 dev/pci/eap.c #define DPRINTF(x) if (eapdebug) printf x x 90 dev/pci/eap.c #define DPRINTFN(n,x) if (eapdebug>(n)) printf x x 93 dev/pci/eap.c #define DPRINTF(x) x 94 dev/pci/eap.c #define DPRINTFN(n,x) x 157 dev/pci/eap.c #define EWRITE1(sc, r, x) bus_space_write_1((sc)->iot, (sc)->ioh, (r), (x)) x 158 dev/pci/eap.c #define EWRITE2(sc, r, x) bus_space_write_2((sc)->iot, (sc)->ioh, (r), (x)) x 159 dev/pci/eap.c #define EWRITE4(sc, r, x) bus_space_write_4((sc)->iot, (sc)->ioh, (r), (x)) x 62 dev/pci/ehci_pci.c #define DPRINTF(x) if (ehcidebug) printf x x 65 dev/pci/ehci_pci.c #define DPRINTF(x) x 164 dev/pci/emuxki.c u_int16_t r, u_int16_t a, u_int16_t x, u_int16_t y); x 654 dev/pci/emuxki.c u_int16_t r, u_int16_t a, u_int16_t x, u_int16_t y) x 631 dev/pci/esa.c #define LO(x) ((x) & 0x0000ffff) x 632 dev/pci/esa.c #define HI(x) ((x) >> 16) x 770 dev/pci/esa.c #define LO(x) ((x) & 0x0000ffff) x 771 dev/pci/esa.c #define HI(x) ((x) >> 16) x 71 dev/pci/eso.c #define DPRINTF(x) printf x x 73 dev/pci/eso.c #define DPRINTF(x) x 782 dev/pci/eso.c #define ABS(x) ((x) < 0 ? -(x) : (x)) x 239 dev/pci/esoreg.h #define ESO_GAIN_TO_3BIT(x) ((x) & 0xe0) x 240 dev/pci/esoreg.h #define ESO_GAIN_TO_4BIT(x) ((x) & 0xf0) x 241 dev/pci/esoreg.h #define ESO_GAIN_TO_6BIT(x) ((x) & 0xfc) x 91 dev/pci/fmsreg.h #define FM_IO_GPIO(x) ((x) << 12) x 93 dev/pci/fmsreg.h #define FM_IO_GPIO_IN(x) ((x) << 8) x 41 dev/pci/ichiic.c #define DPRINTF(x) printf x x 43 dev/pci/ichiic.c #define DPRINTF(x) x 87 dev/pci/ichreg.h #define ICH_SMB_TXSLVA_ADDR(x) (((x) & 0x7f) << 1) /* 7-bit address */ x 94 dev/pci/ichreg.h #define ICH_SMB_SD_MSG0(x) ((x) & 0xff) /* data message byte 0 */ x 95 dev/pci/ichreg.h #define ICH_SMB_SD_MSG1(x) ((x) >> 8) /* data message byte 1 */ x 117 dev/pci/ichreg.h #define ICH_SMB_NDADDR_ADDR(x) ((x) >> 1) /* 7-bit address */ x 36 dev/pci/ichwdt.c #define DPRINTF(x) printf x x 38 dev/pci/ichwdt.c #define DPRINTF(x) x 149 dev/pci/if_bce.c #define BCE_INIT_RXDESC(sc, x) \ x 190 dev/pci/if_bce.c #define DPRINTF(x) do { \ x 194 dev/pci/if_bce.c #define DPRINTFN(n,x) do { \ x 200 dev/pci/if_bce.c #define DPRINTF(x) x 201 dev/pci/if_bce.c #define DPRINTFN(n,x) x 144 dev/pci/if_bcereg.h #define BCE_MIREG(x) ((x & 0x1F) << 18) x 145 dev/pci/if_bcereg.h #define BCE_MIPHY(x) ((x & 0x1F) << 23) x 189 dev/pci/if_bge.c #define DPRINTF(x) do { if (bgedebug) printf x; } while (0) x 190 dev/pci/if_bge.c #define DPRINTFN(n,x) do { if (bgedebug >= (n)) printf x; } while (0) x 193 dev/pci/if_bge.c #define DPRINTF(x) x 194 dev/pci/if_bge.c #define DPRINTFN(n,x) x 289 dev/pci/if_bgereg.h #define BGE_ASICREV(x) ((x) >> 28) x 305 dev/pci/if_bgereg.h #define BGE_CHIPREV(x) ((x) >> 24) x 776 dev/pci/if_bgereg.h #define BGE_MIREG(x) ((x & 0x1F) << 16) x 777 dev/pci/if_bgereg.h #define BGE_MIPHY(x) ((x & 0x1F) << 21) x 1784 dev/pci/if_bgereg.h #define BGE_EEDEVID(x) ((x & 7) << 26) x 1785 dev/pci/if_bgereg.h #define BGE_EEHALFCLK(x) ((x & 0x1FF) << 16) x 1812 dev/pci/if_bgereg.h #define BGE_MEMWIN_READ(pc, tag, x, val) \ x 1819 dev/pci/if_bgereg.h #define BGE_MEMWIN_WRITE(pc, tag, x, val) \ x 1839 dev/pci/if_bgereg.h #define BGE_HOSTADDR(x,y) \ x 1970 dev/pci/if_bgereg.h #define BGE_TX_CONSIDX(x, i) x->bge_idx[i].bge_tx_considx x 1971 dev/pci/if_bgereg.h #define BGE_RX_PRODIDX(x, i) x->bge_idx[i].bge_rx_prodidx x 2222 dev/pci/if_bgereg.h #define BGE_INC(x, y) (x) = (x + 1) % y x 2245 dev/pci/if_bgereg.h #define BGE_SETBIT(sc, reg, x) \ x 2247 dev/pci/if_bgereg.h #define BGE_CLRBIT(sc, reg, x) \ x 2250 dev/pci/if_bgereg.h #define PCI_SETBIT(pc, tag, reg, x) \ x 2252 dev/pci/if_bgereg.h #define PCI_CLRBIT(pc, tag, reg, x) \ x 247 dev/pci/if_bnxreg.h #define BNX_ASICREV(x) ((x) >> 28) x 251 dev/pci/if_bnxreg.h #define BNX_CHIPREV(x) ((x) >> 24) x 268 dev/pci/if_bnxreg.h #define bnx_htobe16(x) htobe16(x) x 269 dev/pci/if_bnxreg.h #define bnx_htobe32(x) htobe32(x) x 270 dev/pci/if_bnxreg.h #define bnx_htobe64(x) htobe64(x) x 271 dev/pci/if_bnxreg.h #define bnx_htole16(x) htole16(x) x 272 dev/pci/if_bnxreg.h #define bnx_htole32(x) htole32(x) x 273 dev/pci/if_bnxreg.h #define bnx_htole64(x) htole64(x) x 275 dev/pci/if_bnxreg.h #define bnx_be16toh(x) betoh16(x) x 276 dev/pci/if_bnxreg.h #define bnx_be32toh(x) betoh32(x) x 277 dev/pci/if_bnxreg.h #define bnx_be64toh(x) betoh64(x) x 278 dev/pci/if_bnxreg.h #define bnx_le16toh(x) letoh16(x) x 279 dev/pci/if_bnxreg.h #define bnx_le32toh(x) letoh32(x) x 280 dev/pci/if_bnxreg.h #define bnx_le64toh(x) letoh64(x) x 669 dev/pci/if_bnxreg.h #define BNX_SETBIT(sc, reg, x) REG_WR(sc, reg, (REG_RD(sc, reg) | (x))) x 670 dev/pci/if_bnxreg.h #define BNX_CLRBIT(sc, reg, x) REG_WR(sc, reg, (REG_RD(sc, reg) & ~(x))) x 671 dev/pci/if_bnxreg.h #define PCI_SETBIT(pc, tag, reg, x) pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) | (x))) x 672 dev/pci/if_bnxreg.h #define PCI_CLRBIT(pc, tag, reg, x) pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) & ~(x))) x 674 dev/pci/if_bnxreg.h #define BNX_STATS(x) (u_long) stats->stat_ ## x ## _lo x 4440 dev/pci/if_bnxreg.h #define NEXT_TX_BD(x) (((x) & USABLE_TX_BD_PER_PAGE) == \ x 4444 dev/pci/if_bnxreg.h #define TX_CHAIN_IDX(x) ((x) & MAX_TX_BD) x 4446 dev/pci/if_bnxreg.h #define TX_PAGE(x) (((x) & ~USABLE_TX_BD_PER_PAGE) >> 8) x 4447 dev/pci/if_bnxreg.h #define TX_IDX(x) ((x) & USABLE_TX_BD_PER_PAGE) x 4449 dev/pci/if_bnxreg.h #define NEXT_RX_BD(x) (((x) & USABLE_RX_BD_PER_PAGE) == \ x 4453 dev/pci/if_bnxreg.h #define RX_CHAIN_IDX(x) ((x) & MAX_RX_BD) x 4455 dev/pci/if_bnxreg.h #define RX_PAGE(x) (((x) & ~USABLE_RX_BD_PER_PAGE) >> 8) x 4456 dev/pci/if_bnxreg.h #define RX_IDX(x) ((x) & USABLE_RX_BD_PER_PAGE) x 4550 dev/pci/if_bnxreg.h #define BNX_MIREG(x) ((x & 0x1F) << 16) x 4551 dev/pci/if_bnxreg.h #define BNX_MIPHY(x) ((x & 0x1F) << 21) x 140 dev/pci/if_cas.c #define DPRINTF(sc, x) if ((sc)->sc_arpcom.ac_if.if_flags & IFF_DEBUG) \ x 143 dev/pci/if_cas.c #define DPRINTF(sc, x) /* nothing */ x 60 dev/pci/if_casvar.h #define CAS_NEXTTX(x) ((x + 1) & CAS_NTXDESC_MASK) x 79 dev/pci/if_casvar.h #define CAS_NEXTRX(x) ((x + 1) & CAS_NRXCOMP_MASK) x 103 dev/pci/if_casvar.h #define CAS_CDOFF(x) offsetof(struct cas_control_data, x) x 104 dev/pci/if_casvar.h #define CAS_CDTXOFF(x) CAS_CDOFF(ccd_txdescs[(x)]) x 105 dev/pci/if_casvar.h #define CAS_CDRXOFF(x) CAS_CDOFF(ccd_rxdescs[(x)]) x 106 dev/pci/if_casvar.h #define CAS_CDRXCOFF(x) CAS_CDOFF(ccd_rxcomps[(x)]) x 192 dev/pci/if_casvar.h #define CAS_CDTXADDR(sc, x) ((sc)->sc_cddma + CAS_CDTXOFF((x))) x 193 dev/pci/if_casvar.h #define CAS_CDRXADDR(sc, x) ((sc)->sc_cddma + CAS_CDRXOFF((x))) x 194 dev/pci/if_casvar.h #define CAS_CDRXCADDR(sc, x) ((sc)->sc_cddma + CAS_CDRXCOFF((x))) x 196 dev/pci/if_casvar.h #define CAS_CDTXSYNC(sc, x, n, ops) \ x 217 dev/pci/if_casvar.h #define CAS_CDRXSYNC(sc, x, ops) \ x 221 dev/pci/if_casvar.h #define CAS_CDRXCSYNC(sc, x, ops) \ x 41 dev/pci/if_em_osdep.h #define usec_delay(x) DELAY(x) x 42 dev/pci/if_em_osdep.h #define msec_delay(x) DELAY(1000*(x)) x 44 dev/pci/if_em_osdep.h #define msec_delay_irq(x) DELAY(1000*(x)) x 133 dev/pci/if_ipw.c #define DPRINTF(x) do { if (ipw_debug > 0) printf x; } while (0) x 134 dev/pci/if_ipw.c #define DPRINTFN(n, x) do { if (ipw_debug >= (n)) printf x; } while (0) x 137 dev/pci/if_ipw.c #define DPRINTF(x) x 138 dev/pci/if_ipw.c #define DPRINTFN(n, x) x 144 dev/pci/if_iwi.c #define DPRINTF(x) do { if (iwi_debug > 0) printf x; } while (0) x 145 dev/pci/if_iwi.c #define DPRINTFN(n, x) do { if (iwi_debug >= (n)) printf x; } while (0) x 148 dev/pci/if_iwi.c #define DPRINTF(x) x 149 dev/pci/if_iwi.c #define DPRINTFN(n, x) x 39 dev/pci/if_ixgb_osdep.h #define ASSERT(x) if(!(x)) panic("IXGB: x") x 42 dev/pci/if_ixgb_osdep.h #define usec_delay(x) DELAY(x) x 43 dev/pci/if_ixgb_osdep.h #define msec_delay(x) DELAY(1000*(x)) x 162 dev/pci/if_lge.c #define DPRINTF(x) if (lgedebug) printf x x 163 dev/pci/if_lge.c #define DPRINTFN(n,x) if (lgedebug >= (n)) printf x x 166 dev/pci/if_lge.c #define DPRINTF(x) x 167 dev/pci/if_lge.c #define DPRINTFN(n,x) x 174 dev/pci/if_lge.c #define LGE_SETBIT(sc, reg, x) \ x 178 dev/pci/if_lge.c #define LGE_CLRBIT(sc, reg, x) \ x 182 dev/pci/if_lge.c #define SIO_SET(x) \ x 185 dev/pci/if_lge.c #define SIO_CLR(x) \ x 239 dev/pci/if_lgereg.h #define LGE_RX_DMACNT(x) ((x & LGE_ISR_RXDMADONE_CNT) >> 24) x 449 dev/pci/if_lgereg.h #define LGE_INC(x, y) (x) = (x + 1) % y x 452 dev/pci/if_lgereg.h #define LGE_FRAGCNT(x) (x<<16) x 453 dev/pci/if_lgereg.h #define LGE_RXBYTES(x) (x->lge_ctl & 0xFFFF) x 454 dev/pci/if_lgereg.h #define LGE_RXTAIL(x) \ x 729 dev/pci/if_lmc_media.c u_int32_t x, u_int32_t r) x 57 dev/pci/if_lmc_types.h #define LMC_CTL_FLGS(x) (((x)>>22)&0x3ff) x 58 dev/pci/if_lmc_types.h #define LMC_CTL_LEN2(x) (((x)>>11)&0x7ff) x 59 dev/pci/if_lmc_types.h #define LMC_CTL_LEN1(x) ((x)&0x7ff) x 103 dev/pci/if_lmcvar.h #define DP(x) printf x x 105 dev/pci/if_lmcvar.h #define DP(x) x 173 dev/pci/if_msk.c #define DPRINTF(x) if (mskdebug) printf x x 174 dev/pci/if_msk.c #define DPRINTFN(n,x) if (mskdebug >= (n)) printf x x 181 dev/pci/if_msk.c #define DPRINTF(x) x 182 dev/pci/if_msk.c #define DPRINTFN(n,x) x 239 dev/pci/if_msk.c sk_win_write_4(struct sk_softc *sc, u_int32_t reg, u_int32_t x) x 245 dev/pci/if_msk.c sk_win_write_2(struct sk_softc *sc, u_int32_t reg, u_int16_t x) x 251 dev/pci/if_msk.c sk_win_write_1(struct sk_softc *sc, u_int32_t reg, u_int8_t x) x 146 dev/pci/if_mskvar.h #define MSK_CDOFF(x) offsetof(struct msk_ring_data, x) x 147 dev/pci/if_mskvar.h #define MSK_CDTXOFF(x) MSK_CDOFF(sk_tx_ring[(x)]) x 148 dev/pci/if_mskvar.h #define MSK_CDRXOFF(x) MSK_CDOFF(sk_rx_ring[(x)]) x 149 dev/pci/if_mskvar.h #define MSK_CDSTOFF(x) ((x) * sizeof(struct msk_status_desc)) x 151 dev/pci/if_mskvar.h #define MSK_CDTXSYNC(sc, x, n, ops) \ x 173 dev/pci/if_mskvar.h #define MSK_CDRXSYNC(sc, x, ops) \ x 179 dev/pci/if_mskvar.h #define MSK_CDSTSYNC(sc, x, ops) \ x 185 dev/pci/if_mskvar.h #define SK_INC(x, y) (x) = (x + 1) % y x 119 dev/pci/if_nfe.c #define DPRINTF(x) do { if (nfedebug) printf x; } while (0) x 120 dev/pci/if_nfe.c #define DPRINTFN(n,x) do { if (nfedebug >= (n)) printf x; } while (0) x 122 dev/pci/if_nfe.c #define DPRINTF(x) x 123 dev/pci/if_nfe.c #define DPRINTFN(n,x) x 192 dev/pci/if_nge.c #define DPRINTF(x) if (ngedebug) printf x x 193 dev/pci/if_nge.c #define DPRINTFN(n,x) if (ngedebug >= (n)) printf x x 196 dev/pci/if_nge.c #define DPRINTF(x) x 197 dev/pci/if_nge.c #define DPRINTFN(n,x) x 200 dev/pci/if_nge.c #define NGE_SETBIT(sc, reg, x) \ x 204 dev/pci/if_nge.c #define NGE_CLRBIT(sc, reg, x) \ x 208 dev/pci/if_nge.c #define SIO_SET(x) \ x 211 dev/pci/if_nge.c #define SIO_CLR(x) \ x 254 dev/pci/if_ngereg.h #define NGE_TXCFG_DRAIN(x) (((x) >> 5) & NGE_TXCFG_DRAIN_THRESH) x 255 dev/pci/if_ngereg.h #define NGE_TXCFG_FILL(x) ((((x) >> 5) << 8) & NGE_TXCFG_FILL_THRESH) x 297 dev/pci/if_ngereg.h #define NGE_RXCFG_DRAIN(x) ((((x) >> 3) << 1) & NGE_RXCFG_DRAIN_THRESH) x 529 dev/pci/if_ngereg.h #define NGE_LASTDESC(x) (!((x)->nge_ctl & NGE_CMDSTS_MORE))) x 530 dev/pci/if_ngereg.h #define NGE_OWNDESC(x) ((x)->nge_ctl & NGE_CMDSTS_OWN) x 531 dev/pci/if_ngereg.h #define NGE_INC(x, y) (x) = (x + 1) % y x 532 dev/pci/if_ngereg.h #define NGE_RXBYTES(x) ((x)->nge_ctl & NGE_CMDSTS_BUFLEN) x 171 dev/pci/if_pcn.c #define PCN_NEXTTX(x) (((x) + 1) & PCN_NTXDESC_MASK) x 172 dev/pci/if_pcn.c #define PCN_NEXTTXS(x) (((x) + 1) & PCN_TXQUEUELEN_MASK) x 183 dev/pci/if_pcn.c #define PCN_NEXTRX(x) (((x) + 1) & PCN_NRXDESC_MASK) x 201 dev/pci/if_pcn.c #define PCN_CDOFF(x) offsetof(struct pcn_control_data, x) x 202 dev/pci/if_pcn.c #define PCN_CDTXOFF(x) PCN_CDOFF(pcd_txdescs[(x)]) x 203 dev/pci/if_pcn.c #define PCN_CDRXOFF(x) PCN_CDOFF(pcd_rxdescs[(x)]) x 343 dev/pci/if_pcn.c #define PCN_CDTXADDR(sc, x) ((sc)->sc_cddma + PCN_CDTXOFF((x))) x 344 dev/pci/if_pcn.c #define PCN_CDRXADDR(sc, x) ((sc)->sc_cddma + PCN_CDRXOFF((x))) x 347 dev/pci/if_pcn.c #define PCN_CDTXSYNC(sc, x, n, ops) \ x 368 dev/pci/if_pcn.c #define PCN_CDRXSYNC(sc, x, ops) \ x 376 dev/pci/if_pcn.c #define PCN_INIT_RXDESC(sc, x) \ x 1436 dev/pci/if_pcn.c #define PRINTIT(x, str) \ x 41 dev/pci/if_san_common.h #define ADDR_MASK(x,y) (((caddr_t)(x) - (caddr_t)0) & (y)) x 84 dev/pci/if_san_xilinx.c #define PORT(x) (x == 0 ? "PRIMARY" : "SECONDARY" ) x 160 dev/pci/if_sis.c #define SIS_SETBIT(sc, reg, x) \ x 164 dev/pci/if_sis.c #define SIS_CLRBIT(sc, reg, x) \ x 168 dev/pci/if_sis.c #define SIO_SET(x) \ x 171 dev/pci/if_sis.c #define SIO_CLR(x) \ x 243 dev/pci/if_sisreg.h #define SIS_TXCFG_DRAIN(x) (((x) >> 5) & SIS_TXCFG_DRAIN_THRESH) x 244 dev/pci/if_sisreg.h #define SIS_TXCFG_FILL(x) ((((x) >> 5) << 8) & SIS_TXCFG_FILL_THRESH) x 270 dev/pci/if_sisreg.h #define SIS_RXCFG_DRAIN(x) ((((x) >> 3) << 1) & SIS_RXCFG_DRAIN_THRESH) x 343 dev/pci/if_sisreg.h #define SIS_LASTDESC(x) (!((x)->sis_ctl & SIS_CMDSTS_MORE))) x 344 dev/pci/if_sisreg.h #define SIS_OWNDESC(x) ((x)->sis_ctl & SIS_CMDSTS_OWN) x 345 dev/pci/if_sisreg.h #define SIS_INC(x, y) (x) = ((x) == ((y)-1)) ? 0 : (x)+1 x 346 dev/pci/if_sisreg.h #define SIS_RXBYTES(x) (((x)->sis_ctl & SIS_CMDSTS_BUFLEN) - ETHER_CRC_LEN) x 183 dev/pci/if_sk.c #define DPRINTF(x) if (skdebug) printf x x 184 dev/pci/if_sk.c #define DPRINTFN(n,x) if (skdebug >= (n)) printf x x 191 dev/pci/if_sk.c #define DPRINTF(x) x 192 dev/pci/if_sk.c #define DPRINTFN(n,x) x 230 dev/pci/if_sk.c sk_win_write_4(struct sk_softc *sc, u_int32_t reg, u_int32_t x) x 236 dev/pci/if_sk.c sk_win_write_2(struct sk_softc *sc, u_int32_t reg, u_int16_t x) x 242 dev/pci/if_sk.c sk_win_write_1(struct sk_softc *sc, u_int32_t reg, u_int8_t x) x 386 dev/pci/if_skreg.h #define SK_IM_USECS(x) ((x) * imtimer_ticks) x 1385 dev/pci/if_skreg.h #define SK_XM_SETBIT_4(sc, reg, x) \ x 1388 dev/pci/if_skreg.h #define SK_XM_CLRBIT_4(sc, reg, x) \ x 1391 dev/pci/if_skreg.h #define SK_XM_SETBIT_2(sc, reg, x) \ x 1394 dev/pci/if_skreg.h #define SK_XM_CLRBIT_2(sc, reg, x) \ x 1414 dev/pci/if_skreg.h #define SK_YU_SETBIT_4(sc, reg, x) \ x 1417 dev/pci/if_skreg.h #define SK_YU_CLRBIT_4(sc, reg, x) \ x 1420 dev/pci/if_skreg.h #define SK_YU_SETBIT_2(sc, reg, x) \ x 1423 dev/pci/if_skreg.h #define SK_YU_CLRBIT_2(sc, reg, x) \ x 1492 dev/pci/if_skreg.h #define SK_ADDR_LO(x) ((u_int64_t) (x) & 0xffffffff) x 1493 dev/pci/if_skreg.h #define SK_ADDR_HI(x) ((u_int64_t) (x) >> 32) x 1556 dev/pci/if_skreg.h #define SK_RXBYTES(x) ((x) & 0x0000FFFF); x 1688 dev/pci/if_skreg.h #define YU_TPR_JAM_LEN(x) (((x) & 0x3) << 14) x 1689 dev/pci/if_skreg.h #define YU_TPR_JAM_IPG(x) (((x) & 0x1f) << 9) x 1690 dev/pci/if_skreg.h #define YU_TPR_JAM2DATA_IPG(x) (((x) & 0x1f) << 4) x 1695 dev/pci/if_skreg.h #define YU_SMR_DATA_BLIND(x) (((x) & 0x1f) << 11) x 1699 dev/pci/if_skreg.h #define YU_SMR_IPG_DATA(x) ((x) & 0x1f) x 1768 dev/pci/if_skreg.h #define YU_SMICR_PHYAD(x) (((x) & 0x1f) << 11) x 1769 dev/pci/if_skreg.h #define YU_SMICR_REGAD(x) (((x) & 0x1f) << 6) x 1801 dev/pci/if_skreg.h #define YU_RXSTAT_BYTES(x) ((x) >> YU_RXSTAT_LENSHIFT) x 1814 dev/pci/if_skreg.h #define XM_XMAC_REV(x) (((x) & 0x000000E0) >> 5) x 2090 dev/pci/if_skreg.h #define XM_RXSTAT_BYTES(x) ((x) >> XM_RXSTAT_LENSHIFT) x 147 dev/pci/if_skvar.h #define SK_CDOFF(x) offsetof(struct sk_ring_data, x) x 148 dev/pci/if_skvar.h #define SK_CDTXOFF(x) SK_CDOFF(sk_tx_ring[(x)]) x 149 dev/pci/if_skvar.h #define SK_CDRXOFF(x) SK_CDOFF(sk_rx_ring[(x)]) x 151 dev/pci/if_skvar.h #define SK_CDTXSYNC(sc, x, n, ops) \ x 173 dev/pci/if_skvar.h #define SK_CDRXSYNC(sc, x, ops) \ x 184 dev/pci/if_skvar.h #define SK_INC(x, y) (x) = (x + 1) % y x 123 dev/pci/if_ste.c #define STE_SETBIT4(sc, reg, x) \ x 126 dev/pci/if_ste.c #define STE_CLRBIT4(sc, reg, x) \ x 129 dev/pci/if_ste.c #define STE_SETBIT2(sc, reg, x) \ x 132 dev/pci/if_ste.c #define STE_CLRBIT2(sc, reg, x) \ x 135 dev/pci/if_ste.c #define STE_SETBIT1(sc, reg, x) \ x 138 dev/pci/if_ste.c #define STE_CLRBIT1(sc, reg, x) \ x 142 dev/pci/if_ste.c #define MII_SET(x) STE_SETBIT1(sc, STE_PHYCTL, x) x 143 dev/pci/if_ste.c #define MII_CLR(x) STE_CLRBIT1(sc, STE_PHYCTL, x) x 469 dev/pci/if_stereg.h #define STE_INC(x, y) (x) = (x + 1) % y x 470 dev/pci/if_stereg.h #define STE_NEXT(x, y) (x + 1) % y x 75 dev/pci/if_stgereg.h #define FRAG_ADDR(x) (((uint64_t)(x)) << 0) x 77 dev/pci/if_stgereg.h #define FRAG_LEN(x) (((uint64_t)(x)) << 48) x 92 dev/pci/if_stgereg.h #define TFD_FrameId(x) ((x) << 0) x 94 dev/pci/if_stgereg.h #define TFD_WordAlign(x) ((x) << 16) x 104 dev/pci/if_stgereg.h #define TFD_FragCount(x) ((x) << 24) x 107 dev/pci/if_stgereg.h #define TFD_VID(x) (((uint64_t)(x)) << 32) x 109 dev/pci/if_stgereg.h #define TFD_UserPriority(x) (((uint64_t)(x)) << 45) x 121 dev/pci/if_stgereg.h #define RFD_RxDMAFrameLen(x) ((x) & 0xffff) x 138 dev/pci/if_stgereg.h #define RFD_TCI(x) ((((uint64_t)(x)) >> 32) & 0xffff) x 171 dev/pci/if_stgereg.h #define DMAC_TxBurstLimit(x) ((x) << 20) x 198 dev/pci/if_stgereg.h #define RDIC_RxFrameCount(x) ((x) & 0xff) x 199 dev/pci/if_stgereg.h #define RDIC_PriorityThresh(x) ((x) << 10) x 200 dev/pci/if_stgereg.h #define RDIC_RxDMAWaitTime(x) ((x) << 16) x 215 dev/pci/if_stgereg.h #define AC_ForcedConfig(x) ((x) << 8) x 249 dev/pci/if_stgereg.h #define EC_EepromAddress(x) ((x) & 0xff) x 250 dev/pci/if_stgereg.h #define EC_EepromOpcode(x) ((x) << 8) x 264 dev/pci/if_stgereg.h #define CD_Count(x) ((x) & 0xffff) x 296 dev/pci/if_stgereg.h #define TS_TxFrameId_get(x) ((x) >> 16) x 299 dev/pci/if_stgereg.h #define MC_IFSSelect(x) ((x) & 3) x 331 dev/pci/if_stgereg.h #define PC_LinkSpeed(x) (((x) >> 6) & 3) x 482 dev/pci/if_stgereg.h #define STGE_NEXTTX(x) (((x) + 1) & STGE_NTXDESC_MASK) x 489 dev/pci/if_stgereg.h #define STGE_NEXTRX(x) (((x) + 1) & STGE_NRXDESC_MASK) x 518 dev/pci/if_stgereg.h #define STGE_CDOFF(x) offsetof(struct stge_control_data, x) x 519 dev/pci/if_stgereg.h #define STGE_CDTXOFF(x) STGE_CDOFF(scd_txdescs[(x)]) x 520 dev/pci/if_stgereg.h #define STGE_CDRXOFF(x) STGE_CDOFF(scd_rxdescs[(x)]) x 598 dev/pci/if_stgereg.h #define STGE_CDTXADDR(sc, x) ((sc)->sc_cddma + STGE_CDTXOFF((x))) x 599 dev/pci/if_stgereg.h #define STGE_CDRXADDR(sc, x) ((sc)->sc_cddma + STGE_CDRXOFF((x))) x 601 dev/pci/if_stgereg.h #define STGE_CDTXSYNC(sc, x, ops) \ x 605 dev/pci/if_stgereg.h #define STGE_CDRXSYNC(sc, x, ops) \ x 609 dev/pci/if_stgereg.h #define STGE_INIT_RXDESC(sc, x) \ x 287 dev/pci/if_tireg.h #define TI_GCR_NIC_ADDR(x) (x - TI_GCR_BASE) x 407 dev/pci/if_tireg.h #define TI_HOSTADDR(x) x.ti_addr_lo x 906 dev/pci/if_tireg.h #define TI_DO_CMD(x, y, z) \ x 910 dev/pci/if_tireg.h #define TI_DO_CMD_EXT(x, y, z, v, w) \ x 917 dev/pci/if_tireg.h #define TI_INC(x, y) (x) = (x + 1) % y x 919 dev/pci/if_tireg.h #define TI_UPDATE_JUMBOPROD(x, y) \ x 926 dev/pci/if_tireg.h #define TI_UPDATE_MINIPROD(x, y) \ x 929 dev/pci/if_tireg.h #define TI_UPDATE_STDPROD(x, y) \ x 981 dev/pci/if_tireg.h #define TI_SETBIT(sc, reg, x) \ x 983 dev/pci/if_tireg.h #define TI_CLRBIT(sc, reg, x) \ x 442 dev/pci/if_tlreg.h #define tl_tx_goodframes(x) (x.tl_txstat & TL_FRAME_MASK) x 443 dev/pci/if_tlreg.h #define tl_tx_underrun(x) ((x.tl_txstat & ~TL_FRAME_MASK) >> 24) x 444 dev/pci/if_tlreg.h #define tl_rx_goodframes(x) (x.tl_rxstat & TL_FRAME_MASK) x 445 dev/pci/if_tlreg.h #define tl_rx_overrun(x) ((x.tl_rxstat & ~TL_FRAME_MASK) >> 24) x 515 dev/pci/if_tlreg.h #define CMD_PUT(sc, x) CSR_WRITE_4(sc, TL_HOSTCMD, x) x 516 dev/pci/if_tlreg.h #define CMD_SET(sc, x) \ x 518 dev/pci/if_tlreg.h #define CMD_CLR(sc, x) \ x 178 dev/pci/if_vge.c #define DPRINTF(x) if (vge_debug) printf x x 179 dev/pci/if_vge.c #define DPRINTFN(n, x) if (vge_debug >= (n)) printf x x 44 dev/pci/if_vgevar.h #define VGE_TX_DESC_INC(x) (x = (x + 1) % VGE_TX_DESC_CNT) x 45 dev/pci/if_vgevar.h #define VGE_RX_DESC_INC(x) (x = (x + 1) % VGE_RX_DESC_CNT) x 49 dev/pci/if_vgevar.h #define VGE_OWN(x) (letoh32((x)->vge_sts) & VGE_RDSTS_OWN) x 50 dev/pci/if_vgevar.h #define VGE_RXBYTES(x) ((letoh32((x)->vge_sts) & \ x 112 dev/pci/if_vgevar.h #define CSR_SETBIT_1(sc, reg, x) \ x 114 dev/pci/if_vgevar.h #define CSR_SETBIT_2(sc, reg, x) \ x 116 dev/pci/if_vgevar.h #define CSR_SETBIT_4(sc, reg, x) \ x 119 dev/pci/if_vgevar.h #define CSR_CLRBIT_1(sc, reg, x) \ x 121 dev/pci/if_vgevar.h #define CSR_CLRBIT_2(sc, reg, x) \ x 123 dev/pci/if_vgevar.h #define CSR_CLRBIT_4(sc, reg, x) \ x 154 dev/pci/if_vr.c #define VR_SETBIT(sc, reg, x) \ x 158 dev/pci/if_vr.c #define VR_CLRBIT(sc, reg, x) \ x 162 dev/pci/if_vr.c #define VR_SETBIT16(sc, reg, x) \ x 166 dev/pci/if_vr.c #define VR_CLRBIT16(sc, reg, x) \ x 170 dev/pci/if_vr.c #define VR_SETBIT32(sc, reg, x) \ x 174 dev/pci/if_vr.c #define VR_CLRBIT32(sc, reg, x) \ x 178 dev/pci/if_vr.c #define SIO_SET(x) \ x 182 dev/pci/if_vr.c #define SIO_CLR(x) \ x 362 dev/pci/if_vrreg.h #define VR_RXBYTES(x) ((x & VR_RXSTAT_RXLEN) >> 16) x 398 dev/pci/if_vrreg.h #define VR_TXOWN(x) x->vr_ptr->vr_status x 178 dev/pci/if_wb.c #define WB_SETBIT(sc, reg, x) \ x 182 dev/pci/if_wb.c #define WB_CLRBIT(sc, reg, x) \ x 186 dev/pci/if_wb.c #define SIO_SET(x) \ x 190 dev/pci/if_wb.c #define SIO_CLR(x) \ x 165 dev/pci/if_wbreg.h #define WB_TXTHRESH(x) ((x >> 5) << 14) x 243 dev/pci/if_wbreg.h #define WB_RXBYTES(x) ((x & WB_RXSTAT_RXLEN) >> 16) x 294 dev/pci/if_wbreg.h #define WB_TXNEXT(x) x->wb_ptr->wb_frag[x->wb_lastdesc].wb_next x 295 dev/pci/if_wbreg.h #define WB_TXSTATUS(x) x->wb_ptr->wb_frag[x->wb_lastdesc].wb_status x 296 dev/pci/if_wbreg.h #define WB_TXCTL(x) x->wb_ptr->wb_frag[x->wb_lastdesc].wb_ctl x 297 dev/pci/if_wbreg.h #define WB_TXDATA(x) x->wb_ptr->wb_frag[x->wb_lastdesc].wb_data x 299 dev/pci/if_wbreg.h #define WB_TXOWN(x) x->wb_ptr->wb_frag[0].wb_status x 148 dev/pci/if_wpi.c #define DPRINTF(x) do { if (wpi_debug > 0) printf x; } while (0) x 149 dev/pci/if_wpi.c #define DPRINTFN(n, x) do { if (wpi_debug >= (n)) printf x; } while (0) x 152 dev/pci/if_wpi.c #define DPRINTF(x) x 153 dev/pci/if_wpi.c #define DPRINTFN(n, x) x 2208 dev/pci/if_wpi.c #define interpolate(x, x1, y1, x2, y2, n) \ x 179 dev/pci/if_wpireg.h #define WPI_PAD32(x) ((((x) + 3) & ~3) - (x)) x 118 dev/pci/if_xge.c #define XCONCAT3(x,y,z) x ## y ## z x 119 dev/pci/if_xge.c #define CONCAT3(x,y,z) XCONCAT3(x,y,z) x 128 dev/pci/if_xge.c #define NEXTTX(x) (((x)+1) % NTXDESCS) x 212 dev/pci/if_xge.c #define DPRINTF(x) do { if (xgedebug) printf x ; } while (0) x 213 dev/pci/if_xge.c #define DPRINTFN(n,x) do { if (xgedebug >= (n)) printf x ; } while (0) x 216 dev/pci/if_xge.c #define DPRINTF(x) x 217 dev/pci/if_xge.c #define DPRINTFN(n,x) x 47 dev/pci/if_xgereg.h #define DCSRB(x) (0x0000+(x)) /* 10GbE Device Control and Status Registers */ x 48 dev/pci/if_xgereg.h #define PCIXB(x) (0x0800+(x)) /* PCI-X Interface Functional Registers */ x 49 dev/pci/if_xgereg.h #define TDMAB(x) (0x1000+(x)) /* Transmit DMA Functional Registers */ x 50 dev/pci/if_xgereg.h #define RDMAB(x) (0x1800+(x)) /* Receive DMA Functional Registers */ x 51 dev/pci/if_xgereg.h #define MACRB(x) (0x2000+(x)) /* MAC functional registers */ x 52 dev/pci/if_xgereg.h #define RLDRB(x) (0x2800+(x)) /* RLDRAM memory controller */ x 53 dev/pci/if_xgereg.h #define XGXSB(x) (0x3000+(x)) /* XGXS functional Registers */ x 61 dev/pci/if_xgereg.h #define XGXS_RESET(x) ((uint64_t)(x) << 32) x 166 dev/pci/if_xgereg.h #define TX_FIFO_NUM0(x) ((uint64_t)(x) << 56) x 167 dev/pci/if_xgereg.h #define TX_FIFO_LEN0(x) ((uint64_t)((x)-1) << 32) x 168 dev/pci/if_xgereg.h #define TX_FIFO_NUM1(x) ((uint64_t)(x) << 24) x 169 dev/pci/if_xgereg.h #define TX_FIFO_LEN1(x) ((uint64_t)((x)-1) << 0) x 176 dev/pci/if_xgereg.h #define TX_TIMER_VAL(x) ((uint64_t)(x) << 32) x 179 dev/pci/if_xgereg.h #define TX_URNG_A(x) ((uint64_t)(x) << 16) x 180 dev/pci/if_xgereg.h #define TX_URNG_B(x) ((uint64_t)(x) << 8) x 181 dev/pci/if_xgereg.h #define TX_URNG_C(x) ((uint64_t)(x) << 0) x 183 dev/pci/if_xgereg.h #define TX_UFC_A(x) ((uint64_t)(x) << 48) x 184 dev/pci/if_xgereg.h #define TX_UFC_B(x) ((uint64_t)(x) << 32) x 185 dev/pci/if_xgereg.h #define TX_UFC_C(x) ((uint64_t)(x) << 16) x 186 dev/pci/if_xgereg.h #define TX_UFC_D(x) ((uint64_t)(x) << 0) x 211 dev/pci/if_xgereg.h #define TXDLOFF1(x) (16*(x)) /* byte offset in txdl for list */ x 212 dev/pci/if_xgereg.h #define TXDLOFF2(x) (16*(x)+8) /* byte offset in txdl for list */ x 213 dev/pci/if_xgereg.h #define TXDL_NUMTXD(x) ((uint64_t)(x) << 56) /* # of TxD's in the list */ x 231 dev/pci/if_xgereg.h #define TXD_CTL1_MSS(x) ((uint64_t)(x) << 16) x 239 dev/pci/if_xgereg.h #define TXD_CTL2_VLANT(x) ((uint64_t)(x) << 32) x 271 dev/pci/if_xgereg.h #define RX_TIMER_VAL(x) ((uint64_t)(x) << 32) x 273 dev/pci/if_xgereg.h #define RX_URNG_A(x) ((uint64_t)(x) << 16) x 274 dev/pci/if_xgereg.h #define RX_URNG_B(x) ((uint64_t)(x) << 8) x 275 dev/pci/if_xgereg.h #define RX_URNG_C(x) ((uint64_t)(x) << 0) x 277 dev/pci/if_xgereg.h #define RX_UFC_A(x) ((uint64_t)(x) << 48) x 278 dev/pci/if_xgereg.h #define RX_UFC_B(x) ((uint64_t)(x) << 32) x 279 dev/pci/if_xgereg.h #define RX_UFC_C(x) ((uint64_t)(x) << 16) x 280 dev/pci/if_xgereg.h #define RX_UFC_D(x) ((uint64_t)(x) << 0) x 346 dev/pci/if_xgereg.h #define RXD_CTL2_BUF0SIZ(x) (((x) >> 48) & 0xffff) x 347 dev/pci/if_xgereg.h #define RXD_CTL2_BUF1SIZ(x) (((x) >> 32) & 0xffff) x 348 dev/pci/if_xgereg.h #define RXD_CTL2_BUF2SIZ(x) (((x) >> 16) & 0xffff) x 349 dev/pci/if_xgereg.h #define RXD_CTL3_BUF3SIZ(x) (((x) >> 16) & 0xffff) x 350 dev/pci/if_xgereg.h #define RXD_CTL3_BUF4SIZ(x) ((x) & 0xffff) x 352 dev/pci/if_xgereg.h #define RXD_CTL1_XCODE(x) (((x) >> 48) & 0xf) /* Status bits */ x 363 dev/pci/if_xgereg.h #define RXD_CTL1_PROTOS(x) (((x) >> 32) & 0xff) x 375 dev/pci/if_xgereg.h #define RXD_CTL1_L3CSUM(x) (((x) >> 16) & 0xffff) x 376 dev/pci/if_xgereg.h #define RXD_CTL1_L4CSUM(x) ((x) & 0xffff) x 377 dev/pci/if_xgereg.h #define RXD_CTL2_VLANTAG(x) ((x) & 0xffff) x 404 dev/pci/if_xgereg.h #define RMAC_PYLD_LEN(x) ((uint64_t)(x) << 48) x 410 dev/pci/if_xgereg.h #define RMAC_ADDR_CMD_MEM_OFF(x) ((uint64_t)(x) << 32) x 108 dev/pci/ips.c #define IPS_REG_STAT_ID(x) (((x) >> 8) & 0xff) x 109 dev/pci/ips.c #define IPS_REG_STAT_BASIC(x) (((x) >> 16) & 0xff) x 110 dev/pci/ips.c #define IPS_REG_STAT_GSC(x) (((x) >> 16) & 0x0f) x 111 dev/pci/ips.c #define IPS_REG_STAT_EXT(x) (((x) >> 24) & 0xff) x 93 dev/pci/ises.c #define SWAP32(x) ((x) = swap32((x))) x 96 dev/pci/ises.c # define DPRINTF(x) printf x x 98 dev/pci/ises.c # define DPRINTF(x) x 38 dev/pci/isesreg.h #define ISES_DMA_RCOUNT(x) ((x) << 16) x 40 dev/pci/isesreg.h #define ISES_DMA_WCOUNT(x) ((x) & 0x00FF) x 64 dev/pci/isesreg.h #define ISES_A(x) (ISES_A_OFFSET + (x)) x 83 dev/pci/isesreg.h #define ISES_B(x) (ISES_B_OFFSET + (x)) x 100 dev/pci/isesreg.h #define ISES_BO(x) (ISES_BO_OFFSET + (x)) x 147 dev/pci/isesreg.h #define ISES_STAT_IDP_STATE(x) (((x) & ISES_STAT_IDP_MASK) >> 24) x 165 dev/pci/isesreg.h #define ISES_STAT_SW_MODE(x) (((x) & ISES_STAT_SW_MASK) >> 24) x 732 dev/pci/isp_pci.c #define IspVirt2Off(a, x) \ x 383 dev/pci/maestro.c #define DPRINTF(x) if (maestrodebug) printf x x 384 dev/pci/maestro.c #define DLPRINTF(i, x) if (maestrodebug & i) printf x x 392 dev/pci/maestro.c #define DPRINTF(x) x 393 dev/pci/maestro.c #define DLPRINTF(i, x) x 79 dev/pci/musycc.c #define musycc_dump_group(n, x) x 80 dev/pci/musycc.c #define musycc_dump_desc(n, x) x 81 dev/pci/musycc.c #define musycc_dump_dma(n, x, y) x 1474 dev/pci/musycc.c #define MUSYCC_SREQINC(x, y) \ x 1843 dev/pci/musycc.c #define READ4(x) \ x 25 dev/pci/musyccreg.h #define MUSYCC_GROUPBASE(x) (0x0800 * (x)) x 29 dev/pci/musyccreg.h #define MUSYCC_SERREQ(x) (0x0008 + 0x0800 * (x)) x 34 dev/pci/musyccreg.h #define MUSYCC_NEXTINT_GET(x) (((x) >> 16) & 0x7fff) x 35 dev/pci/musyccreg.h #define MUSYCC_NEXTINT_SET(x) (((x) & 0x7fff) << 16) x 68 dev/pci/musyccreg.h #define MUSYCC_CONF_ELAPSE_GET(x) \ x 70 dev/pci/musyccreg.h #define MUSYCC_CONF_ELAPSE_SET(x) \ x 72 dev/pci/musyccreg.h #define MUSYCC_CONF_ALAPSE_GET(x) \ x 74 dev/pci/musyccreg.h #define MUSYCC_CONF_ALAPSE_SET(x) \ x 78 dev/pci/musyccreg.h #define MUSYCC_CONF_BLAPSE_GET(x) \ x 80 dev/pci/musyccreg.h #define MUSYCC_CONF_BLAPSE_SET(x) \ x 87 dev/pci/musyccreg.h #define MUSYCC_INTD_GRP(x) \ x 89 dev/pci/musyccreg.h #define MUSYCC_INTD_CHAN(x) \ x 91 dev/pci/musyccreg.h #define MUSYCC_INTD_EVENT(x) \ x 93 dev/pci/musyccreg.h #define MUSYCC_INTD_ERROR(x) \ x 126 dev/pci/musyccreg.h #define MUSYCC_SREQ_CHSET(x) \ x 129 dev/pci/musyccreg.h #define MUSYCC_SREQ_SET(x) \ x 178 dev/pci/musyccreg.h #define MUSYCC_TSLOT_CHAN(x) \ x 197 dev/pci/musyccreg.h #define MUSYCC_CHAN_PROTO_GET(x) \ x 199 dev/pci/musyccreg.h #define MUSYCC_CHAN_PROTO_SET(x) \ x 206 dev/pci/musyccreg.h #define MUSYCC_CHAN_BUFLEN_GET(x) \ x 208 dev/pci/musyccreg.h #define MUSYCC_CHAN_BUFLEN_SET(x) \ x 210 dev/pci/musyccreg.h #define MUSYCC_CHAN_BUFIDX_GET(x) \ x 212 dev/pci/musyccreg.h #define MUSYCC_CHAN_BUFIDX_SET(x) \ x 217 dev/pci/musyccreg.h #define MUSYCC_STATUS_LEN(x) \ x 220 dev/pci/musyccvar.h #define ACCOOM_PRINTF(n, x) x 224 dev/pci/musyccvar.h #define ACCOOM_PRINTF(n, x) \ x 117 dev/pci/noct.c #define SWAP32(x) (x) = htole32(ntohl((x))) x 41 dev/pci/nviic.c #define NVI_SMBASE(x) ((x) & 0xfffc) x 71 dev/pci/nviic.c #define DPRINTF(x...) do { if (nviic_debug) printf(x); } while (0) x 74 dev/pci/nviic.c #define DPRINTF(x...) /* x */ x 84 dev/pci/pccbb.c #define DPRINTF(x) printf x x 86 dev/pci/pccbb.c #define DPRINTF(x) x 61 dev/pci/pccbbreg.h #define PCI_CB_LATENCY(x)( \ x 490 dev/pci/pci.c #define PCIDEBUG(x) printf x x 492 dev/pci/pci.c #define PCIDEBUG(x) x 54 dev/pci/pciide_acard_reg.h #define ATP850_UDMA_MODE(channel, drive, x) \ x 56 dev/pci/pciide_acard_reg.h #define ATP860_UDMA_MODE(channel, drive, x) \ x 68 dev/pci/pciide_amd_reg.h #define AMD756_DATATIM_RECOV(channel, drive, x) (((x) & 0xf) << \ x 70 dev/pci/pciide_amd_reg.h #define AMD756_DATATIM_PULSE(channel, drive, x) (((x) & 0xf) << \ x 79 dev/pci/pciide_amd_reg.h #define AMD756_UDMA_TIME(channel, drive, x) (((x) & 0x7) << \ x 64 dev/pci/pciide_apollo_reg.h #define APO_IDECONF_FIFO_TRSH(channel, x) \ x 82 dev/pci/pciide_apollo_reg.h #define APO_DATATIM_RECOV(channel, drive, x) (((x) & 0xf) << \ x 84 dev/pci/pciide_apollo_reg.h #define APO_DATATIM_PULSE(channel, drive, x) (((x) & 0xf) << \ x 93 dev/pci/pciide_apollo_reg.h #define APO_UDMA_TIME(channel, drive, x) (((x) & 0xf) << \ x 67 dev/pci/pciide_i31244_reg.h #define SUPDIPR_PORTSHIFT(x) ((x) * 8) x 83 dev/pci/pciide_i31244_reg.h #define ARTISEA_DPA_PORT_BASE(x) (((x) + 1) * 0x200) x 40 dev/pci/pciide_nforce_reg.h #define NFORCE_PIODMATIM_SET(chan, drive, x) \ x 50 dev/pci/pciide_nforce_reg.h #define NFORCE_UDMATIM_SET(chan, drive, x) \ x 60 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_TIM_SET_PA(r, x) (((r) & 0xfffffff0) | ((x) & 0xf)) x 61 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_TIM_SET_PB(r, x) (((r) & 0xffffe0ff) | (((x) & 0x1f) << 8)) x 62 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_TIM_SET_MB(r, x) (((r) & 0xffff1fff) | (((x) & 0x7) << 13)) x 63 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_TIM_SET_MC(r, x) (((r) & 0xfff0ffff) | (((x) & 0xf) << 16)) x 84 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_SCR_SET_GEN(r,x) (((r) & 0xffffff00) | ((x) & 0xff)) x 89 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_SCR_SET_I2C(r,x) (((r) & 0xfff0ffff) | (((x) & 0xf) << 16)) x 90 dev/pci/pciide_pdc202xx_reg.h #define PDC2xx_SCR_SET_POLL(r,x) (((r) & 0xff0fffff) | (((x) & 0xf) << 20)) x 51 dev/pci/pciide_piix_reg.h #define PIIX_BMIBA_ADDR(x) (x & 0x0000FFFF0) x 52 dev/pci/pciide_piix_reg.h #define PIIX_BMIBA_RTE(x) (x & 0x000000001) x 60 dev/pci/pciide_piix_reg.h #define PIIX_IDETIM_READ(x, channel) (((x) >> (16 * (channel))) & 0x0000FFFF) x 61 dev/pci/pciide_piix_reg.h #define PIIX_IDETIM_SET(x, bytes, channel) \ x 63 dev/pci/pciide_piix_reg.h #define PIIX_IDETIM_CLEAR(x, bytes, channel) \ x 71 dev/pci/pciide_piix_reg.h #define PIIX_IDETIM_ISP_SET(x) ((x) << PIIX_IDETIM_ISP_SHIFT) x 74 dev/pci/pciide_piix_reg.h #define PIIX_IDETIM_RTC_SET(x) ((x) << PIIX_IDETIM_RTC_SHIFT) x 86 dev/pci/pciide_piix_reg.h #define PIIX_SIDETIM_ISP_SET(x, channel) \ x 90 dev/pci/pciide_piix_reg.h #define PIIX_SIDETIM_RTC_SET(x, channel) \ x 101 dev/pci/pciide_piix_reg.h #define PIIX_UDMATIM_SET(x, channel, drive) \ x 548 dev/pci/pcireg.h #define PCI_VPDRES_ISLARGE(x) ((x) & 0x80) x 550 dev/pci/pcireg.h #define PCI_VPDRES_SMALL_LENGTH(x) ((x) & 0x7) x 551 dev/pci/pcireg.h #define PCI_VPDRES_SMALL_NAME(x) (((x) >> 3) & 0xf) x 553 dev/pci/pcireg.h #define PCI_VPDRES_LARGE_NAME(x) ((x) & 0x7f) x 41 dev/pci/piixpm.c #define DPRINTF(x) printf x x 43 dev/pci/piixpm.c #define DPRINTF(x) x 58 dev/pci/piixreg.h #define PIIX_SMB_TXSLVA_ADDR(x) (((x) & 0x7f) << 1) /* 7-bit address */ x 186 dev/pci/plx9060reg.h #define PLX_EEPROM_OPC_READ(x) (0x0080 | ((x) & 0x3f)) x 187 dev/pci/plx9060reg.h #define PLX_EEPROM_OPC_WRITE(x) (0x0040 | ((x) & 0x3f)) x 66 dev/pci/safe.c #define KASSERT_X(x,y) x 67 dev/pci/sv.c #define DPRINTF(x) if (svdebug) printf x x 68 dev/pci/sv.c #define DPRINTFN(n,x) if (svdebug>(n)) printf x x 71 dev/pci/sv.c #define DPRINTF(x) x 72 dev/pci/sv.c #define DPRINTFN(n,x) x 120 dev/pci/ubsec.c #define SWAP32(x) (x) = htole32(ntohl((x))) x 121 dev/pci/ubsec.c #define HTOLE32(x) (x) = htole32(x) x 72 dev/pci/viapm.c #define VIAPM_SMB_TXSLVA_ADDR(x) (((x) & 0x7f) << 1) /* 7-bit address */ x 80 dev/pci/viapm.c #define DPRINTF(x) printf x x 82 dev/pci/viapm.c #define DPRINTF(x) x 75 dev/pci/yds.c # define DPRINTF(x) if (ydsdebug) printf x x 76 dev/pci/yds.c # define DPRINTFN(n,x) if (ydsdebug>(n)) printf x x 79 dev/pci/yds.c # define DPRINTF(x) x 80 dev/pci/yds.c # define DPRINTFN(n,x) x 104 dev/pci/yds.c #define YWRITE1(sc, r, x) bus_space_write_1((sc)->memt, (sc)->memh, (r), (x)) x 105 dev/pci/yds.c #define YWRITE2(sc, r, x) bus_space_write_2((sc)->memt, (sc)->memh, (r), (x)) x 106 dev/pci/yds.c #define YWRITE4(sc, r, x) bus_space_write_4((sc)->memt, (sc)->memh, (r), (x)) x 114 dev/pci/yds.c void YWRITE1(struct yds_softc *sc,bus_size_t r,u_int8_t x); x 115 dev/pci/yds.c void YWRITE2(struct yds_softc *sc,bus_size_t r,u_int16_t x); x 116 dev/pci/yds.c void YWRITE4(struct yds_softc *sc,bus_size_t r,u_int32_t x); x 128 dev/pci/yds.c void YWRITE1(struct yds_softc *sc,bus_size_t r,u_int8_t x) x 133 dev/pci/yds.c void YWRITE2(struct yds_softc *sc,bus_size_t r,u_int16_t x) x 138 dev/pci/yds.c void YWRITE4(struct yds_softc *sc,bus_size_t r,u_int32_t x) x 145 dev/pci/yds.c #define YWRITEREGION4(sc, r, x, c) \ x 844 dev/pcmcia/cfxga.c cfxga_expand_char(struct cfxga_screen *scr, u_int uc, int x, int y, long attr) x 973 dev/pcmcia/cfxga.c cfxga_solid_fill(struct cfxga_screen *scr, int x, int y, int cx, int cy, x 85 dev/pcmcia/gpr.c #define GPRUNIT(x) (minor(x) & 0x0f) x 89 dev/pcmcia/gpr.c #define DPRINTF(x) if (gprdebug) printf x x 91 dev/pcmcia/gpr.c #define DPRINTF(x) x 64 dev/pcmcia/if_malo.c #define DPRINTF(l, x...) do { if ((l) <= cmalo_d) printf(x); } while (0) x 66 dev/pcmcia/if_malo.c #define DPRINTF(l, x...) x 371 dev/pcmcia/if_ray.c #define RAY_DPRINTF(x) do { if (ray_debug) { \ x 379 dev/pcmcia/if_ray.c #define RAY_DPRINTF_XMIT(x) do { if (ray_debug_xmit_sum) { \ x 396 dev/pcmcia/if_ray.c #define RAY_DPRINTF(x) x 397 dev/pcmcia/if_ray.c #define RAY_DPRINTF_XMIT(x) x 109 dev/pcmcia/if_xe.c #define DPRINTF(cat, x) if (xedebug & (cat)) printf x x 112 dev/pcmcia/if_xe.c #define DPRINTF(cat, x) (void)0 x 36 dev/radio_if.h #define RADIOUNIT(x) (minor(x)) x 634 dev/raidframe/rf_dagfuncs.c #define REMAP_VA(_bp,x,y) (y) = (x) x 76 dev/raidframe/rf_general.h #define RF_ASSERT(x) {/*noop*/} x 79 dev/raidframe/rf_general.h #define RF_ASSERT(x) {/*noop*/} x 102 dev/raidframe/rf_general.h #define RF_UL(x) ((unsigned long)(x)) x 104 dev/raidframe/rf_general.h #define RF_BLIP(x) (NBPG - (RF_UL(x) & RF_PGMASK)) /* x 108 dev/raidframe/rf_general.h #define RF_PAGE_ALIGNED(x) ((RF_UL(x) & RF_PGMASK) == 0) x 113 dev/raidframe/rf_utils.c #define ISDIGIT(x) ((x) >= '0' && (x) <= '9') x 114 dev/raidframe/rf_utils.c #define ISHEXCHAR(x) (((x) >= 'a' && (x) <= 'f') || \ x 116 dev/raidframe/rf_utils.c #define ISHEX(x) (ISDIGIT(x) || ISHEXCHAR(x)) x 117 dev/raidframe/rf_utils.c #define HC2INT(x) (((x) >= 'a' && (x) <= 'f') ? \ x 76 dev/rasops/rasops.c #define _C(x) ((x) & 0xff0000) >> 16, ((x) & 0x00ff00) >> 8, ((x) & 0x0000ff) x 56 dev/rasops/rasops_masks.h #define MBL(x,y) ((y) > 31 ? 0 : (x) >> (y)) x 57 dev/rasops/rasops_masks.h #define MBR(x,y) ((y) > 31 ? 0 : (x) << (y)) x 60 dev/rasops/rasops_masks.h #define MBE(x) (x) x 62 dev/rasops/rasops_masks.h #define MBE(x) \ x 81 dev/rasops/rasops_masks.h #define GETBITS(sp, x, w, dw) do { \ x 88 dev/rasops/rasops_masks.h #define PUTBITS(sw, x, w, dp) do { \ x 65 dev/sbus/bpp.c #define DPRINTF(x) do { if (bppdebug) printf x ; } while (0) x 68 dev/sbus/bpp.c #define DPRINTF(x) x 39 dev/sbus/cgsixreg.h #define BT_D4M3(x) ((((x) >> 2) << 1) + ((x) >> 2)) /* (x / 4) * 3 */ x 40 dev/sbus/cgsixreg.h #define BT_D4M4(x) ((x) & ~3) /* (x / 4) * 4 */ x 83 dev/sbus/cgthree.c #define BT_D4M3(x) ((((x) >> 2) << 1) + ((x) >> 2)) /* (x / 4) * 3 */ x 84 dev/sbus/cgthree.c #define BT_D4M4(x) ((x) & ~3) /* (x / 4) * 4 */ x 98 dev/sbus/cs4231.c #define DPRINTF(x) printf x x 100 dev/sbus/cs4231.c #define DPRINTF(x) x 323 dev/sbus/isp_sbus.c #define IspVirt2Off(a, x) \ x 36 dev/sbus/magmareg.h #define dprintf(x) printf x x 38 dev/sbus/magmareg.h #define dprintf(x) x 64 dev/sbus/magmareg.h #define MAGMA_CARD(x) ((minor(x) >> 6) & 0x03) x 65 dev/sbus/magmareg.h #define MAGMA_PORT(x) (minor(x) & 0x0f) x 67 dev/sbus/magmareg.h #define MTTY_DIALOUT(x) (minor(x) & 0x10) x 75 dev/sbus/mgx.c #define IO_ADDRESS(x) (x) x 77 dev/sbus/mgx.c #define IO_ADDRESS(x) ((x) ^ 0x03) x 141 dev/sbus/sbusvar.h #define INTLEV(x) (x) x 341 dev/sbus/spifreg.h #define SPIF_CARD(x) ((minor(x) >> 6) & 0x03) x 342 dev/sbus/spifreg.h #define SPIF_PORT(x) (minor(x) & 0x07) x 343 dev/sbus/spifreg.h #define STTY_DIALOUT(x) (minor(x) & 0x10) x 74 dev/sbus/stp4020.c #define DPRINTF(x) do { if (stp4020_debug) printf x; } while(0) x 76 dev/sbus/stp4020.c #define DPRINTF(x) x 240 dev/sbus/stp4020reg.h #define STP4020_ADDR2PAGE(x) ((x) >> 20) x 161 dev/sbus/zx.c #define ZX_COORDS(x, y) ((x) | ((y) << ZX_WWIDTH)) x 617 dev/sbus/zx.c zx_fillrect(struct rasops_info *ri, int x, int y, int w, int h, long attr, x 81 dev/sequencer.c #define DPRINTF(x) if (sequencerdebug) printf x x 82 dev/sequencer.c #define DPRINTFN(n,x) if (sequencerdebug >= (n)) printf x x 85 dev/sequencer.c #define DPRINTF(x) x 86 dev/sequencer.c #define DPRINTFN(n,x) x 33 dev/softraidvar.h #define DPRINTF(x...) do { if (sr_debug) printf(x); } while(0) x 34 dev/softraidvar.h #define DNPRINTF(n,x...) do { if (sr_debug & n) printf(x); } while(0) x 45 dev/softraidvar.h #define DPRINTF(x...) x 46 dev/softraidvar.h #define DNPRINTF(n,x...) x 263 dev/systrace.c #define POLICY_VALID(x) ((x) == SYSTR_POLICY_PERMIT || \ x 81 dev/systrace.h #define SYSTR_MSG_NOPROCESS(x) \ x 110 dev/tc/asc_tc.c #define PMAZ_DMA_ADDR(x) ((unsigned long)(x) & PMAZ_DMAR_MASK) x 96 dev/usb/ehci.c #define DPRINTF(x) do { if (ehcidebug) printf x; } while(0) x 97 dev/usb/ehci.c #define DPRINTFN(n,x) do { if (ehcidebug>(n)) printf x; } while (0) x 101 dev/usb/ehci.c #define DPRINTF(x) x 102 dev/usb/ehci.c #define DPRINTFN(n,x) x 1685 dev/usb/ehci.c #define C(x,y) ((x) | ((y) << 8)) x 70 dev/usb/ehcireg.h #define EHCI_EECP_NEXT(x) (((x) >> 8) & 0xff) x 71 dev/usb/ehcireg.h #define EHCI_EECP_ID(x) ((x) & 0xff) x 85 dev/usb/ehcireg.h #define EHCI_HCS_DEBUGPORT(x) (((x) >> 20) & 0xf) x 86 dev/usb/ehcireg.h #define EHCI_HCS_P_INDICATOR(x) ((x) & 0x10000) x 87 dev/usb/ehcireg.h #define EHCI_HCS_N_CC(x) (((x) >> 12) & 0xf) /* # of companion ctlrs */ x 88 dev/usb/ehcireg.h #define EHCI_HCS_N_PCC(x) (((x) >> 8) & 0xf) /* # of ports per comp. */ x 89 dev/usb/ehcireg.h #define EHCI_HCS_PRR(x) ((x) & 0x80) /* port routing rules */ x 90 dev/usb/ehcireg.h #define EHCI_HCS_PPC(x) ((x) & 0x10) /* port power control */ x 91 dev/usb/ehcireg.h #define EHCI_HCS_N_PORTS(x) ((x) & 0xf) /* # of ports */ x 94 dev/usb/ehcireg.h #define EHCI_HCC_EECP(x) (((x) >> 8) & 0xff) /* extended ports caps */ x 95 dev/usb/ehcireg.h #define EHCI_HCC_IST(x) (((x) >> 4) & 0xf) /* isoc sched threshold */ x 96 dev/usb/ehcireg.h #define EHCI_HCC_ASPC(x) ((x) & 0x4) /* async sched park cap */ x 97 dev/usb/ehcireg.h #define EHCI_HCC_PFLF(x) ((x) & 0x2) /* prog frame list flag */ x 98 dev/usb/ehcireg.h #define EHCI_HCC_64BIT(x) ((x) & 0x1) /* 64 bit address cap */ x 119 dev/usb/ehcireg.h #define EHCI_CMD_FLS(x) (((x) >> 2) & 3) /* RW/RO frame list size */ x 134 dev/usb/ehcireg.h #define EHCI_STS_INTRS(x) ((x) & 0x3f) x 165 dev/usb/ehcireg.h #define EHCI_PS_IS_LOWSPEED(x) (((x) & EHCI_PS_LS) == 0x00000400) x 183 dev/usb/ehcireg.h #define EHCI_PAGE(x) ((x) &~ 0xfff) x 184 dev/usb/ehcireg.h #define EHCI_PAGE_OFFSET(x) ((x) & 0xfff) x 188 dev/usb/ehcireg.h #define EHCI_LINK_TYPE(x) ((x) & 0x00000006) x 193 dev/usb/ehcireg.h #define EHCI_LINK_ADDR(x) ((x) &~ 0x1f) x 147 dev/usb/ehcivar.h #define EWRITE1(sc, a, x) bus_space_write_1((sc)->iot, (sc)->ioh, (a), (x)) x 148 dev/usb/ehcivar.h #define EWRITE2(sc, a, x) bus_space_write_2((sc)->iot, (sc)->ioh, (a), (x)) x 149 dev/usb/ehcivar.h #define EWRITE4(sc, a, x) bus_space_write_4((sc)->iot, (sc)->ioh, (a), (x)) x 153 dev/usb/ehcivar.h #define EOWRITE1(sc, a, x) bus_space_write_1((sc)->iot, (sc)->ioh, (sc)->sc_offs+(a), (x)) x 154 dev/usb/ehcivar.h #define EOWRITE2(sc, a, x) bus_space_write_2((sc)->iot, (sc)->ioh, (sc)->sc_offs+(a), (x)) x 155 dev/usb/ehcivar.h #define EOWRITE4(sc, a, x) bus_space_write_4((sc)->iot, (sc)->ioh, (sc)->sc_offs+(a), (x)) x 84 dev/usb/ezload.c #define DPRINTF(x) if (ezloaddebug) printf x x 85 dev/usb/ezload.c #define DPRINTFN(n,x) if (ezloaddebug>(n)) printf x x 88 dev/usb/ezload.c #define DPRINTF(x) x 89 dev/usb/ezload.c #define DPRINTFN(n,x) x 52 dev/usb/hid.c #define DPRINTF(x) do { if (uhidevdebug) printf x; } while (0) x 53 dev/usb/hid.c #define DPRINTFN(n,x) do { if (uhidevdebug>(n)) printf x; } while (0) x 56 dev/usb/hid.c #define DPRINTF(x) x 57 dev/usb/hid.c #define DPRINTFN(n,x) x 93 dev/usb/if_atu.c #define DPRINTF(x) do { if (atudebug) printf x; } while (0) x 94 dev/usb/if_atu.c #define DPRINTFN(n,x) do { if (atudebug>(n)) printf x; } while (0) x 97 dev/usb/if_atu.c #define DPRINTF(x) x 98 dev/usb/if_atu.c #define DPRINTFN(n,x) x 442 dev/usb/if_atureg.h #define NR(x) (void *)((long)x) x 121 dev/usb/if_aue.c #define DPRINTF(x) do { if (auedebug) printf x; } while (0) x 122 dev/usb/if_aue.c #define DPRINTFN(n,x) do { if (auedebug >= (n)) printf x; } while (0) x 125 dev/usb/if_aue.c #define DPRINTF(x) x 126 dev/usb/if_aue.c #define DPRINTFN(n,x) x 268 dev/usb/if_aue.c #define AUE_SETBIT(sc, reg, x) \ x 271 dev/usb/if_aue.c #define AUE_CLRBIT(sc, reg, x) \ x 135 dev/usb/if_axe.c #define DPRINTF(x) do { if (axedebug) printf x; } while (0) x 136 dev/usb/if_axe.c #define DPRINTFN(n,x) do { if (axedebug >= (n)) printf x; } while (0) x 139 dev/usb/if_axe.c #define DPRINTF(x) x 140 dev/usb/if_axe.c #define DPRINTFN(n,x) x 54 dev/usb/if_axereg.h #define AXE_CMD_LEN(x) (((x) & 0xF000) >> 12) x 55 dev/usb/if_axereg.h #define AXE_CMD_DIR(x) (((x) & 0x0F00) >> 8) x 56 dev/usb/if_axereg.h #define AXE_CMD_CMD(x) ((x) & 0x00FF) x 77 dev/usb/if_cdce.c #define DPRINTFN(n, x) do { if (cdcedebug > (n)) printf x; } while (0) x 80 dev/usb/if_cdce.c #define DPRINTFN(n, x) x 82 dev/usb/if_cdce.c #define DPRINTF(x) DPRINTFN(0, x) x 122 dev/usb/if_cdcef.c #define DPRINTF(x) do {} while (0) x 124 dev/usb/if_cdcef.c #define DPRINTF(x) printf x x 94 dev/usb/if_cue.c #define DPRINTF(x) do { if (cuedebug) printf x; } while (0) x 95 dev/usb/if_cue.c #define DPRINTFN(n,x) do { if (cuedebug >= (n)) printf x; } while (0) x 98 dev/usb/if_cue.c #define DPRINTF(x) x 99 dev/usb/if_cue.c #define DPRINTFN(n,x) x 157 dev/usb/if_cue.c #define CUE_SETBIT(sc, reg, x) \ x 160 dev/usb/if_cue.c #define CUE_CLRBIT(sc, reg, x) \ x 109 dev/usb/if_kue.c #define DPRINTF(x) do { if (kuedebug) printf x; } while (0) x 110 dev/usb/if_kue.c #define DPRINTFN(n,x) do { if (kuedebug >= (n)) printf x; } while (0) x 113 dev/usb/if_kue.c #define DPRINTF(x) x 114 dev/usb/if_kue.c #define DPRINTFN(n,x) x 72 dev/usb/if_kuereg.h #define KUE_ETHERSTATS(x) \ x 77 dev/usb/if_kuereg.h #define KUE_MAXSEG(x) \ x 79 dev/usb/if_kuereg.h #define KUE_MCFILTCNT(x) \ x 82 dev/usb/if_kuereg.h #define KUE_MCFILT(x, y) \ x 75 dev/usb/if_ral.c #define DPRINTF(x) do { if (ural_debug) printf x; } while (0) x 76 dev/usb/if_ral.c #define DPRINTFN(n, x) do { if (ural_debug >= (n)) printf x; } while (0) x 79 dev/usb/if_ral.c #define DPRINTF(x) x 80 dev/usb/if_ral.c #define DPRINTFN(n, x) x 114 dev/usb/if_ralreg.h #define RAL_ENABLE_TSF_SYNC(x) (((x) & 0x3) << 1) x 150 dev/usb/if_ralreg.h #define RAL_TX_RETRY(x) ((x) << 4) x 164 dev/usb/if_ralreg.h #define RAL_LOGCWMAX(x) (((x) & 0xf) << 12) x 165 dev/usb/if_ralreg.h #define RAL_LOGCWMIN(x) (((x) & 0xf) << 8) x 166 dev/usb/if_ralreg.h #define RAL_AIFSN(x) (((x) & 0x3) << 6) x 167 dev/usb/if_ralreg.h #define RAL_IVOFFSET(x) (((x) & 0x3f)) x 75 dev/usb/if_rum.c #define DPRINTF(x) do { if (rum_debug) printf x; } while (0) x 76 dev/usb/if_rum.c #define DPRINTFN(n, x) do { if (rum_debug >= (n)) printf x; } while (0) x 79 dev/usb/if_rum.c #define DPRINTF(x) x 80 dev/usb/if_rum.c #define DPRINTFN(n, x) x 126 dev/usb/if_rumreg.h #define RT2573_TSF_MODE(x) (((x) & 0x3) << 17) x 84 dev/usb/if_uath.c #define DPRINTF(x) do { if (uath_debug) printf x; } while (0) x 85 dev/usb/if_uath.c #define DPRINTFN(n, x) do { if (uath_debug >= (n)) printf x; } while (0) x 88 dev/usb/if_uath.c #define DPRINTF(x) x 89 dev/usb/if_uath.c #define DPRINTFN(n, x) x 145 dev/usb/if_udav.c #define DPRINTF(x) do { if (udavdebug) printf x; } while(0) x 146 dev/usb/if_udav.c #define DPRINTFN(n,x) do { if (udavdebug >= (n)) printf x; } while(0) x 149 dev/usb/if_udav.c #define DPRINTF(x) x 150 dev/usb/if_udav.c #define DPRINTFN(n,x) x 153 dev/usb/if_udav.c #define UDAV_SETBIT(sc, reg, x) \ x 156 dev/usb/if_udav.c #define UDAV_CLRBIT(sc, reg, x) \ x 163 dev/usb/if_upl.c #define DPRINTF(x) do { if (upldebug) printf x; } while (0) x 164 dev/usb/if_upl.c #define DPRINTFN(n,x) do { if (upldebug >= (n)) printf x; } while (0) x 167 dev/usb/if_upl.c #define DPRINTF(x) x 168 dev/usb/if_upl.c #define DPRINTFN(n,x) x 139 dev/usb/if_url.c #define DPRINTF(x) do { if (urldebug) printf x; } while (0) x 140 dev/usb/if_url.c #define DPRINTFN(n,x) do { if (urldebug >= (n)) printf x; } while (0) x 143 dev/usb/if_url.c #define DPRINTF(x) x 144 dev/usb/if_url.c #define DPRINTFN(n,x) x 147 dev/usb/if_url.c #define URL_SETBIT(sc, reg, x) \ x 150 dev/usb/if_url.c #define URL_SETBIT2(sc, reg, x) \ x 153 dev/usb/if_url.c #define URL_CLRBIT(sc, reg, x) \ x 156 dev/usb/if_url.c #define URL_CLRBIT2(sc, reg, x) \ x 62 dev/usb/if_wi_usb.c #define ROUNDUP64(x) (((x)+63) & ~63) x 115 dev/usb/if_wi_usb.c #define DPRINTF(x) do { if (wi_usbdebug) printf x; } while (0) x 116 dev/usb/if_wi_usb.c #define DPRINTFN(n,x) do { if (wi_usbdebug >= (n)) printf x; } while (0) x 119 dev/usb/if_wi_usb.c #define DPRINTF(x) x 120 dev/usb/if_wi_usb.c #define DPRINTFN(n,x) x 74 dev/usb/if_zyd.c #define DPRINTF(x) do { if (zyddebug > 0) printf x; } while (0) x 75 dev/usb/if_zyd.c #define DPRINTFN(n, x) do { if (zyddebug > (n)) printf x; } while (0) x 78 dev/usb/if_zyd.c #define DPRINTF(x) x 79 dev/usb/if_zyd.c #define DPRINTFN(n, x) x 962 dev/usb/if_zydreg.h #define ZYD_TX_PHY_SIGNAL(x) ((x) & 0xf) x 971 dev/usb/if_zydreg.h #define ZYD_TX_FLAG_TYPE(x) (((x) & 0x3) << 2) x 97 dev/usb/moscom.c #define MOSCOM_LCR_DBITS(x) (x - 5) x 75 dev/usb/ohci.c #define DPRINTF(x) do { if (ohcidebug) printf x; } while (0) x 76 dev/usb/ohci.c #define DPRINTFN(n,x) do { if (ohcidebug>(n)) printf x; } while (0) x 80 dev/usb/ohci.c #define DPRINTF(x) x 81 dev/usb/ohci.c #define DPRINTFN(n,x) x 200 dev/usb/ohci.c #define OWRITE1(sc, r, x) \ x 202 dev/usb/ohci.c #define OWRITE2(sc, r, x) \ x 204 dev/usb/ohci.c #define OWRITE4(sc, r, x) \ x 2413 dev/usb/ohci.c #define C(x,y) ((x) | ((y) << 8)) x 149 dev/usb/ohcireg.h #define OHCI_PAGE(x) ((x) &~ 0xfff) x 150 dev/usb/ohcireg.h #define OHCI_PAGE_OFFSET(x) ((x) & 0xfff) x 35 dev/usb/uark.c #define DPRINTFN(n, x) do { if (uarkdebug > (n)) printf x; } while (0) x 38 dev/usb/uark.c #define DPRINTFN(n, x) x 40 dev/usb/uark.c #define DPRINTF(x) DPRINTFN(0, x) x 46 dev/usb/uark.c #define UARK_SET_DATA_BITS(x) (x - 5) x 77 dev/usb/uaudio.c #define DPRINTF(x) do { if (uaudiodebug) printf x; } while (0) x 78 dev/usb/uaudio.c #define DPRINTFN(n,x) do { if (uaudiodebug>(n)) printf x; } while (0) x 81 dev/usb/uaudio.c #define DPRINTF(x) x 82 dev/usb/uaudio.c #define DPRINTFN(n,x) x 99 dev/usb/ubsa.c #define DPRINTFN(n, x) do { if (ubsadebug > (n)) printf x; } while (0) x 101 dev/usb/ubsa.c #define DPRINTFN(n, x) x 103 dev/usb/ubsa.c #define DPRINTF(x) DPRINTFN(0, x) x 73 dev/usb/ucom.c #define DPRINTFN(n, x) do { if (ucomdebug > (n)) printf x; } while (0) x 76 dev/usb/ucom.c #define DPRINTFN(n, x) x 78 dev/usb/ucom.c #define DPRINTF(x) DPRINTFN(0, x) x 85 dev/usb/ucom.c #define UCOMUNIT(x) (minor(x) & UCOMUNIT_MASK) x 86 dev/usb/ucom.c #define UCOMCUA(x) (minor(x) & UCOMCUA_MASK) x 71 dev/usb/ucycom.c #define DPRINTF(x) if (ucycomdebug) printf x x 72 dev/usb/ucycom.c #define DPRINTFN(n, x) if (ucycomdebug > (n)) printf x x 75 dev/usb/ucycom.c #define DPRINTF(x) x 76 dev/usb/ucycom.c #define DPRINTFN(n,x) x 38 dev/usb/udcf.c #define DPRINTFN(n, x) do { if (udcfdebug > (n)) printf x; } while (0) x 41 dev/usb/udcf.c #define DPRINTFN(n, x) x 43 dev/usb/udcf.c #define DPRINTF(x) DPRINTFN(0, x) x 63 dev/usb/udsbr.c #define DPRINTF(x) do { if (udsbrdebug) printf x; } while (0) x 64 dev/usb/udsbr.c #define DPRINTFN(n,x) do { if (udsbrdebug>(n)) printf x; } while (0) x 67 dev/usb/udsbr.c #define DPRINTF(x) x 68 dev/usb/udsbr.c #define DPRINTFN(n,x) x 59 dev/usb/ueagle.c #define DPRINTF(x) do { if (ueagledebug > 0) printf x; } while (0) x 60 dev/usb/ueagle.c #define DPRINTFN(n, x) do { if (ueagledebug >= (n)) printf x; } while (0) x 63 dev/usb/ueagle.c #define DPRINTF(x) x 64 dev/usb/ueagle.c #define DPRINTFN(n, x) x 57 dev/usb/ueaglevar.h #define ATM_CH_FILL(x, gfc, vpi, vci, pt, clp, hec) do { \ x 65 dev/usb/ueaglevar.h #define ATM_CH_SETPTFLAGS(x, v) ((x)[3] |= ((v) & 0x7) << 1) x 66 dev/usb/ueaglevar.h #define ATM_CH_GETPTFLAGS(x) (((x)[3] >> 1) & 0x7) x 67 dev/usb/ueaglevar.h #define ATM_CH_GETVPI(x) ((x)[0] << 4 | (x)[1] >> 4) x 68 dev/usb/ueaglevar.h #define ATM_CH_GETVCI(x) \ x 72 dev/usb/ueaglevar.h #define ATM_CH_ISLASTCELL(x) ((x)[3] & 0x2) x 74 dev/usb/ueaglevar.h #define AAL5_TR_SETCPSUU(x, v) ((x)[45] = (uint8_t)(v)) x 75 dev/usb/ueaglevar.h #define AAL5_TR_SETCPI(x, v) ((x)[46] = (uint8_t)(v)) x 76 dev/usb/ueaglevar.h #define AAL5_TR_SETPDULEN(x, v) do { \ x 81 dev/usb/ueaglevar.h #define AAL5_TR_GETPDULEN(x) (uint16_t)((x)[47] << 8 | (x)[48]) x 82 dev/usb/ueaglevar.h #define AAL5_TR_SETCRC(x, v) do { \ x 68 dev/usb/uftdi.c #define DPRINTF(x) do { if (uftdidebug) printf x; } while (0) x 69 dev/usb/uftdi.c #define DPRINTFN(n,x) do { if (uftdidebug>(n)) printf x; } while (0) x 72 dev/usb/uftdi.c #define DPRINTF(x) x 73 dev/usb/uftdi.c #define DPRINTFN(n,x) x 63 dev/usb/ugen.c #define DPRINTF(x) do { if (ugendebug) printf x; } while (0) x 64 dev/usb/ugen.c #define DPRINTFN(n,x) do { if (ugendebug>(n)) printf x; } while (0) x 67 dev/usb/ugen.c #define DPRINTF(x) x 68 dev/usb/ugen.c #define DPRINTFN(n,x) x 82 dev/usb/uhci.c #define DPRINTF(x) if (uhcidebug) printf x x 83 dev/usb/uhci.c #define DPRINTFN(n,x) if (uhcidebug>(n)) printf x x 88 dev/usb/uhci.c #define DPRINTF(x) x 89 dev/usb/uhci.c #define DPRINTFN(n,x) x 250 dev/usb/uhci.c #define UWRITE1(sc, r, x) \ x 253 dev/usb/uhci.c #define UWRITE2(sc, r, x) \ x 256 dev/usb/uhci.c #define UWRITE4(sc, r, x) \ x 3121 dev/usb/uhci.c #define C(x,y) ((x) | ((y) << 8)) x 111 dev/usb/uhcireg.h #define URWMASK(x) \ x 72 dev/usb/uhid.c #define DPRINTF(x) do { if (uhiddebug) printf x; } while (0) x 73 dev/usb/uhid.c #define DPRINTFN(n,x) do { if (uhiddebug>(n)) printf x; } while (0) x 76 dev/usb/uhid.c #define DPRINTF(x) x 77 dev/usb/uhid.c #define DPRINTFN(n,x) x 69 dev/usb/uhidev.c #define DPRINTF(x) do { if (uhidevdebug) printf x; } while (0) x 70 dev/usb/uhidev.c #define DPRINTFN(n,x) do { if (uhidevdebug>(n)) printf x; } while (0) x 73 dev/usb/uhidev.c #define DPRINTF(x) x 74 dev/usb/uhidev.c #define DPRINTFN(n,x) x 63 dev/usb/uhub.c #define DPRINTF(x) do { if (uhubdebug) printf x; } while (0) x 64 dev/usb/uhub.c #define DPRINTFN(n,x) do { if (uhubdebug>(n)) printf x; } while (0) x 67 dev/usb/uhub.c #define DPRINTF(x) x 68 dev/usb/uhub.c #define DPRINTFN(n,x) x 69 dev/usb/uipaq.c #define DPRINTF(x) if (uipaqdebug) printf x x 70 dev/usb/uipaq.c #define DPRINTFN(n,x) if (uipaqdebug>(n)) printf x x 73 dev/usb/uipaq.c #define DPRINTF(x) x 74 dev/usb/uipaq.c #define DPRINTFN(n,x) x 75 dev/usb/ukbd.c #define DPRINTF(x) do { if (ukbddebug) printf x; } while (0) x 76 dev/usb/ukbd.c #define DPRINTFN(n,x) do { if (ukbddebug>(n)) printf x; } while (0) x 79 dev/usb/ukbd.c #define DPRINTF(x) x 80 dev/usb/ukbd.c #define DPRINTFN(n,x) x 71 dev/usb/ulpt.c #define DPRINTF(x) do { if (ulptdebug) printf x; } while (0) x 72 dev/usb/ulpt.c #define DPRINTFN(n,x) do { if (ulptdebug>(n)) printf x; } while (0) x 75 dev/usb/ulpt.c #define DPRINTF(x) x 76 dev/usb/ulpt.c #define DPRINTFN(n,x) x 33 dev/usb/umassvar.h #define DIF(m, x) if (umassdebug & (m)) do { x ; } while (0) x 34 dev/usb/umassvar.h #define DPRINTF(m, x) do { if (umassdebug & (m)) printf x; } while (0) x 50 dev/usb/umassvar.h #define DIF(m, x) /* nop */ x 51 dev/usb/umassvar.h #define DPRINTF(m, x) /* nop */ x 73 dev/usb/umct.c #define DPRINTFN(n, x) do { if (umctdebug > (n)) printf x; } while (0) x 76 dev/usb/umct.c #define DPRINTFN(n, x) x 78 dev/usb/umct.c #define DPRINTF(x) DPRINTFN(0, x) x 65 dev/usb/umidi.c #define DPRINTF(x) if (umididebug) printf x x 66 dev/usb/umidi.c #define DPRINTFN(n,x) if (umididebug >= (n)) printf x x 69 dev/usb/umidi.c #define DPRINTF(x) x 70 dev/usb/umidi.c #define DPRINTFN(n,x) x 68 dev/usb/umidi_quirks.c #define DPRINTF(x) if (umidiquirkdebug) printf x x 69 dev/usb/umidi_quirks.c #define DPRINTFN(n,x) if (umidiquirkdebug >= (n)) printf x x 72 dev/usb/umidi_quirks.c #define DPRINTF(x) x 73 dev/usb/umidi_quirks.c #define DPRINTFN(n,x) x 79 dev/usb/umodem.c #define DPRINTFN(n, x) do { if (umodemdebug > (n)) printf x; } while (0) x 82 dev/usb/umodem.c #define DPRINTFN(n, x) x 84 dev/usb/umodem.c #define DPRINTF(x) DPRINTFN(0, x) x 72 dev/usb/ums.c #define DPRINTF(x) do { if (umsdebug) printf x; } while (0) x 73 dev/usb/ums.c #define DPRINTFN(n,x) do { if (umsdebug>(n)) printf x; } while (0) x 76 dev/usb/ums.c #define DPRINTF(x) x 77 dev/usb/ums.c #define DPRINTFN(n,x) x 40 dev/usb/uow.c #define DPRINTF(x) printf x x 42 dev/usb/uow.c #define DPRINTF(x) x 73 dev/usb/uplcom.c #define DPRINTFN(n, x) do { if (uplcomdebug > (n)) printf x; } while (0) x 76 dev/usb/uplcom.c #define DPRINTFN(n, x) x 78 dev/usb/uplcom.c #define DPRINTF(x) DPRINTFN(0, x) x 67 dev/usb/urio.c #define DPRINTF(x) do { if (uriodebug) printf x; } while (0) x 68 dev/usb/urio.c #define DPRINTFN(n,x) do { if (uriodebug>(n)) printf x; } while (0) x 71 dev/usb/urio.c #define DPRINTF(x) x 72 dev/usb/urio.c #define DPRINTFN(n,x) x 76 dev/usb/usb.c #define DPRINTF(x) do { if (usbdebug) printf x; } while (0) x 77 dev/usb/usb.c #define DPRINTFN(n,x) do { if (usbdebug>(n)) printf x; } while (0) x 92 dev/usb/usb.c #define DPRINTF(x) x 93 dev/usb/usb.c #define DPRINTFN(n,x) x 67 dev/usb/usb_mem.c #define DPRINTF(x) do { if (usbdebug) printf x; } while (0) x 68 dev/usb/usb_mem.c #define DPRINTFN(n,x) do { if (usbdebug>(n)) printf x; } while (0) x 71 dev/usb/usb_mem.c #define DPRINTF(x) x 72 dev/usb/usb_mem.c #define DPRINTFN(n,x) x 79 dev/usb/usb_port.h #define if_deactivate(x) x 61 dev/usb/usb_subr.c #define DPRINTF(x) do { if (usbdebug) printf x; } while (0) x 62 dev/usb/usb_subr.c #define DPRINTFN(n,x) do { if (usbdebug>(n)) printf x; } while (0) x 65 dev/usb/usb_subr.c #define DPRINTF(x) x 66 dev/usb/usb_subr.c #define DPRINTFN(n,x) x 58 dev/usb/usbdi.c #define DPRINTF(x) do { if (usbdebug) printf x; } while (0) x 59 dev/usb/usbdi.c #define DPRINTFN(n,x) do { if (usbdebug>(n)) printf x; } while (0) x 62 dev/usb/usbdi.c #define DPRINTF(x) x 63 dev/usb/usbdi.c #define DPRINTFN(n,x) x 56 dev/usb/usbdi_util.c #define DPRINTF(x) do { if (usbdebug) printf x; } while (0) x 57 dev/usb/usbdi_util.c #define DPRINTFN(n,x) do { if (usbdebug>(n)) printf x; } while (0) x 60 dev/usb/usbdi_util.c #define DPRINTF(x) x 61 dev/usb/usbdi_util.c #define DPRINTFN(n,x) x 68 dev/usb/usbf.c #define DPRINTF(l, x) do {} while (0) x 71 dev/usb/usbf.c #define DPRINTF(l, x) if ((l) <= usbfdebug) printf x; else {} x 448 dev/usb/usbf.c #define C(x,y) ((x) | ((y) << 8)) x 38 dev/usb/usbf_subr.c #define DPRINTF(l, x) do {} while (0) x 41 dev/usb/usbf_subr.c #define DPRINTF(l, x) if ((l) <= usbfdebug) printf x; else {} x 63 dev/usb/uscanner.c #define DPRINTF(x) do { if (uscannerdebug) printf x; } while (0) x 64 dev/usb/uscanner.c #define DPRINTFN(n,x) do { if (uscannerdebug>(n)) printf x; } while (0) x 67 dev/usb/uscanner.c #define DPRINTF(x) x 68 dev/usb/uscanner.c #define DPRINTFN(n,x) x 35 dev/usb/uslcom.c #define DPRINTFN(n, x) do { if (uslcomdebug > (n)) printf x; } while (0) x 38 dev/usb/uslcom.c #define DPRINTFN(n, x) x 40 dev/usb/uslcom.c #define DPRINTF(x) DPRINTFN(0, x) x 46 dev/usb/uslcom.c #define USLCOM_SET_DATA_BITS(x) (x << 8) x 76 dev/usb/usscanner.c #define DPRINTF(x) do { if (usscannerdebug) printf x; } while (0) x 77 dev/usb/usscanner.c #define DPRINTFN(n,x) do { if (usscannerdebug>(n)) printf x; } while (0) x 80 dev/usb/usscanner.c #define DPRINTF(x) x 81 dev/usb/usscanner.c #define DPRINTFN(n,x) x 47 dev/usb/uts.c #define DPRINTF(x) do { printf x; } while (0) x 49 dev/usb/uts.c #define DPRINTF(x) x 62 dev/usb/uvisor.c #define DPRINTF(x) if (uvisordebug) printf x x 63 dev/usb/uvisor.c #define DPRINTFN(n,x) if (uvisordebug>(n)) printf x x 66 dev/usb/uvisor.c #define DPRINTF(x) x 67 dev/usb/uvisor.c #define DPRINTFN(n,x) x 65 dev/usb/uvscom.c #define DPRINTFN(n, x) do { if (uvscomdebug > (n)) printf x; } while (0) x 67 dev/usb/uvscom.c #define DPRINTFN(n, x) x 69 dev/usb/uvscom.c #define DPRINTF(x) DPRINTFN(0, x) x 104 dev/vnd.c #define vndunit(x) DISKUNIT(makedev(major(x), minor(x) & 0x7ff)) x 105 dev/vnd.c #define vndsimple(x) (minor(x) & 0x800) x 46 dev/wscons/wsdisplay_compat_usl.c #define DPRINTF(x) if (wsdisplaydebug) printf x x 49 dev/wscons/wsdisplay_compat_usl.c #define DPRINTF(x) x 94 dev/wscons/wsemul_vt100var.h #define DEFx_ARG(n, x) (ARG(n) ? ARG(n) : (x)) x 121 dev/wscons/wskbd.c #define DPRINTF(x) if (wskbddebug) printf x x 124 dev/wscons/wskbd.c #define DPRINTF(x) x 109 dev/wscons/wsmouse.c #define DPRINTF(x) if (wsmuxdebug) printf x x 110 dev/wscons/wsmouse.c #define DPRINTFN(n,x) if (wsmuxdebug > (n)) printf x x 113 dev/wscons/wsmouse.c #define DPRINTF(x) x 114 dev/wscons/wsmouse.c #define DPRINTFN(n,x) x 291 dev/wscons/wsmouse.c int x, int y, int z, int w, u_int flags) x 79 dev/wscons/wsmousevar.h int x, int y, int z, int w, u_int flags); x 74 dev/wscons/wsmux.c #define DPRINTF(x) if (wsmuxdebug) printf x x 75 dev/wscons/wsmux.c #define DPRINTFN(n,x) if (wsmuxdebug > (n)) printf x x 78 dev/wscons/wsmux.c #define DPRINTF(x) x 79 dev/wscons/wsmux.c #define DPRINTFN(n,x) x 464 kern/kern_lock.c #define SLOCK_COUNT(x) \ x 473 kern/kern_lock.c #define SLOCK_COUNT(x) simple_locks += (x) x 69 kern/kern_synch.c #define LOOKUP(x) (((long)(x) >> 8) & (TABLESIZE - 1)) x 506 kern/subr_extent.c #define LE_OV(x, y, z) ((((x) + (y)) >= (x)) && (((x) + (y)) <= (z))) x 660 kern/sys_generic.c #define getbits(name, x) \ x 717 kern/sys_generic.c #define putbits(name, x) \ x 34 kern/sysv_msg.c #define DPRINTF(x) printf x x 36 kern/sysv_msg.c #define DPRINTF(x) x 49 kern/sysv_sem.c #define DPRINTF(x) printf x x 51 kern/sysv_sem.c #define DPRINTF(x) x 2031 kern/tty.c #define CLAMP(x, h, l) ((x) > h ? h : ((x) < l) ? l : (x)) x 32 kern/tty_nmea.c #define DPRINTFN(n, x) do { if (nmeadebug > (n)) printf x; } while (0) x 35 kern/tty_nmea.c #define DPRINTFN(n, x) x 37 kern/tty_nmea.c #define DPRINTF(x) DPRINTFN(0, x) x 61 kern/uipc_domain.c #define ADDDOMAIN(x) { \ x 40 lib/libkern/arch/i386/SYS.h #define SYSCALL(x) .text; .align 2; 2: jmp PIC_PLT(cerror); ENTRY(x); movl $(SYS_/**/x),%eax; int $0x80; jc 2b x 41 lib/libkern/arch/i386/SYS.h #define RSYSCALL(x) SYSCALL(x); ret x 42 lib/libkern/arch/i386/SYS.h #define PSEUDO(x,y) ENTRY(x); movl $(SYS_/**/y),%eax; int $0x80; ret x 43 lib/libkern/arch/i386/SYS.h #define CALL(x,y) call PIC_PLT(_/**/y); addl $4*x,%esp x 16 lib/libkern/htonl.c htonl(x) x 17 lib/libkern/htonl.c u_int32_t x; x 16 lib/libkern/htons.c htons(u_int16_t x) x 16 lib/libkern/ntohl.c ntohl(x) x 17 lib/libkern/ntohl.c u_int32_t x; x 16 lib/libkern/ntohs.c ntohs(u_int16_t x) x 94 lib/libkern/quad.h #define HHALF(x) ((u_int)(x) >> HALF_BITS) x 95 lib/libkern/quad.h #define LHALF(x) ((u_int)(x) & (((int)1 << HALF_BITS) - 1)) x 96 lib/libkern/quad.h #define LHUP(x) ((u_int)(x) << HALF_BITS) x 36 lib/libsa/getfile.c #define CTRL(x) (x&037) x 279 lib/libsa/loadfile.c aout_exec(int fd, struct exec *x, u_long *marks, int flags) x 44 lib/libsa/net.h #define __IPADDR(x) htonl((u_int32_t)(x)) x 51 lib/libsa/stand.h #define NENTS(x) sizeof(x)/sizeof(x[0]) x 250 lib/libz/zutil.h # define Trace(x) {if (z_verbose>=0) fprintf x ;} x 251 lib/libz/zutil.h # define Tracev(x) {if (z_verbose>0) fprintf x ;} x 252 lib/libz/zutil.h # define Tracevv(x) {if (z_verbose>1) fprintf x ;} x 253 lib/libz/zutil.h # define Tracec(c,x) {if (z_verbose>0 && (c)) fprintf x ;} x 254 lib/libz/zutil.h # define Tracecv(c,x) {if (z_verbose>1 && (c)) fprintf x ;} x 257 lib/libz/zutil.h # define Trace(x) x 258 lib/libz/zutil.h # define Tracev(x) x 259 lib/libz/zutil.h # define Tracevv(x) x 260 lib/libz/zutil.h # define Tracec(c,x) x 261 lib/libz/zutil.h # define Tracecv(c,x) x 96 msdosfs/bpb.h #define getushort(x) *((u_int16_t *)(x)) x 97 msdosfs/bpb.h #define getulong(x) *((u_int32_t *)(x)) x 101 msdosfs/bpb.h #define getushort(x) (((u_int8_t *)(x))[0] + (((u_int8_t *)(x))[1] << 8)) x 102 msdosfs/bpb.h #define getulong(x) (((u_int8_t *)(x))[0] + (((u_int8_t *)(x))[1] << 8) \ x 53 net/bpf.h #define BPF_WORDALIGN(x) (((x) + (BPF_ALIGNMENT - 1)) & ~(BPF_ALIGNMENT - 1)) x 537 net/if.c #define IF_DETACH_QUEUES(x) \ x 269 net/if.h #define IF_Kbps(x) ((x) * 1000) /* kilobits/sec. */ x 270 net/if.h #define IF_Mbps(x) (IF_Kbps((x) * 1000)) /* megabits/sec. */ x 271 net/if.h #define IF_Gbps(x) (IF_Mbps((x) * 1000)) /* gigabits/sec. */ x 572 net/if.h #define if_freenameindex(x) free(x) x 587 net/if.h #define ALTQ_DECL(x) x x 649 net/if.h #define ALTQ_DECL(x) /* nothing */ x 69 net/if_enc.c #define DPRINTF(x) do { if (encdebug) printf x ; } while (0) x 71 net/if_enc.c #define DPRINTF(x) x 466 net/if_gif.c #define multidest(x) \ x 469 net/if_gif.c #define multidest6(x) \ x 323 net/if_media.h #define IFM_TYPE(x) ((x) & IFM_NMASK) x 324 net/if_media.h #define IFM_SUBTYPE(x) ((x) & IFM_TMASK) x 325 net/if_media.h #define IFM_INST(x) (((x) & IFM_IMASK) >> IFM_ISHIFT) x 326 net/if_media.h #define IFM_OPTIONS(x) ((x) & (IFM_OMASK|IFM_GMASK)) x 327 net/if_media.h #define IFM_MODE(x) ((x) & IFM_MMASK) x 71 net/if_pflog.c #define DPRINTF(x) do { if (pflogdebug) printf x ; } while (0) x 73 net/if_pflog.c #define DPRINTF(x) x 75 net/if_pflog.h #define PFLOG_PACKET(i,x,a,b,c,d,e,f,g,h) pflog_packet(i,a,b,c,d,e,f,g,h) x 77 net/if_pflog.h #define PFLOG_PACKET(i,x,a,b,c,d,e,f,g,h) ((void)0) x 75 net/if_pfsync.c #define DPRINTF(x) do { if (pfsyncdebug) printf x ; } while (0) x 78 net/if_pfsync.c #define DPRINTF(x) x 271 net/if_strip.c void strip_timeout(void *x); x 276 net/if_strip.c #define DPRINTF(x) printf x x 278 net/if_strip.c #define DPRINTF(x) x 1455 net/if_strip.c strip_timeout(x) x 1456 net/if_strip.c void *x; x 92 net/pf.c #define DPFPRINTF(n, x) if (pf_status.debug >= (n)) printf x x 137 net/pf_ioctl.c #define DPFPRINTF(n, x) if (pf_status.debug >= (n)) printf x x 120 net/pf_norm.c #define DPFPRINTF(x) do { \ x 42 net/pf_osfp.c # define DPFPRINTF(format, x...) \ x 63 net/pf_osfp.c # define DPFPRINTF(format, x...) fprintf(stderr, format , ##x) x 65 net/pf_osfp.c # define DPFPRINTF(format, x...) ((void)0) x 59 net/pf_ruleset.c # define DPFPRINTF(format, x...) \ x 62 net/pf_ruleset.c #define rs_malloc(x) malloc(x, M_TEMP, M_WAITOK) x 63 net/pf_ruleset.c #define rs_free(x) free(x, M_TEMP) x 73 net/pf_ruleset.c # define rs_malloc(x) malloc(x) x 74 net/pf_ruleset.c # define rs_free(x) free(x) x 78 net/pf_ruleset.c # define DPFPRINTF(format, x...) fprintf(stderr, format , ##x) x 80 net/pf_ruleset.c # define DPFPRINTF(format, x...) ((void)0) x 223 net/pfkeyv2.h #define SADB_X_GETSPROTO(x) \ x 389 net/pfkeyv2.h #define EXTLEN(x) (((struct sadb_ext *)(x))->sadb_ext_len * sizeof(uint64_t)) x 390 net/pfkeyv2.h #define PADUP(x) (((x) + sizeof(uint64_t) - 1) & ~(sizeof(uint64_t) - 1)) x 89 net/pfkeyv2_parsemessage.c #define DPRINTF(x) if (encdebug) printf x x 91 net/pfkeyv2_parsemessage.c #define DPRINTF(x) x 320 net/pfvar.h #define PF_MISMATCHAW(aw, x, af, neg, ifp) \ x 1183 net/pfvar.h #define ACTION_SET(a, x) \ x 1189 net/pfvar.h #define REASON_SET(a, x) \ x 141 net/ppp-comp.h #define BSD_NBITS(x) ((x) & 0x1F) /* number of bits requested */ x 142 net/ppp-comp.h #define BSD_VERSION(x) ((x) >> 5) /* version of option format */ x 159 net/ppp-comp.h #define DEFLATE_SIZE(x) (((x) >> 4) + DEFLATE_MIN_SIZE) x 160 net/ppp-comp.h #define DEFLATE_METHOD(x) ((x) & 0x0F) x 763 net/ppp_tty.c ppp_timeout(x) x 764 net/ppp_tty.c void *x; x 735 net/route.c #define senderr(x) { error = x ; goto bad; } x 508 net/rtsock.c #define ADVANCE(x, n) (x += ROUNDUP((n)->sa_len)) x 116 net/zlib.c # define Trace(x) fprintf x x 117 net/zlib.c # define Tracev(x) {if (verbose) fprintf x ;} x 118 net/zlib.c # define Tracevv(x) {if (verbose>1) fprintf x ;} x 119 net/zlib.c # define Tracec(c,x) {if (verbose && (c)) fprintf x ;} x 120 net/zlib.c # define Tracecv(c,x) {if (verbose>1 && (c)) fprintf x ;} x 123 net/zlib.c # define Trace(x) x 124 net/zlib.c # define Tracev(x) x 125 net/zlib.c # define Tracevv(x) x 126 net/zlib.c # define Tracec(c,x) x 127 net/zlib.c # define Tracecv(c,x) x 358 net80211/ieee80211_crypto.c #define klen_round(x) \ x 143 netbt/bluetooth.h # define UNKNOWN(x) x 763 netinet/in.c #define rtinitflags(x) \ x 152 netinet/in.h #define __IPADDR(x) ((u_int32_t) htonl((u_int32_t)(x))) x 154 netinet/in.h #define __IPADDR(x) ((u_int32_t)(x)) x 627 netinet/in.h #define in_nullhost(x) ((x).s_addr == INADDR_ANY) x 86 netinet/in4_cksum.c #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) x 47 netinet/in_cksum.c #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) x 79 netinet/ip_ah.c #define DPRINTF(x) if (encdebug) printf x x 81 netinet/ip_ah.c #define DPRINTF(x) x 80 netinet/ip_esp.c #define DPRINTF(x) if (encdebug) printf x x 82 netinet/ip_esp.c #define DPRINTF(x) x 58 netinet/ip_ether.c #define DPRINTF(x) if (encdebug) printf x x 60 netinet/ip_ether.c #define DPRINTF(x) x 67 netinet/ip_ipcomp.c #define DPRINTF(x) if (encdebug) printf x x 69 netinet/ip_ipcomp.c #define DPRINTF(x) x 71 netinet/ip_ipip.c #define DPRINTF(x) if (encdebug) printf x x 73 netinet/ip_ipip.c #define DPRINTF(x) x 80 netinet/ip_ipsp.c #define DPRINTF(x) if (encdebug) printf x x 82 netinet/ip_ipsp.c #define DPRINTF(x) x 481 netinet/ip_ipsp.h #define TDB_ATTRIB(x) (((x)->tdb_encalgxform ? NOTIFY_SATYPE_CONF : 0) | \ x 482 netinet/ip_ipsp.h ((x)->tdb_authalgxform ? NOTIFY_SATYPE_AUTH : 0) | \ x 483 netinet/ip_ipsp.h ((x)->tdb_compalgxform ? NOTIFY_SATYPE_COMP : 0)) x 2581 netinet/ip_mroute.c bw_meter_receive_packet(struct bw_meter *x, int plen, struct timeval *nowp) x 2668 netinet/ip_mroute.c bw_meter_prepare_upcall(struct bw_meter *x, struct timeval *nowp) x 2770 netinet/ip_mroute.c schedule_bw_meter(struct bw_meter *x, struct timeval *nowp) x 2795 netinet/ip_mroute.c unschedule_bw_meter(struct bw_meter *x) x 69 netinet/ip_output.c #define DPRINTF(x) do { if (encdebug) printf x ; } while (0) x 71 netinet/ip_output.c #define DPRINTF(x) x 54 netinet/ip_spd.c #define DPRINTF(x) if (encdebug) printf x x 56 netinet/ip_spd.c #define DPRINTF(x) x 86 netinet/ipsec_input.c #define DPRINTF(x) if (encdebug) printf x x 88 netinet/ipsec_input.c #define DPRINTF(x) x 115 netinet/ipsec_input.c #define IPSEC_ISTAT(x,y,z) (sproto == IPPROTO_ESP ? (x)++ : \ x 61 netinet/ipsec_output.c #define DPRINTF(x) if (encdebug) printf x x 63 netinet/ipsec_output.c #define DPRINTF(x) x 84 netinet/pim.h #define PIM_VT_V(x) (((x) >> 4) & 0x0f) x 85 netinet/pim.h #define PIM_VT_T(x) ((x) & 0x0f) x 1470 netinet6/icmp6.c #define isupper(x) ('A' <= (x) && (x) <= 'Z') x 1471 netinet6/icmp6.c #define isalpha(x) (('A' <= (x) && (x) <= 'Z') || ('a' <= (x) && (x) <= 'z')) x 1472 netinet6/icmp6.c #define isalnum(x) (isalpha(x) || ('0' <= (x) && (x) <= '9')) x 1473 netinet6/icmp6.c #define tolower(x) (isupper(x) ? (x) + 'a' - 'A' : (x)) x 77 netinet6/in6_cksum.c #define ADDCARRY(x) (x > 65535 ? x -= 65535 : x) x 360 netinet6/in6_var.h #define IFA_IN6(x) (&((struct sockaddr_in6 *)((x)->ifa_addr))->sin6_addr) x 361 netinet6/in6_var.h #define IFA_DSTIN6(x) (&((struct sockaddr_in6 *)((x)->ifa_dstaddr))->sin6_addr) x 1026 netinet6/ip6_input.c #define IS2292(x, y) ((in6p->in6p_flags & IN6P_RFC2292) ? (x) : (y)) x 86 netinet6/ip6_mroute.h #define howmany(x, y) (((x) + ((y) - 1)) / (y)) x 3214 netinet6/ip6_output.c #define elen(x) \ x 231 netinet6/nd6.h #define ND_COMPUTE_RTIME(x) \ x 321 netinet6/nd6.h #define nd6log(x) do { if (nd6_debug) log x; } while (0) x 69 nfs/nfs_node.c #define nfs_hash(x,y) hash32_buf((x), (y), HASHINIT) x 58 scsi/ch.c #define CHUNIT(x) (minor((x))) x 41 scsi/safte.c #define DPRINTF(x) do { if (safte_debug) printf x ; } while (0) x 44 scsi/safte.c #define DPRINTF(x) /* x */ x 553 scsi/scsiconf.h #define SCSISPC(x)(version_to_spc[(x) & SID_ANSII]) x 41 scsi/ses.c #define DPRINTF(x...) do { if (sesdebug) printf(x); } while (0) x 42 scsi/ses.c #define DPRINTFN(n, x...) do { if (sesdebug > (n)) printf(x); } while (0) x 45 scsi/ses.c #define DPRINTF(x...) /* x */ x 46 scsi/ses.c #define DPRINTFN(n,x...) /* n: x */ x 128 scsi/ses.h #define SES_STAT_CODE(x) ((x) & SES_STAT_CODE_MASK) x 45 sys/agpio.h #define AGP_MODE_GET_RQ(x) (((x) & 0xff000000U) >> 24) x 46 sys/agpio.h #define AGP_MODE_GET_SBA(x) (((x) & 0x00000200U) >> 9) x 47 sys/agpio.h #define AGP_MODE_GET_AGP(x) (((x) & 0x00000100U) >> 8) x 48 sys/agpio.h #define AGP_MODE_GET_4G(x) (((x) & 0x00000020U) >> 5) x 49 sys/agpio.h #define AGP_MODE_GET_FW(x) (((x) & 0x00000010U) >> 4) x 50 sys/agpio.h #define AGP_MODE_GET_RATE(x) ((x) & 0x00000003U) x 51 sys/agpio.h #define AGP_MODE_SET_RQ(x,v) (((x) & ~0xff000000U) | ((v) << 24)) x 52 sys/agpio.h #define AGP_MODE_SET_SBA(x,v) (((x) & ~0x00000200U) | ((v) << 9)) x 53 sys/agpio.h #define AGP_MODE_SET_AGP(x,v) (((x) & ~0x00000100U) | ((v) << 8)) x 54 sys/agpio.h #define AGP_MODE_SET_4G(x,v) (((x) & ~0x00000020U) | ((v) << 5)) x 55 sys/agpio.h #define AGP_MODE_SET_FW(x,v) (((x) & ~0x00000010U) | ((v) << 4)) x 56 sys/agpio.h #define AGP_MODE_SET_RATE(x,v) (((x) & ~0x00000003U) | (v)) x 70 sys/cdefs.h #define __CONCAT(x,y) x ## y x 71 sys/cdefs.h #define __STRING(x) #x x 86 sys/cdefs.h #define __CONCAT(x,y) x/**/y x 87 sys/cdefs.h #define __STRING(x) "x" x 185 sys/cdefs.h #define __statement(x) __extension__(x) x 187 sys/cdefs.h #define __statement(x) (0) x 189 sys/cdefs.h #define __statement(x) (x) x 54 sys/endian.h #define __swap16gen(x) __statement({ \ x 61 sys/endian.h #define __swap32gen(x) __statement({ \ x 70 sys/endian.h #define __swap64gen(x) __statement({ \ x 86 sys/endian.h #define __swap16gen(x) \ x 89 sys/endian.h #define __swap32gen(x) \ x 94 sys/endian.h #define __swap64gen(x) \ x 115 sys/endian.h #define __swap16(x) __statement({ \ x 122 sys/endian.h #define __swap32(x) __statement({ \ x 129 sys/endian.h #define __swap64(x) __statement({ \ x 196 sys/endian.h #define htole16(x) (x) x 197 sys/endian.h #define htole32(x) (x) x 198 sys/endian.h #define htole64(x) (x) x 199 sys/endian.h #define letoh16(x) (x) x 200 sys/endian.h #define letoh32(x) (x) x 201 sys/endian.h #define letoh64(x) (x) x 204 sys/endian.h #define htons(x) __swap16(x) x 205 sys/endian.h #define htonl(x) __swap32(x) x 206 sys/endian.h #define ntohs(x) __swap16(x) x 207 sys/endian.h #define ntohl(x) __swap32(x) x 229 sys/endian.h #define htobe16(x) (x) x 230 sys/endian.h #define htobe32(x) (x) x 231 sys/endian.h #define htobe64(x) (x) x 232 sys/endian.h #define betoh16(x) (x) x 233 sys/endian.h #define betoh32(x) (x) x 234 sys/endian.h #define betoh64(x) (x) x 237 sys/endian.h #define htons(x) (x) x 238 sys/endian.h #define htonl(x) (x) x 239 sys/endian.h #define ntohs(x) (x) x 240 sys/endian.h #define ntohl(x) (x) x 245 sys/endian.h #define NTOHL(x) (x) = ntohl((u_int32_t)(x)) x 246 sys/endian.h #define NTOHS(x) (x) = ntohs((u_int16_t)(x)) x 247 sys/endian.h #define HTONL(x) (x) = htonl((u_int32_t)(x)) x 248 sys/endian.h #define HTONS(x) (x) = htons((u_int16_t)(x)) x 134 sys/exec_aout.h #define N_ALIGN(ex,x) \ x 314 sys/exec_elf.h #define ELF32_ST_BIND(x) ((x) >> 4) x 315 sys/exec_elf.h #define ELF32_ST_TYPE(x) (((unsigned int) x) & 0xf) x 318 sys/exec_elf.h #define ELF64_ST_BIND(x) ((x) >> 4) x 319 sys/exec_elf.h #define ELF64_ST_TYPE(x) (((unsigned int) x) & 0xf) x 537 sys/exec_elf.h #define CONCAT(x,y) __CONCAT(x,y) x 538 sys/exec_elf.h #define ELFNAME(x) CONCAT(elf,CONCAT(ELFSIZE,CONCAT(_,x))) x 539 sys/exec_elf.h #define ELFNAME2(x,y) CONCAT(x,CONCAT(_elf,CONCAT(ELFSIZE,CONCAT(_,y)))) x 540 sys/exec_elf.h #define ELFNAMEEND(x) CONCAT(x,CONCAT(_elf,ELFSIZE)) x 541 sys/exec_elf.h #define ELFDEFNNAME(x) CONCAT(ELF,CONCAT(ELFSIZE,CONCAT(_,x))) x 55 sys/filedesc.h #define NDREDUCE(x) (((x) + NDENTRIES - 1) >> NDENTRYSHIFT) x 56 sys/filedesc.h #define NDHISLOTS(x) (NDREDUCE(NDREDUCE(x))) x 57 sys/filedesc.h #define NDLOSLOTS(x) (NDHISLOTS(x) << NDENTRYSHIFT) x 120 sys/gmon.h #define ROUNDDOWN(x,y) (((x)/(y))*(y)) x 121 sys/gmon.h #define ROUNDUP(x,y) ((((x)+(y)-1)/(y))*(y)) x 43 sys/hash.h #define HASHSTEP(x,c) (((x << 5) + x) + (c)) x 44 sys/ioccom.h #define IOCPARM_LEN(x) (((x) >> 16) & IOCPARM_MASK) x 45 sys/ioccom.h #define IOCBASECMD(x) ((x) & ~(IOCPARM_MASK << 16)) x 46 sys/ioccom.h #define IOCGROUP(x) (((x) >> 8) & 0xff) x 177 sys/lock.h #define LOCK_ASSERT(x) KASSERT(x) x 179 sys/lock.h #define LOCK_ASSERT(x) /* nothing */ x 186 sys/param.h #define howmany(x, y) (((x)+((y)-1))/(y)) x 188 sys/param.h #define roundup(x, y) ((((x)+((y)-1))/(y))*(y)) x 189 sys/param.h #define powerof2(x) ((((x)-1)&(x))==0) x 57 sys/select.h #define __howmany(x, y) (((x) + ((y) - 1)) / (y)) x 82 sys/select.h #define howmany(x, y) __howmany(x, y) x 437 sys/socket.h #define SA_LEN(x) ((x)->sa_len) x 14 sys/syscallargs.h #define syscallarg(x) \ x 145 sys/time.h bintime_addx(struct bintime *bt, uint64_t x) x 331 sys/time.h #define FROMBCD(x) (((x) >> 4) * 10 + ((x) & 0xf)) x 332 sys/time.h #define TOBCD(x) (((x) / 10 * 16) + ((x) % 10)) x 276 sys/tree.h #define SPLAY_INSERT(name, x, y) name##_SPLAY_INSERT(x, y) x 277 sys/tree.h #define SPLAY_REMOVE(name, x, y) name##_SPLAY_REMOVE(x, y) x 278 sys/tree.h #define SPLAY_FIND(name, x, y) name##_SPLAY_FIND(x, y) x 279 sys/tree.h #define SPLAY_NEXT(name, x, y) name##_SPLAY_NEXT(x, y) x 280 sys/tree.h #define SPLAY_MIN(name, x) (SPLAY_EMPTY(x) ? NULL \ x 282 sys/tree.h #define SPLAY_MAX(name, x) (SPLAY_EMPTY(x) ? NULL \ x 285 sys/tree.h #define SPLAY_FOREACH(x, name, head) \ x 332 sys/tree.h #define RB_AUGMENT(x) x 665 sys/tree.h #define RB_INSERT(name, x, y) name##_RB_INSERT(x, y) x 666 sys/tree.h #define RB_REMOVE(name, x, y) name##_RB_REMOVE(x, y) x 667 sys/tree.h #define RB_FIND(name, x, y) name##_RB_FIND(x, y) x 668 sys/tree.h #define RB_NEXT(name, x, y) name##_RB_NEXT(y) x 669 sys/tree.h #define RB_MIN(name, x) name##_RB_MINMAX(x, RB_NEGINF) x 670 sys/tree.h #define RB_MAX(name, x) name##_RB_MINMAX(x, RB_INF) x 672 sys/tree.h #define RB_FOREACH(x, name, head) \ x 58 sys/ttydefaults.h #define CTRL(x) (x&037) x 216 sys/types.h #define major(x) ((int32_t)(((u_int32_t)(x) >> 8) & 0xff)) x 217 sys/types.h #define minor(x) ((int32_t)((x) & 0xff) | (((x) & 0xffff0000) >> 8)) x 218 sys/types.h #define makedev(x,y) ((dev_t)((((x) & 0xff) << 8) | ((y) & 0xff) | (((y) & 0xffff00) << 8))) x 55 sys/wait.h #define _WSTATUS(x) (_W_INT(x) & 0177) x 58 sys/wait.h #define WIFSTOPPED(x) ((_W_INT(x) & 0xff) == _WSTOPPED) x 59 sys/wait.h #define WSTOPSIG(x) (int)(((unsigned)_W_INT(x) >> 8) & 0xff) x 60 sys/wait.h #define WIFSIGNALED(x) (_WSTATUS(x) != _WSTOPPED && _WSTATUS(x) != 0) x 61 sys/wait.h #define WTERMSIG(x) (_WSTATUS(x)) x 62 sys/wait.h #define WIFEXITED(x) (_WSTATUS(x) == 0) x 63 sys/wait.h #define WEXITSTATUS(x) (int)(((unsigned)_W_INT(x) >> 8) & 0xff) x 64 sys/wait.h #define WIFCONTINUED(x) ((_W_INT(x) & _WCONTINUED) == _WCONTINUED) x 67 sys/wait.h #define WCOREDUMP(x) (_W_INT(x) & WCOREFLAG) x 243 ufs/ext2fs/ext2fs.h #define h2fs16(x) htole16(x) x 244 ufs/ext2fs/ext2fs.h #define h2fs32(x) htole32(x) x 245 ufs/ext2fs/ext2fs.h #define fs2h16(x) letoh16(x) x 246 ufs/ext2fs/ext2fs.h #define fs2h32(x) letoh32(x) x 274 ufs/ext2fs/ext2fs.h #define ino_to_cg(fs, x) (((x) - 1) / (fs)->e2fs.e2fs_ipg) x 275 ufs/ext2fs/ext2fs.h #define ino_to_fsba(fs, x) \ x 278 ufs/ext2fs/ext2fs.h #define ino_to_fsbo(fs, x) (((x)-1) % (fs)->e2fs_ipb) x 480 ufs/ffs/fs.h #define ino_to_cg(fs, x) ((x) / (fs)->fs_ipg) x 481 ufs/ffs/fs.h #define ino_to_fsba(fs, x) \ x 484 ufs/ffs/fs.h #define ino_to_fsbo(fs, x) ((x) % INOPB(fs)) x 226 ufs/ufs/ufs_lookup.c #define roundup2(x, y) (((x)+((y)-1))&(~((y)-1))) /* if y is powers of two */ x 91 uvm/uvm_map.c #define RB_AUGMENT(x) uvm_rb_augment(x) x 318 uvm/uvm_map.c #define uvm_tree_sanity(x,y) _uvm_tree_sanity(x,y) x 320 uvm/uvm_map.c #define uvm_tree_sanity(x,y) x 144 uvm/uvm_param.h #define atop(x) ((x) >> PAGE_SHIFT) x 145 uvm/uvm_param.h #define ptoa(x) ((x) << PAGE_SHIFT) x 151 uvm/uvm_param.h #define round_page(x) (((x) + PAGE_MASK) & ~PAGE_MASK) x 152 uvm/uvm_param.h #define trunc_page(x) ((x) & ~PAGE_MASK) x 162 uvm/uvm_param.h #define round_page(x) \ x 165 uvm/uvm_param.h #define trunc_page(x) \ x 144 uvm/uvm_swap.c #define SWD_KEY(x,y) &((x)->swd_keys[((y) - (x)->swd_drumoffset) >> SWD_KEY_SHIFT]) x 149 uvm/uvm_swap.c #define SWD_DCRYPT_OFF(x) ((x) >> SWD_DCRYPT_SHIFT) x 150 uvm/uvm_swap.c #define SWD_DCRYPT_BIT(x) ((x) & SWD_DCRYPT_MASK) x 151 uvm/uvm_swap.c #define SWD_DCRYPT_SIZE(x) (SWD_DCRYPT_OFF((x) + SWD_DCRYPT_MASK) * sizeof(u_int32_t)) x 64 uvm/uvm_swap_encrypt.h #define SWAP_KEY_GET(s,x) do { if ((x)->refcount == 0) {\ x 68 uvm/uvm_swap_encrypt.h #define SWAP_KEY_PUT(s,x) do { (x)->refcount--; \ x 1658 xfs/xfs_config.h #define SIGRETURN(x) return x 1660 xfs/xfs_config.h #define SIGRETURN(x) return (RETSIGTYPE)(x) x 46 xfs/xfs_deb.c x(XDEBMSG) | x 47 xfs/xfs_deb.c x(XDEBDNLC) | x 48 xfs/xfs_deb.c x(XDEBNODE) | x 49 xfs/xfs_deb.c x(XDEBVNOPS) | x 50 xfs/xfs_deb.c x(XDEBVFOPS) | x 51 xfs/xfs_deb.c x(XDEBLKM) | x 52 xfs/xfs_deb.c x(XDEBSYS) | x 53 xfs/xfs_deb.c x(XDEBMEM) | x 70 xfs/xfs_fs.h #define NNPFS_TO_VFS(x) ((x)->mp) x 43 xfs/xfs_locl.h #define RCSID(x) x 240 xfs/xfs_locl.h #define syscall_thread_to_thread(x) (x) x 244 xfs/xfs_locl.h #define syscall_thread_to_thread(x) ((x)->l_proc) x 247 xfs/xfs_locl.h #define syscall_thread_to_thread(x) (x) x 324 xfs/xfs_locl.h #define syscallarg(x) x x 327 xfs/xfs_locl.h #define syscallarg(x) union { x datum; register_t pad; } x 332 xfs/xfs_locl.h #define syscallarg(x) x x 51 xfs/xfs_vfsops-common.c #define VA_RDEV_TO_DEV(x) udev2dev(x, 0) /* XXX what is the 0 */ x 53 xfs/xfs_vfsops-common.c #define VA_RDEV_TO_DEV(x) x