lib/libipsec/policy_parse.y
223
parse_sockaddr(const struct _val *buf)
lib/libipsec/policy_parse.y
79
struct _val;
lib/libipsec/policy_parse.y
81
static struct sockaddr *parse_sockaddr(const struct _val *buf);
lib/libsysdecode/sysdecode.h
63
const char *sysdecode_ioctlname(unsigned long _val);
sbin/ipf/ipscan/ipscan_y.y
131
action: result { $$.act_val = $1.act_val;
sbin/ipf/ipscan/ipscan_y.y
134
| result IPSL_ELSE result { $$.act_val = $1.act_val;
sbin/ipf/ipscan/ipscan_y.y
135
$$.act_else = $3.act_val;
sbin/ipf/ipscan/ipscan_y.y
136
if ($1.act_val == IPSL_REDIRECT) {
sbin/ipf/ipscan/ipscan_y.y
140
if ($3.act_val == IPSL_REDIRECT) {
share/examples/ppi/ppilcd.c
289
#define hd_sctrl(v) {u_int8_t _val; _val = hd_cbits | v; ioctl(hd_fd, PPISCTRL, &_val);}
share/examples/ppi/ppilcd.c
290
#define hd_sdata(v) {u_int8_t _val; _val = v; ioctl(hd_fd, PPISDATA, &_val);}
sys/arm/allwinner/aw_gpio.c
430
#define AW_GPIO_WRITE(_sc, _off, _val) \
sys/arm/allwinner/aw_gpio.c
431
bus_write_4((_sc)->sc_res[AW_GPIO_MEMRES], _off, _val)
sys/arm/allwinner/aw_nmi.c
62
#define SC_NMI_WRITE(_sc, _reg, _val) bus_write_4(_sc->res[0], _reg, _val)
sys/arm/arm/gic.c
154
#define gic_c_peek_4(_sc, _reg, _val) \
sys/arm/arm/gic.c
155
bus_peek_4((_sc)->gic_res[GIC_RES_CPU], (_reg), (_val))
sys/arm/arm/gic.c
156
#define gic_c_write_4(_sc, _reg, _val) \
sys/arm/arm/gic.c
157
bus_write_4((_sc)->gic_res[GIC_RES_CPU], (_reg), (_val))
sys/arm/arm/gic.c
161
#define gic_d_write_1(_sc, _reg, _val) \
sys/arm/arm/gic.c
162
bus_write_1((_sc)->gic_res[GIC_RES_DIST], (_reg), (_val))
sys/arm/arm/gic.c
163
#define gic_d_write_4(_sc, _reg, _val) \
sys/arm/arm/gic.c
164
bus_write_4((_sc)->gic_res[GIC_RES_DIST], (_reg), (_val))
sys/arm/broadcom/bcm2835/bcm2835_bscvar.h
59
#define BCM_BSC_WRITE(_sc, _off, _val) \
sys/arm/broadcom/bcm2835/bcm2835_bscvar.h
60
bus_space_write_4((_sc)->sc_bst, (_sc)->sc_bsh, _off, _val)
sys/arm/broadcom/bcm2835/bcm2835_clkman.c
65
#define BCM_CLKMAN_WRITE(_sc, _off, _val) \
sys/arm/broadcom/bcm2835/bcm2835_clkman.c
66
bus_space_write_4(_sc->sc_m_bst, _sc->sc_m_bsh, _off, _val)
sys/arm/broadcom/bcm2835/bcm2835_clkman.c
70
#define W_CMCLK(_sc, unit, _val) BCM_CLKMAN_WRITE(_sc, unit, 0x5a000000 | (_val))
sys/arm/broadcom/bcm2835/bcm2835_clkman.c
72
#define W_CMDIV(_sc, unit, _val) BCM_CLKMAN_WRITE(_sc, (unit) + 4, 0x5a000000 | (_val))
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
138
#define BCM_GPIO_WRITE(_sc, _off, _val) \
sys/arm/broadcom/bcm2835/bcm2835_gpio.c
139
bus_space_write_4((_sc)->sc_bst, (_sc)->sc_bsh, _off, _val)
sys/arm/broadcom/bcm2835/bcm2835_pwm.c
72
#define BCM_PWM_MEM_WRITE(_sc, _off, _val) \
sys/arm/broadcom/bcm2835/bcm2835_pwm.c
73
bus_space_write_4(_sc->sc_m_bst, _sc->sc_m_bsh, _off, _val)
sys/arm/broadcom/bcm2835/bcm2835_pwm.c
76
#define BCM_PWM_CLK_WRITE(_sc, _off, _val) \
sys/arm/broadcom/bcm2835/bcm2835_pwm.c
77
bus_space_write_4(_sc->sc_c_bst, _sc->sc_c_bsh, _off, _val)
sys/arm/broadcom/bcm2835/bcm2835_pwm.c
81
#define W_CTL(_sc, _val) BCM_PWM_MEM_WRITE(_sc, 0x00, _val)
sys/arm/broadcom/bcm2835/bcm2835_pwm.c
83
#define W_STA(_sc, _val) BCM_PWM_MEM_WRITE(_sc, 0x04, _val)
sys/arm/broadcom/bcm2835/bcm2835_pwm.c
85
#define W_RNG(_sc, _val) BCM_PWM_MEM_WRITE(_sc, 0x10, _val)
sys/arm/broadcom/bcm2835/bcm2835_pwm.c
87
#define W_DAT(_sc, _val) BCM_PWM_MEM_WRITE(_sc, 0x14, _val)
sys/arm/broadcom/bcm2835/bcm2835_pwm.c
89
#define W_RNG2(_sc, _val) BCM_PWM_MEM_WRITE(_sc, 0x20, _val)
sys/arm/broadcom/bcm2835/bcm2835_pwm.c
91
#define W_DAT2(_sc, _val) BCM_PWM_MEM_WRITE(_sc, 0x24, _val)
sys/arm/broadcom/bcm2835/bcm2835_spivar.h
52
#define BCM_SPI_WRITE(_sc, _off, _val) \
sys/arm/broadcom/bcm2835/bcm2835_spivar.h
53
bus_space_write_4(_sc->sc_bst, _sc->sc_bsh, _off, _val)
sys/arm/freescale/imx/imx6_audmux.c
54
#define WRITE4(_sc, _reg, _val) \
sys/arm/freescale/imx/imx6_audmux.c
55
bus_space_write_4(_sc->bst, _sc->bsh, _reg, _val)
sys/arm/freescale/imx/imx6_sdma.c
64
#define WRITE4(_sc, _reg, _val) \
sys/arm/freescale/imx/imx6_sdma.c
65
bus_space_write_4(_sc->bst, _sc->bsh, _reg, _val)
sys/arm/freescale/imx/imx6_ssi.c
61
#define WRITE4(_sc, _reg, _val) \
sys/arm/freescale/imx/imx6_ssi.c
62
bus_space_write_4(_sc->bst, _sc->bsh, _reg, _val)
sys/arm/freescale/vybrid/vf_common.h
31
#define WRITE4(_sc, _reg, _val) \
sys/arm/freescale/vybrid/vf_common.h
32
bus_space_write_4(_sc->bst, _sc->bsh, _reg, _val)
sys/arm/freescale/vybrid/vf_common.h
35
#define WRITE2(_sc, _reg, _val) \
sys/arm/freescale/vybrid/vf_common.h
36
bus_space_write_2(_sc->bst, _sc->bsh, _reg, _val)
sys/arm/freescale/vybrid/vf_common.h
39
#define WRITE1(_sc, _reg, _val) \
sys/arm/freescale/vybrid/vf_common.h
40
bus_space_write_1(_sc->bst, _sc->bsh, _reg, _val)
sys/arm/freescale/vybrid/vf_dmamux.h
47
#define MUX_WRITE1(_sc, _mux, _reg, _val) \
sys/arm/freescale/vybrid/vf_dmamux.h
48
bus_space_write_1(_sc->bst[_mux], _sc->bsh[_mux], _reg, _val)
sys/arm/freescale/vybrid/vf_edma.h
113
#define TCD_WRITE4(_sc, _reg, _val) \
sys/arm/freescale/vybrid/vf_edma.h
114
bus_space_write_4(_sc->bst_tcd, _sc->bsh_tcd, _reg, _val)
sys/arm/freescale/vybrid/vf_edma.h
117
#define TCD_WRITE2(_sc, _reg, _val) \
sys/arm/freescale/vybrid/vf_edma.h
118
bus_space_write_2(_sc->bst_tcd, _sc->bsh_tcd, _reg, _val)
sys/arm/freescale/vybrid/vf_edma.h
121
#define TCD_WRITE1(_sc, _reg, _val) \
sys/arm/freescale/vybrid/vf_edma.h
122
bus_space_write_1(_sc->bst_tcd, _sc->bsh_tcd, _reg, _val)
sys/arm/freescale/vybrid/vf_ehci.c
112
#define PHY_WRITE4(_sc, _reg, _val) \
sys/arm/freescale/vybrid/vf_ehci.c
113
bus_space_write_4(_sc->bst_phy, _sc->bsh_phy, _reg, _val)
sys/arm/freescale/vybrid/vf_ehci.c
117
#define USBC_WRITE4(_sc, _reg, _val) \
sys/arm/freescale/vybrid/vf_ehci.c
118
bus_space_write_4(_sc->bst_usbc, _sc->bsh_usbc, _reg, _val)
sys/arm/mv/a37x0_gpio.c
64
#define A37X0_GPIO_WRITE(_sc, _off, _val) \
sys/arm/mv/a37x0_gpio.c
65
SYSCON_WRITE_4((_sc)->syscon, (_off), (_val))
sys/arm/mv/a37x0_iic.c
66
#define A37X0_IIC_WRITE(_sc, _off, _val) \
sys/arm/mv/a37x0_iic.c
67
bus_space_write_4((_sc)->sc_bst, (_sc)->sc_bsh, _off, _val)
sys/arm/mv/a37x0_spi.c
61
#define A37X0_SPI_WRITE(_sc, _off, _val) \
sys/arm/mv/a37x0_spi.c
62
bus_space_write_4((_sc)->sc_bst, (_sc)->sc_bsh, (_off), (_val))
sys/arm/mv/mv_spi.c
66
#define MV_SPI_WRITE(_sc, _off, _val) \
sys/arm/mv/mv_spi.c
67
bus_space_write_4((_sc)->sc_bst, (_sc)->sc_bsh, (_off), (_val))
sys/arm/ti/cpsw/if_cpsw.c
368
#define cpsw_write_4(_sc, _reg, _val) \
sys/arm/ti/cpsw/if_cpsw.c
369
bus_write_4((_sc)->mem_res, (_reg), (_val))
sys/arm/ti/ti_spivar.h
59
#define TI_SPI_WRITE(_sc, _off, _val) \
sys/arm/ti/ti_spivar.h
60
bus_space_write_4((_sc)->sc_bst, (_sc)->sc_bsh, (_off), (_val))
sys/arm64/arm64/identcpu.c
406
#define MRS_HWCAP(_hwcap_id, _val, _min) \
sys/arm64/arm64/identcpu.c
409
.hwcap_val = (_val), \
sys/arm64/include/_armreg.h
48
({ uint64_t _val; \
sys/arm64/include/_armreg.h
49
__asm __volatile("mrs %0, " __STRING(reg) : "=&r" (_val)); \
sys/arm64/include/_armreg.h
50
_val; \
sys/arm64/include/_armreg.h
52
#define WRITE_SPECIALREG(reg, _val) \
sys/arm64/include/_armreg.h
53
__asm __volatile("msr " __STRING(reg) ", %0" : : "r"((uint64_t)_val))
sys/arm64/rockchip/rk_gpio.c
138
#define RK_GPIO_WRITE(_sc, _off, _val) \
sys/arm64/rockchip/rk_gpio.c
139
bus_space_write_4(_sc->sc_bst, _sc->sc_bsh, _off, _val)
sys/compat/linux/linux.h
274
#define bsd_to_linux_bits(_val, _bmap, _noval) \
sys/compat/linux/linux.h
275
bsd_to_linux_bits_((_val), (_bmap), nitems((_bmap)), (_noval))
sys/compat/linux/linux.h
276
#define linux_to_bsd_bits(_val, _bmap, _noval) \
sys/compat/linux/linux.h
277
linux_to_bsd_bits_((_val), (_bmap), nitems((_bmap)), (_noval))
sys/compat/linuxkpi/common/include/linux/iosys-map.h
113
#define _iosys_map_writeq(_val, _addr) writeq(_val, _addr)
sys/compat/linuxkpi/common/include/linux/iosys-map.h
120
#define _iosys_map_writeq(_val, _addr) \
sys/compat/linuxkpi/common/include/linux/iosys-map.h
121
memcpy_toio(_addr, &(_val), sizeof(uint64_t))
sys/compat/linuxkpi/common/include/linux/iosys-map.h
137
#define iosys_map_wr(_ism, _off, _type, _val) ({ \
sys/compat/linuxkpi/common/include/linux/iosys-map.h
138
_type val = (_val); \
sys/compat/linuxkpi/common/include/linux/iosys-map.h
155
#define iosys_map_wr_field(_ism, _off, _type, _field, _val) ({ \
sys/compat/linuxkpi/common/include/linux/iosys-map.h
158
__typeof(s->_field), _val); \
sys/dev/ath/ah_osdep.h
137
#define OS_REG_WRITE(_ah, _reg, _val) ath_hal_reg_write(_ah, _reg, _val)
sys/dev/ath/ath_hal/ah_internal.h
456
#define ath_hal_gpioSet(_ah, _gpio, _val) \
sys/dev/ath/ath_hal/ah_internal.h
457
(_ah)->ah_gpioSet(_ah, _gpio, _val)
sys/dev/ath/ath_hal/ah_internal.h
484
#define ath_hal_eepromGet(_ah, _param, _val) \
sys/dev/ath/ath_hal/ah_internal.h
485
AH_PRIVATE(_ah)->ah_eepromGet(_ah, _param, _val)
sys/dev/ath/ath_hal/ah_internal.h
486
#define ath_hal_eepromSet(_ah, _param, _val) \
sys/dev/ath/ath_hal/ah_internal.h
487
AH_PRIVATE(_ah)->ah_eepromSet(_ah, _param, _val)
sys/dev/ath/ath_hal/ar5210/ar5210.h
30
#define AR5210_TXD_CTRL_A_HDR_LEN(_val) (((_val) ) & 0x0003f)
sys/dev/ath/ath_hal/ar5210/ar5210.h
31
#define AR5210_TXD_CTRL_A_TX_RATE(_val) (((_val) << 6) & 0x003c0)
sys/dev/ath/ath_hal/ar5210/ar5210.h
33
#define AR5210_TXD_CTRL_A_CLEAR_DEST_MASK(_val) (((_val) << 12) & 0x01000)
sys/dev/ath/ath_hal/ar5210/ar5210.h
34
#define AR5210_TXD_CTRL_A_ANT_MODE(_val) (((_val) << 13) & 0x02000)
sys/dev/ath/ath_hal/ar5210/ar5210.h
35
#define AR5210_TXD_CTRL_A_PKT_TYPE(_val) (((_val) << 14) & 0x1c000)
sys/dev/ath/ath_hal/ar5210/ar5210.h
38
#define AR5210_TXD_CTRL_B_KEY_ID(_val) (((_val) ) & 0x0003f)
sys/dev/ath/ath_hal/ar5210/ar5210.h
39
#define AR5210_TXD_CTRL_B_RTS_DURATION(_val) (((_val) << 6) & 0x7ffc0)
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1615
#define AR_PHY_BIS(_ah, _reg, _mask, _val) \
sys/dev/ath/ath_hal/ar5212/ar5212_reset.c
1617
(OS_REG_READ(_ah, AR_PHY(_reg)) & _mask) | (_val));
sys/dev/ath/ath_hal/ar5312/ar5312reg.h
30
#define REG_WRITE(_reg,_val) *((volatile uint32_t *)(_reg)) = (_val);
sys/dev/ath/if_athvar.h
1114
#define ath_hal_settsf64(_ah, _val) \
sys/dev/ath/if_athvar.h
1115
((*(_ah)->ah_setTsf64)((_ah), (_val)))
sys/dev/ath/if_athvar.h
1496
#define ath_hal_setnav(_ah, _val) \
sys/dev/ath/if_athvar.h
1497
((*(_ah)->ah_setNav)((_ah), (_val)))
sys/dev/ath/if_athvar.h
1522
#define ath_hal_btcoex_set_parameter(_ah, _attrib, _val) \
sys/dev/ath/if_athvar.h
1523
((*(_ah)->ah_btCoexSetParameter)((_ah), (_attrib), (_val)))
sys/dev/axgbe/xgbe-common.h
1453
#define SET_BITS(_var, _index, _width, _val) \
sys/dev/axgbe/xgbe-common.h
1456
(_var) |= (((_val) & ((0x1 << (_width)) - 1)) << (_index)); \
sys/dev/axgbe/xgbe-common.h
1462
#define SET_BITS_LE(_var, _index, _width, _val) \
sys/dev/axgbe/xgbe-common.h
1465
(_var) |= cpu_to_le32((((_val) & \
sys/dev/axgbe/xgbe-common.h
1482
#define XGMAC_SET_BITS(_var, _prefix, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1485
_prefix##_##_field##_WIDTH, (_val))
sys/dev/axgbe/xgbe-common.h
1492
#define XGMAC_SET_BITS_LE(_var, _prefix, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1495
_prefix##_##_field##_WIDTH, (_val))
sys/dev/axgbe/xgbe-common.h
1512
#define XGMAC_IOWRITE(_pdata, _reg, _val) \
sys/dev/axgbe/xgbe-common.h
1513
bus_write_4((_pdata)->xgmac_res, _reg, (_val))
sys/dev/axgbe/xgbe-common.h
1515
#define XGMAC_IOWRITE_BITS(_pdata, _reg, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1520
_reg##_##_field##_WIDTH, (_val)); \
sys/dev/axgbe/xgbe-common.h
1537
#define XGMAC_MTL_IOWRITE(_pdata, _n, _reg, _val) \
sys/dev/axgbe/xgbe-common.h
1539
MTL_Q_BASE + ((_n) * MTL_Q_INC) + _reg, (_val))
sys/dev/axgbe/xgbe-common.h
1541
#define XGMAC_MTL_IOWRITE_BITS(_pdata, _n, _reg, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1546
_reg##_##_field##_WIDTH, (_val)); \
sys/dev/axgbe/xgbe-common.h
1562
#define XGMAC_DMA_IOWRITE(_channel, _reg, _val) \
sys/dev/axgbe/xgbe-common.h
1564
_reg, (_val))
sys/dev/axgbe/xgbe-common.h
1566
#define XGMAC_DMA_IOWRITE_BITS(_channel, _reg, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1571
_reg##_##_field##_WIDTH, (_val)); \
sys/dev/axgbe/xgbe-common.h
1583
#define XPCS_SET_BITS(_var, _prefix, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1586
_prefix##_##_field##_WIDTH, (_val))
sys/dev/axgbe/xgbe-common.h
1588
#define XPCS32_IOWRITE(_pdata, _off, _val) \
sys/dev/axgbe/xgbe-common.h
1589
bus_write_4((_pdata)->xpcs_res, (_off), _val)
sys/dev/axgbe/xgbe-common.h
1594
#define XPCS16_IOWRITE(_pdata, _off, _val) \
sys/dev/axgbe/xgbe-common.h
1595
bus_write_2((_pdata)->xpcs_res, (_off), _val)
sys/dev/axgbe/xgbe-common.h
1608
#define XSIR_SET_BITS(_var, _prefix, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1611
_prefix##_##_field##_WIDTH, (_val))
sys/dev/axgbe/xgbe-common.h
1621
#define XSIR0_IOWRITE(_pdata, _reg, _val) \
sys/dev/axgbe/xgbe-common.h
1622
bus_write_2((_pdata)->sir0_res, _reg, (_val))
sys/dev/axgbe/xgbe-common.h
1624
#define XSIR0_IOWRITE_BITS(_pdata, _reg, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1629
_reg##_##_field##_WIDTH, (_val)); \
sys/dev/axgbe/xgbe-common.h
1641
#define XSIR1_IOWRITE(_pdata, _reg, _val) \
sys/dev/axgbe/xgbe-common.h
1642
bus_write_2((_pdata)->sir1_res, _reg, (_val))
sys/dev/axgbe/xgbe-common.h
1644
#define XSIR1_IOWRITE_BITS(_pdata, _reg, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1649
_reg##_##_field##_WIDTH, (_val)); \
sys/dev/axgbe/xgbe-common.h
1664
#define XRXTX_IOWRITE(_pdata, _reg, _val) \
sys/dev/axgbe/xgbe-common.h
1665
bus_write_2((_pdata)->rxtx_res, _reg, (_val))
sys/dev/axgbe/xgbe-common.h
1667
#define XRXTX_IOWRITE_BITS(_pdata, _reg, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1672
_reg##_##_field##_WIDTH, (_val)); \
sys/dev/axgbe/xgbe-common.h
1684
#define XP_SET_BITS(_var, _prefix, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1687
_prefix##_##_field##_WIDTH, (_val))
sys/dev/axgbe/xgbe-common.h
1697
#define XP_IOWRITE(_pdata, _reg, _val) \
sys/dev/axgbe/xgbe-common.h
1699
(_val))
sys/dev/axgbe/xgbe-common.h
1701
#define XP_IOWRITE_BITS(_pdata, _reg, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1706
_reg##_##_field##_WIDTH, (_val)); \
sys/dev/axgbe/xgbe-common.h
1718
#define XI2C_SET_BITS(_var, _prefix, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1721
_prefix##_##_field##_WIDTH, (_val))
sys/dev/axgbe/xgbe-common.h
1731
#define XI2C_IOWRITE(_pdata, _reg, _val) \
sys/dev/axgbe/xgbe-common.h
1733
(_val))
sys/dev/axgbe/xgbe-common.h
1735
#define XI2C_IOWRITE_BITS(_pdata, _reg, _field, _val) \
sys/dev/axgbe/xgbe-common.h
1740
_reg##_##_field##_WIDTH, (_val)); \
sys/dev/axgbe/xgbe-common.h
1756
#define XMDIO_WRITE(_pdata, _mmd, _reg, _val) \
sys/dev/axgbe/xgbe-common.h
1758
MII_ADDR_C45 | (_mmd << 16) | ((_reg) & 0xffff), (_val)))
sys/dev/axgbe/xgbe-common.h
1760
#define XMDIO_WRITE_BITS(_pdata, _mmd, _reg, _mask, _val) \
sys/dev/axgbe/xgbe-common.h
1764
mmd_val |= (_val); \
sys/dev/bhnd/bhnd_private.h
94
#define BHND_CLKCTL_WRITE_4(_clkctl, _val) \
sys/dev/bhnd/bhnd_private.h
95
bhnd_bus_write_4((_clkctl)->cc_res, (_clkctl)->cc_res_offset, (_val))
sys/dev/bhnd/bhnd_private.h
97
#define BHND_CLKCTL_SET_4(_clkctl, _val, _mask) \
sys/dev/bhnd/bhnd_private.h
99
((_val) & (_mask)) | (BHND_CLKCTL_READ_4(_clkctl) & ~(_mask)))
sys/dev/bhnd/cores/chipc/chipc_gpiovar.h
107
#define CC_GPIO_UPDATE(_upd, _pin, _reg, _val) do { \
sys/dev/bhnd/cores/chipc/chipc_gpiovar.h
109
if (_val) \
sys/dev/bhnd/cores/pci/bhnd_pci.c
103
#define BHND_PCI_WRITE_4(_sc, _reg, _val) \
sys/dev/bhnd/cores/pci/bhnd_pci.c
104
bhnd_bus_write_4((_sc)->mem_res, (_reg), (_val))
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
182
#define BHND_PCI_WRITE_2(_sc, _reg, _val) \
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
183
bhnd_bus_write_2(BHND_PCI_SOFTC(_sc)->mem_res, (_reg), (_val))
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
185
#define BHND_PCI_WRITE_4(_sc, _reg, _val) \
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
186
bhnd_bus_write_4(BHND_PCI_SOFTC(_sc)->mem_res, (_reg), (_val))
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
191
#define BHND_PCI_PROTO_WRITE_4(_sc, _reg, _val) \
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
192
bhnd_pcie_write_proto_reg(BHND_PCI_SOFTC(_sc), (_reg), (_val))
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
197
#define BHND_PCI_MDIO_WRITE(_sc, _phy, _reg, _val) \
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
198
bhnd_pcie_mdio_write(BHND_PCI_SOFTC(_sc), (_phy), (_reg), (_val))
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
203
#define BHND_PCI_MDIO_WRITE_EXT(_sc, _phy, _devaddr, _reg, _val) \
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
205
(_devaddr), (_reg), (_val))
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
207
#define BPCI_REG_SET(_regv, _attr, _val) \
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
208
BHND_PCI_REG_SET((_regv), BHND_ ## _attr, (_val))
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
213
#define BPCI_CMN_REG_SET(_regv, _attr, _val) \
sys/dev/bhnd/cores/pci/bhnd_pci_hostb.c
215
BHND_ ## _attr, (_val))
sys/dev/bhnd/cores/pci/bhnd_pcivar.h
136
#define BHND_PCI_REG_SET(_regv, _attr, _val) \
sys/dev/bhnd/cores/pci/bhnd_pcivar.h
137
_BHND_PCI_REG_SET(_regv, _attr ## _MASK, _attr ## _SHIFT, _val)
sys/dev/bhnd/cores/pci/bhnd_pcivar.h
163
#define BHND_PCI_CMN_REG_SET(_regf, _regv, _attr, _val) \
sys/dev/bhnd/cores/pci/bhnd_pcivar.h
167
_val)
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
35
#define BHND_PMU_WRITE_4(_sc, _reg, _val) \
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
36
(_sc)->io->wr4((_reg), (_val), (_sc)->io_ctx)
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
38
#define BHND_PMU_AND_4(_sc, _reg, _val) \
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
40
BHND_PMU_READ_4((_sc), (_reg)) & (_val))
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
41
#define BHND_PMU_OR_4(_sc, _reg, _val) \
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
43
BHND_PMU_READ_4((_sc), (_reg)) | (_val))
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
49
#define BHND_PMU_IND_WRITE(_sc, _src, _reg, _val, _mask) \
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
52
BHND_PMU_ ## _src ## _DATA, (_reg), (_val), (_mask))
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
57
#define BHND_PMU_CCTRL_WRITE(_sc, _reg, _val, _mask) \
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
58
BHND_PMU_IND_WRITE((_sc), CHIP_CONTROL, (_reg), (_val), (_mask))
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
63
#define BHND_PMU_REGCTRL_WRITE(_sc, _reg, _val, _mask) \
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
64
BHND_PMU_IND_WRITE((_sc), REG_CONTROL, (_reg), (_val), (_mask))
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
69
#define BHND_PMU_PLL_WRITE(_sc, _reg, _val, _mask) \
sys/dev/bhnd/cores/pmu/bhnd_pmu_private.h
70
BHND_PMU_IND_WRITE((_sc), PLL_CONTROL, (_reg), (_val), (_mask))
sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c
93
#define PMU_WAIT_CLKST(_sc, _val, _mask) \
sys/dev/bhnd/cores/pmu/bhnd_pmu_subr.c
94
bhnd_core_clkctl_wait((_sc)->clkctl, (_val), (_mask))
sys/dev/bhnd/nvram/bhnd_nvram_value.c
118
#define BHND_NVRAM_VAL_NEED_COPY(_val) \
sys/dev/bhnd/nvram/bhnd_nvram_value.c
119
((_val)->val_storage == BHND_NVRAM_VAL_STORAGE_AUTO || \
sys/dev/bhnd/nvram/bhnd_nvram_value.c
120
(_val)->data_storage == BHND_NVRAM_VAL_DATA_EXT_WEAK)
sys/dev/bxe/bxe_elink.c
934
#define CL22_WR_OVER_CL45(_sc, _phy, _bank, _addr, _val) \
sys/dev/bxe/bxe_elink.c
938
_val)
sys/dev/bxe/bxe_elink.c
940
#define CL22_RD_OVER_CL45(_sc, _phy, _bank, _addr, _val) \
sys/dev/bxe/bxe_elink.c
944
_val)
sys/dev/bxe/ecore_reg.h
3632
#define CDU_RSRVD_INVALIDATE_CONTEXT_VALUE(_val) ((_val) & ~0x80)
sys/dev/clk/starfive/jh7110_clk.c
47
#define WRITE4(_sc, _off, _val) \
sys/dev/clk/starfive/jh7110_clk.c
48
bus_write_4(_sc->mem_res, _off, _val)
sys/dev/dwc/if_dwcvar.h
120
#define WRITE4(_sc, _reg, _val) \
sys/dev/dwc/if_dwcvar.h
121
bus_write_4((_sc)->res[0], _reg, _val)
sys/dev/etherswitch/mtkswitch/mtkswitchvar.h
130
#define MTKSWITCH_WRITE(_sc, _reg, _val) \
sys/dev/etherswitch/mtkswitch/mtkswitchvar.h
131
bus_write_4((_sc)->sc_res, (_reg), (_val))
sys/dev/etherswitch/rtl8366/rtl8366rbvar.h
135
#define RTL8366_PVCR_GET(_port, _val) \
sys/dev/etherswitch/rtl8366/rtl8366rbvar.h
136
(((_val) >> ((_port % RTL8366_PVCR_PORT_PERREG) * RTL8366_PVCR_PORT_SHIFT)) & RTL8366_PVCR_PORT_MASK)
sys/dev/flash/cqspi.c
83
#define WRITE4(_sc, _reg, _val) bus_write_4((_sc)->res[0], _reg, _val)
sys/dev/flash/cqspi.c
84
#define WRITE2(_sc, _reg, _val) bus_write_2((_sc)->res[0], _reg, _val)
sys/dev/flash/cqspi.c
85
#define WRITE1(_sc, _reg, _val) bus_write_1((_sc)->res[0], _reg, _val)
sys/dev/flash/cqspi.c
88
#define WRITE_DATA_4(_sc, _reg, _val) bus_write_4((_sc)->res[1], _reg, _val)
sys/dev/flash/cqspi.c
89
#define WRITE_DATA_1(_sc, _reg, _val) bus_write_1((_sc)->res[1], _reg, _val)
sys/dev/gpio/dwgpio/dwgpio.c
65
#define WRITE4(_sc, _reg, _val) DWGPIO_WRITE((_sc)->parent, _reg, _val)
sys/dev/iicbus/controller/vybrid/vf_i2c.c
88
#define WRITE1(_sc, _reg, _val) bus_space_write_1(_sc->bst,\
sys/dev/iicbus/controller/vybrid/vf_i2c.c
89
_sc->bsh, _reg, _val)
sys/dev/iicbus/controller/vybrid/vf_i2c.c
96
#define WRITE1(_sc, _reg, _val) ({\
sys/dev/iicbus/controller/vybrid/vf_i2c.c
97
vf_i2c_dbg(_sc, "WRITE1 REG 0x%02X VAL 0x%02X\n",_reg,_val);\
sys/dev/iicbus/controller/vybrid/vf_i2c.c
98
bus_space_write_1(_sc->bst, _sc->bsh, _reg, _val);\
sys/dev/intel/spi.c
72
#define INTELSPI_WRITE(_sc, _off, _val) \
sys/dev/intel/spi.c
73
bus_write_4((_sc)->sc_mem_res, (_off), (_val))
sys/dev/iwm/if_iwmreg.h
297
#define IWM_CSR_HW_REV_DASH(_val) (((_val) & 0x0000003) >> 0)
sys/dev/iwm/if_iwmreg.h
298
#define IWM_CSR_HW_REV_STEP(_val) (((_val) & 0x000000C) >> 2)
sys/dev/iwx/if_iwxreg.h
736
#define IWX_CSR_HW_REV_DASH(_val) (((_val) & 0x0000003) >> 0)
sys/dev/iwx/if_iwxreg.h
737
#define IWX_CSR_HW_REV_STEP(_val) (((_val) & 0x000000C) >> 2)
sys/dev/iwx/if_iwxreg.h
738
#define IWX_CSR_HW_REV_TYPE(_val) (((_val) & 0x000FFF0) >> 4)
sys/dev/iwx/if_iwxreg.h
748
#define IWX_CSR_HW_RFID_FLAVOR(_val) (((_val) & 0x000000F) >> 0)
sys/dev/iwx/if_iwxreg.h
749
#define IWX_CSR_HW_RFID_DASH(_val) (((_val) & 0x00000F0) >> 4)
sys/dev/iwx/if_iwxreg.h
750
#define IWX_CSR_HW_RFID_STEP(_val) (((_val) & 0x0000F00) >> 8)
sys/dev/iwx/if_iwxreg.h
751
#define IWX_CSR_HW_RFID_TYPE(_val) (((_val) & 0x0FFF000) >> 12)
sys/dev/iwx/if_iwxreg.h
752
#define IWX_CSR_HW_RFID_IS_CDB(_val) (((_val) & 0x10000000) >> 28)
sys/dev/iwx/if_iwxreg.h
753
#define IWX_CSR_HW_RFID_IS_JACKET(_val) (((_val) & 0x20000000) >> 29)
sys/dev/mmc/host/dwmmc.c
90
#define WRITE4(_sc, _reg, _val) \
sys/dev/mmc/host/dwmmc.c
91
bus_write_4((_sc)->res[0], _reg, _val)
sys/dev/mmc/host/dwmmc_samsung.c
45
#define WRITE4(_sc, _reg, _val) \
sys/dev/mmc/host/dwmmc_samsung.c
46
bus_write_4((_sc)->res[0], _reg, _val)
sys/dev/qat/qat_common/adf_pfvf_vf_proto.c
15
#define FIELD_PREP(_mask, _val) \
sys/dev/qat/qat_common/adf_pfvf_vf_proto.c
16
({ ((typeof(_mask))(_val) << __bf_shf(_mask)) & (_mask); })
sys/dev/qlnx/qlnxe/ecore_mcp.c
56
#define DRV_INNER_WR(_p_hwfn, _p_ptt, _ptr, _offset, _val) \
sys/dev/qlnx/qlnxe/ecore_mcp.c
58
_val)
sys/dev/qlnx/qlnxe/ecore_mcp.c
63
#define DRV_MB_WR(_p_hwfn, _p_ptt, _field, _val) \
sys/dev/qlnx/qlnxe/ecore_mcp.c
65
OFFSETOF(struct public_drv_mb, _field), _val)
sys/dev/rccgpio/rccgpio.c
81
#define RCC_WRITE(_sc, _off, _val) \
sys/dev/rccgpio/rccgpio.c
82
bus_space_write_4((_sc)->sc_bst, (_sc)->sc_bsh, _off, _val)
sys/dev/rtwn/if_rtwnvar.h
442
#define rtwn_write_1(_sc, _addr, _val) \
sys/dev/rtwn/if_rtwnvar.h
443
(((_sc)->sc_write_1)((_sc), (_addr), (_val)))
sys/dev/rtwn/if_rtwnvar.h
444
#define rtwn_write_2(_sc, _addr, _val) \
sys/dev/rtwn/if_rtwnvar.h
445
(((_sc)->sc_write_2)((_sc), (_addr), (_val)))
sys/dev/rtwn/if_rtwnvar.h
446
#define rtwn_write_4(_sc, _addr, _val) \
sys/dev/rtwn/if_rtwnvar.h
447
(((_sc)->sc_write_4)((_sc), (_addr), (_val)))
sys/dev/rtwn/if_rtwnvar.h
487
#define rtwn_rf_write(_sc, _chain, _addr, _val) \
sys/dev/rtwn/if_rtwnvar.h
488
(((_sc)->sc_rf_write)((_sc), (_chain), (_addr), (_val)))
sys/dev/sfxge/common/efsys.h
1090
#define EFSYS_STAT_SET(_knp, _val) \
sys/dev/sfxge/common/efsys.h
1092
*(_knp) = (_val); \
sys/dev/sfxge/common/efx_types.h
364
#define EFX_SSUB(_val, _sub) \
sys/dev/sfxge/common/efx_types.h
365
((_val) > (_sub) ? ((_val) - (_sub)) : 0)
sys/dev/smartpqi/smartpqi_defines.h
1168
#define PCI_MEM_PUT32( _softs, _absaddr, _offset, _val ) \
sys/dev/smartpqi/smartpqi_defines.h
1170
_softs->pci_mem_handle.pqi_bhandle, _offset, _val)
sys/dev/smartpqi/smartpqi_defines.h
1173
#define PCI_MEM_PUT64( _softs, _absaddr, _offset, _val ) \
sys/dev/smartpqi/smartpqi_defines.h
1175
_softs->pci_mem_handle.pqi_bhandle, _offset, _val); \
sys/dev/smartpqi/smartpqi_defines.h
1177
_softs->pci_mem_handle.pqi_bhandle, _offset + 4, _val >> 32);
sys/dev/smartpqi/smartpqi_defines.h
1179
#define PCI_MEM_PUT64( _softs, _absaddr, _offset, _val ) \
sys/dev/smartpqi/smartpqi_defines.h
1181
_softs->pci_mem_handle.pqi_bhandle, _offset, _val)
sys/dev/sound/pci/atiixp.c
139
#define atiixp_wr(_sc, _reg, _val) \
sys/dev/sound/pci/atiixp.c
140
bus_space_write_4((_sc)->st, (_sc)->sh, _reg, _val)
sys/dev/ufshci/ufshci_reg.h
464
uint32_t _val = ufshci_mmio_read_4(ctrlr, member); \
sys/dev/ufshci/ufshci_reg.h
466
ufshci_mmio_offsetof(member), _val); \
sys/dev/usb/controller/dwc3/dwc3.c
94
#define DWC3_WRITE(_sc, _off, _val) \
sys/dev/usb/controller/dwc3/dwc3.c
95
bus_space_write_4(_sc->bst, _sc->bsh, _off, _val)
sys/dev/virtio/block/virtio_blk.c
218
#define vtblk_htog16(_sc, _val) virtio_htog16(vtblk_modern(_sc), _val)
sys/dev/virtio/block/virtio_blk.c
219
#define vtblk_htog32(_sc, _val) virtio_htog32(vtblk_modern(_sc), _val)
sys/dev/virtio/block/virtio_blk.c
220
#define vtblk_htog64(_sc, _val) virtio_htog64(vtblk_modern(_sc), _val)
sys/dev/virtio/block/virtio_blk.c
221
#define vtblk_gtoh16(_sc, _val) virtio_gtoh16(vtblk_modern(_sc), _val)
sys/dev/virtio/block/virtio_blk.c
222
#define vtblk_gtoh32(_sc, _val) virtio_gtoh32(vtblk_modern(_sc), _val)
sys/dev/virtio/block/virtio_blk.c
223
#define vtblk_gtoh64(_sc, _val) virtio_gtoh64(vtblk_modern(_sc), _val)
sys/dev/virtio/console/virtio_console.c
227
#define vtcon_htog16(_sc, _val) virtio_htog16(vtcon_modern(_sc), _val)
sys/dev/virtio/console/virtio_console.c
228
#define vtcon_htog32(_sc, _val) virtio_htog32(vtcon_modern(_sc), _val)
sys/dev/virtio/console/virtio_console.c
229
#define vtcon_htog64(_sc, _val) virtio_htog64(vtcon_modern(_sc), _val)
sys/dev/virtio/console/virtio_console.c
230
#define vtcon_gtoh16(_sc, _val) virtio_gtoh16(vtcon_modern(_sc), _val)
sys/dev/virtio/console/virtio_console.c
231
#define vtcon_gtoh32(_sc, _val) virtio_gtoh32(vtcon_modern(_sc), _val)
sys/dev/virtio/console/virtio_console.c
232
#define vtcon_gtoh64(_sc, _val) virtio_gtoh64(vtcon_modern(_sc), _val)
sys/dev/virtio/network/if_vtnet.c
261
#define vtnet_htog16(_sc, _val) virtio_htog16(vtnet_modern(_sc), _val)
sys/dev/virtio/network/if_vtnet.c
262
#define vtnet_htog32(_sc, _val) virtio_htog32(vtnet_modern(_sc), _val)
sys/dev/virtio/network/if_vtnet.c
263
#define vtnet_htog64(_sc, _val) virtio_htog64(vtnet_modern(_sc), _val)
sys/dev/virtio/network/if_vtnet.c
264
#define vtnet_gtoh16(_sc, _val) virtio_gtoh16(vtnet_modern(_sc), _val)
sys/dev/virtio/network/if_vtnet.c
265
#define vtnet_gtoh32(_sc, _val) virtio_gtoh32(vtnet_modern(_sc), _val)
sys/dev/virtio/network/if_vtnet.c
266
#define vtnet_gtoh64(_sc, _val) virtio_gtoh64(vtnet_modern(_sc), _val)
sys/dev/virtio/scsi/virtio_scsi.c
190
#define vtscsi_htog16(_sc, _val) virtio_htog16(vtscsi_modern(_sc), _val)
sys/dev/virtio/scsi/virtio_scsi.c
191
#define vtscsi_htog32(_sc, _val) virtio_htog32(vtscsi_modern(_sc), _val)
sys/dev/virtio/scsi/virtio_scsi.c
192
#define vtscsi_htog64(_sc, _val) virtio_htog64(vtscsi_modern(_sc), _val)
sys/dev/virtio/scsi/virtio_scsi.c
193
#define vtscsi_gtoh16(_sc, _val) virtio_gtoh16(vtscsi_modern(_sc), _val)
sys/dev/virtio/scsi/virtio_scsi.c
194
#define vtscsi_gtoh32(_sc, _val) virtio_gtoh32(vtscsi_modern(_sc), _val)
sys/dev/virtio/scsi/virtio_scsi.c
195
#define vtscsi_gtoh64(_sc, _val) virtio_gtoh64(vtscsi_modern(_sc), _val)
sys/dev/virtio/virtqueue.c
154
#define vq_htog16(_vq, _val) virtio_htog16(vq_modern(_vq), _val)
sys/dev/virtio/virtqueue.c
155
#define vq_htog32(_vq, _val) virtio_htog32(vq_modern(_vq), _val)
sys/dev/virtio/virtqueue.c
156
#define vq_htog64(_vq, _val) virtio_htog64(vq_modern(_vq), _val)
sys/dev/virtio/virtqueue.c
157
#define vq_gtoh16(_vq, _val) virtio_gtoh16(vq_modern(_vq), _val)
sys/dev/virtio/virtqueue.c
158
#define vq_gtoh32(_vq, _val) virtio_gtoh32(vq_modern(_vq), _val)
sys/dev/virtio/virtqueue.c
159
#define vq_gtoh64(_vq, _val) virtio_gtoh64(vq_modern(_vq), _val)
sys/dev/xdma/controller/pl330.c
77
#define WRITE4(_sc, _reg, _val) \
sys/dev/xdma/controller/pl330.c
78
bus_write_4(_sc->res[0], _reg, _val)
sys/dev/xilinx/axi_quad_spi.c
66
#define WRITE4(_sc, _reg, _val) \
sys/dev/xilinx/axi_quad_spi.c
67
bus_space_write_4(_sc->bst, _sc->bsh, _reg, _val)
sys/dev/xilinx/axidma.c
54
#define AXIDMA_WR4(_sc, _reg, _val) \
sys/dev/xilinx/axidma.c
55
bus_space_write_4(_sc->bst, _sc->bsh, _reg, _val)
sys/dev/xilinx/axidma.c
58
#define AXIDMA_WR8(_sc, _reg, _val) \
sys/dev/xilinx/axidma.c
59
bus_space_write_8(_sc->bst, _sc->bsh, _reg, _val)
sys/dev/xilinx/if_xae.c
74
#define XAE_WR4(_sc, _reg, _val) bus_write_4((_sc)->res[0], _reg, _val)
sys/dev/xilinx/if_xae.c
75
#define XAE_WR8(_sc, _reg, _val) bus_write_8((_sc)->res[0], _reg, _val)
sys/dev/xilinx/if_xae.c
79
#define AXIDMA_WR4(_sc, _reg, _val) bus_write_4((_sc)->dma_res, _reg, _val)
sys/dev/xilinx/if_xae.c
80
#define AXIDMA_WR8(_sc, _reg, _val) bus_write_8((_sc)->dma_res, _reg, _val)
sys/ofed/include/rdma/uverbs_ioctl.h
939
s64 _val; \
sys/ofed/include/rdma/uverbs_ioctl.h
940
int _ret = _uverbs_get_const(&_val, _attrs_bundle, _idx, \
sys/ofed/include/rdma/uverbs_ioctl.h
943
(*_to) = _val; \
sys/ofed/include/rdma/uverbs_ioctl.h
949
s64 _val; \
sys/ofed/include/rdma/uverbs_ioctl.h
952
_uverbs_get_const(&_val, _attrs_bundle, _idx, \
sys/ofed/include/rdma/uverbs_ioctl.h
955
(*_to) = _val; \
sys/riscv/eswin/eswin_reset.c
65
#define ERST_WRITE(_sc, _reg, _val) \
sys/riscv/eswin/eswin_reset.c
66
SYSCON_WRITE_4(sc->syscon, (_reg), (_val))
sys/riscv/sifive/sifive_gpio.c
82
#define SFGPIO_WRITE(_sc, _off, _val) \
sys/riscv/sifive/sifive_gpio.c
83
bus_write_4((_sc)->mem_res, (_off), (_val))
sys/riscv/sifive/sifive_prci.c
102
#define PRCI_WRITE(_sc, _reg, _val) \
sys/riscv/sifive/sifive_prci.c
103
bus_space_write_4((_sc)->bst, (_sc)->bsh, (_reg), (_val))
sys/riscv/sifive/sifive_spi.c
140
#define SFSPI_WRITE(_sc, _reg, _val) \
sys/riscv/sifive/sifive_spi.c
141
bus_space_write_4((_sc)->bst, (_sc)->bsh, (_reg), (_val))
sys/riscv/starfive/jh7110_gpio.c
70
#define GPIO_RW_OFFSET(_val) (_val & ~3)
sys/riscv/starfive/jh7110_gpio.c
71
#define GPIO_SHIFT(_val) ((_val & 3) * 8)
sys/riscv/starfive/jh7110_gpio.c
72
#define PAD_OFFSET(_val) (_val * 4)
tools/tools/ath/common/ah_osdep.h
59
#define OS_REG_WRITE(_ah, _reg, _val)
usr.bin/sdiotool/cam_sdio.c
214
uint8_t _val;
usr.bin/sdiotool/cam_sdio.c
215
return sdio_rw_direct(dev, func_number, addr, 0, &val, &_val);