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 949 altq/altq_hfsc.c if (cl->cl_virtual.x == vt) { x 950 altq/altq_hfsc.c cl->cl_virtual.x -= cl->cl_vtoff; x 1341 altq/altq_hfsc.c y = (x >> SM_SHIFT) * sm + (((x & SM_MASK) * sm) >> SM_SHIFT); x 1348 altq/altq_hfsc.c u_int64_t x; x 1351 altq/altq_hfsc.c x = 0; x 1353 altq/altq_hfsc.c x = HT_INFINITY; x 1355 altq/altq_hfsc.c x = (y >> ISM_SHIFT) * ism x 1358 altq/altq_hfsc.c return (x); x 1428 altq/altq_hfsc.c rtsc->x = x; x 1445 altq/altq_hfsc.c u_int64_t x; x 1448 altq/altq_hfsc.c x = rtsc->x; x 1452 altq/altq_hfsc.c x = rtsc->x + rtsc->dx; x 1454 altq/altq_hfsc.c x = rtsc->x + seg_y2x(y - rtsc->y, rtsc->ism1); x 1457 altq/altq_hfsc.c x = rtsc->x + rtsc->dx x 1460 altq/altq_hfsc.c return (x); x 1468 altq/altq_hfsc.c if (x <= rtsc->x) x 1470 altq/altq_hfsc.c else if (x <= rtsc->x + rtsc->dx) x 1472 altq/altq_hfsc.c y = rtsc->y + seg_x2y(x - rtsc->x, rtsc->sm1); x 1476 altq/altq_hfsc.c + seg_x2y(x - rtsc->x - rtsc->dx, rtsc->sm2); x 1492 altq/altq_hfsc.c y1 = rtsc_x2y(rtsc, x); x 1496 altq/altq_hfsc.c rtsc->x = x; x 1507 altq/altq_hfsc.c y1 = rtsc_x2y(rtsc, x); x 1513 altq/altq_hfsc.c y2 = rtsc_x2y(rtsc, x + isc->dx); x 1516 altq/altq_hfsc.c rtsc->x = x; x 1534 altq/altq_hfsc.c if (rtsc->x + rtsc->dx > x) x 1535 altq/altq_hfsc.c dx += rtsc->x + rtsc->dx - x; x 1538 altq/altq_hfsc.c rtsc->x = x; x 143 altq/altq_hfsc.h u_int64_t x; /* current starting position on x-axis */ 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 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 224 arch/i386/i386/esm.c u_int8_t x; x 238 arch/i386/i386/esm.c x = EREAD(sc, ESM2_INTMASK_REG); x 239 arch/i386/i386/esm.c x &= ~(ESM2_TIM_SCI_EN|ESM2_TIM_SMI_EN|ESM2_TIM_NMI2SMI); x 240 arch/i386/i386/esm.c x |= ESM2_TIM_POWER_UP_BITS; x 241 arch/i386/i386/esm.c EWRITE(sc, ESM2_INTMASK_REG, x); x 244 arch/i386/i386/esm.c x = EREAD(sc, ESM2_CTRL_REG); x 245 arch/i386/i386/esm.c x &= ~ESM2_TC_HOSTBUSY; x 246 arch/i386/i386/esm.c x |= ESM2_TC_POWER_UP_BITS; x 247 arch/i386/i386/esm.c EWRITE(sc, ESM2_CTRL_REG, 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 477 arch/i386/i386/machdep.c int x; x 484 arch/i386/i386/machdep.c for (x = 0; x < sizeof(pcb->pcb_iomap) / 4; x++) x 485 arch/i386/i386/machdep.c pcb->pcb_iomap[x] = 0xffffffff; x 504 arch/i386/i386/machdep.c int x; x 509 arch/i386/i386/machdep.c for (x = 0; x < sizeof(pcb->pcb_iomap) / 4; x++) x 510 arch/i386/i386/machdep.c pcb->pcb_iomap[x] = 0xffffffff; 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 93 arch/i386/include/asm.h .text; _ALIGN_TEXT; .globl x; .type x,@function; 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 33 arch/i386/include/endian.h u_int32_t __swap32md_x = (x); \ x 40 arch/i386/include/endian.h u_int64_t __swap64md_x = (x); \ x 46 arch/i386/include/endian.h u_int16_t __swap16md_x = (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 10 arch/i386/include/joystick.h int x; 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 99 arch/i386/isa/joy.c int state = 0, x = 0, y = 0; x 113 arch/i386/isa/joy.c if (!x && !(state & 0x01)) x 114 arch/i386/isa/joy.c x = t1; x 117 arch/i386/isa/joy.c if (x && y) x 121 arch/i386/isa/joy.c c.x = x ? sc->x_off[JOYPART(dev)] + TICKS2USEC(t0 - x) : 0x80000000; x 135 arch/i386/isa/joy.c int x; x 139 arch/i386/isa/joy.c x = *(int *) data; x 140 arch/i386/isa/joy.c if (x < 1 || x > 10000) /* 10ms maximum! */ x 142 arch/i386/isa/joy.c sc->timeout[i] = x; x 5 arch/i386/isa/npx.c #define IPRINTF(x) printf 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 195 arch/i386/isa/pccom.c int x, err; x 201 arch/i386/isa/pccom.c x = divrnd((freq / 16), speed); x 202 arch/i386/isa/pccom.c if (x <= 0) x 204 arch/i386/isa/pccom.c err = divrnd((quad_t)freq * 1000 / 16, speed * x) - 1000; x 209 arch/i386/isa/pccom.c return x; 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 68 compat/aout/compat_aout.c struct { x datum; } le; \ x 70 compat/aout/compat_aout.c int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 72 compat/aout/compat_aout.c : sizeof (register_t) - sizeof (x)]; \ x 73 compat/aout/compat_aout.c x datum; \ x 29 compat/bsdos/bsdos_ioctl.h #define BSDOS_IOCGROUP(x) (((x) >> 8) & 0xff) x 17 compat/bsdos/bsdos_syscallargs.h struct { x datum; } le; \ x 19 compat/bsdos/bsdos_syscallargs.h int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 21 compat/bsdos/bsdos_syscallargs.h : sizeof (register_t) - sizeof (x)]; \ x 22 compat/bsdos/bsdos_syscallargs.h x datum; \ x 51 compat/freebsd/freebsd_exec.h ((x) + FREEBSD___LDPGSZ - 1) & \ x 52 compat/freebsd/freebsd_exec.h ~(unsigned long)(FREEBSD___LDPGSZ - 1) : (x)) x 38 compat/freebsd/freebsd_ioctl.h #define FREEBSD_IOCGROUP(x) (((x) >> 8) & 0xff) x 17 compat/freebsd/freebsd_syscallargs.h struct { x datum; } le; \ x 19 compat/freebsd/freebsd_syscallargs.h int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 21 compat/freebsd/freebsd_syscallargs.h : sizeof (register_t) - sizeof (x)]; \ x 22 compat/freebsd/freebsd_syscallargs.h x datum; \ x 17 compat/hpux/hppa/hpux_syscallargs.h struct { x datum; } le; \ x 19 compat/hpux/hppa/hpux_syscallargs.h int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 21 compat/hpux/hppa/hpux_syscallargs.h : sizeof (register_t) - sizeof (x)]; \ x 22 compat/hpux/hppa/hpux_syscallargs.h x datum; \ x 85 compat/hpux/m68k/hpux_exec.h (((x) + HPUX_LDPGSZ - 1) & ~(HPUX_LDPGSZ - 1)) x 97 compat/hpux/m68k/hpux_exec.h (HPUX_LDPGSZ + HPUX_SEGMENT_ROUND((x).ha_text)) : \ x 98 compat/hpux/m68k/hpux_exec.h (HPUX_EXEC_HDR_SIZE + (x).ha_text)) x 104 compat/hpux/m68k/hpux_exec.h (HPUX_LDPGSZ + HPUX_SEGMENT_ROUND((x).ha_text) + \ x 105 compat/hpux/m68k/hpux_exec.h HPUX_SEGMENT_ROUND((x).ha_data)) : \ x 106 compat/hpux/m68k/hpux_exec.h (HPUX_EXEC_HDR_SIZE + (x).ha_text + (x).ha_data)) 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 17 compat/hpux/m68k/hpux_syscallargs.h struct { x datum; } le; \ x 19 compat/hpux/m68k/hpux_syscallargs.h int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 21 compat/hpux/m68k/hpux_syscallargs.h : sizeof (register_t) - sizeof (x)]; \ x 22 compat/hpux/m68k/hpux_syscallargs.h x datum; \ 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 17 compat/ibcs2/ibcs2_syscallargs.h struct { x datum; } le; \ x 19 compat/ibcs2/ibcs2_syscallargs.h int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 21 compat/ibcs2/ibcs2_syscallargs.h : sizeof (register_t) - sizeof (x)]; \ x 22 compat/ibcs2/ibcs2_syscallargs.h x datum; \ x 55 compat/linux/linux_exec.h #define LINUX_N_DATOFF(x,m) (LINUX_N_TXTOFF(x,m) + (x).a_text) 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 64 compat/linux/linux_exec.h ((m)==OMAGIC? (LINUX__N_TXTENDADDR(x,m)) \ x 65 compat/linux/linux_exec.h : (LINUX__N_SEGMENT_ROUND (LINUX__N_TXTENDADDR(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 17 compat/linux/linux_syscallargs.h struct { x datum; } le; \ x 19 compat/linux/linux_syscallargs.h int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 21 compat/linux/linux_syscallargs.h : sizeof (register_t) - sizeof (x)]; \ x 22 compat/linux/linux_syscallargs.h x datum; \ 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 17 compat/osf1/osf1_syscallargs.h struct { x datum; } le; \ x 19 compat/osf1/osf1_syscallargs.h int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 21 compat/osf1/osf1_syscallargs.h : sizeof (register_t) - sizeof (x)]; \ x 22 compat/osf1/osf1_syscallargs.h x datum; \ x 53 compat/ossaudio/ossaudio.c #define DPRINTF(x) if (ossdebug) printf 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 137 compat/sunos/sunos_exec.c (SUNOS_N_TXTADDR(x,m) + (x).a_text) : \ x 138 compat/sunos/sunos_exec.c (SEGSIZ + ((SUNOS_N_TXTADDR(x,m) + (x).a_text - 1) & ~(SEGSIZ-1)))) x 139 compat/sunos/sunos_exec.c #define SUNOS_N_BSSADDR(x,m) (SUNOS_N_DATADDR(x,m)+(x).a_data) x 142 compat/sunos/sunos_exec.c #define SUNOS_N_DATOFF(x,m) (SUNOS_N_TXTOFF(x,m) + (x).a_text) x 444 compat/sunos/sunos_ioctl.c int x; /* unused */ x 446 compat/sunos/sunos_ioctl.c error = copyin((caddr_t)&x, SCARG(uap, data), sizeof x); x 451 compat/sunos/sunos_ioctl.c int x = 0; x 453 compat/sunos/sunos_ioctl.c error = copyout((caddr_t)&x, SCARG(uap, data), sizeof x); x 17 compat/sunos/sunos_syscallargs.h struct { x datum; } le; \ x 19 compat/sunos/sunos_syscallargs.h int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 21 compat/sunos/sunos_syscallargs.h : sizeof (register_t) - sizeof (x)]; \ x 22 compat/sunos/sunos_syscallargs.h x datum; \ 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 17 compat/svr4/svr4_syscallargs.h struct { x datum; } le; \ x 19 compat/svr4/svr4_syscallargs.h int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 21 compat/svr4/svr4_syscallargs.h : sizeof (register_t) - sizeof (x)]; \ x 22 compat/svr4/svr4_syscallargs.h x datum; \ 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 489 compat/ultrix/ultrix_ioctl.c int x; /* unused */ x 491 compat/ultrix/ultrix_ioctl.c error = copyin((caddr_t)&x, SCARG(uap, data), sizeof x); x 496 compat/ultrix/ultrix_ioctl.c int x = 0; x 498 compat/ultrix/ultrix_ioctl.c error = copyout((caddr_t)&x, SCARG(uap, data), sizeof x); x 17 compat/ultrix/ultrix_syscallargs.h struct { x datum; } le; \ x 19 compat/ultrix/ultrix_syscallargs.h int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 21 compat/ultrix/ultrix_syscallargs.h : sizeof (register_t) - sizeof (x)]; \ x 22 compat/ultrix/ultrix_syscallargs.h x datum; \ x 24 crypto/arc4.c u_int8_t t = ctx->state[x]; \ x 25 crypto/arc4.c ctx->state[x] = ctx->state[y]; \ x 32 crypto/arc4.c u_int8_t x, y; x 35 crypto/arc4.c x = y = 0; x 39 crypto/arc4.c y = (key[x] + ctx->state[i] + y) % RC4STATE; x 41 crypto/arc4.c x = (x + 1) % klen; x 43 crypto/arc4.c ctx->x = ctx->y = 0; x 53 crypto/arc4.c ctx->x = (ctx->x + 1) % RC4STATE; x 54 crypto/arc4.c ctx->y = (ctx->state[ctx->x] + ctx->y) % RC4STATE; x 55 crypto/arc4.c RC4SWAP(ctx->x, ctx->y); x 57 crypto/arc4.c (ctx->state[ctx->x] + ctx->state[ctx->y]) % RC4STATE]; x 65 crypto/arc4.c ctx->x = (ctx->x + 1) % RC4STATE; x 66 crypto/arc4.c ctx->y = (ctx->state[ctx->x] + ctx->y) % RC4STATE; x 67 crypto/arc4.c RC4SWAP(ctx->x, ctx->y); x 22 crypto/arc4.h u_int8_t x, y; x 57 crypto/blf.c #define F(s, x) ((((s)[ (((x)>>24)&0xFF)] \ x 58 crypto/blf.c + (s)[0x100 + (((x)>>16)&0xFF)]) \ x 59 crypto/blf.c ^ (s)[0x200 + (((x)>> 8)&0xFF)]) \ x 60 crypto/blf.c + (s)[0x300 + ( (x) &0xFF)]) x 72 crypto/blf.c Xl = x[0]; x 73 crypto/blf.c Xr = x[1]; x 85 crypto/blf.c x[0] = Xr ^ p[17]; x 86 crypto/blf.c x[1] = Xl; x 97 crypto/blf.c Xl = x[0]; x 98 crypto/blf.c Xr = x[1]; x 110 crypto/blf.c x[0] = Xr ^ p[0]; x 111 crypto/blf.c x[1] = Xl; 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 135 crypto/cast.c u_int32_t t[4], z[4], x[4]; x 143 crypto/cast.c x[i] = 0; x 144 crypto/cast.c if ((i*4+0) < keybytes) x[i] = (u_int32_t)rawkey[i*4+0] << 24; x 145 crypto/cast.c if ((i*4+1) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+1] << 16; x 146 crypto/cast.c if ((i*4+2) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+2] << 8; x 147 crypto/cast.c if ((i*4+3) < keybytes) x[i] |= (u_int32_t)rawkey[i*4+3]; x 153 crypto/cast.c t[0] = z[0] = x[0] ^ cast_sbox5[U_INT8_Tb(x[3])] ^ x 154 crypto/cast.c cast_sbox6[U_INT8_Td(x[3])] ^ x 155 crypto/cast.c cast_sbox7[U_INT8_Ta(x[3])] ^ x 156 crypto/cast.c cast_sbox8[U_INT8_Tc(x[3])] ^ x 157 crypto/cast.c cast_sbox7[U_INT8_Ta(x[2])]; x 158 crypto/cast.c t[1] = z[1] = x[2] ^ cast_sbox5[U_INT8_Ta(z[0])] ^ x 162 crypto/cast.c cast_sbox8[U_INT8_Tc(x[2])]; x 163 crypto/cast.c t[2] = z[2] = x[3] ^ cast_sbox5[U_INT8_Td(z[1])] ^ x 167 crypto/cast.c cast_sbox5[U_INT8_Tb(x[2])]; x 168 crypto/cast.c t[3] = z[3] = x[1] ^ cast_sbox5[U_INT8_Tc(z[2])] ^ x 172 crypto/cast.c cast_sbox6[U_INT8_Td(x[2])]; x 175 crypto/cast.c t[0] = x[0] = z[2] ^ cast_sbox5[U_INT8_Tb(z[1])] ^ x 180 crypto/cast.c t[1] = x[1] = z[0] ^ cast_sbox5[U_INT8_Ta(x[0])] ^ x 181 crypto/cast.c cast_sbox6[U_INT8_Tc(x[0])] ^ x 182 crypto/cast.c cast_sbox7[U_INT8_Tb(x[0])] ^ x 183 crypto/cast.c cast_sbox8[U_INT8_Td(x[0])] ^ x 185 crypto/cast.c t[2] = x[2] = z[1] ^ cast_sbox5[U_INT8_Td(x[1])] ^ x 186 crypto/cast.c cast_sbox6[U_INT8_Tc(x[1])] ^ x 187 crypto/cast.c cast_sbox7[U_INT8_Tb(x[1])] ^ x 188 crypto/cast.c cast_sbox8[U_INT8_Ta(x[1])] ^ x 190 crypto/cast.c t[3] = x[3] = z[3] ^ cast_sbox5[U_INT8_Tc(x[2])] ^ x 191 crypto/cast.c cast_sbox6[U_INT8_Tb(x[2])] ^ x 192 crypto/cast.c cast_sbox7[U_INT8_Td(x[2])] ^ x 193 crypto/cast.c cast_sbox8[U_INT8_Ta(x[2])] ^ x 245 crypto/cast.c key->xkey[i+0] ^= cast_sbox5[U_INT8_Ta(x[2])]; x 246 crypto/cast.c key->xkey[i+1] ^= cast_sbox6[U_INT8_Tb(x[3])]; x 247 crypto/cast.c key->xkey[i+2] ^= cast_sbox7[U_INT8_Td(x[0])]; x 248 crypto/cast.c key->xkey[i+3] ^= cast_sbox8[U_INT8_Td(x[1])]; x 257 crypto/cast.c key->xkey[i+0] ^= cast_sbox5[U_INT8_Td(x[0])]; x 258 crypto/cast.c key->xkey[i+1] ^= cast_sbox6[U_INT8_Td(x[1])]; x 259 crypto/cast.c key->xkey[i+2] ^= cast_sbox7[U_INT8_Ta(x[2])]; x 260 crypto/cast.c key->xkey[i+3] ^= cast_sbox8[U_INT8_Tb(x[3])]; x 272 crypto/cast.c t[i] = x[i] = z[i] = 0; x 69 crypto/cryptosoft.c (x) == CRYPTO_BUF_MBUF ? m_copyback((struct mbuf *)a,b,c,d) \ x 72 crypto/cryptosoft.c (x) == CRYPTO_BUF_MBUF ? m_copydata((struct mbuf *)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 138 crypto/md5.c ( w += f(x, y, z) + data, w = w<<s | w>>(32-s), w += x ) 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 84 crypto/rmd160.c #define X(i) x[i] x 159 crypto/rmd160.c u_int32_t a, b, c, d, e, aa, bb, cc, dd, ee, t, x[16]; x 162 crypto/rmd160.c memcpy(x, block, 64); x 167 crypto/rmd160.c x[i] = (u_int32_t)( 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 102 crypto/sha2.c (x) = ((tmp & 0xff00ff00UL) >> 8) | ((tmp & 0x00ff00ffUL) << 8); \ x 109 crypto/sha2.c (x) = ((tmp & 0xffff0000ffff0000ULL) >> 16) | \ 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 134 ddb/db_aout.c (((vaddr_t)(x) + sizeof(vsize_t) - 1) & ~(sizeof(vsize_t) - 1)) 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 146 dev/acpi/acpitz.c int x; x 156 dev/acpi/acpitz.c for (x = 0; x < res0.length; x++) { x 157 dev/acpi/acpitz.c if (res0.v_package[x]->type != AML_OBJTYPE_OBJREF) { x 158 dev/acpi/acpitz.c printf("%s: _PSL[%d] not a object ref\n", DEVNAME(sc), x); x 161 dev/acpi/acpitz.c ref = res0.v_package[x]->v_objref.ref; x 163 dev/acpi/acpitz.c printf("%s: _PSL[%d] not a CPU\n", DEVNAME(sc), x); x 175 dev/acpi/acpitz.c int rv = 1, x, y; x 190 dev/acpi/acpitz.c for (x = 0; x < res0.length; x++) { x 191 dev/acpi/acpitz.c if (res0.v_package[x]->type != AML_OBJTYPE_OBJREF) { x 193 dev/acpi/acpitz.c name, x); x 196 dev/acpi/acpitz.c ref = res0.v_package[x]->v_objref.ref; x 200 dev/acpi/acpitz.c name, x); x 206 dev/acpi/acpitz.c name, x); x 213 dev/acpi/acpitz.c DEVNAME(sc), name, x, y); x 220 dev/acpi/acpitz.c DEVNAME(sc), name, x, y, method); x 226 dev/acpi/acpitz.c DEVNAME(sc), name, x, y); 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 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 215 dev/acpi/dsdt.h (x)->hdr.typecode : (x)->hdr.typecode >> 3) x 216 dev/acpi/dsdt.h #define AML_CRSLEN(x) ((x)->hdr.typecode & 0x80 ? \ x 217 dev/acpi/dsdt.h 3+(x)->hdr.length : 1+((x)->hdr.typecode & 0x7)) 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 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 95 dev/cardbus/cardslotvar.h do {(x) &= ~CARDSLOT_STATUS_CARD_MASK;\ x 96 dev/cardbus/cardslotvar.h (x) |= (CARDSLOT_STATUS_CARD_MASK & (type));} while(0) x 102 dev/cardbus/cardslotvar.h #define CARDSLOT_WORK(x) ((x) & CARDSLOT_STATUS_WORK_MASK) x 104 dev/cardbus/cardslotvar.h do {(x) &= ~CARDSLOT_STATUS_WORK_MASK;\ x 105 dev/cardbus/cardslotvar.h (x) |= (CARDSLOT_STATUS_WORK_MASK & (type));} while(0) 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 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 115 dev/flashvar.h |flashsafe(x)) 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 82 dev/i2o/iop.c #define IFVERBOSE(x) x x 96 dev/i2o/ioprbs.c #define DPRINTF(x) printf 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 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 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 197 dev/ic/aic6360var.h if (!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 410 dev/ic/aic6915.h #define TDQCI_LoPrTxConsumerIndex(s) (((x) >> 0) & 0x7ff) x 420 dev/ic/aic6915.h #define TFCSR_TransmitThreshold(x) ((x) << 0) x 430 dev/ic/aic6915.h #define TCQC_TxCompletionQueueThreshold ((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 818 dev/ic/aic6915.h SF_CDTXDOFF((x)), sizeof(struct sf_txdesc0), (ops)) x 822 dev/ic/aic6915.h SF_CDTXCOFF((x)), sizeof(struct sf_tcd), (ops)) x 826 dev/ic/aic6915.h SF_CDRXDOFF((x)), sizeof(struct sf_rbd32), (ops)) x 830 dev/ic/aic6915.h SF_CDRXCOFF((x)), sizeof(struct sf_rcd_full), (ops)) x 834 dev/ic/aic6915.h struct sf_descsoft *__ds = &sc->sc_rxsoft[(x)]; \ x 836 dev/ic/aic6915.h (sc)->sc_rxbufdescs[(x)].rbd32_addr = \ x 838 dev/ic/aic6915.h SF_CDRXDSYNC((sc), (x), BUS_DMASYNC_PREWRITE); \ 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 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 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 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 385 dev/ic/atwvar.h __x = (x); \ x 404 dev/ic/atwvar.h ATW_CDRXOFF((x)), sizeof(struct atw_rxdesc), (ops)) x 413 dev/ic/atwvar.h struct atw_rxsoft *__rxs = &sc->sc_rxsoft[(x)]; \ x 414 dev/ic/atwvar.h struct atw_rxdesc *__rxd = &sc->sc_rxdescs[(x)]; \ x 420 dev/ic/atwvar.h htole32(ATW_CDRXADDR((sc), ATW_NEXTRX((x)))); \ x 425 dev/ic/atwvar.h ((x) == (ATW_NRXDESC - 1) ? ATW_RXCTL_RER : 0)); \ x 428 dev/ic/atwvar.h ATW_CDRXSYNC((sc), (x), \ x 52 dev/ic/bhavar.h #define CCB_HASH(x) ((((long)(x))>>CCB_HASH_SHIFT) & (CCB_HASH_SIZE - 1)) x 240 dev/ic/bt485.c data->curpos.x = data->curpos.y = 0; /* right now at 0,0 */ x 241 dev/ic/bt485.c data->curhot.x = data->curhot.y = 0; /* hot spot at 0,0 */ x 248 dev/ic/bt485.c data->cursize.x = data->cursize.y = 64; x 358 dev/ic/bt485.c if ((u_int)cursorp->size.x > CURSOR_MAX_SIZE || x 500 dev/ic/bt485.c curposp->x = curposp->y = CURSOR_MAX_SIZE; x 624 dev/ic/bt485.c int s, x, y; x 628 dev/ic/bt485.c x = data->curpos.x + CURSOR_MAX_SIZE - data->curhot.x; x 630 dev/ic/bt485.c data->ramdac_wr(cookie, BT485_REG_CURSOR_X_LOW, x & 0xff); x 631 dev/ic/bt485.c data->ramdac_wr(cookie, BT485_REG_CURSOR_X_HIGH, (x >> 8) & 0x0f); x 403 dev/ic/bt8xx.h struct bktr_clip x[BT848_MAX_CLIP_NODE]; x 66 dev/ic/cacvar.h (((u_char *)&(x))[0]) x 68 dev/ic/cacvar.h (((u_char *)&(x))[0] | (((u_char *)&(x))[1] << 8)) x 70 dev/ic/cacvar.h ((((u_char *)&(x))[0] | (((u_char *)&(x))[1] << 8)) | \ x 71 dev/ic/cacvar.h (((u_char *)&(x))[0] << 16 | (((u_char *)&(x))[1] << 24))) 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 156 dev/ic/com.c int x, err; x 162 dev/ic/com.c x = divrnd((freq / 16), speed); x 163 dev/ic/com.c if (x <= 0) x 165 dev/ic/com.c err = divrnd((quad_t)freq * 1000 / 16, speed * x) - 1000; x 170 dev/ic/com.c return x; 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 198 dev/ic/dc.c CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x)) x 201 dev/ic/dc.c CSR_WRITE_4(sc, reg, CSR_READ_4(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 90 dev/ic/dcreg.h (x->dc_type == DC_TYPE_98713 || \ x 91 dev/ic/dcreg.h x->dc_type == DC_TYPE_98713A || \ x 92 dev/ic/dcreg.h x->dc_type == DC_TYPE_987x5) x 95 dev/ic/dcreg.h (x->dc_type == DC_TYPE_AL981 || \ x 96 dev/ic/dcreg.h x->dc_type == DC_TYPE_AN983) x 99 dev/ic/dcreg.h (x->dc_type == DC_TYPE_AN983) x 102 dev/ic/dcreg.h (x->dc_type == DC_TYPE_21143 || \ x 103 dev/ic/dcreg.h x->dc_type == DC_TYPE_21145) 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 66 dev/ic/dptreg.h bus_space_read_1((x)->sc_iot, (x)->sc_ioh, (o)) x 69 dev/ic/dptreg.h RSWAP16(bus_space_read_2((x)->sc_iot, (x)->sc_ioh, (o))) x 72 dev/ic/dptreg.h RSWAP32(bus_space_read_4((x)->sc_iot, (x)->sc_ioh, (o))) x 75 dev/ic/dptreg.h bus_space_write_1((x)->sc_iot, (x)->sc_ioh, (o), (d)) x 78 dev/ic/dptreg.h bus_space_write_2((x)->sc_iot, (x)->sc_ioh, (o), RSWAP16(d)) x 81 dev/ic/dptreg.h bus_space_write_4((x)->sc_iot, (x)->sc_ioh, (o), RSWAP32(d)) x 290 dev/ic/elink3.c u_int16_t x = ep_read_eeprom(sc, i); x 292 dev/ic/elink3.c sc->sc_arpcom.ac_enaddr[(i << 1)] = x >> 8; x 293 dev/ic/elink3.c sc->sc_arpcom.ac_enaddr[(i << 1) + 1] = x; x 519 dev/ic/elink3reg.h sc->sc_ioh, EP_COMMAND, WINDOW_SELECT|x) x 211 dev/ic/fxp.c int x; x 216 dev/ic/fxp.c for (x = 1 << (length - 1); x; x >>= 1) { x 217 dev/ic/fxp.c if (data & x) x 583 dev/ic/fxp.c int x; x 589 dev/ic/fxp.c for (x = 3; x > 0; x--) { x 590 dev/ic/fxp.c if (FXP_EEPROM_OPC_READ & (1 << (x - 1))) { x 606 dev/ic/fxp.c for (x = 1; x <= 8; x++) { x 618 dev/ic/fxp.c sc->eeprom_size = x; x 633 dev/ic/fxp.c int i, x; x 640 dev/ic/fxp.c for (x = 3; x > 0; x--) { x 641 dev/ic/fxp.c if (FXP_EEPROM_OPC_READ & (1 << (x - 1))) { x 656 dev/ic/fxp.c for (x = sc->eeprom_size; x > 0; x--) { x 657 dev/ic/fxp.c if ((i + offset) & (1 << (x - 1))) { x 674 dev/ic/fxp.c for (x = 16; x > 0; x--) { x 680 dev/ic/fxp.c data[i] |= (1 << (x - 1)); x 1568 dev/ic/gdt_common.c printf("%s: GDT_IOCTL_DUMMY %d\n", dev->dv_xname, dummy->x++); x 38 dev/ic/gdtvar.h int x; x 123 dev/ic/gem.c printf x 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 236 dev/ic/gemvar.h __x = (x); \ x 255 dev/ic/gemvar.h GEM_CDRXOFF((x)), sizeof(struct gem_desc), (ops)) x 263 dev/ic/gemvar.h struct gem_rxsoft *__rxs = &sc->sc_rxsoft[(x)]; \ x 264 dev/ic/gemvar.h struct gem_desc *__rxd = &sc->sc_rxdescs[(x)]; \ x 274 dev/ic/gemvar.h GEM_CDRXSYNC((sc), (x), BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE); \ 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 127 dev/ic/isp_openbsd.h delay(x); \ x 133 dev/ic/isp_openbsd.h #define GET_NANOSEC(x) (((x)->tv_sec * 1000000000 + (x)->tv_nsec)) x 373 dev/ic/isp_openbsd.h struct timespec x; x 375 dev/ic/isp_openbsd.h timespecsub(b, a, &x); x 376 dev/ic/isp_openbsd.h elapsed = GET_NANOSEC(&x); 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 725 dev/ic/ispmbox.h #define BITS2WORD(x) ((x)[0] << 16 | (x)[3] << 8 | (x)[2]) 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 158 dev/ic/ispvar.h (((MAXISPREQUEST(x) >> 2) < 64)? 64 : MAXISPREQUEST(x) >> 2) 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 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 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 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 223 dev/ic/malo.c bus_space_write_4((sc)->sc_mem1_bt, (sc)->sc_mem1_bh, (off), (x)) x 225 dev/ic/malo.c bus_space_write_2((sc)->sc_mem1_bt, (sc)->sc_mem1_bh, (off), (x)) x 227 dev/ic/malo.c bus_space_write_1((sc)->sc_mem1_bt, (sc)->sc_mem1_bh, (off), (x)) x 235 dev/ic/malo.c bus_space_write_4((sc)->sc_mem2_bt, (sc)->sc_mem2_bh, (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 25 dev/ic/midwayreg.h #define vtophys(x) ((u_int32_t)(x)) /* sun4c dvma */ x 52 dev/ic/mpireg.h (((x) << MPI_DOORBELL_FUNCTION_SHIFT) & MPI_DOORBELL_FUNCTION_MASK) x 56 dev/ic/mpireg.h (((x) << MPI_DOORBELL_DWORDS_SHIFT) & MPI_DOORBELL_DWORDS_MASK) 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 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 179 dev/ic/ne2000.c int x, mstart = 0; x 187 dev/ic/ne2000.c for (x = 1; x < 256; x++) { x 189 dev/ic/ne2000.c x << ED_PAGE_SHIFT, ED_PAGE_SIZE, useword); x 191 dev/ic/ne2000.c x << ED_PAGE_SHIFT, tbuf, ED_PAGE_SIZE, useword); x 194 dev/ic/ne2000.c pbuf[i] = 255 - x; x 196 dev/ic/ne2000.c pbuf, x << ED_PAGE_SHIFT, ED_PAGE_SIZE, x 199 dev/ic/ne2000.c x << ED_PAGE_SHIFT, tbuf, ED_PAGE_SIZE, x 202 dev/ic/ne2000.c mstart = x << ED_PAGE_SHIFT; x 215 dev/ic/ne2000.c for (++x; x < 256; x++) { x 217 dev/ic/ne2000.c x << ED_PAGE_SHIFT, ED_PAGE_SIZE, useword); x 219 dev/ic/ne2000.c x << ED_PAGE_SHIFT, tbuf, ED_PAGE_SIZE, useword); x 222 dev/ic/ne2000.c pbuf[i] = 255 - x; x 224 dev/ic/ne2000.c pbuf, x << ED_PAGE_SHIFT, ED_PAGE_SIZE, x 227 dev/ic/ne2000.c x << ED_PAGE_SHIFT, tbuf, ED_PAGE_SIZE, 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 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 98 dev/ic/pgt.c #define DPRINTF(x) do { printf x; } while (0) 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 202 dev/ic/re.c CSR_READ_1(sc, RL_EECMD) | x) x 206 dev/ic/re.c CSR_READ_1(sc, RL_EECMD) & ~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 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 168 dev/ic/rt2661reg.h #define RT2661_TSF_MODE(x) (((x) & 0x3) << 17) x 167 dev/ic/rtl81x9.c CSR_READ_1(sc, RL_EECMD) | x) x 171 dev/ic/rtl81x9.c CSR_READ_1(sc, RL_EECMD) & ~x) x 272 dev/ic/rtl81x9.c CSR_READ_1(sc, RL_MII) | x) x 276 dev/ic/rtl81x9.c CSR_READ_1(sc, RL_MII) & ~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 614 dev/ic/rtl81x9reg.h (((x) + 1) % RL_TX_DESC_CNT(sc)) x 616 dev/ic/rtl81x9reg.h (((x) + 1) % RL_RX_DESC_CNT) x 618 dev/ic/rtl81x9reg.h (((x) + 1) % RL_TX_QLEN) 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 681 dev/ic/rtl81x9reg.h (x)->rl_type == RL_8169) 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 215 dev/ic/siopvar_common.h (((sc)->features & SF_CHIP_BE) ? htobe32((x)) : htole32((x))) x 218 dev/ic/siopvar_common.h (((sc)->features & SF_CHIP_BE) ? betoh32((x)) : letoh32((x))) x 1203 dev/ic/smc83c170.c int i, x; x 1221 dev/ic/smc83c170.c for (x = 3; x > 0; x--) { x 1223 dev/ic/smc83c170.c if (EPIC_EEPROM_OPC_READ & (1 << (x - 1))) x 1234 dev/ic/smc83c170.c for (x = 6; x > 0; x--) { x 1236 dev/ic/smc83c170.c if ((word + i) & (1 << (x - 1))) x 1249 dev/ic/smc83c170.c for (x = 16; x > 0; x--) { x 1253 dev/ic/smc83c170.c data[i] |= (1 << (x - 1)); 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 157 dev/ic/smc83c170var.h EPIC_CDTXOFF((x)), sizeof(struct epic_txdesc), (ops)) x 161 dev/ic/smc83c170var.h EPIC_CDRXOFF((x)), sizeof(struct epic_rxdesc), (ops)) x 165 dev/ic/smc83c170var.h EPIC_CDFLOFF((x)), sizeof(struct epic_fraglist), (ops)) x 169 dev/ic/smc83c170var.h struct epic_descsoft *__ds = EPIC_DSRX((sc), (x)); \ x 170 dev/ic/smc83c170var.h struct epic_rxdesc *__rxd = EPIC_CDRX((sc), (x)); \ x 182 dev/ic/smc83c170var.h __rxd->er_nextdesc = EPIC_CDRXADDR((sc), EPIC_NEXTRX((x))); \ x 183 dev/ic/smc83c170var.h EPIC_CDRXSYNC((sc), (x), BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE); \ 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 67 dev/ic/smc91cxxvar.h BANK_SELECT_REG_W, (x)) x 634 dev/ic/sti.c a.in.x = ((uc - fp->first) / scr->scr_fontmaxcol) * x 1040 dev/ic/sti.c a.in.x = col * fp->width; x 300 dev/ic/stireg.h u_int16_t x, y; 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 800 dev/ic/tcic2reg.h || (((((x)&0x08) == 0) || (((x)&0x03) == 2)) \ x 801 dev/ic/tcic2reg.h && ((x) != 0x02))) x 803 dev/ic/tcic2reg.h #define INVALID_AR_SYSCFG(x) ((((x)&0x0800) && (((x)&0x0600) != 0x0100)) \ x 804 dev/ic/tcic2reg.h || ((((((x)&0x08) == 0) && (((x)&0x03) == 2)) \ x 805 dev/ic/tcic2reg.h || (((x)&0x03) == 2)) \ x 806 dev/ic/tcic2reg.h && ((x) != 0x02))) 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 254 dev/ic/xl.c CSR_READ_2(sc, XL_W4_PHY_MGMT) | (x)) x 258 dev/ic/xl.c CSR_READ_2(sc, XL_W4_PHY_MGMT) & ~(x)) x 455 dev/ic/xlreg.h #define XL_INC(x, y) (x) = (x + 1) % (y) x 610 dev/ic/xlreg.h ((x.xl_upper_frames_ok & 0x03) << 8) | x.xl_rx_frames_ok x 613 dev/ic/xlreg.h ((x.xl_upper_frames_ok & 0x30) << 4) | x.xl_tx_frames_ok x 649 dev/ic/xlreg.h CSR_WRITE_2(sc, XL_COMMAND, XL_CMD_WINSEL | 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 165 dev/isa/ad1848.c int x, s; x 169 dev/isa/ad1848.c x = ADREAD(sc, AD1848_IDATA); x 173 dev/isa/ad1848.c return 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 87 dev/isa/aria.c #define DPRINTF(x) if (ariadebug) 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 55 dev/isa/ess_isapnp.c #define DPRINTF(x) printf 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 260 dev/isa/fdc.c bus_space_write_1(iot, ioh, fddata, 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 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 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 153 dev/isa/if_ec.c u_int8_t x; x 216 dev/isa/if_ec.c x = bus_space_read_1(asict, asich, ELINK2_BCFR); x 217 dev/isa/if_ec.c if (x == 0 || (x & (x - 1)) != 0) x 219 dev/isa/if_ec.c i = ffs(x) - 1; x 227 dev/isa/if_ec.c x = bus_space_read_1(asict, asich, ELINK2_PCFR); x 228 dev/isa/if_ec.c if (x == 0 || (x & (x - 1)) != 0) x 230 dev/isa/if_ec.c i = ffs(x) - 1; x 163 dev/isa/if_ef_isapnp.c u_int16_t x; x 182 dev/isa/if_ef_isapnp.c x = bus_space_read_2(iot, ioh, EF_W0_EEPROM_DATA); x 184 dev/isa/if_ef_isapnp.c sc->sc_arpcom.ac_enaddr[(i << 1)] = x >> 8; x 185 dev/isa/if_ef_isapnp.c sc->sc_arpcom.ac_enaddr[(i << 1) + 1] = x; x 814 dev/isa/if_ef_isapnp.c | (x)) x 819 dev/isa/if_ef_isapnp.c & (~(x))) x 80 dev/isa/if_eg.c #define DPRINTF(x) printf x x 58 dev/isa/if_el.c #define dprintf(x) printf 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 120 dev/isa/if_le_isa.c u_char x; x 203 dev/isa/if_we.c u_int8_t x, type; x 238 dev/isa/if_we.c for (x = 0, i = 0; i < 8; i++) x 239 dev/isa/if_we.c x += bus_space_read_1(asict, asich, WE_PROM + i); x 241 dev/isa/if_we.c if (x != WE_ROM_CHECKSUM_TOTAL) { x 299 dev/isa/if_we.c x = bus_space_read_1(asict, asich, WE790_GCR); x 300 dev/isa/if_we.c i = ((x & WE790_GCR_IR2) >> 4) | x 301 dev/isa/if_we.c ((x & (WE790_GCR_IR1|WE790_GCR_IR0)) >> 2); x 345 dev/isa/if_we.c u_int8_t x; x 450 dev/isa/if_we.c x = bus_space_read_1(asict, asich, 0x04); x 451 dev/isa/if_we.c bus_space_write_1(asict, asich, 0x04, x | 0x80); x 456 dev/isa/if_we.c bus_space_write_1(asict, asich, 0x04, x); x 754 dev/isa/if_we.c u_int8_t x; x 757 dev/isa/if_we.c x = bus_space_read_1(wsc->sc_asict, wsc->sc_asich, WE790_HWR); x 759 dev/isa/if_we.c x | WE790_HWR_SWH); x 766 dev/isa/if_we.c x &~ WE790_HWR_SWH); x 768 dev/isa/if_we.c x = bus_space_read_1(wsc->sc_asict, wsc->sc_asich, WE_IRR); x 769 dev/isa/if_we.c if (x & WE_IRR_OUT2) x 41 dev/isa/it.c #define DPRINTF(x) do { printf x; } while (0) 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 977 dev/isa/mcd.c int i, x; x 983 dev/isa/mcd.c if ((x = mcd_getreply(sc)) < 0) { x 991 dev/isa/mcd.c printf(" %02x", (u_int)x); x 992 dev/isa/mcd.c sc->status = x; x 999 dev/isa/mcd.c if ((x = mcd_getreply(sc)) < 0) { x 1007 dev/isa/mcd.c printf(" %02x", (u_int)x); x 1008 dev/isa/mcd.c res->data.raw.data[i] = x; x 1018 dev/isa/mcd.c x = bus_space_read_1(sc->sc_iot, sc->sc_ioh, MCD_STATUS); x 1020 dev/isa/mcd.c sc->sc_dev.dv_xname, (u_int)x); x 1146 dev/isa/mcd.c u_char x; x 1168 dev/isa/mcd.c x = bus_space_read_1(iot, ioh, MCD_XFER); x 1169 dev/isa/mcd.c if ((x & MCD_XF_STATUSUNAVAIL) == 0) x 1208 dev/isa/mcd.c x = bus_space_read_1(iot, ioh, MCD_XFER); x 1209 dev/isa/mcd.c if ((x & MCD_XF_DATAUNAVAIL) == 0) x 1211 dev/isa/mcd.c if ((x & MCD_XF_STATUSUNAVAIL) == 0) 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 54 dev/isa/mpu_isa.c #define DPRINTF(x) if (mpu_debug) printf x x 52 dev/isa/nsclpcsio_isa.c #define DPRINTF(x) do { printf x; } while (0) x 76 dev/isa/pas.c #define DPRINTF(x) if (pasdebug) printf x x 149 dev/isa/pss.c #define DPRINTF(x) if (pssdebug) printf 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 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 122 dev/isa/sbdsp.c #define SB_RATE_TO_TC(x) (256 - 1000000 / (x)) x 964 dev/isa/sbdsp.c u_char x; x 967 dev/isa/sbdsp.c x = bus_space_read_1(iot, ioh, SBP_DSP_WSTAT); x 969 dev/isa/sbdsp.c if ((x & SB_DSP_BUSY) == 0) { x 989 dev/isa/sbdsp.c u_char x; x 992 dev/isa/sbdsp.c x = bus_space_read_1(iot, ioh, SBP_DSP_RSTAT); x 994 dev/isa/sbdsp.c if (x & SB_DSP_READY) { x 995 dev/isa/sbdsp.c x = bus_space_read_1(iot, ioh, SBP_DSP_READ); x 997 dev/isa/sbdsp.c return 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 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 69 dev/isa/wss_isa.c #define DPRINTF(x) if (wssdebug) printf x x 88 dev/microcode/adw/adwmcode.h (((u_long)x) - ((u_long)(carriers)))) x 95 dev/microcode/adw/adwmcode.h ((u_long)x) - \ 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 314 dev/mii/ciphy.c PHY_WRITE(x, y, (PHY_READ(x, y) | (z))) x 316 dev/mii/ciphy.c PHY_WRITE(x, y, (PHY_READ(x, y) & ~(z))) x 73 dev/mii/dcphy.c CSR_READ_4(sc, reg) | x) x 77 dev/mii/dcphy.c CSR_READ_4(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 57 dev/mii/mii_bitbang.c ops->mbo_write(sc, (x)); \ x 235 dev/mii/miivar.h mii_attach((x), (y), (z), MII_PHY_ANY, MII_OFFSET_ANY, 0) x 380 dev/mii/rgephy.c PHY_WRITE(x, y, (PHY_READ(x, y) | (z))) x 382 dev/mii/rgephy.c PHY_WRITE(x, y, (PHY_READ(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 37 dev/onewire/onewire.c #define DPRINTF(x) printf 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 39 dev/pci/amdiic.c #define DPRINTF(x) printf 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 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 173 dev/pci/auixp.c #define DPRINTF(x) printf 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 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 1603 dev/pci/autri.c int x; x 1605 dev/pci/autri.c for (x = 0; x != MIDI_BUSY_WAIT; 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 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 464 dev/pci/azalia.h #define PTR_UPPER32(x) ((uint64_t)(x) >> 32) x 504 dev/pci/azalia.h #define IS_MI_TARGET_INAMP(x) ((x) <= 15) x 505 dev/pci/azalia.h #define MI_TARGET_INAMP(x) (x) x 403 dev/pci/bktr/bktr_card.c int x; x 422 dev/pci/bktr/bktr_card.c for ( x = 0; x < count; ++x ) { x 425 dev/pci/bktr/bktr_card.c data[ x ] = byte; x 444 dev/pci/bktr/bktr_card.c int x; x 446 dev/pci/bktr/bktr_card.c for ( x = 0; x < 16; ++x ) x 447 dev/pci/bktr/bktr_card.c sig[ x ] = 0; x 449 dev/pci/bktr/bktr_card.c for ( x = 0; x < count; ++x ) { x 450 dev/pci/bktr/bktr_card.c if ( i2cRead( bktr, (2 * x) + 1 ) != ABSENT ) { x 451 dev/pci/bktr/bktr_card.c sig[ x / 8 ] |= (1 << (x % 8) ); x 472 dev/pci/bktr/bktr_card.c int x, temp_read; x 475 dev/pci/bktr/bktr_card.c for ( x = 0; x < 128; ++x ) { x 476 dev/pci/bktr/bktr_card.c temp_read = i2cRead( bktr, (2 * x) + 1 ); x 2388 dev/pci/bktr/bktr_core.c if (x >= clip_node->x_min && x <= clip_node->x_max ) { x 2411 dev/pci/bktr/bktr_core.c if (x >= clip_node->x_min && x <= clip_node->x_max) { x 2422 dev/pci/bktr/bktr_core.c if (x >= clip_node->x_min && x <= clip_node->x_max) { x 3598 dev/pci/bktr/bktr_core.c u_int x; x 3621 dev/pci/bktr/bktr_core.c for ( x = 0x7fffffff; x; --x ) { /* safety valve */ x 3627 dev/pci/bktr/bktr_core.c if ( !x || !(INL(bktr, BKTR_INT_STAT) & BT848_INT_RACK) ) x 3641 dev/pci/bktr/bktr_core.c u_int32_t x, stat; x 3657 dev/pci/bktr/bktr_core.c for (x = 5000; x--; DELAY(1)) /* 5 msec, safety valve */ x 3666 dev/pci/bktr/bktr_core.c x = INL(bktr, BKTR_I2C_DATA_CTL); x 3667 dev/pci/bktr/bktr_core.c return ((x >> 8) & 0xff); x 3691 dev/pci/bktr/bktr_core.c int x; x 3695 dev/pci/bktr/bktr_core.c for ( x = 7; x >= 0; --x ) { x 3696 dev/pci/bktr/bktr_core.c if ( data & (1<<x) ) { x 3724 dev/pci/bktr/bktr_core.c int x; x 3731 dev/pci/bktr/bktr_core.c for ( x = 7; x >= 0; --x ) { x 3735 dev/pci/bktr/bktr_core.c if ( bit ) byte |= (1<<x); x 3865 dev/pci/bktr/bktr_core.c int x, status; x 3876 dev/pci/bktr/bktr_core.c for ( x = 7; x >= 0; --x ) { x 3877 dev/pci/bktr/bktr_core.c if ( addr & (1<<x) ) { x 80 dev/pci/bktr/bktr_os.c #define DPR(x) (bktr_debug ? printf x : 0) 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 657 dev/pci/bktr/bktr_tuner.c #define TBL_CHNL freqTable[ bktr->tuner.chnlset ].ptr[ x ] x 658 dev/pci/bktr/bktr_tuner.c #define TBL_BASE_FREQ freqTable[ bktr->tuner.chnlset ].ptr[ x + 1 ] x 659 dev/pci/bktr/bktr_tuner.c #define TBL_OFFSET freqTable[ bktr->tuner.chnlset ].ptr[ x + 2 ] x 663 dev/pci/bktr/bktr_tuner.c int x; x 666 dev/pci/bktr/bktr_tuner.c x = 0; x 671 dev/pci/bktr/bktr_tuner.c for ( x = 3; TBL_CHNL; x += 3 ) { x 52 dev/pci/cmpci.c #define DPRINTF(x) if (cmpcidebug) printf 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 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 1944 dev/pci/cs4280.c int x; x 1946 dev/pci/cs4280.c for (x = 0; x != MIDI_BUSY_WAIT; 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 273 dev/pci/cs4281reg.h Logical Size: 256 x 32 bits (1 kbytes stereo double words) 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 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 1721 dev/pci/eap.c int x; x 1723 dev/pci/eap.c for (x = 0; x != MIDI_BUSY_WAIT; x++) { x 62 dev/pci/ehci_pci.c #define DPRINTF(x) if (ehcidebug) printf x x 658 dev/pci/emuxki.c ((x << 12) & EMU_A_DSP_LOWORD_OPX_MASK) | x 666 dev/pci/emuxki.c ((x << 10) & EMU_DSP_LOWORD_OPX_MASK) | 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 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 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 151 dev/pci/if_bce.c struct bce_dma_slot *__bced = &sc->bce_rx_ring[x]; \ x 153 dev/pci/if_bce.c *mtod(sc->bce_cdata.bce_rx_chain[x], u_int32_t *) = 0; \ x 155 dev/pci/if_bce.c htole32(sc->bce_cdata.bce_rx_map[x]->dm_segs[0].ds_addr \ x 157 dev/pci/if_bce.c if (x != (BCE_NRXDESC - 1)) \ x 162 dev/pci/if_bce.c sizeof(struct bce_dma_slot) * x, \ x 192 dev/pci/if_bce.c printf x; \ x 196 dev/pci/if_bce.c printf 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 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 1815 dev/pci/if_bgereg.h (0xFFFF0000 & x)); \ x 1816 dev/pci/if_bgereg.h val = CSR_READ_4(sc, BGE_MEMWIN_START + (x & 0xFFFF)); \ x 1822 dev/pci/if_bgereg.h (0xFFFF0000 & x)); \ x 1823 dev/pci/if_bgereg.h CSR_WRITE_4(sc, BGE_MEMWIN_START + (x & 0xFFFF), val); \ x 1841 dev/pci/if_bgereg.h (x).bge_addr_lo = ((u_int64_t) (y) & 0xffffffff); \ x 1843 dev/pci/if_bgereg.h (x).bge_addr_hi = ((u_int64_t) (y) >> 32); \ x 1845 dev/pci/if_bgereg.h (x).bge_addr_hi = 0; \ 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 2246 dev/pci/if_bgereg.h CSR_WRITE_4(sc, reg, (CSR_READ_4(sc, reg) | (x))) x 2248 dev/pci/if_bgereg.h CSR_WRITE_4(sc, reg, (CSR_READ_4(sc, reg) & ~(x))) x 2251 dev/pci/if_bgereg.h pci_conf_write(pc, tag, reg, (pci_conf_read(pc, tag, reg) | (x))) x 2253 dev/pci/if_bgereg.h pci_conf_write(pc, tag, reg, (pci_conf_read(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 4442 dev/pci/if_bnxreg.h (x) + 2 : (x) + 1 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 4451 dev/pci/if_bnxreg.h (x) + 2 : (x) + 1 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 141 dev/pci/if_cas.c printf x 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 200 dev/pci/if_casvar.h __x = (x); \ x 219 dev/pci/if_casvar.h CAS_CDRXOFF((x)), sizeof(struct cas_desc), (ops)) x 223 dev/pci/if_casvar.h CAS_CDRXCOFF((x)), sizeof(struct cas_desc), (ops)) x 833 dev/pci/if_devar.h tulip_cycle_t x; x 834 dev/pci/if_devar.h __asm__ volatile (".byte 0x0f, 0x31" : "=A" (x)); x 835 dev/pci/if_devar.h return x; x 844 dev/pci/if_devar.h tulip_cycle_t x; x 845 dev/pci/if_devar.h __asm__ volatile ("rpcc %0" : "=r" (x)); x 846 dev/pci/if_devar.h return x; 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 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 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 176 dev/pci/if_lge.c CSR_READ_4(sc, reg) | (x)) x 180 dev/pci/if_lge.c CSR_READ_4(sc, reg) & ~(x)) x 183 dev/pci/if_lge.c CSR_WRITE_4(sc, LGE_MEAR, CSR_READ_4(sc, LGE_MEAR) | x) x 186 dev/pci/if_lge.c CSR_WRITE_4(sc, LGE_MEAR, CSR_READ_4(sc, LGE_MEAR) & ~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 455 dev/pci/if_lgereg.h (x->lge_ldata->lge_rx_list[x->lge_cdata.lge_rx_prod]) x 603 dev/pci/if_lmc_media.c av->x = 1; x 606 dev/pci/if_lmc_media.c write_av9110(sc, av->n, av->m, av->v, av->x, av->r); x 618 dev/pci/if_lmc_media.c write_av9110(sc, av->n, av->m, av->v, av->x, av->r); x 736 dev/pci/if_lmc_media.c n, m, v, x, r); x 763 dev/pci/if_lmc_media.c write_av9110_bit(sc, x >> i); 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 52 dev/pci/if_lmcioctl.h u_int32_t x; x 103 dev/pci/if_lmcvar.h #define DP(x) printf 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 241 dev/pci/if_msk.c CSR_WRITE_4(sc, reg, x); x 247 dev/pci/if_msk.c CSR_WRITE_2(sc, reg, x); x 253 dev/pci/if_msk.c CSR_WRITE_1(sc, reg, 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 155 dev/pci/if_mskvar.h __x = (x); \ x 176 dev/pci/if_mskvar.h MSK_CDRXOFF((x)), sizeof(struct msk_rx_desc), (ops)); \ x 182 dev/pci/if_mskvar.h MSK_CDSTOFF((x)), sizeof(struct msk_status_desc), (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 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 202 dev/pci/if_nge.c CSR_READ_4(sc, reg) | (x)) x 206 dev/pci/if_nge.c CSR_READ_4(sc, reg) & ~(x)) x 209 dev/pci/if_nge.c CSR_WRITE_4(sc, NGE_MEAR, CSR_READ_4(sc, NGE_MEAR) | (x)) x 212 dev/pci/if_nge.c CSR_WRITE_4(sc, NGE_MEAR, CSR_READ_4(sc, NGE_MEAR) & ~(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 351 dev/pci/if_pcn.c __x = (x); \ x 370 dev/pci/if_pcn.c PCN_CDRXOFF((x)), sizeof(struct lermd), (ops)) x 378 dev/pci/if_pcn.c struct pcn_rxsoft *__rxs = &(sc)->sc_rxsoft[(x)]; \ x 379 dev/pci/if_pcn.c struct lermd *__rmd = &(sc)->sc_rxdescs[(x)]; \ x 400 dev/pci/if_pcn.c PCN_CDRXSYNC((sc), (x), BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE);\ x 1437 dev/pci/if_pcn.c if (rmd1 & (x)) \ 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 162 dev/pci/if_sis.c CSR_READ_4(sc, reg) | (x)) x 166 dev/pci/if_sis.c CSR_READ_4(sc, reg) & ~(x)) x 169 dev/pci/if_sis.c CSR_WRITE_4(sc, SIS_EECTL, CSR_READ_4(sc, SIS_EECTL) | x) x 172 dev/pci/if_sis.c CSR_WRITE_4(sc, SIS_EECTL, CSR_READ_4(sc, SIS_EECTL) & ~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 232 dev/pci/if_sk.c CSR_WRITE_4(sc, reg, x); x 238 dev/pci/if_sk.c CSR_WRITE_2(sc, reg, x); x 244 dev/pci/if_sk.c CSR_WRITE_1(sc, reg, x); x 386 dev/pci/if_skreg.h #define SK_IM_USECS(x) ((x) * imtimer_ticks) x 1386 dev/pci/if_skreg.h SK_XM_WRITE_4(sc, reg, (SK_XM_READ_4(sc, reg)) | (x)) x 1389 dev/pci/if_skreg.h SK_XM_WRITE_4(sc, reg, (SK_XM_READ_4(sc, reg)) & ~(x)) x 1392 dev/pci/if_skreg.h SK_XM_WRITE_2(sc, reg, (SK_XM_READ_2(sc, reg)) | (x)) x 1395 dev/pci/if_skreg.h SK_XM_WRITE_2(sc, reg, (SK_XM_READ_2(sc, reg)) & ~(x)) x 1415 dev/pci/if_skreg.h SK_YU_WRITE_4(sc, reg, (SK_YU_READ_4(sc, reg)) | (x)) x 1418 dev/pci/if_skreg.h SK_YU_WRITE_4(sc, reg, (SK_YU_READ_4(sc, reg)) & ~(x)) x 1421 dev/pci/if_skreg.h SK_YU_WRITE_2(sc, reg, (SK_YU_READ_2(sc, reg)) | (x)) x 1424 dev/pci/if_skreg.h SK_YU_WRITE_2(sc, reg, (SK_YU_READ_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 155 dev/pci/if_skvar.h __x = (x); \ x 176 dev/pci/if_skvar.h SK_CDRXOFF((x)), sizeof(struct sk_rx_desc), (ops)); \ x 184 dev/pci/if_skvar.h #define SK_INC(x, y) (x) = (x + 1) % y x 124 dev/pci/if_ste.c CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | x) x 127 dev/pci/if_ste.c CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~x) x 130 dev/pci/if_ste.c CSR_WRITE_2(sc, reg, CSR_READ_2(sc, reg) | x) x 133 dev/pci/if_ste.c CSR_WRITE_2(sc, reg, CSR_READ_2(sc, reg) & ~x) x 136 dev/pci/if_ste.c CSR_WRITE_1(sc, reg, CSR_READ_1(sc, reg) | x) x 139 dev/pci/if_ste.c CSR_WRITE_1(sc, reg, CSR_READ_1(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 603 dev/pci/if_stgereg.h STGE_CDTXOFF((x)), sizeof(struct stge_tfd), (ops)) x 607 dev/pci/if_stgereg.h STGE_CDRXOFF((x)), sizeof(struct stge_rfd), (ops)) x 611 dev/pci/if_stgereg.h struct stge_descsoft *__ds = &(sc)->sc_rxsoft[(x)]; \ x 612 dev/pci/if_stgereg.h struct stge_rfd *__rfd = &(sc)->sc_rxdescs[(x)]; \ x 623 dev/pci/if_stgereg.h htole64((uint64_t)STGE_CDRXADDR((sc), STGE_NEXTRX((x)))); \ x 625 dev/pci/if_stgereg.h STGE_CDRXSYNC((sc), (x), BUS_DMASYNC_PREREAD|BUS_DMASYNC_PREWRITE); \ 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 907 dev/pci/if_tireg.h cmd.ti_cmdx = (((x) << 24) | ((y) << 12) | ((z))); \ x 911 dev/pci/if_tireg.h cmd.ti_cmdx = (((x) << 24) | ((y) << 12) | ((z))); \ x 917 dev/pci/if_tireg.h #define TI_INC(x, y) (x) = (x + 1) % y x 920 dev/pci/if_tireg.h if (x->ti_hwrev == TI_HWREV_TIGON) { \ x 923 dev/pci/if_tireg.h CSR_WRITE_4(x, TI_MB_JUMBORXPROD_IDX, y); \ x 927 dev/pci/if_tireg.h CSR_WRITE_4(x, TI_MB_MINIRXPROD_IDX, y); x 930 dev/pci/if_tireg.h if (x->ti_hwrev == TI_HWREV_TIGON) { \ x 933 dev/pci/if_tireg.h CSR_WRITE_4(x, TI_MB_STDRXPROD_IDX, y); \ x 982 dev/pci/if_tireg.h CSR_WRITE_4(sc, (reg), (CSR_READ_4(sc, (reg)) | (x))) x 984 dev/pci/if_tireg.h CSR_WRITE_4(sc, (reg), (CSR_READ_4(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 517 dev/pci/if_tlreg.h CSR_WRITE_4(sc, TL_HOSTCMD, CSR_READ_4(sc, TL_HOSTCMD) | (x)) x 519 dev/pci/if_tlreg.h CSR_WRITE_4(sc, TL_HOSTCMD, CSR_READ_4(sc, TL_HOSTCMD) & ~(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 113 dev/pci/if_vgevar.h CSR_WRITE_1(sc, reg, CSR_READ_1(sc, reg) | (x)) x 115 dev/pci/if_vgevar.h CSR_WRITE_2(sc, reg, CSR_READ_2(sc, reg) | (x)) x 117 dev/pci/if_vgevar.h CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x)) x 120 dev/pci/if_vgevar.h CSR_WRITE_1(sc, reg, CSR_READ_1(sc, reg) & ~(x)) x 122 dev/pci/if_vgevar.h CSR_WRITE_2(sc, reg, CSR_READ_2(sc, reg) & ~(x)) x 124 dev/pci/if_vgevar.h CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~(x)) x 156 dev/pci/if_vr.c CSR_READ_1(sc, reg) | (x)) x 160 dev/pci/if_vr.c CSR_READ_1(sc, reg) & ~(x)) x 164 dev/pci/if_vr.c CSR_READ_2(sc, reg) | (x)) x 168 dev/pci/if_vr.c CSR_READ_2(sc, reg) & ~(x)) x 172 dev/pci/if_vr.c CSR_READ_4(sc, reg) | (x)) x 176 dev/pci/if_vr.c CSR_READ_4(sc, reg) & ~(x)) x 180 dev/pci/if_vr.c CSR_READ_1(sc, VR_MIICMD) | (x)) x 184 dev/pci/if_vr.c CSR_READ_1(sc, VR_MIICMD) & ~(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 180 dev/pci/if_wb.c CSR_READ_4(sc, reg) | x) x 184 dev/pci/if_wb.c CSR_READ_4(sc, reg) & ~x) x 188 dev/pci/if_wb.c CSR_READ_4(sc, WB_SIO) | x) x 192 dev/pci/if_wb.c CSR_READ_4(sc, WB_SIO) & ~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 2209 dev/pci/if_wpi.c ((y1) + fdivround(((x) - (x1)) * ((y2) - (y1)), (x2) - (x1), 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 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 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 733 dev/pci/isp_pci.c (((struct isp_pcisoftc *)a)->pci_poff[((x) & _BLK_REG_MASK) >> \ x 734 dev/pci/isp_pci.c _BLK_REG_SHFT] + ((x) & 0xff)) 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 1476 dev/pci/musycc.c (x) = ((x) + 1) & MUSYCC_SREQMASK; \ x 1477 dev/pci/musycc.c if (x == y) \ x 1845 dev/pci/musycc.c MUSYCC_GROUPBASE(mg->mg_gnum) + (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 69 dev/pci/musyccreg.h (((x) >> 4) & 0x7) /* get elapse value */ x 71 dev/pci/musyccreg.h ((x & 0x7) << 4) /* set elapse value */ x 73 dev/pci/musyccreg.h (((x) >> 8) & 0x3) /* get alapse value */ x 75 dev/pci/musyccreg.h ((x & 0x3) << 8) /* set alapse value */ x 79 dev/pci/musyccreg.h (((x) >> 12) & 0x7) /* get blapse value */ x 81 dev/pci/musyccreg.h ((x & 0x7) << 12) /* set blapse value */ x 88 dev/pci/musyccreg.h ((((x) >> 29) & 0x3) | (((x) >> 12) & 0x4)) /* Group Number [0-7] */ x 90 dev/pci/musyccreg.h (((x) >> 24) & 0x1f) /* Channel Number [0-31] */ x 92 dev/pci/musyccreg.h (((x) >> 20) & 0xf) /* Event that caused the int */ x 94 dev/pci/musyccreg.h (((x) >> 16) & 0xf) /* Error that caused the int */ x 127 dev/pci/musyccreg.h ((x) & MUSYCC_SREQ_MASK) /* shortcut */ x 130 dev/pci/musyccreg.h (((x) & MUSYCC_SREQ_MASK) << 8) /* Service Request */ x 179 dev/pci/musyccreg.h ((x) & MUSYCC_TSLOT_MASK) /* masked channel number */ x 198 dev/pci/musyccreg.h (((x) >> 12) & 0x7) /* get line protocol */ x 200 dev/pci/musyccreg.h ((x & 0x7) << 12) /* set line protocol */ x 207 dev/pci/musyccreg.h (((x) >> 16) & 0x3f) /* get FIFO Buffer Length */ x 209 dev/pci/musyccreg.h (((x) & 0x3F) << 16) /* set FIFO Buffer Length */ x 211 dev/pci/musyccreg.h (((x) >> 24) & 0x3f) /* get FIFO Buffer Index */ x 213 dev/pci/musyccreg.h (((x) & 0x3F) << 24) /* set FIFO Buffer Index */ x 218 dev/pci/musyccreg.h ((x) & 0x3fff) /* length of dma buffer */ x 227 dev/pci/musyccvar.h printf x; \ x 441 dev/pci/neo.c int status, x; x 476 dev/pci/neo.c x = nm_rd(sc, 0x400, 1); x 477 dev/pci/neo.c nm_wr(sc, 0x400, x | 2, 1); x 484 dev/pci/neo.c x = nm_rd(sc, 0x400, 1); x 485 dev/pci/neo.c nm_wr(sc, 0x400, x & ~2, 1); x 840 dev/pci/neo.c u_int8_t x; x 853 dev/pci/neo.c for (x = 0; x < 8; x++) x 854 dev/pci/neo.c if (p->sample_rate < (samplerates[x] + samplerates[x + 1]) / 2) x 857 dev/pci/neo.c if (x == 8) return (EINVAL); x 859 dev/pci/neo.c p->sample_rate = samplerates[x]; x 860 dev/pci/neo.c nm_loadcoeff(sc, mode, x); x 862 dev/pci/neo.c x <<= 4; x 863 dev/pci/neo.c x &= NM_RATE_MASK; x 864 dev/pci/neo.c if (p->precision == 16) x |= NM_RATE_BITS_16; x 865 dev/pci/neo.c if (p->channels == 2) x |= NM_RATE_STEREO; x 869 dev/pci/neo.c nm_wr(sc, base + NM_RATE_REG_OFFSET, x, 1); 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 84 dev/pci/pccbb.c #define DPRINTF(x) printf x x 62 dev/pci/pccbbreg.h ((x) >> PCI_CB_LATENCY_SHIFT) & PCI_CB_LATENCY_MASK) x 490 dev/pci/pci.c #define PCIDEBUG(x) printf x x 55 dev/pci/pciide_acard_reg.h (((x) & 0x3) << ((channel) * 4 + (drive) * 2)) x 57 dev/pci/pciide_acard_reg.h (((x) & 0xf) << ((channel) * 8 + (drive) * 4)) 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 65 dev/pci/pciide_apollo_reg.h ((x) & 0x3) << ((1 - (channel)) << 1 + 24) 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 41 dev/pci/pciide_nforce_reg.h ((x) << ((3 - ((chan) * 2 + (drive))) * 8)) x 51 dev/pci/pciide_nforce_reg.h ((x) << ((3 - ((chan) * 2 + (drive))) * 8)) 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 62 dev/pci/pciide_piix_reg.h ((x) | ((bytes) << (16 * (channel)))) x 64 dev/pci/pciide_piix_reg.h ((x) & ~((bytes) << (16 * (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 87 dev/pci/pciide_piix_reg.h (x << (PIIX_SIDETIM_ISP_SHIFT + ((channel) * 4))) x 91 dev/pci/pciide_piix_reg.h (x << (PIIX_SIDETIM_RTC_SHIFT + ((channel) * 4))) x 102 dev/pci/pciide_piix_reg.h (((x) << ((channel * 8) + (drive * 4))) << PIIX_UDMATIM_SHIFT) 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 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 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 888 dev/pci/tga.c if ((u_int)cursorp->size.x != 64 || x 906 dev/pci/tga.c ((cursorp->pos.y & 0xfff) << 12) | (cursorp->pos.x & 0xfff)); x 937 dev/pci/tga.c cursorp->pos.x = TGARREG(dc, TGA_REG_CXYR) & 0xfff; x 939 dev/pci/tga.c cursorp->size.x = 64; x 962 dev/pci/tga.c ((curposp->y & 0xfff) << 12) | (curposp->x & 0xfff)); x 972 dev/pci/tga.c curposp->x = TGARREG(dc, TGA_REG_CXYR) & 0xfff; x 983 dev/pci/tga.c curposp->x = curposp->y = 64; x 1092 dev/pci/tga.c int x, y, wb; x 1158 dev/pci/tga.c for (xleft = wb, x = xstart; x 1159 dev/pci/tga.c x <= xend && xleft >= 4*64; x 1160 dev/pci/tga.c x += XINC256, xleft -= XINC256) { x 1168 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCSR, 0, tga_srcb + y + x + 0 * 64); x 1169 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCDR, 0, tga_dstb + y + x + 0 * 64); x 1170 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCSR, 1, tga_srcb + y + x + 1 * 64); x 1171 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCDR, 1, tga_dstb + y + x + 1 * 64); x 1172 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCSR, 2, tga_srcb + y + x + 2 * 64); x 1173 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCDR, 2, tga_dstb + y + x + 2 * 64); x 1174 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCSR, 3, tga_srcb + y + x + 3 * 64); x 1175 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCDR, 3, tga_dstb + y + x + 3 * 64); x 1179 dev/pci/tga.c for ( ; x <= xend && xleft >= 64; x 1180 dev/pci/tga.c x += XINC64, xleft -= XINC64) { x 1181 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCSR, 0, tga_srcb + y + x + 0 * 64); x 1182 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCDR, 0, tga_dstb + y + x + 0 * 64); x 1184 dev/pci/tga.c lastx = x; lastleft = xleft; /* remember for CPU loop */ x 1192 dev/pci/tga.c for (x = lastx, xleft = lastleft; x 1193 dev/pci/tga.c x <= xend && xleft >= 4; x 1194 dev/pci/tga.c x += XINC4, xleft -= XINC4) { x 1195 dev/pci/tga.c *(uint32_t *)(dst->ri_bits + dstb + y + x) = x 1196 dev/pci/tga.c *(uint32_t *)(dst->ri_bits + srcb + y + x); x 1205 dev/pci/tga.c for (xleft = wb, x = xstart; x 1206 dev/pci/tga.c x >= xend && xleft >= 4*64; x 1207 dev/pci/tga.c x -= XINC256, xleft -= XINC256) { x 1215 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCSR, 0, tga_srcb + y + x + 3 * 64); x 1216 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCDR, 0, tga_dstb + y + x + 3 * 64); x 1217 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCSR, 1, tga_srcb + y + x + 2 * 64); x 1218 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCDR, 1, tga_dstb + y + x + 2 * 64); x 1219 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCSR, 2, tga_srcb + y + x + 1 * 64); x 1220 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCDR, 2, tga_dstb + y + x + 1 * 64); x 1221 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCSR, 3, tga_srcb + y + x + 0 * 64); x 1222 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCDR, 3, tga_dstb + y + x + 0 * 64); x 1225 dev/pci/tga.c if (xleft) x += XINC256 - XINC64; x 1228 dev/pci/tga.c for ( ; x >= xend && xleft >= 64; x 1229 dev/pci/tga.c x -= XINC64, xleft -= XINC64) { x 1230 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCSR, 0, tga_srcb + y + x + 0 * 64); x 1231 dev/pci/tga.c TGAWALREG(dc, TGA_REG_GCDR, 0, tga_dstb + y + x + 0 * 64); x 1233 dev/pci/tga.c if (xleft) x += XINC64 - XINC4; x 1234 dev/pci/tga.c lastx = x; lastleft = xleft; /* remember for CPU loop */ x 1241 dev/pci/tga.c for (x = lastx, xleft = lastleft; x 1242 dev/pci/tga.c x >= xend && xleft >= 4; x 1243 dev/pci/tga.c x -= XINC4, xleft -= XINC4) { x 1244 dev/pci/tga.c *(uint32_t *)(dst->ri_bits + dstb + y + x) = x 1245 dev/pci/tga.c *(uint32_t *)(dst->ri_bits + srcb + y + 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 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 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 130 dev/pci/yds.c DPRINTFN(5, (" YWRITE1(0x%lX,0x%lX)\n",(unsigned long)r,(unsigned long)x)); x 131 dev/pci/yds.c bus_space_write_1(sc->memt,sc->memh,r,x); x 135 dev/pci/yds.c DPRINTFN(5, (" YWRITE2(0x%lX,0x%lX)\n",(unsigned long)r,(unsigned long)x)); x 136 dev/pci/yds.c bus_space_write_2(sc->memt,sc->memh,r,x); x 140 dev/pci/yds.c DPRINTFN(5, (" YWRITE4(0x%lX,0x%lX)\n",(unsigned long)r,(unsigned long)x)); x 141 dev/pci/yds.c bus_space_write_4(sc->memt,sc->memh,r,x); x 146 dev/pci/yds.c bus_space_write_region_4((sc)->memt, (sc)->memh, (r), (x), (c) / 4) x 855 dev/pcmcia/cfxga.c pos = (y * ri->ri_width + x) * ri->ri_depth / 8; x 939 dev/pcmcia/cfxga.c int x, y, cx, cy, lx, ly; x 949 dev/pcmcia/cfxga.c for (lx = 0, x = ri->ri_xorigin; lx < ri->ri_cols; x 950 dev/pcmcia/cfxga.c lx++, x += cx) { x 954 dev/pcmcia/cfxga.c rc = cfxga_solid_fill(scr, x, y, cx, cy, x 958 dev/pcmcia/cfxga.c x, y, cell->attr); x 981 dev/pcmcia/cfxga.c pos = (y * ri->ri_width + x) * ri->ri_depth / 8; x 1079 dev/pcmcia/cfxga.c int x, sy, dy, cx, cy; x 1089 dev/pcmcia/cfxga.c x = ri->ri_xorigin; x 1094 dev/pcmcia/cfxga.c cfxga_standalone_rop(scr, ROP_SRC, x, sy, x, dy, cx, cy); x 1101 dev/pcmcia/cfxga.c int x, y, cx, cy; x 1106 dev/pcmcia/cfxga.c x = ri->ri_ccol * ri->ri_font->fontwidth + ri->ri_xorigin; x 1111 dev/pcmcia/cfxga.c x, y, x, y, cx, cy); x 1120 dev/pcmcia/cfxga.c int x, y, cx, cy; x 1123 dev/pcmcia/cfxga.c for (x = col; x < col + num; x++) { x 1124 dev/pcmcia/cfxga.c scr->scr_mem[row * ri->ri_cols + x].uc = 0; x 1125 dev/pcmcia/cfxga.c scr->scr_mem[row * ri->ri_cols + x].attr = attr; x 1132 dev/pcmcia/cfxga.c x = col * ri->ri_font->fontwidth + ri->ri_xorigin; x 1136 dev/pcmcia/cfxga.c cfxga_solid_fill(scr, x, y, cx, cy, ri->ri_devcmap[bg]); x 1145 dev/pcmcia/cfxga.c int x, y, cx, cy; x 1148 dev/pcmcia/cfxga.c for (x = 0; x < ri->ri_cols; x++) { x 1149 dev/pcmcia/cfxga.c scr->scr_mem[row * ri->ri_cols + x].uc = 0; x 1150 dev/pcmcia/cfxga.c scr->scr_mem[row * ri->ri_cols + x].attr = attr; x 1161 dev/pcmcia/cfxga.c x = ri->ri_xorigin; x 1165 dev/pcmcia/cfxga.c cfxga_solid_fill(scr, x, y, cx, cy, ri->ri_devcmap[bg]); x 1173 dev/pcmcia/cfxga.c int x, y; x 1181 dev/pcmcia/cfxga.c x = col * ri->ri_font->fontwidth + ri->ri_xorigin; x 1190 dev/pcmcia/cfxga.c cfxga_solid_fill(scr, x, y, cx, cy, ri->ri_devcmap[bg]); x 1192 dev/pcmcia/cfxga.c cfxga_expand_char(scr, uc, x, y, attr); 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 64 dev/pcmcia/if_malo.c #define DPRINTF(l, x...) do { if ((l) <= cmalo_d) printf(x); } while (0) x 377 dev/pcmcia/if_ray.c printf x ; \ x 385 dev/pcmcia/if_ray.c printf x ; \ x 109 dev/pcmcia/if_xe.c #define DPRINTF(cat, x) if (xedebug & (cat)) printf x x 899 dev/pcmcia/if_xe.c u_int8_t x; x 906 dev/pcmcia/if_xe.c x = bus_space_read_1(bst, bsh, offset + GP2) & MDIO; x 910 dev/pcmcia/if_xe.c return (x); 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 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 892 dev/raidframe/rf_map.c int x = (startAddrWithinStripe % x 894 dev/raidframe/rf_map.c toAdjust->startSector += x; x 895 dev/raidframe/rf_map.c toAdjust->raidAddress += x; x 902 dev/raidframe/rf_map.c int x = (startAddrWithinStripe % x 918 dev/raidframe/rf_map.c toAdjust->startSector += x; x 919 dev/raidframe/rf_map.c toAdjust->raidAddress += x; 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 115 dev/raidframe/rf_utils.c ((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 118 dev/raidframe/rf_utils.c (x) - 'a' + 10 : \ x 119 dev/raidframe/rf_utils.c (((x) >= 'A' && (x) <= 'F') ? \ x 120 dev/raidframe/rf_utils.c (x) - 'A' + 10 : (x - '0'))) 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 64 dev/rasops/rasops_masks.h u_int32_t tmp = (x); \ x 82 dev/rasops/rasops_masks.h dw = MBL(*(sp), (x)); \ x 83 dev/rasops/rasops_masks.h if (((x) + (w)) > 32) \ x 84 dev/rasops/rasops_masks.h dw |= (MBR((sp)[1], 32 - (x))); \ x 89 dev/rasops/rasops_masks.h int n = (x) + (w) - 32; \ x 92 dev/rasops/rasops_masks.h n = rasops_pmask[x & 31][w & 31]; \ x 93 dev/rasops/rasops_masks.h *(dp) = (*(dp) & ~n) | (MBR(sw, x) & n); \ x 95 dev/rasops/rasops_masks.h *(dp) = (*(dp) & rasops_rmask[x]) | (MBR((sw), x)); \ x 97 dev/rasops/rasops_masks.h (MBL(sw, 32-(x)) & rasops_lmask[n]); \ x 65 dev/sbus/bpp.c #define DPRINTF(x) do { if (bppdebug) printf x ; } while (0) x 315 dev/sbus/cgsix.c curs->pos.x = sc->sc_curs_pos.x; x 319 dev/sbus/cgsix.c curs->hot.x = sc->sc_curs_hot.x; x 344 dev/sbus/cgsix.c curs->size.x = sc->sc_curs_size.x; x 346 dev/sbus/cgsix.c l = (sc->sc_curs_size.x * sc->sc_curs_size.y) / NBBY; x 357 dev/sbus/cgsix.c pos->x = sc->sc_curs_pos.x; x 363 dev/sbus/cgsix.c sc->sc_curs_pos.x = pos->x; x 370 dev/sbus/cgsix.c pos->x = pos->y = 32; x 408 dev/sbus/cgsix.c if (curs->size.x > CG6_MAX_CURSOR || x 411 dev/sbus/cgsix.c imcount = (curs->size.x * curs->size.y) / NBBY; x 428 dev/sbus/cgsix.c sc->sc_curs_pos.x = curs->pos.x; x 432 dev/sbus/cgsix.c sc->sc_curs_hot.x = curs->hot.x; x 440 dev/sbus/cgsix.c sc->sc_curs_size.x = curs->size.x; x 474 dev/sbus/cgsix.c u_int32_t x, y; x 476 dev/sbus/cgsix.c x = sc->sc_curs_pos.x + CG6_MAX_CURSOR - sc->sc_curs_hot.x; x 479 dev/sbus/cgsix.c ((x & 0xffff) << 16) | (y & 0xffff)); 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 324 dev/sbus/isp_sbus.c (((struct isp_sbussoftc *)a)->sbus_poff[((x) & _BLK_REG_MASK) >> \ x 325 dev/sbus/isp_sbus.c _BLK_REG_SHFT] + ((x) & 0xff)) x 36 dev/sbus/magmareg.h #define dprintf(x) printf 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 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 630 dev/sbus/zx.c x = x * ri->ri_font->fontwidth + ri->ri_xorigin; x 641 dev/sbus/zx.c SETREG(zc->zc_fill, ZX_COORDS(x, y) | ZX_EXTENT_DIR_BACKWARDS); 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 2577 dev/softraid.c int ios, x, i, s, rt; x 2662 dev/softraid.c x = sd->mds.mdd_raid1.sr1_counter++ % x 2664 dev/softraid.c scp = sd->sd_vol.sv_chunks[x]; x 2687 dev/softraid.c x = i; x 2688 dev/softraid.c scp = sd->sd_vol.sv_chunks[x]; x 2707 dev/softraid.c ccb->ccb_target = x; x 2708 dev/softraid.c ccb->ccb_buf.b_dev = sd->sd_vol.sv_chunks[x]->src_dev_mm; 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 263 dev/systrace.c #define POLICY_VALID(x) ((x) == SYSTR_POLICY_PERMIT || \ x 264 dev/systrace.c (x) == SYSTR_POLICY_ASK || \ x 265 dev/systrace.c (x) == SYSTR_POLICY_NEVER) x 82 dev/systrace.h ((x)->msg.msg_type == SYSTR_MSG_CHILD || \ x 83 dev/systrace.h (x)->msg.msg_type == SYSTR_MSG_POLICYFREE) x 110 dev/tc/asc_tc.c #define PMAZ_DMA_ADDR(x) ((unsigned long)(x) & PMAZ_DMAR_MASK) x 465 dev/tc/asc_tcds.c int x; x 467 dev/tc/asc_tcds.c x = tcds_scsi_isintr(asc->sc_tcds, 1); x 470 dev/tc/asc_tcds.c return x; 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 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 204 dev/usb/ehcireg.h #define EHCI_ITD_GET_OFFSET(x) (((x) >> 0) & 0xfff) /* offset from buf ptr */ x 205 dev/usb/ehcireg.h #define EHCI_ITD_SET_OFFSET(x) (x) x 206 dev/usb/ehcireg.h #define EHCI_ITD_GET_PG(x) (((x) >> 12) & 0x7) /* buffer page */ x 207 dev/usb/ehcireg.h #define EHCI_ITD_SET_PG(x) ((x) << 12) x 208 dev/usb/ehcireg.h #define EHCI_ITD_GET_IOC(x) (((x) >> 15) & 0x1) /* interrupt on complete */ x 210 dev/usb/ehcireg.h #define EHCI_ITD_GET_XLEN(x) (((x) >> 16) & 0xfff) /* transaction length */ x 211 dev/usb/ehcireg.h #define EHCI_ITD_SET_XLEN(x) ((x) << 12) x 212 dev/usb/ehcireg.h #define EHCI_ITD_GET_STATUS(x) (((x) >> 28) & 0xf) /* duh */ x 213 dev/usb/ehcireg.h #define EHCI_ITD_SET_STATUS(x) ((x) << 28) x 220 dev/usb/ehcireg.h #define EHCI_ITD_GET_ADDR(x) (((x) >> 0) & 0x7f) /* endpoint addr */ x 221 dev/usb/ehcireg.h #define EHCI_ITD_SET_ADDR(x) (x) x 222 dev/usb/ehcireg.h #define EHCI_ITD_GET_ENDPT(x) (((x) >> 8) & 0xf) /* endpoint no */ x 223 dev/usb/ehcireg.h #define EHCI_ITD_SET_ENDPT(x) ((x) << 8) x 225 dev/usb/ehcireg.h #define EHCI_ITD_GET_MPS(x) (((x) >> 0) & 0x7ff) /* max packet size */ x 226 dev/usb/ehcireg.h #define EHCI_ITD_SET_MPS(x) (x) x 229 dev/usb/ehcireg.h #define EHCI_ITD_GET_MULTI(x) (((x) >> 0) & 0x3) /* trans per microframe */ x 230 dev/usb/ehcireg.h #define EHCI_ITD_SET_MULTI(x) (x) x 240 dev/usb/ehcireg.h #define EHCI_SITD_GET_ADDR(x) (((x) >> 0) & 0x7f) /* endpoint addr */ x 241 dev/usb/ehcireg.h #define EHCI_SITD_SET_ADDR(x) (x) x 242 dev/usb/ehcireg.h #define EHCI_SITD_GET_ENDPT(x) (((x) >> 8) & 0xf) /* endpoint no */ x 243 dev/usb/ehcireg.h #define EHCI_SITD_SET_ENDPT(x) ((x) << 8) x 244 dev/usb/ehcireg.h #define EHCI_SITD_GET_HUBA(x) (((x) >> 16) & 0x7f) /* hub address */ x 245 dev/usb/ehcireg.h #define EHCI_SITD_SET_HUBA(x) ((x) << 16) x 246 dev/usb/ehcireg.h #define EHCI_SITD_GET_PORT(x) (((x) >> 23) & 0x7f) /* hub port */ x 247 dev/usb/ehcireg.h #define EHCI_SITD_SET_PORT(x) ((x) << 23) x 249 dev/usb/ehcireg.h #define EHCI_QH_GET_SMASK(x) (((x) >> 0) & 0xff) /* intr sched mask */ x 250 dev/usb/ehcireg.h #define EHCI_QH_SET_SMASK(x) ((x) << 0) x 251 dev/usb/ehcireg.h #define EHCI_QH_GET_CMASK(x) (((x) >> 8) & 0xff) /* split completion mask */ x 252 dev/usb/ehcireg.h #define EHCI_QH_SET_CMASK(x) ((x) << 8) x 254 dev/usb/ehcireg.h #define EHCI_SITD_GET_STATUS(x) (((x) >> 0) & 0xff) /* status */ x 262 dev/usb/ehcireg.h #define EHCI_SITD_GET_CPROG(x) (((x) >> 8) & 0xff) /* c-mask progress */ x 263 dev/usb/ehcireg.h #define EHCI_SITD_SET_CPROG(x) (((x) >> 8) & 0xff) x 264 dev/usb/ehcireg.h #define EHCI_SITD_GET_BYTES(x) (((x) >> 16) & 0x7ff) /* bytes to transfer */ x 265 dev/usb/ehcireg.h #define EHCI_SITD_SET_BYTES(x) ((x) << 16) x 266 dev/usb/ehcireg.h #define EHCI_SITD_GET_PG(x) (((x) >> 30) & 0x1) /* buffer page */ x 267 dev/usb/ehcireg.h #define EHCI_SITD_SET_PG(x) ((x) << 30) x 271 dev/usb/ehcireg.h #define EHCI_SITD_GET_OFFSET(x) (((x) >> 0) & 0xfff) /* current offset */ x 273 dev/usb/ehcireg.h #define EHCI_SITD_GET_TCOUNT(x) (((x) >> 0) & 0x3) /* transaction count */ x 274 dev/usb/ehcireg.h #define EHCI_SITD_GET_TP(x) (((x) >> 3) & 0x3) /* transaction position */ x 275 dev/usb/ehcireg.h #define EHCI_SITD_SET_TP(x) ((x) << 3) x 291 dev/usb/ehcireg.h #define EHCI_QTD_GET_STATUS(x) (((x) >> 0) & 0xff) x 292 dev/usb/ehcireg.h #define EHCI_QTD_SET_STATUS(x) ((x) << 0) x 302 dev/usb/ehcireg.h #define EHCI_QTD_GET_PID(x) (((x) >> 8) & 0x3) x 303 dev/usb/ehcireg.h #define EHCI_QTD_SET_PID(x) ((x) << 8) x 307 dev/usb/ehcireg.h #define EHCI_QTD_GET_CERR(x) (((x) >> 10) & 0x3) x 308 dev/usb/ehcireg.h #define EHCI_QTD_SET_CERR(x) ((x) << 10) x 309 dev/usb/ehcireg.h #define EHCI_QTD_GET_C_PAGE(x) (((x) >> 12) & 0x7) x 310 dev/usb/ehcireg.h #define EHCI_QTD_SET_C_PAGE(x) ((x) << 12) x 311 dev/usb/ehcireg.h #define EHCI_QTD_GET_IOC(x) (((x) >> 15) & 0x1) x 313 dev/usb/ehcireg.h #define EHCI_QTD_GET_BYTES(x) (((x) >> 16) & 0x7fff) x 314 dev/usb/ehcireg.h #define EHCI_QTD_SET_BYTES(x) ((x) << 16) x 315 dev/usb/ehcireg.h #define EHCI_QTD_GET_TOGGLE(x) (((x) >> 31) & 0x1) x 316 dev/usb/ehcireg.h #define EHCI_QTD_SET_TOGGLE(x) ((x) << 31) x 327 dev/usb/ehcireg.h #define EHCI_QH_GET_ADDR(x) (((x) >> 0) & 0x7f) /* endpoint addr */ x 328 dev/usb/ehcireg.h #define EHCI_QH_SET_ADDR(x) (x) x 330 dev/usb/ehcireg.h #define EHCI_QH_GET_INACT(x) (((x) >> 7) & 0x01) /* inactivate on next */ x 332 dev/usb/ehcireg.h #define EHCI_QH_GET_ENDPT(x) (((x) >> 8) & 0x0f) /* endpoint no */ x 333 dev/usb/ehcireg.h #define EHCI_QH_SET_ENDPT(x) ((x) << 8) x 334 dev/usb/ehcireg.h #define EHCI_QH_GET_EPS(x) (((x) >> 12) & 0x03) /* endpoint speed */ x 335 dev/usb/ehcireg.h #define EHCI_QH_SET_EPS(x) ((x) << 12) x 339 dev/usb/ehcireg.h #define EHCI_QH_GET_DTC(x) (((x) >> 14) & 0x01) /* data toggle control */ x 341 dev/usb/ehcireg.h #define EHCI_QH_GET_HRECL(x) (((x) >> 15) & 0x01) /* head of reclamation */ x 343 dev/usb/ehcireg.h #define EHCI_QH_GET_MPL(x) (((x) >> 16) & 0x7ff) /* max packet len */ x 344 dev/usb/ehcireg.h #define EHCI_QH_SET_MPL(x) ((x) << 16) x 346 dev/usb/ehcireg.h #define EHCI_QH_GET_CTL(x) (((x) >> 27) & 0x01) /* control endpoint */ x 348 dev/usb/ehcireg.h #define EHCI_QH_GET_NRL(x) (((x) >> 28) & 0x0f) /* NAK reload */ x 349 dev/usb/ehcireg.h #define EHCI_QH_SET_NRL(x) ((x) << 28) x 351 dev/usb/ehcireg.h #define EHCI_QH_GET_SMASK(x) (((x) >> 0) & 0xff) /* intr sched mask */ x 352 dev/usb/ehcireg.h #define EHCI_QH_SET_SMASK(x) ((x) << 0) x 353 dev/usb/ehcireg.h #define EHCI_QH_GET_CMASK(x) (((x) >> 8) & 0xff) /* split completion mask */ x 354 dev/usb/ehcireg.h #define EHCI_QH_SET_CMASK(x) ((x) << 8) x 355 dev/usb/ehcireg.h #define EHCI_QH_GET_HUBA(x) (((x) >> 16) & 0x7f) /* hub address */ x 356 dev/usb/ehcireg.h #define EHCI_QH_SET_HUBA(x) ((x) << 16) x 357 dev/usb/ehcireg.h #define EHCI_QH_GET_PORT(x) (((x) >> 23) & 0x7f) /* hub port */ x 358 dev/usb/ehcireg.h #define EHCI_QH_SET_PORT(x) ((x) << 23) x 359 dev/usb/ehcireg.h #define EHCI_QH_GET_MULT(x) (((x) >> 30) & 0x03) /* pipe multiplier */ x 360 dev/usb/ehcireg.h #define EHCI_QH_SET_MULT(x) ((x) << 30) 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 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 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 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 269 dev/usb/if_aue.c aue_csr_write_1(sc, reg, aue_csr_read_1(sc, reg) | (x)) x 272 dev/usb/if_aue.c aue_csr_write_1(sc, reg, aue_csr_read_1(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 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 82 dev/usb/if_cdce.c #define DPRINTF(x) DPRINTFN(0, x) 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 158 dev/usb/if_cue.c cue_csr_write_1(sc, reg, cue_csr_read_1(sc, reg) | (x)) x 161 dev/usb/if_cue.c cue_csr_write_1(sc, reg, cue_csr_read_1(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 73 dev/usb/if_kuereg.h (((x)->kue_desc.kue_etherstats[3] << 24) | \ x 74 dev/usb/if_kuereg.h ((x)->kue_desc.kue_etherstats[2] << 16) | \ x 75 dev/usb/if_kuereg.h ((x)->kue_desc.kue_etherstats[1] << 8) | \ x 76 dev/usb/if_kuereg.h (x)->kue_desc.kue_etherstats[0]) x 78 dev/usb/if_kuereg.h (((x)->kue_desc.kue_maxseg[1] << 8) | (x)->kue_desc.kue_maxseg[0]) x 80 dev/usb/if_kuereg.h ((((x)->kue_desc.kue_mcastfilt[1] << 8) | \ x 81 dev/usb/if_kuereg.h (x)->kue_desc.kue_mcastfilt[0]) & 0x7FFF) 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 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 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 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 154 dev/usb/if_udav.c udav_csr_write1(sc, reg, udav_csr_read1(sc, reg) | (x)) x 157 dev/usb/if_udav.c udav_csr_write1(sc, reg, udav_csr_read1(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 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 148 dev/usb/if_url.c url_csr_write_1(sc, reg, url_csr_read_1(sc, reg) | (x)) x 151 dev/usb/if_url.c url_csr_write_2(sc, reg, url_csr_read_2(sc, reg) | (x)) x 154 dev/usb/if_url.c url_csr_write_1(sc, reg, url_csr_read_1(sc, reg) & ~(x)) x 157 dev/usb/if_url.c url_csr_write_2(sc, reg, url_csr_read_2(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 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 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 201 dev/usb/ohci.c do { OBARR(sc); bus_space_write_1((sc)->iot, (sc)->ioh, (r), (x)); } while (0) x 203 dev/usb/ohci.c do { OBARR(sc); bus_space_write_2((sc)->iot, (sc)->ioh, (r), (x)); } while (0) x 205 dev/usb/ohci.c do { OBARR(sc); bus_space_write_4((sc)->iot, (sc)->ioh, (r), (x)); } while (0) 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 187 dev/usb/ohcireg.h #define OHCI_TD_GET_DI(x) (((x) >> 21) & 7) /* Delay Interrupt */ x 188 dev/usb/ohcireg.h #define OHCI_TD_SET_DI(x) ((x) << 21) x 195 dev/usb/ohcireg.h #define OHCI_TD_GET_EC(x) (((x) >> 26) & 3) /* Error Count */ x 196 dev/usb/ohcireg.h #define OHCI_TD_GET_CC(x) ((x) >> 28) /* Condition Code */ x 208 dev/usb/ohcireg.h #define OHCI_ITD_GET_SF(x) ((x) & 0x0000ffff) x 209 dev/usb/ohcireg.h #define OHCI_ITD_SET_SF(x) ((x) & 0xffff) x 210 dev/usb/ohcireg.h #define OHCI_ITD_GET_DI(x) (((x) >> 21) & 7) /* Delay Interrupt */ x 211 dev/usb/ohcireg.h #define OHCI_ITD_SET_DI(x) ((x) << 21) x 213 dev/usb/ohcireg.h #define OHCI_ITD_GET_FC(x) ((((x) >> 24) & 7)+1) /* Frame Count */ x 214 dev/usb/ohcireg.h #define OHCI_ITD_SET_FC(x) (((x)-1) << 24) x 215 dev/usb/ohcireg.h #define OHCI_ITD_GET_CC(x) ((x) >> 28) /* Condition Code */ x 224 dev/usb/ohcireg.h #define OHCI_ITD_PSW_LENGTH(x) ((x) & 0xfff) /* Transfer length */ x 225 dev/usb/ohcireg.h #define OHCI_ITD_PSW_GET_CC(x) ((x) >> 12) /* Condition Code */ x 35 dev/usb/uark.c #define DPRINTFN(n, x) do { if (uarkdebug > (n)) printf x; } while (0) 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 99 dev/usb/ubsa.c #define DPRINTFN(n, x) do { if (ubsadebug > (n)) printf x; } while (0) 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 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 38 dev/usb/udcf.c #define DPRINTFN(n, x) do { if (udcfdebug > (n)) printf x; } while (0) 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 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 58 dev/usb/ueaglevar.h (x)[0] = ((gfc) & 0xf) << 4 | ((vpi) & 0xf0) >> 4; \ x 59 dev/usb/ueaglevar.h (x)[1] = ((vpi) & 0xf) << 4 | ((vci) & 0xf000) >> 12; \ x 60 dev/usb/ueaglevar.h (x)[2] = ((vci) & 0xff0) >> 4; \ x 61 dev/usb/ueaglevar.h (x)[3] = ((vci) & 0xf) << 4 | ((pt) & 0x7) << 1 | ((clp) & 0x1);\ x 62 dev/usb/ueaglevar.h (x)[4] = (uint8_t)(hec); \ 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 69 dev/usb/ueaglevar.h (((x)[1] & 0xf) << 12 | (x)[2] << 4 | ((x)[3] & 0xf0) >> 4) 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 77 dev/usb/ueaglevar.h (x)[47] = (uint8_t)((v) >> 8); \ x 78 dev/usb/ueaglevar.h (x)[48] = (uint8_t)(v); \ x 81 dev/usb/ueaglevar.h #define AAL5_TR_GETPDULEN(x) (uint16_t)((x)[47] << 8 | (x)[48]) x 83 dev/usb/ueaglevar.h (x)[49] = (uint8_t)((v) >> 24); \ x 84 dev/usb/ueaglevar.h (x)[50] = (uint8_t)((v) >> 16); \ x 85 dev/usb/ueaglevar.h (x)[51] = (uint8_t)((v) >> 8); \ x 86 dev/usb/ueaglevar.h (x)[52] = (uint8_t)(v); \ 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 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 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 251 dev/usb/uhci.c do { UBARR(sc); bus_space_write_1((sc)->iot, (sc)->ioh, (r), (x)); \ x 254 dev/usb/uhci.c do { UBARR(sc); bus_space_write_2((sc)->iot, (sc)->ioh, (r), (x)); \ x 257 dev/usb/uhci.c do { UBARR(sc); bus_space_write_4((sc)->iot, (sc)->ioh, (r), (x)); \ x 2990 dev/usb/uhci.c int lim, port, x; x 2999 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); x 3000 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_PR); x 3007 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); x 3008 dev/usb/uhci.c UWRITE2(sc, port, x & ~UHCI_PORTSC_PR); x 3015 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); x 3016 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_PE); x 3021 dev/usb/uhci.c x = UREAD2(sc, port); x 3024 dev/usb/uhci.c index, lim, x)); x 3026 dev/usb/uhci.c if (!(x & UHCI_PORTSC_CCS)) { x 3040 dev/usb/uhci.c if (x & (UHCI_PORTSC_POEDC | UHCI_PORTSC_CSC)) { x 3047 dev/usb/uhci.c UWRITE2(sc, port, URWMASK(x) | x 3048 dev/usb/uhci.c (x & (UHCI_PORTSC_POEDC | UHCI_PORTSC_CSC))); x 3052 dev/usb/uhci.c if (x & UHCI_PORTSC_PE) x 3056 dev/usb/uhci.c UWRITE2(sc, port, URWMASK(x) | UHCI_PORTSC_PE); x 3097 dev/usb/uhci.c int port, x; x 3121 dev/usb/uhci.c #define C(x,y) ((x) | ((y) << 8)) x 3250 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); x 3251 dev/usb/uhci.c UWRITE2(sc, port, x & ~UHCI_PORTSC_PE); x 3254 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); x 3255 dev/usb/uhci.c UWRITE2(sc, port, x & ~UHCI_PORTSC_SUSP); x 3258 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); x 3259 dev/usb/uhci.c UWRITE2(sc, port, x & ~UHCI_PORTSC_PR); x 3262 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); x 3263 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_CSC); x 3266 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); x 3267 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_POEDC); x 3270 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); x 3271 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_OCIC); x 3333 dev/usb/uhci.c x = UREAD2(sc, port); x 3335 dev/usb/uhci.c if (x & UHCI_PORTSC_CCS) x 3337 dev/usb/uhci.c if (x & UHCI_PORTSC_CSC) x 3339 dev/usb/uhci.c if (x & UHCI_PORTSC_PE) x 3341 dev/usb/uhci.c if (x & UHCI_PORTSC_POEDC) x 3343 dev/usb/uhci.c if (x & UHCI_PORTSC_OCI) x 3345 dev/usb/uhci.c if (x & UHCI_PORTSC_OCIC) x 3347 dev/usb/uhci.c if (x & UHCI_PORTSC_SUSP) x 3349 dev/usb/uhci.c if (x & UHCI_PORTSC_LSDA) x 3376 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); x 3377 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_PE); x 3380 dev/usb/uhci.c x = URWMASK(UREAD2(sc, port)); x 3381 dev/usb/uhci.c UWRITE2(sc, port, x | UHCI_PORTSC_SUSP); x 112 dev/usb/uhcireg.h ((x) & (UHCI_PORTSC_SUSP | UHCI_PORTSC_PR | UHCI_PORTSC_RD | UHCI_PORTSC_PE)) 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 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 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 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 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 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 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 73 dev/usb/umct.c #define DPRINTFN(n, x) do { if (umctdebug > (n)) printf x; } while (0) 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 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 79 dev/usb/umodem.c #define DPRINTFN(n, x) do { if (umodemdebug > (n)) printf x; } while (0) 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 40 dev/usb/uow.c #define DPRINTF(x) printf x x 73 dev/usb/uplcom.c #define DPRINTFN(n, x) do { if (uplcomdebug > (n)) printf x; } while (0) 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 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 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 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 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 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 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 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 35 dev/usb/uslcom.c #define DPRINTFN(n, x) do { if (uslcomdebug > (n)) printf x; } while (0) 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 47 dev/usb/uts.c #define DPRINTF(x) do { printf x; } while (0) x 90 dev/usb/uts.c int x; x 391 dev/usb/uts.c int down, x, y; x 396 dev/usb/uts.c x = ((p[0] & 0x1f) << 7) | (p[3] & 0x7f); x 411 dev/usb/uts.c x = 0x07ff - abs(((p[3] & 0x0f) << 7) | (p[4] & 0x7f)); x 418 dev/usb/uts.c x = 0x0fff - abs(((p[0] & 0x1f) << 7) | (p[2] & 0x7f)); x 432 dev/usb/uts.c tp.y = x; x 433 dev/usb/uts.c tp.x = y; x 435 dev/usb/uts.c tp.x = x; x 441 dev/usb/uts.c tp.x = ((tp.x - sc->sc_tsscale.minx) * x 450 dev/usb/uts.c tp.x = sc->sc_oldx; x 488 dev/usb/uts.c sc->sc_dev.dv_xname, tp.z, tp.x, tp.y)); x 490 dev/usb/uts.c wsmouse_input(sc->sc_wsmousedev, tp.z, tp.x, tp.y, 0, 0, x 494 dev/usb/uts.c sc->sc_oldx = tp.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 65 dev/usb/uvscom.c #define DPRINTFN(n, x) do { if (uvscomdebug > (n)) printf x; } while (0) 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 234 dev/wscons/wsconsio.h int x, y; /* translated coordinate */ x 329 dev/wscons/wsconsio.h u_int x, y; x 46 dev/wscons/wsdisplay_compat_usl.c #define DPRINTF(x) if (wsdisplaydebug) printf 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 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 298 dev/wscons/wsmouse.c add_mouse_randomness(x ^ y ^ z ^ w ^ btns); x 321 dev/wscons/wsmouse.c sc->sc_dx += x; x 363 dev/wscons/wsmouse.c if (sc->sc_x != x) { x 366 dev/wscons/wsmouse.c ev->value = x; x 369 dev/wscons/wsmouse.c sc->sc_x = x; 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 247 dev/wsfont/wsfont.c int x, l, r, nr; x 261 dev/wsfont/wsfont.c x = rp[l]; x 263 dev/wsfont/wsfont.c rp[r] = x; x 465 kern/kern_lock.c curcpu()->ci_simple_locks += (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 662 kern/sys_generic.c pibits[x], ni))) \ x 718 kern/sys_generic.c if (SCARG(uap, name) && (error2 = copyout(pobits[x], \ x 34 kern/sysv_msg.c #define DPRINTF(x) printf x x 49 kern/sysv_sem.c #define DPRINTF(x) printf x x 2029 kern/tty.c int cps, x; x 2031 kern/tty.c #define CLAMP(x, h, l) ((x) > h ? h : ((x) < l) ? l : (x)) x 2034 kern/tty.c tp->t_lowat = x = CLAMP(cps / 2, TTMAXLOWAT, TTMINLOWAT); x 2035 kern/tty.c x += cps; x 2036 kern/tty.c x = CLAMP(x, TTMAXHIWAT, TTMINHIWAT); x 2037 kern/tty.c tp->t_hiwat = roundup(x, CBSIZE); x 32 kern/tty_nmea.c #define DPRINTFN(n, x) do { if (nmeadebug > (n)) printf x; } while (0) x 37 kern/tty_nmea.c #define DPRINTF(x) DPRINTFN(0, x) x 62 kern/uipc_domain.c extern struct domain __CONCAT(x,domain); \ x 63 kern/uipc_domain.c __CONCAT(x,domain.dom_next) = domains; \ x 64 kern/uipc_domain.c domains = &__CONCAT(x,domain); \ 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 20 lib/libkern/htonl.c u_char *s = (u_char *)&x; x 23 lib/libkern/htonl.c return x; x 19 lib/libkern/htons.c u_char *s = (u_char *) &x; x 22 lib/libkern/htons.c return x; x 20 lib/libkern/ntohl.c u_char *s = (u_char *)&x; x 23 lib/libkern/ntohl.c return x; x 19 lib/libkern/ntohs.c u_char *s = (u_char *) &x; x 22 lib/libkern/ntohs.c return 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 49 lib/libkern/random.c long x, hi, lo, t; x 57 lib/libkern/random.c x = _randseed; x 58 lib/libkern/random.c hi = x / 127773; x 59 lib/libkern/random.c lo = x % 127773; x 130 lib/libsa/bootparam.c int len, x; x 189 lib/libsa/bootparam.c x = ntohl(repl->encap_len); x 190 lib/libsa/bootparam.c if (len < x) { x 191 lib/libsa/bootparam.c printf("bp_whoami: short reply, %d < %d\n", len, x); x 50 lib/libsa/cd9660.c struct netexport { int x; }; x 122 lib/libsa/cread.c unsigned long x = (unsigned long)get_byte(s); x 125 lib/libsa/cread.c x += ((unsigned long)get_byte(s))<<8; x 126 lib/libsa/cread.c x += ((unsigned long)get_byte(s))<<16; x 130 lib/libsa/cread.c x += ((unsigned long)c)<<24; x 131 lib/libsa/cread.c return x; x 53 lib/libsa/exec.c struct exec x; x 69 lib/libsa/exec.c sz = read(io, (char *)&x, sizeof(x)); x 70 lib/libsa/exec.c if (sz != sizeof(x) || N_BADMAG(x)) { x 78 lib/libsa/exec.c x.a_midmag, x.a_text, x.a_data, x.a_bss, x.a_syms, x 79 lib/libsa/exec.c x.a_entry, x.a_trsize, x.a_drsize); x 83 lib/libsa/exec.c printf("%u", x.a_text); x 85 lib/libsa/exec.c sz = x.a_text; x 86 lib/libsa/exec.c if (N_GETMAGIC(x) == ZMAGIC) { x 87 lib/libsa/exec.c bcopy((char *)&x, addr, sizeof x); x 88 lib/libsa/exec.c addr += sizeof x; x 89 lib/libsa/exec.c sz -= sizeof x; x 99 lib/libsa/exec.c if (N_GETMAGIC(x) == NMAGIC) x 100 lib/libsa/exec.c while ((long)addr & (N_PAGSIZ(x) - 1)) x 107 lib/libsa/exec.c printf("+%u", x.a_data); x 108 lib/libsa/exec.c if (read(io, addr, x.a_data) != (ssize_t)x.a_data) x 110 lib/libsa/exec.c addr += x.a_data; x 113 lib/libsa/exec.c printf("+%u", x.a_bss); x 114 lib/libsa/exec.c for (i = 0; i < x.a_bss; i++) x 118 lib/libsa/exec.c if (x.a_syms) { x 120 lib/libsa/exec.c bcopy(&x.a_syms, addr, sizeof(x.a_syms)); x 121 lib/libsa/exec.c addr += sizeof(x.a_syms); x 122 lib/libsa/exec.c printf("+[%u", x.a_syms); x 123 lib/libsa/exec.c if (read(io, addr, x.a_syms) != (ssize_t)x.a_syms) x 125 lib/libsa/exec.c addr += x.a_syms; x 159 lib/libsa/exec.c printf(" start=0x%x\n", x.a_entry); x 168 lib/libsa/exec.c machdep_start((char *)((register_t)x.a_entry), howto, loadaddr, ssym, x 36 lib/libsa/getfile.c #define CTRL(x) (x&037) x 281 lib/libsa/loadfile.c u_long entry = x->a_entry; x 286 lib/libsa/loadfile.c u_long magic = N_GETMAGIC(*x); x 293 lib/libsa/loadfile.c sub = sizeof(*x); x 297 lib/libsa/loadfile.c if (lseek(fd, sizeof(*x), SEEK_SET) == -1) { x 308 lib/libsa/loadfile.c if (flags & LOAD_HDR && maxp >= sizeof(*x)) x 309 lib/libsa/loadfile.c BCOPY(x, maxp - sizeof(*x), sizeof(*x)); x 313 lib/libsa/loadfile.c BCOPY(x, maxp, sizeof(*x)); x 315 lib/libsa/loadfile.c maxp += sizeof(*x); x 322 lib/libsa/loadfile.c PROGRESS(("%ld", x->a_text)); x 324 lib/libsa/loadfile.c if (READ(fd, maxp, x->a_text - sub) != x->a_text - sub) { x 329 lib/libsa/loadfile.c if (lseek(fd, x->a_text - sub, SEEK_CUR) == -1) { x 335 lib/libsa/loadfile.c maxp += x->a_text - sub; x 356 lib/libsa/loadfile.c PROGRESS(("+%ld", x->a_data)); x 358 lib/libsa/loadfile.c if (READ(fd, maxp, x->a_data) != x->a_data) { x 364 lib/libsa/loadfile.c if (lseek(fd, x->a_data, SEEK_CUR) == -1) { x 370 lib/libsa/loadfile.c maxp += x->a_data; x 377 lib/libsa/loadfile.c PROGRESS(("+%ld", x->a_bss)); x 379 lib/libsa/loadfile.c BZERO(maxp, x->a_bss); x 383 lib/libsa/loadfile.c maxp += x->a_bss; x 390 lib/libsa/loadfile.c BCOPY(&x->a_syms, maxp, sizeof(x->a_syms)); x 393 lib/libsa/loadfile.c maxp += sizeof(x->a_syms); x 397 lib/libsa/loadfile.c if (x->a_syms > 0) { x 401 lib/libsa/loadfile.c PROGRESS(("+[%ld", x->a_syms)); x 403 lib/libsa/loadfile.c if (READ(fd, maxp, x->a_syms) != x->a_syms) { x 408 lib/libsa/loadfile.c if (lseek(fd, x->a_syms, SEEK_CUR) == -1) { x 414 lib/libsa/loadfile.c maxp += x->a_syms; x 454 lib/libsa/loadfile.c marks[MARK_NSYM] = x->a_syms; x 44 lib/libsa/net.h #define __IPADDR(x) htonl((u_int32_t)(x)) x 285 lib/libsa/nfs.c long x; x 315 lib/libsa/nfs.c x = ntohl(repl->count); x 316 lib/libsa/nfs.c if (rlen < x) { x 317 lib/libsa/nfs.c printf("nfsread: short packet, %d < %ld\n", rlen, x); x 321 lib/libsa/nfs.c bcopy(repl->data, addr, x); x 322 lib/libsa/nfs.c return (x); x 120 lib/libsa/rpc.c n_long x; x 204 lib/libsa/rpc.c x = ntohl(auth->authlen); x 205 lib/libsa/rpc.c if (x != 0) { x 213 lib/libsa/rpc.c x = ntohl(reply->rp_u.rpu_rok.rok_status); x 214 lib/libsa/rpc.c if (x != 0) { x 215 lib/libsa/rpc.c printf("callrpc: error = %d\n", x); x 234 lib/libsa/rpc.c int x; x 248 lib/libsa/rpc.c x = ntohl(reply->rp_xid); x 249 lib/libsa/rpc.c if (x != rpc_xid) { x 252 lib/libsa/rpc.c printf("recvrpc: rp_xid %d != xid %d\n", x, rpc_xid); x 257 lib/libsa/rpc.c x = ntohl(reply->rp_direction); x 258 lib/libsa/rpc.c if (x != RPC_REPLY) { x 261 lib/libsa/rpc.c printf("recvrpc: rp_direction %d != REPLY\n", x); x 266 lib/libsa/rpc.c x = ntohl(reply->rp_astatus); x 267 lib/libsa/rpc.c if (x != RPC_MSGACCEPTED) { x 269 lib/libsa/rpc.c printf("recvrpc: reject, astat=%d, errno=%d\n", x, errno); 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 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 103 msdosfs/bpb.h + (((u_int8_t *)(x))[2] << 16) \ x 104 msdosfs/bpb.h + (((u_int8_t *)(x))[3] << 24)) x 53 net/bpf.h #define BPF_WORDALIGN(x) (((x) + (BPF_ALIGNMENT - 1)) & ~(BPF_ALIGNMENT - 1)) x 539 net/if.c extern struct ifqueue x; \ x 540 net/if.c if_detach_queues(ifp, & 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 69 net/if_enc.c #define DPRINTF(x) do { if (encdebug) printf x ; } while (0) x 467 net/if_gif.c (((struct sockaddr_in *)(x))->sin_addr.s_addr == INADDR_ANY) x 470 net/if_gif.c (IN6_IS_ADDR_UNSPECIFIED(&((struct sockaddr_in6 *)(x))->sin6_addr)) 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 75 net/if_pfsync.c #define DPRINTF(x) do { if (pfsyncdebug) printf x ; } while (0) x 1066 net/if_pppoe.c int x, retry_wait, err; x 1085 net/if_pppoe.c x = splnet(); x 1093 net/if_pppoe.c splx(x); x 1103 net/if_pppoe.c splx(x); x 1107 net/if_pppoe.c x = splnet(); x 1120 net/if_pppoe.c splx(x); x 1130 net/if_pppoe.c splx(x); x 1145 net/if_pppoe.c int x, err; x 1155 net/if_pppoe.c x = splnet(); x 1166 net/if_pppoe.c splx(x); x 1175 net/if_pppoe.c int err, x; x 1177 net/if_pppoe.c x = splnet(); x 1207 net/if_pppoe.c splx(x); x 3068 net/if_spppsubr.c int len, x; x 3146 net/if_spppsubr.c x = splnet(); x 3156 net/if_spppsubr.c splx(x); x 3159 net/if_spppsubr.c splx(x); x 3361 net/if_spppsubr.c int i = 0, x; x 3398 net/if_spppsubr.c x = splnet(); x 3408 net/if_spppsubr.c splx(x); x 3411 net/if_spppsubr.c splx(x); x 3478 net/if_spppsubr.c int len, x; x 3566 net/if_spppsubr.c x = splnet(); x 3576 net/if_spppsubr.c splx(x); x 3579 net/if_spppsubr.c splx(x); x 3717 net/if_spppsubr.c int x; x 3725 net/if_spppsubr.c x = splnet(); x 3735 net/if_spppsubr.c splx(x); x 3738 net/if_spppsubr.c splx(x); x 276 net/if_strip.c #define DPRINTF(x) printf x x 1458 net/if_strip.c struct st_softc *sc = (struct st_softc *) x; x 92 net/pf.c #define DPFPRINTF(n, x) if (pf_status.debug >= (n)) printf x x 5603 net/pf.c struct pf_addr *x; x 5611 net/pf.c x = (sk == NULL || sk->direction == dir) ? x 5614 net/pf.c x = (sk == NULL || sk->direction == dir) ? x 5616 net/pf.c if (x == &pd.baddr || s == NULL) { x 5619 net/pf.c pd.src = x; x 5621 net/pf.c pd.dst = x; x 5979 net/pf.c struct pf_addr *x; x 5987 net/pf.c x = (s == NULL || sk->direction == dir) ? x 5990 net/pf.c x = (s == NULL || sk->direction == dir) ? x 5993 net/pf.c if (x == &pd.baddr || s == NULL) { x 5995 net/pf.c pd.src = x; x 5997 net/pf.c pd.dst = x; x 137 net/pf_ioctl.c #define DPFPRINTF(n, x) if (pf_status.debug >= (n)) printf x x 753 net/pf_ioctl.c u_int16_t x; x 761 net/pf_ioctl.c PF_MD5_UPD_HTONS(rule, match_tag, x); /* dup? */ x 123 net/pf_norm.c printf x ; \ x 44 net/pf_osfp.c printf(format , ##x) x 63 net/pf_osfp.c # define DPFPRINTF(format, x...) fprintf(stderr, format , ##x) x 61 net/pf_ruleset.c printf(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 224 net/pfkeyv2.h ( (x) == SADB_SATYPE_AH ? IPPROTO_AH :\ x 225 net/pfkeyv2.h (x) == SADB_SATYPE_ESP ? IPPROTO_ESP :\ x 226 net/pfkeyv2.h (x) == SADB_X_SATYPE_TCPSIGNATURE ? IPPROTO_TCP :\ x 227 net/pfkeyv2.h (x) == SADB_X_SATYPE_IPCOMP ? IPPROTO_IPCOMP: IPPROTO_IPIP ) 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 323 net/pfvar.h pf_routable((x), (af), NULL)) || \ x 325 net/pfvar.h pf_routable((x), (af), (ifp))) || \ x 327 net/pfvar.h !pf_rtlabel_match((x), (af), (aw))) || \ x 329 net/pfvar.h !pfr_match_addr((aw)->p.tbl, (x), (af))) || \ x 331 net/pfvar.h !pfi_match_addr((aw)->p.dyn, (x), (af))) || \ x 335 net/pfvar.h &(aw)->v.a.mask, (x), (af))))) != \ x 1186 net/pfvar.h *(a) = (x); \ x 1192 net/pfvar.h *(a) = (x); \ x 1193 net/pfvar.h if (x < PFRES_MAX) \ x 1194 net/pfvar.h pf_status.counters[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 766 net/ppp_tty.c struct ppp_softc *sc = (struct ppp_softc *) x; x 110 net/radix.c struct radix_node *x; x 113 net/radix.c for (x = head, v = v_arg; x->rn_b >= 0;) { x 114 net/radix.c if (x->rn_bmask & v[x->rn_off]) x 115 net/radix.c x = x->rn_r; x 117 net/radix.c x = x->rn_l; x 119 net/radix.c return (x); x 125 net/radix.c struct radix_node *x; x 128 net/radix.c for (x = head; x->rn_b >= 0;) { x 129 net/radix.c if ((x->rn_bmask & m[x->rn_off]) && x 130 net/radix.c (x->rn_bmask & v[x->rn_off])) x 131 net/radix.c x = x->rn_r; x 133 net/radix.c x = x->rn_l; x 135 net/radix.c return x; x 167 net/radix.c struct radix_node *x; x 171 net/radix.c if ((x = rn_addmask(m_arg, 1, head->rnh_treetop->rn_off)) == 0) x 173 net/radix.c netmask = x->rn_key; x 175 net/radix.c x = rn_match(v_arg, head); x 176 net/radix.c if (x && netmask) { x 177 net/radix.c while (x && x->rn_mask != netmask) x 178 net/radix.c x = x->rn_dupedkey; x 180 net/radix.c return x; x 205 net/radix.c struct radix_node *t = head->rnh_treetop, *x; x 288 net/radix.c x = rn_search_m(v, t, m->rm_mask); x 289 net/radix.c while (x && x->rn_mask != m->rm_mask) x 290 net/radix.c x = x->rn_dupedkey; x 291 net/radix.c if (x && rn_satisfies_leaf(v, x, off)) x 292 net/radix.c return x; x 361 net/radix.c struct radix_node *p, *x = top; x 364 net/radix.c p = x; x 365 net/radix.c if (cp[x->rn_off] & x->rn_bmask) x 366 net/radix.c x = x->rn_r; x 368 net/radix.c x = x->rn_l; x 369 net/radix.c } while (b > (unsigned) x->rn_b); /* x->rn_b < b && x->rn_b >= 0 */ x 380 net/radix.c x->rn_p = t; x 383 net/radix.c t->rn_r = x; x 386 net/radix.c t->rn_l = x; x 400 net/radix.c struct radix_node *x; x 431 net/radix.c x = rn_search(addmask_key, rn_masktop); x 432 net/radix.c if (Bcmp(addmask_key, x->rn_key, mlen) != 0) x 433 net/radix.c x = 0; x 434 net/radix.c if (x || search) x 435 net/radix.c return (x); x 436 net/radix.c R_Malloc(x, struct radix_node *, max_keylen + 2 * sizeof (*x)); x 437 net/radix.c if ((saved_x = x) == 0) x 439 net/radix.c Bzero(x, max_keylen + 2 * sizeof (*x)); x 440 net/radix.c netmask = cp = (caddr_t)(x + 2); x 442 net/radix.c x = rn_insert(cp, mask_rnhead, &maskduplicated, x); x 446 net/radix.c return (x); x 462 net/radix.c x->rn_b = -1 - b; x 464 net/radix.c x->rn_flags |= RNF_NORMAL; x 465 net/radix.c return (x); x 509 net/radix.c struct radix_node *t, *x = NULL, *tt; x 524 net/radix.c if ((x = rn_addmask(netmask, 0, top->rn_off)) == 0) x 526 net/radix.c b_leaf = x->rn_b; x 527 net/radix.c b = -1 - x->rn_b; x 528 net/radix.c netmask = x->rn_key; x 578 net/radix.c struct radix_node *xx = x; x 582 net/radix.c tt->rn_p = x = t->rn_p; x 584 net/radix.c if (x->rn_l == t) x 585 net/radix.c x->rn_l = tt; x 587 net/radix.c x->rn_r = tt; x 589 net/radix.c x = xx; x 614 net/radix.c tt->rn_b = x->rn_b; x 615 net/radix.c tt->rn_flags |= x->rn_flags & RNF_NORMAL; x 622 net/radix.c x = t->rn_l; x 624 net/radix.c x = t->rn_r; x 626 net/radix.c if (x->rn_b < 0) { x 627 net/radix.c for (mp = &t->rn_mklist; x; x = x->rn_dupedkey) x 628 net/radix.c if (x->rn_mask && (x->rn_b >= b_leaf) && x->rn_mklist == 0) { x 629 net/radix.c *mp = m = rn_new_radix_mask(x, 0); x 633 net/radix.c } else if (x->rn_mklist) { x 637 net/radix.c for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) x 649 net/radix.c x = t; x 651 net/radix.c } while (b <= t->rn_b && x != top); x 658 net/radix.c for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) { x 688 net/radix.c struct radix_node *t, *p, *x, *tt; x 699 net/radix.c x = head->rnh_treetop; x 709 net/radix.c tt = rn_search(v, x); x 711 net/radix.c tt = rn_search(v, x); x 713 net/radix.c tt = rn_search(v, x); x 715 net/radix.c head_off = x->rn_off; x 718 net/radix.c top = x; x 726 net/radix.c if ((x = rn_addmask(netmask, 1, head_off)) == 0) x 728 net/radix.c netmask = x->rn_key; x 753 net/radix.c x = t; x 755 net/radix.c } while (b <= t->rn_b && x != top); x 756 net/radix.c for (mp = &x->rn_mklist; (m = *mp); mp = &m->rm_mklist) x 787 net/radix.c x = dupedkey; x 788 net/radix.c x->rn_p = t; x 790 net/radix.c t->rn_l = x; x 792 net/radix.c t->rn_r = x; x 795 net/radix.c for (x = p = saved_tt; p && p->rn_dupedkey != tt;) x 806 net/radix.c *++x = *t; x 810 net/radix.c *++x = *t; x 815 net/radix.c p->rn_l = x; x 817 net/radix.c p->rn_r = x; x 818 net/radix.c x->rn_l->rn_p = x; x 819 net/radix.c x->rn_r->rn_p = x; x 834 net/radix.c x = t->rn_r; x 836 net/radix.c x = t->rn_l; x 839 net/radix.c p->rn_r = x; x 841 net/radix.c p->rn_l = x; x 842 net/radix.c x->rn_p = p; x 847 net/radix.c if (x->rn_b >= 0) { x 848 net/radix.c for (mp = &x->rn_mklist; (m = *mp);) x 855 net/radix.c for (m = t->rn_mklist; m && x; x = x->rn_dupedkey) x 856 net/radix.c if (m == x->rn_mklist) { x 858 net/radix.c x->rn_mklist = 0; x 865 net/radix.c "rn_delete: Orphaned Mask", m, x); x 871 net/radix.c x = tt + 1; x 872 net/radix.c if (t != x) { x 874 net/radix.c *t = *x; x 877 net/radix.c *t = *x; x 882 net/radix.c p = x->rn_p; x 883 net/radix.c if (p->rn_l == 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 3740 net/zlib.c uInt x[BMAX+1]; /* bit offsets, then code stack */ x 3791 net/zlib.c x[1] = j = 0; x 3792 net/zlib.c p = c + 1; xp = x + 2; x 3802 net/zlib.c v[x[j]++] = i; x 3807 net/zlib.c x[0] = i = 0; /* first Huffman code is zero */ x 3863 net/zlib.c x[h] = i; /* save pattern for backing up */ x 3898 net/zlib.c while ((i & ((1 << w) - 1)) != x[h]) x 359 net80211/ieee80211_crypto.c (((x) + (IEEE80211_WEP_KEYLEN + IEEE80211_WEP_IVLEN - 1)) & \ x 176 netinet/in.c int x, y; x 180 netinet/in.c for (x = 0; x < sizeof(*mask); x++) { x 181 netinet/in.c if (p[x] != 0xff) x 185 netinet/in.c if (x < sizeof(*mask)) { x 187 netinet/in.c if ((p[x] & (0x80 >> y)) == 0) x 191 netinet/in.c return x * 8 + y; x 764 netinet/in.c ((((x)->ia_ifp->if_flags & (IFF_LOOPBACK | IFF_POINTOPOINT)) != 0) \ 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 80 netinet/ip_esp.c #define DPRINTF(x) if (encdebug) printf x x 58 netinet/ip_ether.c #define DPRINTF(x) if (encdebug) printf x x 67 netinet/ip_ipcomp.c #define DPRINTF(x) if (encdebug) printf x x 71 netinet/ip_ipip.c #define DPRINTF(x) if (encdebug) printf x x 80 netinet/ip_ipsp.c #define DPRINTF(x) if (encdebug) printf x x 1620 netinet/ip_mroute.c struct bw_meter *x = rt->mfc_bw_meter; x 1622 netinet/ip_mroute.c rt->mfc_bw_meter = x->bm_mfc_next; x 1623 netinet/ip_mroute.c free(x, M_BWMETER); x 1798 netinet/ip_mroute.c struct bw_meter *x; x 1802 netinet/ip_mroute.c for (x = rt->mfc_bw_meter; x != NULL; x = x->bm_mfc_next) x 1803 netinet/ip_mroute.c bw_meter_receive_packet(x, plen, &now); x 2416 netinet/ip_mroute.c struct bw_meter *x; x 2450 netinet/ip_mroute.c for (x = mfc->mfc_bw_meter; x != NULL; x = x->bm_mfc_next) { x 2451 netinet/ip_mroute.c if ((BW_TIMEVALCMP(&x->bm_threshold.b_time, x 2453 netinet/ip_mroute.c (x->bm_threshold.b_packets == x 2455 netinet/ip_mroute.c (x->bm_threshold.b_bytes == req->bu_threshold.b_bytes) && x 2456 netinet/ip_mroute.c (x->bm_flags & BW_METER_USER_FLAGS) == flags) { x 2463 netinet/ip_mroute.c x = (struct bw_meter *)malloc(sizeof(*x), M_BWMETER, M_NOWAIT); x 2464 netinet/ip_mroute.c if (x == NULL) { x 2470 netinet/ip_mroute.c x->bm_threshold.b_time = req->bu_threshold.b_time; x 2472 netinet/ip_mroute.c x->bm_start_time = now; x 2473 netinet/ip_mroute.c x->bm_threshold.b_packets = req->bu_threshold.b_packets; x 2474 netinet/ip_mroute.c x->bm_threshold.b_bytes = req->bu_threshold.b_bytes; x 2475 netinet/ip_mroute.c x->bm_measured.b_packets = 0; x 2476 netinet/ip_mroute.c x->bm_measured.b_bytes = 0; x 2477 netinet/ip_mroute.c x->bm_flags = flags; x 2478 netinet/ip_mroute.c x->bm_time_next = NULL; x 2479 netinet/ip_mroute.c x->bm_time_hash = BW_METER_BUCKETS; x 2482 netinet/ip_mroute.c x->bm_mfc = mfc; x 2483 netinet/ip_mroute.c x->bm_mfc_next = mfc->mfc_bw_meter; x 2484 netinet/ip_mroute.c mfc->mfc_bw_meter = x; x 2485 netinet/ip_mroute.c schedule_bw_meter(x, &now); x 2495 netinet/ip_mroute.c struct bw_meter *x = list; x 2498 netinet/ip_mroute.c unschedule_bw_meter(x); x 2499 netinet/ip_mroute.c free(x, M_BWMETER); x 2511 netinet/ip_mroute.c struct bw_meter *x; x 2544 netinet/ip_mroute.c for (prev = NULL, x = mfc->mfc_bw_meter; x != NULL; x 2545 netinet/ip_mroute.c prev = x, x = x->bm_mfc_next) { x 2546 netinet/ip_mroute.c if ((BW_TIMEVALCMP(&x->bm_threshold.b_time, x 2548 netinet/ip_mroute.c (x->bm_threshold.b_packets == x 2550 netinet/ip_mroute.c (x->bm_threshold.b_bytes == x 2552 netinet/ip_mroute.c (x->bm_flags & BW_METER_USER_FLAGS) == flags) x 2555 netinet/ip_mroute.c if (x != NULL) { /* Delete entry from the list for this MFC */ x 2558 netinet/ip_mroute.c prev->bm_mfc_next = x->bm_mfc_next; x 2561 netinet/ip_mroute.c x->bm_mfc->mfc_bw_meter = x->bm_mfc_next; x 2564 netinet/ip_mroute.c unschedule_bw_meter(x); x 2567 netinet/ip_mroute.c free(x, M_BWMETER); x 2586 netinet/ip_mroute.c BW_TIMEVALDECR(&delta, &x->bm_start_time); x 2588 netinet/ip_mroute.c if (x->bm_flags & BW_METER_GEQ) { x 2590 netinet/ip_mroute.c if (BW_TIMEVALCMP(&delta, &x->bm_threshold.b_time, >)) { x 2592 netinet/ip_mroute.c x->bm_start_time = *nowp; x 2593 netinet/ip_mroute.c x->bm_measured.b_packets = 0; x 2594 netinet/ip_mroute.c x->bm_measured.b_bytes = 0; x 2595 netinet/ip_mroute.c x->bm_flags &= ~BW_METER_UPCALL_DELIVERED; x 2599 netinet/ip_mroute.c x->bm_measured.b_packets++; x 2600 netinet/ip_mroute.c x->bm_measured.b_bytes += plen; x 2603 netinet/ip_mroute.c if (!(x->bm_flags & BW_METER_UPCALL_DELIVERED)) { x 2604 netinet/ip_mroute.c if (((x->bm_flags & BW_METER_UNIT_PACKETS) && x 2605 netinet/ip_mroute.c (x->bm_measured.b_packets >= x 2606 netinet/ip_mroute.c x->bm_threshold.b_packets)) || x 2607 netinet/ip_mroute.c ((x->bm_flags & BW_METER_UNIT_BYTES) && x 2608 netinet/ip_mroute.c (x->bm_measured.b_bytes >= x 2609 netinet/ip_mroute.c x->bm_threshold.b_bytes))) { x 2611 netinet/ip_mroute.c bw_meter_prepare_upcall(x, nowp); x 2612 netinet/ip_mroute.c x->bm_flags |= BW_METER_UPCALL_DELIVERED; x 2615 netinet/ip_mroute.c } else if (x->bm_flags & BW_METER_LEQ) { x 2617 netinet/ip_mroute.c if (BW_TIMEVALCMP(&delta, &x->bm_threshold.b_time, >)) { x 2623 netinet/ip_mroute.c if (((x->bm_flags & BW_METER_UNIT_PACKETS) && x 2624 netinet/ip_mroute.c (x->bm_measured.b_packets <= x 2625 netinet/ip_mroute.c x->bm_threshold.b_packets)) || x 2626 netinet/ip_mroute.c ((x->bm_flags & BW_METER_UNIT_BYTES) && x 2627 netinet/ip_mroute.c (x->bm_measured.b_bytes <= x 2628 netinet/ip_mroute.c x->bm_threshold.b_bytes))) { x 2630 netinet/ip_mroute.c bw_meter_prepare_upcall(x, nowp); x 2633 netinet/ip_mroute.c unschedule_bw_meter(x); x 2634 netinet/ip_mroute.c schedule_bw_meter(x, nowp); x 2638 netinet/ip_mroute.c x->bm_measured.b_packets++; x 2639 netinet/ip_mroute.c x->bm_measured.b_bytes += plen; x 2642 netinet/ip_mroute.c if ((x->bm_flags & BW_METER_UNIT_PACKETS && x 2643 netinet/ip_mroute.c x->bm_measured.b_packets <= x->bm_threshold.b_packets) || x 2644 netinet/ip_mroute.c (x->bm_flags & BW_METER_UNIT_BYTES && x 2645 netinet/ip_mroute.c x->bm_measured.b_bytes <= x->bm_threshold.b_bytes)) { x 2656 netinet/ip_mroute.c x->bm_start_time = *nowp; x 2657 netinet/ip_mroute.c x->bm_measured.b_packets = 0; x 2658 netinet/ip_mroute.c x->bm_measured.b_bytes = 0; x 2659 netinet/ip_mroute.c x->bm_flags &= ~BW_METER_UPCALL_DELIVERED; x 2675 netinet/ip_mroute.c BW_TIMEVALDECR(&delta, &x->bm_start_time); x 2683 netinet/ip_mroute.c u->bu_src = x->bm_mfc->mfc_origin; x 2684 netinet/ip_mroute.c u->bu_dst = x->bm_mfc->mfc_mcastgrp; x 2685 netinet/ip_mroute.c u->bu_threshold.b_time = x->bm_threshold.b_time; x 2686 netinet/ip_mroute.c u->bu_threshold.b_packets = x->bm_threshold.b_packets; x 2687 netinet/ip_mroute.c u->bu_threshold.b_bytes = x->bm_threshold.b_bytes; x 2689 netinet/ip_mroute.c u->bu_measured.b_packets = x->bm_measured.b_packets; x 2690 netinet/ip_mroute.c u->bu_measured.b_bytes = x->bm_measured.b_bytes; x 2692 netinet/ip_mroute.c if (x->bm_flags & BW_METER_UNIT_PACKETS) x 2694 netinet/ip_mroute.c if (x->bm_flags & BW_METER_UNIT_BYTES) x 2696 netinet/ip_mroute.c if (x->bm_flags & BW_METER_GEQ) x 2698 netinet/ip_mroute.c if (x->bm_flags & BW_METER_LEQ) x 2774 netinet/ip_mroute.c if (!(x->bm_flags & BW_METER_LEQ)) x 2778 netinet/ip_mroute.c x->bm_start_time = *nowp; x 2779 netinet/ip_mroute.c x->bm_measured.b_packets = 0; x 2780 netinet/ip_mroute.c x->bm_measured.b_bytes = 0; x 2781 netinet/ip_mroute.c x->bm_flags &= ~BW_METER_UPCALL_DELIVERED; x 2784 netinet/ip_mroute.c BW_METER_TIMEHASH(x, time_hash); x 2785 netinet/ip_mroute.c x->bm_time_next = bw_meter_timers[time_hash]; x 2786 netinet/ip_mroute.c bw_meter_timers[time_hash] = x; x 2787 netinet/ip_mroute.c x->bm_time_hash = time_hash; x 2800 netinet/ip_mroute.c if (!(x->bm_flags & BW_METER_LEQ)) x 2804 netinet/ip_mroute.c time_hash = x->bm_time_hash; x 2810 netinet/ip_mroute.c if (tmp == x) x 2817 netinet/ip_mroute.c prev->bm_time_next = x->bm_time_next; x 2819 netinet/ip_mroute.c bw_meter_timers[time_hash] = x->bm_time_next; x 2821 netinet/ip_mroute.c x->bm_time_next = NULL; x 2822 netinet/ip_mroute.c x->bm_time_hash = BW_METER_BUCKETS; x 2860 netinet/ip_mroute.c struct bw_meter *x, *tmp_list; x 2871 netinet/ip_mroute.c x = tmp_list; x 2875 netinet/ip_mroute.c process_endtime = x->bm_start_time; x 2877 netinet/ip_mroute.c &x->bm_threshold.b_time); x 2882 netinet/ip_mroute.c BW_METER_TIMEHASH(x, time_hash); x 2893 netinet/ip_mroute.c x->bm_time_next = bw_meter_timers[time_hash]; x 2894 netinet/ip_mroute.c bw_meter_timers[time_hash] = x; x 2895 netinet/ip_mroute.c x->bm_time_hash = time_hash; x 2901 netinet/ip_mroute.c if (((x->bm_flags & BW_METER_UNIT_PACKETS) && x 2902 netinet/ip_mroute.c (x->bm_measured.b_packets <= x 2903 netinet/ip_mroute.c x->bm_threshold.b_packets)) || x 2904 netinet/ip_mroute.c ((x->bm_flags & BW_METER_UNIT_BYTES) && x 2905 netinet/ip_mroute.c (x->bm_measured.b_bytes <= x 2906 netinet/ip_mroute.c x->bm_threshold.b_bytes))) { x 2908 netinet/ip_mroute.c bw_meter_prepare_upcall(x, &now); x 2912 netinet/ip_mroute.c schedule_bw_meter(x, &now); x 69 netinet/ip_output.c #define DPRINTF(x) do { if (encdebug) printf x ; } while (0) x 54 netinet/ip_spd.c #define DPRINTF(x) if (encdebug) printf x x 86 netinet/ipsec_input.c #define DPRINTF(x) if (encdebug) printf 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 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 287 netinet6/in6.c int x = 0, y; x 293 netinet6/in6.c for (p = (u_char *)mask; p < lim; x++, p++) { x 317 netinet6/in6.c return x * 8 + y; 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 3215 netinet6/ip6_output.c (((struct ip6_ext *)(x)) ? (((struct ip6_ext *)(x))->ip6e_len + 1) << 3 : 0) x 232 netinet6/nd6.h (((MIN_RANDOM_FACTOR * (x >> 10)) + (arc4random() & \ x 233 netinet6/nd6.h ((MAX_RANDOM_FACTOR - MIN_RANDOM_FACTOR) * (x >> 10)))) /1000) 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 1019 nfs/nfs_vnops.c u_int32_t x; x 1023 nfs/nfs_vnops.c x = txdr_unsigned((u_int32_t)uiop->uio_offset); x 1024 nfs/nfs_vnops.c *tl++ = x; /* "begin offset" */ x 1025 nfs/nfs_vnops.c *tl++ = x; /* "current offset" */ x 1026 nfs/nfs_vnops.c x = txdr_unsigned(len); x 1027 nfs/nfs_vnops.c *tl++ = x; /* total to this offset */ x 1028 nfs/nfs_vnops.c *tl = x; /* size of this write */ 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 1958 scsi/scsi_base.c int x; x 1961 scsi/scsi_base.c for (x = 0; x < num; x++) { x 1962 scsi/scsi_base.c if ((x % 16) == 0) x 1963 scsi/scsi_base.c printf("\n%03d: ", 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 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 120 sys/cdefs.h #define __attribute__(x) /* delete __attribute__ if non-gcc or gcc1 */ x 185 sys/cdefs.h #define __statement(x) __extension__(x) x 189 sys/cdefs.h #define __statement(x) (x) x 215 sys/disklabel.h daddr64_t x = (n); \ x 216 sys/disklabel.h (p)->p_sizeh = x >> 32; \ x 217 sys/disklabel.h (p)->p_size = x; \ x 220 sys/disklabel.h daddr64_t x = (n); \ x 221 sys/disklabel.h (p)->p_offseth = x >> 32; \ x 222 sys/disklabel.h (p)->p_offset = x; \ x 225 sys/disklabel.h daddr64_t x = (n); \ x 226 sys/disklabel.h (d)->d_secperunith = x >> 32; \ x 227 sys/disklabel.h (d)->d_secperunit = x; \ x 55 sys/endian.h __uint16_t __swap16gen_x = (x); \ x 62 sys/endian.h __uint32_t __swap32gen_x = (x); \ x 71 sys/endian.h __uint64_t __swap64gen_x = (x); \ x 87 sys/endian.h (__uint16_t)(((__uint16_t)(x) & 0xffU) << 8 | ((__uint16_t)(x) & 0xff00U) >> 8) x 90 sys/endian.h (__uint32_t)(((__uint32_t)(x) & 0xff) << 24 | \ x 91 sys/endian.h ((__uint32_t)(x) & 0xff00) << 8 | ((__uint32_t)(x) & 0xff0000) >> 8 |\ x 92 sys/endian.h ((__uint32_t)(x) & 0xff000000) >> 24) x 95 sys/endian.h (__uint64_t)((((__uint64_t)(x) & 0xff) << 56) | \ x 96 sys/endian.h ((__uint64_t)(x) & 0xff00ULL) << 40 | \ x 97 sys/endian.h ((__uint64_t)(x) & 0xff0000ULL) << 24 | \ x 98 sys/endian.h ((__uint64_t)(x) & 0xff000000ULL) << 8 | \ x 99 sys/endian.h ((__uint64_t)(x) & 0xff00000000ULL) >> 8 | \ x 100 sys/endian.h ((__uint64_t)(x) & 0xff0000000000ULL) >> 24 | \ x 101 sys/endian.h ((__uint64_t)(x) & 0xff000000000000ULL) >> 40 | \ x 102 sys/endian.h ((__uint64_t)(x) & 0xff00000000000000ULL) >> 56) x 116 sys/endian.h __uint16_t __swap16_x = (x); \ x 118 sys/endian.h __builtin_constant_p(x) ? __swap16gen(__swap16_x) : \ x 123 sys/endian.h __uint32_t __swap32_x = (x); \ x 125 sys/endian.h __builtin_constant_p(x) ? __swap32gen(__swap32_x) : \ x 130 sys/endian.h __uint64_t __swap64_x = (x); \ x 132 sys/endian.h __builtin_constant_p(x) ? __swap64gen(__swap64_x) : \ 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 136 sys/exec_aout.h ((x) + __LDPGSZ - 1) & ~(__LDPGSZ - 1) : (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 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 17 sys/syscallargs.h struct { x datum; } le; \ x 19 sys/syscallargs.h int8_t pad[ (sizeof (register_t) < sizeof (x)) \ x 21 sys/syscallargs.h : sizeof (register_t) - sizeof (x)]; \ x 22 sys/syscallargs.h x datum; \ x 150 sys/time.h bt->frac += 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 281 sys/tree.h : name##_SPLAY_MIN_MAX(x, SPLAY_NEGINF)) x 282 sys/tree.h #define SPLAY_MAX(name, x) (SPLAY_EMPTY(x) ? NULL \ x 283 sys/tree.h : name##_SPLAY_MIN_MAX(x, SPLAY_INF)) x 286 sys/tree.h for ((x) = SPLAY_MIN(name, head); \ x 287 sys/tree.h (x) != NULL; \ x 288 sys/tree.h (x) = SPLAY_NEXT(name, head, 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 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 673 sys/tree.h for ((x) = RB_MIN(name, head); \ x 674 sys/tree.h (x) != NULL; \ x 675 sys/tree.h (x) = name##_RB_NEXT(x)) 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 276 ufs/ext2fs/ext2fs.h ((fs)->e2fs_gd[ino_to_cg(fs, x)].ext2bgd_i_tables + \ x 277 ufs/ext2fs/ext2fs.h (((x)-1) % (fs)->e2fs.e2fs_ipg)/(fs)->e2fs_ipb) 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 482 ufs/ffs/fs.h ((daddr_t)(cgimin(fs, ino_to_cg(fs, x)) + \ x 483 ufs/ffs/fs.h (blkstofrags((fs), (((x) % (fs)->fs_ipg) / INOPB(fs)))))) 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 503 uvm/uvm_page.c int lcv, x; x 533 uvm/uvm_page.c for (x = lcv ; x < vm_nphysseg ; x++) x 535 uvm/uvm_page.c vm_physmem[x] = vm_physmem[x+1]; x 552 uvm/uvm_page.c for (x = lcv ; x < vm_nphysseg ; x++) x 554 uvm/uvm_page.c vm_physmem[x] = vm_physmem[x+1]; x 583 uvm/uvm_page.c for (x = lcv ; x < vm_nphysseg ; x++) x 585 uvm/uvm_page.c vm_physmem[x] = vm_physmem[x+1]; x 709 uvm/uvm_page.c int x; x 716 uvm/uvm_page.c for (x = vm_nphysseg ; x > lcv ; x--) x 718 uvm/uvm_page.c vm_physmem[x] = vm_physmem[x - 1]; x 724 uvm/uvm_page.c int x; x 732 uvm/uvm_page.c for (x = vm_nphysseg ; x > lcv ; x--) x 734 uvm/uvm_page.c vm_physmem[x] = vm_physmem[x - 1]; 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 163 uvm/uvm_param.h ((((vaddr_t)(x) + (vm_page_size - 1)) / vm_page_size) * \ x 166 uvm/uvm_param.h ((((vaddr_t)(x)) / vm_page_size) * vm_page_size) 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 65 uvm/uvm_swap_encrypt.h swap_key_create(x); \ x 67 uvm/uvm_swap_encrypt.h (x)->refcount++; } while(0); x 68 uvm/uvm_swap_encrypt.h #define SWAP_KEY_PUT(s,x) do { (x)->refcount--; \ x 69 uvm/uvm_swap_encrypt.h if ((x)->refcount == 0) { \ x 70 uvm/uvm_swap_encrypt.h swap_key_delete(x); \ x 1660 xfs/xfs_config.h #define SIGRETURN(x) return (RETSIGTYPE)(x) x 45 xfs/xfs_deb.c x(XDEBDEV) | x 70 xfs/xfs_fs.h #define NNPFS_TO_VFS(x) ((x)->mp) 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