_v 144 arch/ia64/include/asm/page.h #define __pa(x) ({ia64_va _v; _v.l = (long) (x); _v.f.reg = 0; _v.l;}) _v 145 arch/ia64/include/asm/page.h #define __va(x) ({ia64_va _v; _v.l = (long) (x); _v.f.reg = -1; _v.p;}) _v 147 arch/ia64/include/asm/page.h #define REGION_NUMBER(x) ({ia64_va _v; _v.l = (long) (x); _v.f.reg;}) _v 148 arch/ia64/include/asm/page.h #define REGION_OFFSET(x) ({ia64_va _v; _v.l = (long) (x); _v.f.off;}) _v 61 arch/ia64/include/uapi/asm/intrinsics.h volatile __typeof__(*(v)) *_v = (v); \ _v 64 arch/ia64/include/uapi/asm/intrinsics.h IA64_FETCHADD(_tmp, _v, -16, sizeof(*(v)), sem); \ _v 66 arch/ia64/include/uapi/asm/intrinsics.h IA64_FETCHADD(_tmp, _v, -8, sizeof(*(v)), sem); \ _v 68 arch/ia64/include/uapi/asm/intrinsics.h IA64_FETCHADD(_tmp, _v, -4, sizeof(*(v)), sem); \ _v 70 arch/ia64/include/uapi/asm/intrinsics.h IA64_FETCHADD(_tmp, _v, -1, sizeof(*(v)), sem); \ _v 72 arch/ia64/include/uapi/asm/intrinsics.h IA64_FETCHADD(_tmp, _v, 1, sizeof(*(v)), sem); \ _v 74 arch/ia64/include/uapi/asm/intrinsics.h IA64_FETCHADD(_tmp, _v, 4, sizeof(*(v)), sem); \ _v 76 arch/ia64/include/uapi/asm/intrinsics.h IA64_FETCHADD(_tmp, _v, 8, sizeof(*(v)), sem); \ _v 78 arch/ia64/include/uapi/asm/intrinsics.h IA64_FETCHADD(_tmp, _v, 16, sizeof(*(v)), sem); \ _v 294 arch/m68k/include/asm/io_mm.h #define isa_rom_inb_p(p) ({ u8 _v = isa_rom_inb(p); isa_delay(); _v; }) _v 295 arch/m68k/include/asm/io_mm.h #define isa_rom_inw_p(p) ({ u16 _v = isa_rom_inw(p); isa_delay(); _v; }) _v 36 arch/m68k/include/asm/segment.h mm_segment_t _v; _v 37 arch/m68k/include/asm/segment.h __asm__ ("movec %/dfc,%0":"=r" (_v.seg):); _v 38 arch/m68k/include/asm/segment.h return _v; _v 36 arch/mips/include/asm/sn/agent.h #define SET_MY_HUB_NIC(_v) \ _v 37 arch/mips/include/asm/sn/agent.h SET_HUB_NIC(cpuid(), (_v)) _v 440 arch/mips/include/asm/sn/sn0/hubmd.h #define SET_MY_LEDS(_v) \ _v 441 arch/mips/include/asm/sn/sn0/hubmd.h SET_CPU_LEDS(get_nasid(), get_slice(), (_v)) _v 836 arch/powerpc/include/asm/io.h #define setbits32(_addr, _v) out_be32((_addr), in_be32(_addr) | (_v)) _v 837 arch/powerpc/include/asm/io.h #define clrbits32(_addr, _v) out_be32((_addr), in_be32(_addr) & ~(_v)) _v 839 arch/powerpc/include/asm/io.h #define setbits16(_addr, _v) out_be16((_addr), in_be16(_addr) | (_v)) _v 840 arch/powerpc/include/asm/io.h #define clrbits16(_addr, _v) out_be16((_addr), in_be16(_addr) & ~(_v)) _v 842 arch/powerpc/include/asm/io.h #define setbits8(_addr, _v) out_8((_addr), in_8(_addr) | (_v)) _v 843 arch/powerpc/include/asm/io.h #define clrbits8(_addr, _v) out_8((_addr), in_8(_addr) & ~(_v)) _v 58 arch/s390/include/asm/atomic.h #define atomic_sub(_i, _v) atomic_add(-(int)(_i), _v) _v 59 arch/s390/include/asm/atomic.h #define atomic_sub_return(_i, _v) atomic_add_return(-(int)(_i), _v) _v 60 arch/s390/include/asm/atomic.h #define atomic_fetch_sub(_i, _v) atomic_fetch_add(-(int)(_i), _v) _v 148 arch/s390/include/asm/atomic.h #define atomic64_sub_return(_i, _v) atomic64_add_return(-(s64)(_i), _v) _v 149 arch/s390/include/asm/atomic.h #define atomic64_fetch_sub(_i, _v) atomic64_fetch_add(-(s64)(_i), _v) _v 150 arch/s390/include/asm/atomic.h #define atomic64_sub(_i, _v) atomic64_add(-(s64)(_i), _v) _v 361 drivers/block/xen-blkback/common.h #define vbd_sz(_v) ((_v)->bdev->bd_part ? \ _v 362 drivers/block/xen-blkback/common.h (_v)->bdev->bd_part->nr_sects : \ _v 363 drivers/block/xen-blkback/common.h get_capacity((_v)->bdev->bd_disk)) _v 149 drivers/dma/pxa_dma.c u32 _v; \ _v 150 drivers/dma/pxa_dma.c _v = readl_relaxed((phy)->base + _reg((phy)->idx)); \ _v 153 drivers/dma/pxa_dma.c _v); \ _v 154 drivers/dma/pxa_dma.c _v; \ _v 18 drivers/gpu/drm/armada/armada_crtc.h #define armada_reg_queue_mod(_r, _i, _v, _m, _o) \ _v 23 drivers/gpu/drm/armada/armada_crtc.h __reg[_i].val = _v; \ _v 27 drivers/gpu/drm/armada/armada_crtc.h #define armada_reg_queue_set(_r, _i, _v, _o) \ _v 28 drivers/gpu/drm/armada/armada_crtc.h armada_reg_queue_mod(_r, _i, _v, ~0, _o) _v 210 drivers/gpu/drm/exynos/regs-decon7.h #define BLENDE_Q_FUNC(_v) ((_v) << 18) _v 211 drivers/gpu/drm/exynos/regs-decon7.h #define BLENDE_P_FUNC(_v) ((_v) << 12) _v 212 drivers/gpu/drm/exynos/regs-decon7.h #define BLENDE_B_FUNC(_v) ((_v) << 6) _v 213 drivers/gpu/drm/exynos/regs-decon7.h #define BLENDE_A_FUNC(_v) ((_v) << 0) _v 258 drivers/gpu/drm/exynos/regs-decon7.h #define VIDCON1_LINECNT_GET(_v) (((_v) >> 17) & 0x1fff) _v 20 drivers/gpu/drm/nouveau/include/nvkm/core/os.h u64 _v = (v); \ _v 21 drivers/gpu/drm/nouveau/include/nvkm/core/os.h iowrite32_native(lower_32_bits(_v), &_p[0]); \ _v 22 drivers/gpu/drm/nouveau/include/nvkm/core/os.h iowrite32_native(upper_32_bits(_v), &_p[1]); \ _v 392 drivers/i2c/busses/i2c-stm32f7.c struct stm32f7_i2c_timings *v, *_v, *s; _v 564 drivers/i2c/busses/i2c-stm32f7.c list_for_each_entry_safe(v, _v, &solutions, node) { _v 83 drivers/input/touchscreen/da9034-ts.c uint8_t _x, _y, _v; _v 94 drivers/input/touchscreen/da9034-ts.c ret = da903x_read(touch->da9034_dev, DA9034_TSI_XY_LSB, &_v); _v 98 drivers/input/touchscreen/da9034-ts.c touch->last_x = ((_x << 2) & 0x3fc) | (_v & 0x3); _v 99 drivers/input/touchscreen/da9034-ts.c touch->last_y = ((_y << 2) & 0x3fc) | ((_v & 0xc) >> 2); _v 258 drivers/mailbox/bcm-flexrm-mailbox.c #define DESC_ENC(_d, _v, _s, _m) \ _v 261 drivers/mailbox/bcm-flexrm-mailbox.c (_d) |= (((u64)(_v) & (_m)) << (_s)); \ _v 108 drivers/md/bcache/sysfs.h unsigned long _v; \ _v 109 drivers/md/bcache/sysfs.h int _r = kstrtoul(cp, 10, &_v); \ _v 112 drivers/md/bcache/sysfs.h _v; \ _v 329 drivers/md/bcache/util.h unsigned long _v; \ _v 330 drivers/md/bcache/util.h int _r = kstrtoul(cp, 10, &_v); \ _v 332 drivers/md/bcache/util.h var = _v; \ _v 338 drivers/md/bcache/util.h unsigned long _v; \ _v 339 drivers/md/bcache/util.h int _r = kstrtoul(cp, 10, &_v); \ _v 341 drivers/md/bcache/util.h var = clamp_t(typeof(var), _v, min, max); \ _v 148 drivers/media/usb/airspy/airspy.c #define airspy_dbg_usb_control_msg(_dev, _r, _t, _v, _i, _b, _l) { \ _v 155 drivers/media/usb/airspy/airspy.c _t, _r, _v & 0xff, _v >> 8, _i & 0xff, _i >> 8, \ _v 170 drivers/media/usb/hackrf/hackrf.c #define hackrf_dbg_usb_control_msg(_dev, _r, _t, _v, _i, _b, _l) { \ _v 177 drivers/media/usb/hackrf/hackrf.c _t, _r, _v & 0xff, _v >> 8, _i & 0xff, \ _v 640 drivers/media/usb/msi2500/msi2500.c #define msi2500_dbg_usb_control_msg(_dev, _r, _t, _v, _i, _b, _l) { \ _v 647 drivers/media/usb/msi2500/msi2500.c _t, _r, _v & 0xff, _v >> 8, _i & 0xff, _i >> 8, \ _v 28 drivers/misc/sgi-xp/xpc.h #define XPC_VERSION_MAJOR(_v) ((_v) >> 4) _v 29 drivers/misc/sgi-xp/xpc.h #define XPC_VERSION_MINOR(_v) ((_v) & 0xf) _v 74 drivers/misc/sgi-xp/xpnet.c #define XPNET_VERSION_MAJOR(_v) ((_v) >> 4) _v 75 drivers/misc/sgi-xp/xpnet.c #define XPNET_VERSION_MINOR(_v) ((_v) & 0xf) _v 145 drivers/net/ethernet/8390/8390.h #define ei_outb(_v,_p) outb(_v,_p) _v 147 drivers/net/ethernet/8390/8390.h #define ei_outb_p(_v,_p) outb(_v,_p) _v 8 drivers/net/ethernet/8390/8390p.c #define ei_outb(_v, _p) outb(_v, _p) _v 10 drivers/net/ethernet/8390/8390p.c #define ei_outb_p(_v, _p) outb_p(_v, _p) _v 47 drivers/net/ethernet/8390/ax88796.c #define ei_outb(_v, _a) writeb(_v, ax_convert_addr(_a)) _v 50 drivers/net/ethernet/8390/ax88796.c #define ei_outb_p(_v, _a) ei_outb(_v, _a) _v 52 drivers/net/ethernet/8390/etherh.c #define ei_outb(_v,_p) writeb(_v,(void __iomem *)_p) _v 54 drivers/net/ethernet/8390/etherh.c #define ei_outb_p(_v,_p) writeb(_v,(void __iomem *)_p) _v 31 drivers/net/ethernet/8390/xsurf100.c #define ei_outb(_v, _a) z_writeb(_v, ax_convert_addr(_a)) _v 34 drivers/net/ethernet/8390/xsurf100.c #define ei_outw(_v, _a) z_writew(_v, ax_convert_addr(_a)) _v 37 drivers/net/ethernet/8390/xsurf100.c #define ei_outb_p(_v, _a) ei_outb(_v, _a) _v 16 drivers/net/ethernet/atheros/atl1c/atl1c_hw.h #define FIELD_SETX(_x, _name, _v) \ _v 18 drivers/net/ethernet/atheros/atl1c/atl1c_hw.h (((_v) & (_name##_MASK)) << (_name##_SHIFT))) _v 19 drivers/net/ethernet/atheros/atl1c/atl1c_hw.h #define FIELDX(_name, _v) (((_v) & (_name##_MASK)) << (_name##_SHIFT)) _v 442 drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c #define __MSIX_VT_NUMVT_(_v) ((_v) << __MSIX_VT_NUMVT__SH) _v 38 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_LCLK_RESET_TIMER(_v) ((_v) << __APP_PLL_LCLK_RESET_TIMER_SH) _v 42 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_LCLK_CNTLMT0_1(_v) ((_v) << __APP_PLL_LCLK_CNTLMT0_1_SH) _v 45 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_LCLK_JITLMT0_1(_v) ((_v) << __APP_PLL_LCLK_JITLMT0_1_SH) _v 50 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_LCLK_P0_1(_v) ((_v) << __APP_PLL_LCLK_P0_1_SH) _v 53 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_LCLK_Z0_2(_v) ((_v) << __APP_PLL_LCLK_Z0_2_SH) _v 63 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_SCLK_RESET_TIMER(_v) ((_v) << __APP_PLL_SCLK_RESET_TIMER_SH) _v 67 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_SCLK_CNTLMT0_1(_v) ((_v) << __APP_PLL_SCLK_CNTLMT0_1_SH) _v 70 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_SCLK_JITLMT0_1(_v) ((_v) << __APP_PLL_SCLK_JITLMT0_1_SH) _v 75 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_SCLK_P0_1(_v) ((_v) << __APP_PLL_SCLK_P0_1_SH) _v 78 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_SCLK_Z0_2(_v) ((_v) << __APP_PLL_SCLK_Z0_2_SH) _v 126 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __PSS_I2C_CLK_DIV(_v) ((_v) << __PSS_I2C_CLK_DIV_SH) _v 168 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __F3_PORT_MAP(_v) ((_v) << __F3_PORT_MAP_SH) _v 172 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __F3_INTX_STATUS(_v) ((_v) << __F3_INTX_STATUS_SH) _v 177 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __F2_PORT_MAP(_v) ((_v) << __F2_PORT_MAP_SH) _v 181 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __F2_INTX_STATUS(_v) ((_v) << __F2_INTX_STATUS_SH) _v 186 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __F1_PORT_MAP(_v) ((_v) << __F1_PORT_MAP_SH) _v 190 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __F1_INTX_STATUS(_v) ((_v) << __F1_INTX_STATUS_SH) _v 195 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __F0_PORT_MAP(_v) ((_v) << __F0_PORT_MAP_SH) _v 231 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __PF_VF_BAR_SIZE_MODE_(_v) ((_v) << __PF_VF_BAR_SIZE_MODE__SH) _v 234 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __FC_LL_PORT_MAP_(_v) ((_v) << __FC_LL_PORT_MAP__SH) _v 242 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __PF_EXROM_OFFSET_(_v) ((_v) << __PF_EXROM_OFFSET__SH) _v 248 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __PF_NUM_QUEUES1_(_v) ((_v) << __PF_NUM_QUEUES1__SH) _v 251 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __PF_VF_QUE_OFFSET1_(_v) ((_v) << __PF_VF_QUE_OFFSET1__SH) _v 254 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __PF_VF_NUM_QUEUES_(_v) ((_v) << __PF_VF_NUM_QUEUES__SH) _v 296 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_LCLK_FBCNT(_v) ((_v) << __APP_PLL_SCLK_FBCNT_SH) _v 311 drivers/net/ethernet/brocade/bna/bfi_reg.h #define __APP_PLL_SCLK_FBCNT(_v) ((_v) << __APP_PLL_SCLK_FBCNT_SH) _v 54 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c #define W32(_p, _m, _v) out_be32(&(_p)->_m, (_v)) _v 56 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c #define S32(_p, _m, _v) W32(_p, _m, R32(_p, _m) | (_v)) _v 57 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c #define C32(_p, _m, _v) W32(_p, _m, R32(_p, _m) & ~(_v)) _v 59 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c #define W16(_p, _m, _v) out_be16(&(_p)->_m, (_v)) _v 61 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c #define S16(_p, _m, _v) W16(_p, _m, R16(_p, _m) | (_v)) _v 62 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c #define C16(_p, _m, _v) W16(_p, _m, R16(_p, _m) & ~(_v)) _v 64 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c #define W8(_p, _m, _v) out_8(&(_p)->_m, (_v)) _v 66 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c #define S8(_p, _m, _v) W8(_p, _m, R8(_p, _m) | (_v)) _v 67 drivers/net/ethernet/freescale/fs_enet/mac-fcc.c #define C8(_p, _m, _v) W8(_p, _m, R8(_p, _m) & ~(_v)) _v 62 drivers/net/ethernet/freescale/fs_enet/mac-fec.c #define FW(_fecp, _reg, _v) __fs_out32(&(_fecp)->fec_ ## _reg, (_v)) _v 68 drivers/net/ethernet/freescale/fs_enet/mac-fec.c #define FS(_fecp, _reg, _v) FW(_fecp, _reg, FR(_fecp, _reg) | (_v)) _v 71 drivers/net/ethernet/freescale/fs_enet/mac-fec.c #define FC(_fecp, _reg, _v) FW(_fecp, _reg, FR(_fecp, _reg) & ~(_v)) _v 62 drivers/net/ethernet/freescale/fs_enet/mac-scc.c #define W32(_p, _m, _v) __fs_out32(&(_p)->_m, (_v)) _v 64 drivers/net/ethernet/freescale/fs_enet/mac-scc.c #define S32(_p, _m, _v) W32(_p, _m, R32(_p, _m) | (_v)) _v 65 drivers/net/ethernet/freescale/fs_enet/mac-scc.c #define C32(_p, _m, _v) W32(_p, _m, R32(_p, _m) & ~(_v)) _v 67 drivers/net/ethernet/freescale/fs_enet/mac-scc.c #define W16(_p, _m, _v) __fs_out16(&(_p)->_m, (_v)) _v 69 drivers/net/ethernet/freescale/fs_enet/mac-scc.c #define S16(_p, _m, _v) W16(_p, _m, R16(_p, _m) | (_v)) _v 70 drivers/net/ethernet/freescale/fs_enet/mac-scc.c #define C16(_p, _m, _v) W16(_p, _m, R16(_p, _m) & ~(_v)) _v 72 drivers/net/ethernet/freescale/fs_enet/mac-scc.c #define W8(_p, _m, _v) __fs_out8(&(_p)->_m, (_v)) _v 74 drivers/net/ethernet/freescale/fs_enet/mac-scc.c #define S8(_p, _m, _v) W8(_p, _m, R8(_p, _m) | (_v)) _v 75 drivers/net/ethernet/freescale/fs_enet/mac-scc.c #define C8(_p, _m, _v) W8(_p, _m, R8(_p, _m) & ~(_v)) _v 2693 drivers/net/ethernet/marvell/mv643xx_eth.c #define mv643xx_eth_property(_np, _name, _v) \ _v 2697 drivers/net/ethernet/marvell/mv643xx_eth.c _v = tmp; \ _v 99 drivers/net/ethernet/micrel/ks8851.h #define TXSR_TXFID_GET(_v) (((_v) >> 0) & 0x3f) _v 203 drivers/net/ethernet/micrel/ks8851.h #define RXFCTR_RXFC_GET(_v) (((_v) >> 8) & 0xff) _v 222 drivers/net/ethernet/micrel/ks8851.h #define CIDER_REV_GET(_v) (((_v) >> 1) & 0x7) _v 248 drivers/net/ethernet/micrel/ks8851.h #define PMECR_WKEVT_GET(_v) (((_v) >> 2) & 0xf) _v 84 drivers/net/ethernet/realtek/atp.h unsigned char _v; _v 86 drivers/net/ethernet/realtek/atp.h __asm__ __volatile__ ("inb %w1,%b0" : "=a" (_v) : "d" (port)); _v 87 drivers/net/ethernet/realtek/atp.h return _v; _v 51 drivers/net/ethernet/sfc/mcdi_pcol.h #define MC_FW_VERSION_IS_BOOTLOADER(_v) (((_v) >> 16) == 0xb007) _v 31 drivers/net/wireless/ath/ath10k/core.h #define MS(_v, _f) (((_v) & _f##_MASK) >> _f##_LSB) _v 32 drivers/net/wireless/ath/ath10k/core.h #define SM(_v, _f) (((_v) << _f##_LSB) & _f##_MASK) _v 687 drivers/net/wireless/ath/ath5k/ath5k.h #define AR5K_TXPOWER_OFDM(_r, _v) ( \ _v 688 drivers/net/wireless/ath/ath5k/ath5k.h ((0 & 1) << ((_v) + 6)) | \ _v 689 drivers/net/wireless/ath/ath5k/ath5k.h (((ah->ah_txpower.txp_rates_power_table[(_r)]) & 0x3f) << (_v)) \ _v 692 drivers/net/wireless/ath/ath5k/ath5k.h #define AR5K_TXPOWER_CCK(_r, _v) ( \ _v 693 drivers/net/wireless/ath/ath5k/ath5k.h (ah->ah_txpower.txp_rates_power_table[(_r)] & 0x3f) << (_v) \ _v 75 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HDR_11A(_v) (((_v) >> AR5K_EEPROM_MODE_11A) & 0x1) _v 76 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HDR_11B(_v) (((_v) >> AR5K_EEPROM_MODE_11B) & 0x1) _v 77 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HDR_11G(_v) (((_v) >> AR5K_EEPROM_MODE_11G) & 0x1) _v 78 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HDR_T_2GHZ_DIS(_v) (((_v) >> 3) & 0x1) /* Disable turbo for 2GHz */ _v 79 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HDR_T_5GHZ_DBM(_v) (((_v) >> 4) & 0x7f) /* Max turbo power for < 2W power consumption */ _v 80 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HDR_DEVICE(_v) (((_v) >> 11) & 0x7) /* Device type (1 Cardbus, 2 PCI, 3 MiniPCI, 4 AP) */ _v 81 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HDR_RFKILL(_v) (((_v) >> 14) & 0x1) /* Device has RFKill support */ _v 82 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HDR_T_5GHZ_DIS(_v) (((_v) >> 15) & 0x1) /* Disable turbo for 5GHz */ _v 85 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_OFF(_v, _v3_0, _v3_3) \ _v 86 drivers/net/wireless/ath/ath5k/eeprom.h (((_v) >= AR5K_EEPROM_VERSION_3_3) ? _v3_3 : _v3_0) _v 88 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_ANT_GAIN(_v) AR5K_EEPROM_OFF(_v, 0x00c4, 0x00c3) _v 89 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_ANT_GAIN_5GHZ(_v) ((s8)(((_v) >> 8) & 0xff)) _v 90 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_ANT_GAIN_2GHZ(_v) ((s8)((_v) & 0xff)) _v 94 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_EARSTART(_v) ((_v) & 0xfff) _v 95 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HDR_XR2_DIS(_v) (((_v) >> 12) & 0x1) _v 96 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HDR_XR5_DIS(_v) (((_v) >> 13) & 0x1) _v 97 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_EEMAP(_v) (((_v) >> 14) & 0x3) _v 100 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_TARGET_PWRSTART(_v) ((_v) & 0xfff) _v 101 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HAS32KHZCRYSTAL(_v) (((_v) >> 14) & 0x1) /* has 32KHz crystal for sleep mode */ _v 102 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HAS32KHZCRYSTAL_OLD(_v) (((_v) >> 15) & 0x1) _v 105 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_EEP_FILE_VERSION(_v) (((_v) >> 8) & 0xff) _v 106 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_EAR_FILE_VERSION(_v) ((_v) & 0xff) _v 109 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_ART_BUILD_NUM(_v) (((_v) >> 10) & 0x3f) _v 110 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_EAR_FILE_ID(_v) ((_v) & 0xff) _v 113 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_CAL_DATA_START(_v) (((_v) >> 4) & 0xfff) _v 114 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_MASK_R0(_v) (((_v) >> 2) & 0x3) /* modes supported by radio 0 (bit 1: G, bit 2: A) */ _v 115 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_MASK_R1(_v) ((_v) & 0x3) /* modes supported by radio 1 (bit 1: G, bit 2: A) */ _v 118 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_COMP_DIS(_v) ((_v) & 0x1) /* disable compression */ _v 119 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_AES_DIS(_v) (((_v) >> 1) & 0x1) /* disable AES */ _v 120 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_FF_DIS(_v) (((_v) >> 2) & 0x1) /* disable fast frames */ _v 121 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_BURST_DIS(_v) (((_v) >> 3) & 0x1) /* disable bursting */ _v 122 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_MAX_QCU(_v) (((_v) >> 4) & 0xf) /* max number of QCUs. defaults to 10 */ _v 123 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_HEAVY_CLIP_EN(_v) (((_v) >> 8) & 0x1) /* enable heavy clipping */ _v 124 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_KEY_CACHE_SIZE(_v) (((_v) >> 12) & 0xf) /* key cache size. defaults to 128 */ _v 127 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_TX_CHAIN_DIS ((_v) & 0x7) /* MIMO chains disabled for TX bitmask */ _v 128 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_RX_CHAIN_DIS (((_v) >> 3) & 0x7) /* MIMO chains disabled for RX bitmask */ _v 129 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_FCC_MID_EN (((_v) >> 6) & 0x1) /* 5.47-5.7GHz supported */ _v 130 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_JAP_U1EVEN_EN (((_v) >> 7) & 0x1) /* Japan UNII1 band (5.15-5.25GHz) on even channels (5180, 5200, 5220, 5240) supported */ _v 131 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_JAP_U2_EN (((_v) >> 8) & 0x1) /* Japan UNII2 band (5.25-5.35GHz) supported */ _v 132 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_JAP_MID_EN (((_v) >> 9) & 0x1) /* Japan band from 5.47-5.7GHz supported */ _v 133 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_JAP_U1ODD_EN (((_v) >> 10) & 0x1) /* Japan UNII2 band (5.15-5.25GHz) on odd channels (5170, 5190, 5210, 5230) supported */ _v 134 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_JAP_11A_NEW_EN (((_v) >> 11) & 0x1) /* Japan A mode enabled (using even channels) */ _v 137 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_MODES_11A(_v) AR5K_EEPROM_OFF(_v, 0x00c5, 0x00d4) _v 138 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_MODES_11B(_v) AR5K_EEPROM_OFF(_v, 0x00d0, 0x00f2) _v 139 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_MODES_11G(_v) AR5K_EEPROM_OFF(_v, 0x00da, 0x010d) _v 140 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_CTL(_v) AR5K_EEPROM_OFF(_v, 0x00e4, 0x0128) /* Conformance test limits */ _v 141 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_GROUPS_START(_v) AR5K_EEPROM_OFF(_v, 0x0100, 0x0150) /* Start of Groups */ _v 151 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_TARGET_PWR_OFF_11A(_v) AR5K_EEPROM_OFF(_v, AR5K_EEPROM_GROUPS_START(_v) + \ _v 153 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_TARGET_PWR_OFF_11B(_v) AR5K_EEPROM_OFF(_v, AR5K_EEPROM_GROUPS_START(_v) + \ _v 155 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_TARGET_PWR_OFF_11G(_v) AR5K_EEPROM_OFF(_v, AR5K_EEPROM_GROUPS_START(_v) + \ _v 196 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_FREQ_M(_v) AR5K_EEPROM_OFF(_v, 0x7f, 0xff) _v 207 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_N_CTLS(_v) AR5K_EEPROM_OFF(_v, 16, 32) _v 244 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_READ(_o, _v) do { \ _v 245 drivers/net/wireless/ath/ath5k/eeprom.h if (!ath5k_hw_nvram_read(ah, (_o), &(_v))) \ _v 249 drivers/net/wireless/ath/ath5k/eeprom.h #define AR5K_EEPROM_READ_HDR(_o, _v) \ _v 250 drivers/net/wireless/ath/ath5k/eeprom.h AR5K_EEPROM_READ(_o, ah->ah_capabilities.cap_eeprom._v); \ _v 41 drivers/net/wireless/ath/ath9k/hif_usb.h #define IS_AR7010_DEVICE(_v) (((_v) == AR9280_USB) || ((_v) == AR9287_USB)) _v 121 drivers/net/wireless/ath/ath9k/hw.h #define SM(_v, _f) (((_v) << _f##_S) & _f) _v 122 drivers/net/wireless/ath/ath9k/hw.h #define MS(_v, _f) (((_v) & _f) >> _f##_S) _v 123 drivers/net/wireless/ath/ath9k/hw.h #define REG_RMW_FIELD(_a, _r, _f, _v) \ _v 124 drivers/net/wireless/ath/ath9k/hw.h REG_RMW(_a, _r, (((_v) << _f##_S) & _f), (_f)) _v 488 drivers/net/wireless/intel/iwlwifi/iwl-fh.h #define RFH_GEN_CFG_VAL(_n, _v) FIELD_PREP(RFH_GEN_CFG_ ## _n, _v) _v 249 drivers/net/wireless/intel/iwlwifi/iwl-prph.h #define SCD_QUEUE_CTX_REG1_VAL(_n, _v) FIELD_PREP(SCD_QUEUE_CTX_REG1_ ## _n, _v) _v 253 drivers/net/wireless/intel/iwlwifi/iwl-prph.h #define SCD_QUEUE_CTX_REG2_VAL(_n, _v) FIELD_PREP(SCD_QUEUE_CTX_REG2_ ## _n, _v) _v 584 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_LED_STATUS_OFF(_v) (((_v) << \ _v 588 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_LED_STATUS_ON(_v) (((_v) << \ _v 592 drivers/net/wireless/mediatek/mt76/mt7603/regs.h #define MT_LED_STATUS_DURATION(_v) (((_v) << \ _v 239 drivers/net/wireless/mediatek/mt76/mt76x02_regs.h #define MT_LED_STATUS_OFF(_v) (((_v) << __ffs(MT_LED_STATUS_OFF_MASK)) & \ _v 242 drivers/net/wireless/mediatek/mt76/mt76x02_regs.h #define MT_LED_STATUS_ON(_v) (((_v) << __ffs(MT_LED_STATUS_ON_MASK)) & \ _v 245 drivers/net/wireless/mediatek/mt76/mt76x02_regs.h #define MT_LED_STATUS_DURATION(_v) (((_v) << __ffs(MT_LED_STATUS_DURATION_MASK)) & \ _v 559 drivers/scsi/bfa/bfa_ioc_ct.c #define __MSIX_VT_NUMVT_(_v) ((_v) << __MSIX_VT_NUMVT__SH) _v 37 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_LCLK_RESET_TIMER(_v) ((_v) << __APP_PLL_LCLK_RESET_TIMER_SH) _v 41 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_LCLK_CNTLMT0_1(_v) ((_v) << __APP_PLL_LCLK_CNTLMT0_1_SH) _v 44 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_LCLK_JITLMT0_1(_v) ((_v) << __APP_PLL_LCLK_JITLMT0_1_SH) _v 49 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_LCLK_P0_1(_v) ((_v) << __APP_PLL_LCLK_P0_1_SH) _v 52 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_LCLK_Z0_2(_v) ((_v) << __APP_PLL_LCLK_Z0_2_SH) _v 62 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_SCLK_RESET_TIMER(_v) ((_v) << __APP_PLL_SCLK_RESET_TIMER_SH) _v 66 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_SCLK_CNTLMT0_1(_v) ((_v) << __APP_PLL_SCLK_CNTLMT0_1_SH) _v 69 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_SCLK_JITLMT0_1(_v) ((_v) << __APP_PLL_SCLK_JITLMT0_1_SH) _v 74 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_SCLK_P0_1(_v) ((_v) << __APP_PLL_SCLK_P0_1_SH) _v 77 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_SCLK_Z0_2(_v) ((_v) << __APP_PLL_SCLK_Z0_2_SH) _v 125 drivers/scsi/bfa/bfi_reg.h #define __PSS_I2C_CLK_DIV(_v) ((_v) << __PSS_I2C_CLK_DIV_SH) _v 167 drivers/scsi/bfa/bfi_reg.h #define __F3_PORT_MAP(_v) ((_v) << __F3_PORT_MAP_SH) _v 171 drivers/scsi/bfa/bfi_reg.h #define __F3_INTX_STATUS(_v) ((_v) << __F3_INTX_STATUS_SH) _v 176 drivers/scsi/bfa/bfi_reg.h #define __F2_PORT_MAP(_v) ((_v) << __F2_PORT_MAP_SH) _v 180 drivers/scsi/bfa/bfi_reg.h #define __F2_INTX_STATUS(_v) ((_v) << __F2_INTX_STATUS_SH) _v 185 drivers/scsi/bfa/bfi_reg.h #define __F1_PORT_MAP(_v) ((_v) << __F1_PORT_MAP_SH) _v 189 drivers/scsi/bfa/bfi_reg.h #define __F1_INTX_STATUS(_v) ((_v) << __F1_INTX_STATUS_SH) _v 194 drivers/scsi/bfa/bfi_reg.h #define __F0_PORT_MAP(_v) ((_v) << __F0_PORT_MAP_SH) _v 232 drivers/scsi/bfa/bfi_reg.h #define __PF_VF_BAR_SIZE_MODE_(_v) ((_v) << __PF_VF_BAR_SIZE_MODE__SH) _v 235 drivers/scsi/bfa/bfi_reg.h #define __FC_LL_PORT_MAP_(_v) ((_v) << __FC_LL_PORT_MAP__SH) _v 243 drivers/scsi/bfa/bfi_reg.h #define __PF_EXROM_OFFSET_(_v) ((_v) << __PF_EXROM_OFFSET__SH) _v 249 drivers/scsi/bfa/bfi_reg.h #define __PF_NUM_QUEUES1_(_v) ((_v) << __PF_NUM_QUEUES1__SH) _v 252 drivers/scsi/bfa/bfi_reg.h #define __PF_VF_QUE_OFFSET1_(_v) ((_v) << __PF_VF_QUE_OFFSET1__SH) _v 255 drivers/scsi/bfa/bfi_reg.h #define __PF_VF_NUM_QUEUES_(_v) ((_v) << __PF_VF_NUM_QUEUES__SH) _v 297 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_LCLK_FBCNT(_v) ((_v) << __APP_PLL_SCLK_FBCNT_SH) _v 312 drivers/scsi/bfa/bfi_reg.h #define __APP_PLL_SCLK_FBCNT(_v) ((_v) << __APP_PLL_SCLK_FBCNT_SH) _v 566 drivers/scsi/csiostor/csio_hw.h #define csio_wr_reg8(_h, _v, _r) writeb((_v), \ _v 568 drivers/scsi/csiostor/csio_hw.h #define csio_wr_reg16(_h, _v, _r) writew((_v), \ _v 570 drivers/scsi/csiostor/csio_hw.h #define csio_wr_reg32(_h, _v, _r) writel((_v), \ _v 572 drivers/scsi/csiostor/csio_hw.h #define csio_wr_reg64(_h, _v, _r) writeq((_v), \ _v 221 drivers/usb/atm/cxacru.c #define CXACRU_ATTR_CREATE(_v, _t, _name) CXACRU_DEVICE_CREATE_FILE(_name) _v 226 drivers/usb/atm/cxacru.c #define CXACRU_ATTR_REMOVE(_v, _t, _name) CXACRU_DEVICE_REMOVE_FILE(_name) _v 206 drivers/usb/dwc2/hw.h #define GNPTXSTS_NP_TXQ_SPC_AVAIL_GET(_v) (((_v) >> 16) & 0xff) _v 209 drivers/usb/dwc2/hw.h #define GNPTXSTS_NP_TXF_SPC_AVAIL_GET(_v) (((_v) >> 0) & 0xffff) _v 629 drivers/usb/dwc2/hw.h #define DXEPTSIZ_PKTCNT_GET(_v) (((_v) >> 19) & 0x3ff) _v 634 drivers/usb/dwc2/hw.h #define DXEPTSIZ_XFERSIZE_GET(_v) (((_v) >> 0) & 0x7ffff) _v 255 drivers/video/fbdev/core/fbcon.h typeof(v) _v = (v); \ _v 256 drivers/video/fbdev/core/fbcon.h (void) (&_r == &_v); \ _v 257 drivers/video/fbdev/core/fbcon.h (i == FB_ROTATE_UR || i == FB_ROTATE_UD) ? _r : _v; }) _v 88 fs/binfmt_elf.c #define ELF_PAGESTART(_v) ((_v) & ~(unsigned long)(ELF_MIN_ALIGN-1)) _v 89 fs/binfmt_elf.c #define ELF_PAGEOFFSET(_v) ((_v) & (ELF_MIN_ALIGN-1)) _v 90 fs/binfmt_elf.c #define ELF_PAGEALIGN(_v) (((_v) + ELF_MIN_ALIGN - 1) & ~(ELF_MIN_ALIGN - 1)) _v 1585 fs/ext4/ext4.h typeof(*((sbi)->field)) _v; \ _v 1587 fs/ext4/ext4.h _v = ((typeof(_v)*)rcu_dereference((sbi)->field))[index]; \ _v 1589 fs/ext4/ext4.h _v; \ _v 189 include/linux/avf/virtchnl.h #define VF_IS_V10(_v) (((_v)->major == 1) && ((_v)->minor == 0)) _v 74 include/linux/mlx5/device.h u32 _v = v; \ _v 78 include/linux/mlx5/device.h (~__mlx5_dw_mask(typ, fld))) | (((_v) & __mlx5_mask(typ, fld)) \ _v 133 include/linux/mlx5/device.h u16 _v = v; \ _v 137 include/linux/mlx5/device.h (~__mlx5_16_mask(typ, fld))) | (((_v) & __mlx5_mask16(typ, fld)) \ _v 244 include/soc/fsl/qe/qe.h #define qe_setbits32(_addr, _v) iowrite32be(ioread32be(_addr) | (_v), (_addr)) _v 245 include/soc/fsl/qe/qe.h #define qe_clrbits32(_addr, _v) iowrite32be(ioread32be(_addr) & ~(_v), (_addr)) _v 247 include/soc/fsl/qe/qe.h #define qe_setbits16(_addr, _v) iowrite16be(ioread16be(_addr) | (_v), (_addr)) _v 248 include/soc/fsl/qe/qe.h #define qe_clrbits16(_addr, _v) iowrite16be(ioread16be(_addr) & ~(_v), (_addr)) _v 250 include/soc/fsl/qe/qe.h #define qe_setbits8(_addr, _v) iowrite8(ioread8(_addr) | (_v), (_addr)) _v 251 include/soc/fsl/qe/qe.h #define qe_clrbits8(_addr, _v) iowrite8(ioread8(_addr) & ~(_v), (_addr)) _v 123 include/uapi/linux/vm_sockets.h #define VM_SOCKETS_VERSION_EPOCH(_v) (((_v) & 0xFF000000) >> 24) _v 130 include/uapi/linux/vm_sockets.h #define VM_SOCKETS_VERSION_MAJOR(_v) (((_v) & 0x00FF0000) >> 16) _v 136 include/uapi/linux/vm_sockets.h #define VM_SOCKETS_VERSION_MINOR(_v) (((_v) & 0x0000FFFF)) _v 76 include/video/samsung_fimd.h #define VIDCON1_LINECNT_GET(_v) (((_v) >> 16) & 0x7ff) _v 12 kernel/bpf/tnum.c #define TNUM(_v, _m) (struct tnum){.value = _v, .mask = _m} _v 824 net/mac80211/sta_info.h #define STA_STATS_FIELD(_n, _v) FIELD_PREP(STA_STATS_FIELD_ ## _n, _v) _v 825 net/mac80211/sta_info.h #define STA_STATS_GET(_n, _v) FIELD_GET(STA_STATS_FIELD_ ## _n, _v) _v 1383 net/vmw_vsock/af_vsock.c #define COPY_IN(_v) \ _v 1385 net/vmw_vsock/af_vsock.c if (optlen < sizeof(_v)) { \ _v 1389 net/vmw_vsock/af_vsock.c if (copy_from_user(&_v, optval, sizeof(_v)) != 0) { \ _v 1464 net/vmw_vsock/af_vsock.c #define COPY_OUT(_v) \ _v 1466 net/vmw_vsock/af_vsock.c if (len < sizeof(_v)) \ _v 1469 net/vmw_vsock/af_vsock.c len = sizeof(_v); \ _v 1470 net/vmw_vsock/af_vsock.c if (copy_to_user(optval, &_v, len) != 0) \