| /freebsd-12.1/sys/dev/ex/ |
| H A D | if_ex.c | 331 temp_reg = CSR_READ_1(sc, EEPROM_REG); in ex_init_locked() 354 (CSR_READ_1(sc, INT_NO_REG) & 0xf8) | in ex_init_locked() 376 CSR_WRITE_1(sc, REG1, CSR_READ_1(sc, REG1) | TriST_INT); in ex_init_locked() 884 CSR_WRITE_1(sc, REG3, CSR_READ_1(sc, REG3)); in ex_setmulti() 892 CSR_WRITE_1(sc, REG3, CSR_READ_1(sc, REG3)); in ex_setmulti() 934 if ((CSR_READ_1(sc, STATUS_REG) & Exec_Int) == 0) in ex_setmulti() 937 status = CSR_READ_1(sc, CMD_REG); in ex_setmulti() 948 CSR_WRITE_1(sc, REG2, CSR_READ_1(sc, REG2) & 0xDE); in ex_setmulti() 950 CSR_WRITE_1(sc, REG3, CSR_READ_1(sc, REG3)); in ex_setmulti() 1002 current = CSR_READ_1(sc, REG3); in ex_get_media() [all …]
|
| H A D | if_ex_isa.c | 330 if (((count1 = CSR_READ_1(sc, ID_REG)) & Id_Mask) != Id_Sig) in ex_look_for_card() 332 count2 = CSR_READ_1(sc, ID_REG); in ex_look_for_card() 333 count2 = CSR_READ_1(sc, ID_REG); in ex_look_for_card() 334 count2 = CSR_READ_1(sc, ID_REG); in ex_look_for_card()
|
| H A D | if_exvar.h | 97 #define CSR_READ_1(sc, off) (bus_read_1((sc)->ioport, off)) macro
|
| /freebsd-12.1/sys/dev/ste/ |
| H A D | if_ste.c | 215 val = CSR_READ_1(sc, STE_PHYCTL); in ste_mii_bitbang_read() 420 rxcfg = CSR_READ_1(sc, STE_RX_MODE); in ste_rxfilter() 455 CSR_READ_1(sc, STE_RX_MODE); in ste_rxfilter() 816 CSR_READ_1(sc, STE_STAT_RX_BCAST); in ste_stats_clear() 817 CSR_READ_1(sc, STE_STAT_RX_MCAST); in ste_stats_clear() 818 CSR_READ_1(sc, STE_STAT_RX_LOST); in ste_stats_clear() 823 CSR_READ_1(sc, STE_STAT_TX_BCAST); in ste_stats_clear() 824 CSR_READ_1(sc, STE_STAT_TX_MCAST); in ste_stats_clear() 829 CSR_READ_1(sc, STE_STAT_TX_DEFER); in ste_stats_clear() 831 CSR_READ_1(sc, STE_STAT_TX_ABORT); in ste_stats_clear() [all …]
|
| /freebsd-12.1/sys/dev/sn/ |
| H A D | if_sn.c | 458 if (CSR_READ_1(sc, INTR_STAT_REG_B) & IM_ALLOC_INT) in snstart_locked() 472 mask = CSR_READ_1(sc, INTR_MASK_REG_B) | IM_ALLOC_INT; in snstart_locked() 484 packet_no = CSR_READ_1(sc, ALLOC_RESULT_REG_B); in snstart_locked() 554 mask = CSR_READ_1(sc, INTR_MASK_REG_B) | (IM_TX_INT | IM_TX_EMPTY_INT); in snstart_locked() 667 packet_no = CSR_READ_1(sc, ALLOC_RESULT_REG_B); in snresume() 752 mask = CSR_READ_1(sc, INTR_MASK_REG_B) | (IM_TX_INT | IM_TX_EMPTY_INT); in snresume() 815 mask = CSR_READ_1(sc, INTR_MASK_REG_B); in snintr_locked() 822 interrupts = CSR_READ_1(sc, INTR_STAT_REG_B); in snintr_locked() 997 mask |= CSR_READ_1(sc, INTR_MASK_REG_B); in snintr_locked() 1091 *data = CSR_READ_1(sc, DATA_REG_B); in snread()
|
| H A D | if_snvar.h | 60 #define CSR_READ_1(sc, off) (bus_read_1((sc)->port_res, off)) macro
|
| /freebsd-12.1/sys/dev/re/ |
| H A D | if_re.c | 359 CSR_READ_1(sc, RL_EECMD) | x) 363 CSR_READ_1(sc, RL_EECMD) & ~x) 1322 cfg = CSR_READ_1(sc, RL_CFG2); in re_attach() 1359 cfg = CSR_READ_1(sc, RL_CFG2); in re_attach() 1556 cfg = CSR_READ_1(sc, sc->rl_cfg1); in re_attach() 1559 cfg = CSR_READ_1(sc, sc->rl_cfg5); in re_attach() 3890 v = CSR_READ_1(sc, sc->rl_cfg1); in re_setwol() 3896 v = CSR_READ_1(sc, sc->rl_cfg3); in re_setwol() 3902 v = CSR_READ_1(sc, sc->rl_cfg5); in re_setwol() 3947 v = CSR_READ_1(sc, sc->rl_cfg3); in re_clrwol() [all …]
|
| /freebsd-12.1/sys/dev/vge/ |
| H A D | if_vge.c | 262 if (CSR_READ_1(sc, VGE_EECMD) & VGE_EECMD_EDONE) in vge_eeprom_getword() 303 dest[i] = CSR_READ_1(sc, VGE_PAR0 + i); in vge_read_eeprom() 524 cfg = CSR_READ_1(sc, VGE_RXCFG); in vge_setvlan() 552 rxcfg = CSR_READ_1(sc, VGE_RXCTL); in vge_rxfilter() 1083 sc->vge_phyaddr = CSR_READ_1(sc, VGE_MIICFG) & in vge_attach() 1667 physts = CSR_READ_1(sc, VGE_PHYSTS0); in vge_link_statchg() 2757 intctl = CSR_READ_1(sc, VGE_INTCTL1); in vge_intr_holdoff() 2890 val = CSR_READ_1(sc, VGE_PWRSTAT); in vge_setwol() 2894 val = CSR_READ_1(sc, VGE_PWRSTAT); in vge_setwol() 2912 val = CSR_READ_1(sc, VGE_PWRSTAT); in vge_clrwol() [all …]
|
| H A D | if_vgevar.h | 230 #define CSR_READ_1(sc, reg) \ macro 234 CSR_WRITE_1(sc, reg, CSR_READ_1(sc, reg) | (x)) 241 CSR_WRITE_1(sc, reg, CSR_READ_1(sc, reg) & ~(x))
|
| /freebsd-12.1/sys/dev/vr/ |
| H A D | if_vr.c | 326 cr0 = CSR_READ_1(sc, VR_CR0); in vr_miibus_statchg() 327 cr1 = CSR_READ_1(sc, VR_CR1); in vr_miibus_statchg() 351 fc = CSR_READ_1(sc, VR_FLOWCR1); in vr_miibus_statchg() 2345 cmd = CSR_READ_1(sc, VR_CR0); in vr_tx_start() 2364 cmd = CSR_READ_1(sc, VR_CR0); in vr_rx_start() 2380 cmd = CSR_READ_1(sc, VR_CR0); in vr_tx_stop() 2386 cmd = CSR_READ_1(sc, VR_CR0); in vr_tx_stop() 2402 cmd = CSR_READ_1(sc, VR_CR0); in vr_rx_stop() 2408 cmd = CSR_READ_1(sc, VR_CR0); in vr_rx_stop() 2569 v = CSR_READ_1(sc, VR_STICKHW); in vr_setwol() [all …]
|
| H A D | if_vrreg.h | 758 #define CSR_READ_1(sc, reg) bus_read_1(sc->vr_res, reg) macro 760 #define VR_SETBIT(sc, reg, x) CSR_WRITE_1(sc, reg, CSR_READ_1(sc, reg) | (x)) 761 #define VR_CLRBIT(sc, reg, x) CSR_WRITE_1(sc, reg, CSR_READ_1(sc, reg) & ~(x))
|
| /freebsd-12.1/sys/dev/rl/ |
| H A D | if_rl.c | 269 CSR_READ_1(sc, RL_EECMD) | x) 273 CSR_READ_1(sc, RL_EECMD) & ~x) 369 val = CSR_READ_1(sc, RL_MII); in rl_mii_bitbang_read() 426 return (CSR_READ_1(sc, RL_MEDIASTAT)); in rl_miibus_readreg() 779 eaddr[i] = CSR_READ_1(sc, RL_IDR0 + i); in rl_attach() 1931 if ((CSR_READ_1(sc, RL_COMMAND) & in rl_stop() 2068 v = CSR_READ_1(sc, sc->rl_cfg1); in rl_setwol() 2074 v = CSR_READ_1(sc, sc->rl_cfg3); in rl_setwol() 2080 v = CSR_READ_1(sc, sc->rl_cfg5); in rl_setwol() 2115 v = CSR_READ_1(sc, sc->rl_cfg3); in rl_clrwol() [all …]
|
| H A D | if_rlreg.h | 959 #define CSR_READ_1(sc, reg) \ macro 966 CSR_WRITE_1(sc, offset, CSR_READ_1(sc, offset) | (val)) 969 CSR_WRITE_1(sc, offset, CSR_READ_1(sc, offset) & ~(val))
|
| /freebsd-12.1/sys/dev/ipw/ |
| H A D | if_ipwreg.h | 327 #define CSR_READ_1(sc, reg) \ macro 354 CSR_READ_1((sc), IPW_CSR_INDIRECT_DATA))
|
| /freebsd-12.1/sys/dev/vx/ |
| H A D | if_vxvar.h | 73 #define CSR_READ_1(sc, reg) \ macro
|
| /freebsd-12.1/sys/dev/fxp/ |
| H A D | if_fxp.c | 339 while (CSR_READ_1(sc, FXP_CSR_SCB_COMMAND) && --i) in fxp_scb_wait() 342 flowctl.b[0] = CSR_READ_1(sc, FXP_CSR_FC_THRESH); in fxp_scb_wait() 343 flowctl.b[1] = CSR_READ_1(sc, FXP_CSR_FC_STATUS); in fxp_scb_wait() 345 CSR_READ_1(sc, FXP_CSR_SCB_COMMAND), in fxp_scb_wait() 346 CSR_READ_1(sc, FXP_CSR_SCB_STATACK), in fxp_scb_wait() 347 CSR_READ_1(sc, FXP_CSR_SCB_RUSCUS), flowctl.w); in fxp_scb_wait() 923 CSR_WRITE_1(sc, FXP_CSR_PMDR, CSR_READ_1(sc, FXP_CSR_PMDR)); in fxp_attach() 1121 CSR_READ_1(sc, FXP_CSR_PMDR)); in fxp_resume() 1698 tmp = CSR_READ_1(sc, FXP_CSR_SCB_STATACK); in fxp_poll() 2165 if (CSR_READ_1(sc, FXP_CSR_SCB_COMMAND) == 0) { in fxp_tick() [all …]
|
| H A D | if_fxpvar.h | 246 #define CSR_READ_1(sc, reg) bus_read_1(sc->fxp_res[0], reg) macro
|
| /freebsd-12.1/sys/dev/bm/ |
| H A D | if_bmreg.h | 168 #define CSR_READ_1(sc, reg) \ macro
|
| /freebsd-12.1/sys/dev/tx/ |
| H A D | if_txvar.h | 142 #define CSR_READ_1(sc, reg) \ macro
|
| /freebsd-12.1/sys/dev/xl/ |
| H A D | if_xl.c | 458 macctl = CSR_READ_1(sc, XL_W3_MAC_CTRL); in xl_miibus_statchg() 621 rxfilt = CSR_READ_1(sc, XL_W5_RX_FILTER); in xl_rxfilter_90x() 669 rxfilt = CSR_READ_1(sc, XL_W5_RX_FILTER); in xl_rxfilter_90xB() 822 (CSR_READ_1(sc, XL_W3_MAC_CTRL) & ~XL_MACCTRL_DUPLEX)); in xl_setmode() 2095 while ((txstat = CSR_READ_1(sc, XL_TX_STATUS))) { in xl_txeoc() 2318 *p++ = CSR_READ_1(sc, XL_W6_CARRIER_LOST + i); in xl_stats_update() 2334 CSR_READ_1(sc, XL_W4_BADSSD); in xl_stats_update() 2833 macctl = CSR_READ_1(sc, XL_W3_MAC_CTRL); in xl_init_locked() 2959 if (CSR_READ_1(sc, XL_W3_MAC_CTRL) & XL_MACCTRL_DUPLEX) in xl_ifmedia_sts() 2968 if (CSR_READ_1(sc, XL_W3_MAC_CTRL) & XL_MACCTRL_DUPLEX) in xl_ifmedia_sts()
|
| /freebsd-12.1/sys/dev/ep/ |
| H A D | if_epvar.h | 87 #define CSR_READ_1(sc, off) (bus_space_read_1((sc)->bst, (sc)->bsh, off)) macro
|
| H A D | if_ep.c | 431 CSR_READ_1(sc, EP_W1_TX_STATUS); in epinit_locked() 660 while ((status = CSR_READ_1(sc, EP_W1_TX_STATUS)) & in ep_intr_locked() 787 CSR_READ_1(sc, EP_W1_RX_PIO_RD_1); in epread()
|
| /freebsd-12.1/sys/dev/msk/ |
| H A D | if_msk.c | 1209 sc->msk_ramsize = CSR_READ_1(sc, B2_E_0) * 4; in mskc_setup_rambuffer() 1671 eaddr[i] = CSR_READ_1(sc, B2_MAC_1 + (port * 8) + i); in msk_attach() 1785 sc->msk_hw_id = CSR_READ_1(sc, B2_CHIP_ID); in mskc_attach() 1786 sc->msk_hw_rev = (CSR_READ_1(sc, B2_MAC_CFG) >> 4) & 0x0f; in mskc_attach() 1823 sc->msk_pmd = CSR_READ_1(sc, B2_PMD_TYP); in mskc_attach() 1826 if ((CSR_READ_1(sc, B2_Y2_HW_RES) & CFG_DUAL_MAC_MSK) == in mskc_attach() 3840 CSR_READ_1(sc, MR_ADDR(sc_if->msk_port, GMAC_IRQ_SRC)); in msk_init_locked() 4095 CSR_READ_1(sc, RB_ADDR(sc_if->msk_rxq, RB_CTRL)); in msk_set_rambuffer() 4110 CSR_READ_1(sc, RB_ADDR(sc_if->msk_txq, RB_CTRL)); in msk_set_rambuffer() 4233 if (CSR_READ_1(sc, RB_ADDR(sc_if->msk_rxq, Q_RSL)) == in msk_stop() [all …]
|
| /freebsd-12.1/sys/dev/stge/ |
| H A D | if_stge.c | 259 val = CSR_READ_1(sc, STGE_PhyCtrl); in stge_mii_bitbang_read() 298 error = CSR_READ_1(sc, STGE_PhyCtrl); in stge_miibus_readreg() 595 sc->sc_PhyCtrl = CSR_READ_1(sc, STGE_PhyCtrl) & in stge_attach() 991 v = CSR_READ_1(sc, STGE_WakeEvent); in stge_setwol() 1037 v = CSR_READ_1(sc, STGE_WakeEvent); in stge_resume() 1960 v = CSR_READ_1(sc, STGE_PhySet); in stge_reset()
|
| /freebsd-12.1/sys/dev/wb/ |
| H A D | if_wbreg.h | 381 #define CSR_READ_1(sc, reg) bus_read_1(sc->wb_res, reg) macro
|