/netbsd-src/sys/dev/pci/ixgbe/ |
H A D | ixgbe.h | 655 #define IXGBE_CORE_LOCK_INIT(_sc, _name) \ argument 656 mutex_init(&(_sc)->core_mtx, MUTEX_DEFAULT, IPL_SOFTNET) 657 #define IXGBE_CORE_LOCK_DESTROY(_sc) mutex_destroy(&(_sc)->core_mtx) argument 658 #define IXGBE_TX_LOCK_DESTROY(_sc) mutex_destroy(&(_sc)->tx_mtx) argument 659 #define IXGBE_RX_LOCK_DESTROY(_sc) mutex_destroy(&(_sc)->rx_mtx) argument 660 #define IXGBE_CORE_LOCK(_sc) mutex_enter(&(_sc) argument 661 IXGBE_TX_LOCK(_sc) global() argument 662 IXGBE_TX_TRYLOCK(_sc) global() argument 663 IXGBE_RX_LOCK(_sc) global() argument 664 IXGBE_CORE_UNLOCK(_sc) global() argument 665 IXGBE_TX_UNLOCK(_sc) global() argument 666 IXGBE_RX_UNLOCK(_sc) global() argument 667 IXGBE_CORE_LOCK_ASSERT(_sc) global() argument 668 IXGBE_TX_LOCK_ASSERT(_sc) global() argument [all...] |
/netbsd-src/sys/dev/ic/ |
H A D | ath_netbsd.h | 52 #define ATH_TXQ_LOCK_INIT(_sc, _tq) mutex_init(&(_tq)->axq_lock, MUTEX_DEFAULT, IPL_NET) argument 59 #define ATH_TXBUF_LOCK_INIT(_sc) mutex_init(&(_sc)->sc_txbuflock, MUTEX_DEFAULT, IPL_NET) argument 60 #define ATH_TXBUF_LOCK_DESTROY(_sc) mutex_destroy(&(_sc)->sc_txbuflock) argument 61 #define ATH_TXBUF_LOCK(_sc) mutex_enter(&(_sc)->sc_txbuflock) argument 62 #define ATH_TXBUF_UNLOCK(_sc) mutex_exit(&(_sc)->sc_txbuflock) argument 63 #define ATH_TXBUF_LOCK_ASSERT(_sc) do { KASSERTMSG(mutex_owned(&(_sc)->sc_txbuflock), "txbuf lock u… argument
|
/netbsd-src/sys/net/lagg/ |
H A D | if_laggproto.h | 207 #define LAGG_LOCK(_sc) mutex_enter(&(_sc)->sc_lock) argument 208 #define LAGG_UNLOCK(_sc) mutex_exit(&(_sc)->sc_lock) argument 209 #define LAGG_LOCKED(_sc) mutex_owned(&(_sc)->sc_lock) argument 210 #define LAGG_CLLADDR(_sc) CLLADDR((_sc)->sc_if.if_sadl) argument 212 #define LAGG_PORTS_FOREACH(_sc, _lp) \ argument 213 SIMPLEQ_FOREACH((_lp), &(_sc)->sc_ports, lp_entry) 214 #define LAGG_PORTS_FIRST(_sc) SIMPLEQ_FIRST(&(_sc)->sc_ports) argument 215 #define LAGG_PORTS_EMPTY(_sc) SIMPLEQ_EMPTY(&(_sc)->sc_ports) argument 276 #define LAGG_LOG(_sc, _lvl, _fmt, _arg...) do { \ argument 278 !lagg_debug_enable(_sc)) \ [all …]
|
H A D | if_lagg_lacp.c | 220 #define LACP_LOCK(_sc) mutex_enter(&(_sc)->lsc_lock) argument 221 #define LACP_UNLOCK(_sc) mutex_exit(&(_sc)->lsc_lock) argument 222 #define LACP_LOCKED(_sc) mutex_owned(&(_sc)->lsc_lock) argument 229 #define LACP_PTIMER_ARM(_sc, _timer, _val) \ argument 230 (_sc)->lsc_timer[(_timer)] = (_val) 231 #define LACP_PTIMER_DISARM(_sc, _timer) \ argument 232 LACP_PTIMER_ARM((_sc), (_timer), 0) 233 #define LACP_PTIMER_ISARMED(_sc, _timer) \ argument 234 ((_sc)->lsc_timer[(_timer)] > 0) 238 #define LACP_ISDUMPING(_sc) (_sc)->lsc_dump_du argument [all …]
|
/netbsd-src/sys/net/ |
H A D | if_bridgevar.h | 351 #define BRIDGE_LOCK_OBJ(_sc) (&(_sc)->sc_iflist_psref.bip_lock) argument 352 #define BRIDGE_LOCK(_sc) mutex_enter(BRIDGE_LOCK_OBJ(_sc)) argument 353 #define BRIDGE_UNLOCK(_sc) mutex_exit(BRIDGE_LOCK_OBJ(_sc)) argument 354 #define BRIDGE_LOCKED(_sc) mutex_owned(BRIDGE_LOCK_OBJ(_sc)) 356 #define BRIDGE_PSZ_PERFORM(_sc) pserialize_perform((_sc) 350 BRIDGE_LOCK_OBJ(_sc) global() argument 355 BRIDGE_PSZ_PERFORM(_sc) global() argument 357 BRIDGE_IFLIST_READER_FOREACH(_bif,_sc) global() argument 360 BRIDGE_IFLIST_WRITER_FOREACH(_bif,_sc) global() argument [all...] |
H A D | if_bridge.c | 182 #define BRIDGE_RT_LOCK(_sc) mutex_enter((_sc)->sc_rtlist_lock) argument 183 #define BRIDGE_RT_UNLOCK(_sc) mutex_exit((_sc)->sc_rtlist_lock) argument 184 #define BRIDGE_RT_LOCKED(_sc) mutex_owned((_sc)->sc_rtlist_lock) 186 #define BRIDGE_RT_PSZ_PERFORM(_sc) \ 187 pserialize_perform((_sc)->sc_rtlist_psz) 189 #define BRIDGE_RTLIST_READER_FOREACH(_brt, _sc) \ 190 PSLIST_READER_FOREACH((_brt), &((_sc) 181 BRIDGE_RT_LOCK(_sc) global() argument 185 BRIDGE_RT_PSZ_PERFORM(_sc) global() argument 188 BRIDGE_RTLIST_READER_FOREACH(_brt,_sc) global() argument 191 BRIDGE_RTLIST_WRITER_FOREACH(_brt,_sc) global() argument 194 BRIDGE_RTLIST_WRITER_INSERT_HEAD(_sc,_brt) global() argument 199 BRIDGE_RTHASH_READER_FOREACH(_brt,_sc,_hash) global() argument 202 BRIDGE_RTHASH_WRITER_FOREACH(_brt,_sc,_hash) global() argument 205 BRIDGE_RTHASH_WRITER_INSERT_HEAD(_sc,_hash,_brt) global() argument [all...] |
H A D | if_pppoe.c | 145 #define PPPOE_LOCK(_sc, _op) rw_enter(&(_sc)->sc_lock, (_op)) argument 146 #define PPPOE_UNLOCK(_sc) rw_exit(&(_sc)->sc_lock) argument 147 #define PPPOE_WLOCKED(_sc) rw_write_held(&(_sc)->sc_lock) argument 164 #define DPRINTF(_sc, _fmt, _arg...) pppoe_printf((_sc), (_fmt), ##_arg) argument 166 #define DPRINTF(_sc, _fmt, _arg...) __nothing argument
|
/netbsd-src/sys/dev/pci/ |
H A D | if_vtevar.h | 154 #define CSR_WRITE_2(_sc, reg, val) \ argument 155 bus_space_write_2((_sc)->vte_bustag, (_sc)->vte_bushandle, \ 157 #define CSR_READ_2(_sc, reg) \ argument 158 bus_space_read_2((_sc)->vte_bustag, (_sc)->vte_bushandle, (reg))
|
H A D | if_alcreg.h | 1491 #define CSR_WRITE_4(_sc, reg, val) \ argument 1492 bus_space_write_4((_sc)->sc_mem_bt, (_sc)->sc_mem_bh, (reg), (val)) 1493 #define CSR_WRITE_2(_sc, reg, val) \ argument 1494 bus_space_write_2((_sc)->sc_mem_bt, (_sc)->sc_mem_bh, (reg), (val)) 1495 #define CSR_WRITE_1(_sc, reg, val) \ argument 1496 bus_space_write_1((_sc)->sc_mem_bt, (_sc)->sc_mem_bh, (reg), (val)) 1497 #define CSR_READ_2(_sc, reg) \ argument 1498 bus_space_read_2((_sc)->sc_mem_bt, (_sc)->sc_mem_bh, (reg)) 1499 #define CSR_READ_4(_sc, reg) \ argument 1500 bus_space_read_4((_sc)->sc_mem_bt, (_sc)->sc_mem_bh, (reg)) [all …]
|
H A D | if_agereg.h | 864 #define AGE_COMMIT_MBOX(_sc) \ argument 866 CSR_WRITE_4(_sc, AGE_MBOX, \ 867 (((_sc)->age_cdata.age_rx_cons << MBOX_RD_PROD_IDX_SHIFT) & \ 869 (((_sc)->age_cdata.age_rr_cons << \ 871 (((_sc)->age_cdata.age_tx_prod << MBOX_TD_PROD_IDX_SHIFT) & \ 875 #define AGE_RXCHAIN_RESET(_sc) \ argument 877 (_sc)->age_cdata.age_rxhead = NULL; \ 878 (_sc)->age_cdata.age_rxtail = NULL; \ 879 (_sc)->age_cdata.age_rxprev_tail = NULL; \ 880 (_sc)->age_cdata.age_rxlen = 0; \
|
H A D | if_stge.c | 223 #define CSR_WRITE_4(_sc, reg, val) \ argument 224 bus_space_write_4((_sc)->sc_st, (_sc)->sc_sh, (reg), (val)) 225 #define CSR_WRITE_2(_sc, reg, val) \ argument 226 bus_space_write_2((_sc)->sc_st, (_sc)->sc_sh, (reg), (val)) 227 #define CSR_WRITE_1(_sc, reg, val) \ argument 228 bus_space_write_1((_sc)->sc_st, (_sc)->sc_sh, (reg), (val)) 230 #define CSR_READ_4(_sc, reg) \ argument 231 bus_space_read_4((_sc)->sc_st, (_sc)->sc_sh, (reg)) 232 #define CSR_READ_2(_sc, reg) \ argument 233 bus_space_read_2((_sc)->sc_st, (_sc)->sc_sh, (reg)) [all …]
|
H A D | if_alereg.h | 951 #define CSR_WRITE_4(_sc, reg, val) \ argument 953 #define CSR_WRITE_2(_sc, reg, val) \ argument 955 #define CSR_WRITE_1(_sc, reg, val) \ argument 957 #define CSR_READ_2(_sc, reg) \ argument 959 #define CSR_READ_4(_sc, reg) \ argument
|
H A D | virtio_pci.c | 64 #define VIRTIO_PCI_LOG(_sc, _use_log, _fmt, _args...) \ argument 68 device_xname((_sc)->sc_dev), \ 71 aprint_error_dev((_sc)->sc_dev, \
|
H A D | if_iavf.c | 419 #define IAVF_LOG(_sc, _lvl, _fmt, _args...) \ argument 421 if (!(_sc)->sc_attached) { \ 425 aprint_error_dev((_sc)->sc_dev, _fmt, ##_args); \ 428 aprint_normal_dev((_sc)->sc_dev,_fmt, ##_args); \ 432 aprint_debug_dev((_sc)->sc_dev, _fmt, ##_args); \ 435 struct ifnet *_ifp = &(_sc)->sc_ec.ec_if; \ 626 #define iavf_nqueues(_sc) (1 << ((_sc)->sc_nqueue_pairs - 1)) argument 627 #define iavf_allqueues(_sc) ((1 << ((_sc)->sc_nqueue_pairs)) - 1) argument
|
/netbsd-src/sys/arch/arm/sunxi/ |
H A D | sunxi_codec.c | 52 #define AC_DAC_DPC(_sc) ((_sc)->sc_cfg->DPC) argument 54 #define AC_DAC_FIFOC(_sc) ((_sc)->sc_cfg->DAC_FIFOC) argument 74 #define AC_DAC_FIFOS(_sc) ((_sc)->sc_cfg->DAC_FIFOS) argument 75 #define AC_DAC_TXDATA(_sc) ((_sc)->sc_cfg->DAC_TXDATA) argument 76 #define AC_ADC_FIFOC(_sc) ((_sc)->sc_cfg->ADC_FIFOC) argument 86 #define AC_ADC_FIFOS(_sc) ((_sc)->sc_cfg->ADC_FIFOS) argument 87 #define AC_ADC_RXDATA(_sc) ((_sc)->sc_cfg->ADC_RXDATA) argument 88 #define AC_DAC_CNT(_sc) ((_sc)->sc_cfg->DAC_CNT) argument 89 #define AC_ADC_CNT(_sc) ((_sc)->sc_cfg->ADC_CNT) argument
|
/netbsd-src/sys/arch/arm/imx/ |
H A D | imx23_clkctrl.c | 55 static clkctrl_softc_t _sc = NULL; variable 129 _sc = sc; in clkctrl_init() 140 struct clkctrl_softc *sc = _sc; in clkctrl_en_usb() 160 struct clkctrl_softc *sc = _sc; in clkctrl_en_filtclk()
|
H A D | imx23_digctl.c | 60 static digctl_softc_t _sc = NULL; variable 157 _sc = sc; in digctl_init() 167 struct digctl_softc *sc = _sc; in digctl_usb_clkgate() 191 struct digctl_softc *sc = _sc; in digctl_tc_get_timecount()
|
H A D | imx23_rtc.c | 56 static rtc_softc_t _sc = NULL; variable 131 _sc = sc; in rtc_init() 141 struct rtc_softc *sc = _sc; in rtc_release_gnd()
|
H A D | imx23_pinctrl.c | 71 static imx23_pinctrl_softc_t _sc = NULL; variable 444 _sc = sc; in imx23_pinctrl_init() 503 struct imx23_pinctrl_softc *sc = _sc; in imx23_pinctrl_en_usb()
|
/netbsd-src/sys/arch/arm/at91/ |
H A D | at91pio.c | 69 #define PIO_READ(_sc, _reg) bus_space_read_4((_sc)->sc_iot, (_sc)->sc_ioh, (_reg)) argument 70 #define PIO_WRITE(_sc, _reg, _val) bus_space_write_4((_sc)->sc_iot, (_sc)->sc_ioh, (_reg), (_val)) argument
|
/netbsd-src/sys/arch/hppa/dev/ |
H A D | wax.c | 77 wax_fix_args(void *_sc, struct gsc_attach_args *ga) in wax_fix_args() argument 79 struct wax_softc *sc = _sc; in wax_fix_args()
|
H A D | lasi.c | 95 lasi_fix_args(void *_sc, struct gsc_attach_args *ga) in lasi_fix_args() argument 97 struct lasi_softc *sc = _sc; in lasi_fix_args()
|
H A D | asp.c | 145 asp_fix_args(void *_sc, struct gsc_attach_args *ga) in asp_fix_args() argument 148 struct asp_softc *sc = _sc; in asp_fix_args()
|
/netbsd-src/sys/dev/pci/igc/ |
H A D | if_igc.h | 389 #define DEVNAME(_sc) ((_sc)->sc_dev.dv_xname) argument
|
/netbsd-src/sys/arch/arm/rockchip/ |
H A D | rk_usb.c | 64 #define RK3399_PHY_NO(_sc) ((_sc)->sc_reg == 0xe450 ? 0 : 1) argument
|