/freebsd-current/sys/dev/sk/ |
H A D | if_sk.c | 432 struct sk_if_softc *sc_if; local 435 sc_if = device_get_softc(dev); 437 SK_IF_MII_LOCK(sc_if); 438 switch(sc_if->sk_softc->sk_type) { 440 v = sk_xmac_miibus_readreg(sc_if, phy, reg); 445 v = sk_marv_miibus_readreg(sc_if, phy, reg); 451 SK_IF_MII_UNLOCK(sc_if); 459 struct sk_if_softc *sc_if; local 462 sc_if = device_get_softc(dev); 464 SK_IF_MII_LOCK(sc_if); 486 struct sk_if_softc *sc_if; local 507 sk_xmac_miibus_readreg(struct sk_if_softc *sc_if, int phy, int reg) argument 533 sk_xmac_miibus_writereg(struct sk_if_softc *sc_if, int phy, int reg, int val) argument 561 sk_xmac_miibus_statchg(struct sk_if_softc *sc_if) argument 581 sk_marv_miibus_readreg(struct sk_if_softc *sc_if, int phy, int reg) argument 612 sk_marv_miibus_writereg(struct sk_if_softc *sc_if, int phy, int reg, int val) argument 632 sk_marv_miibus_statchg(struct sk_if_softc *sc_if) argument 651 sk_setfilt(struct sk_if_softc *sc_if, u_int16_t *addr, int slot) argument 665 sk_rxfilter(struct sk_if_softc *sc_if) argument 679 struct sk_if_softc *sc_if; member in struct:sk_add_maddr_genesis_ctx 710 sk_rxfilter_genesis(struct sk_if_softc *sc_if) argument 758 sk_rxfilter_yukon(struct sk_if_softc *sc_if) argument 788 sk_init_rx_ring(struct sk_if_softc *sc_if) argument 820 sk_init_jumbo_rx_ring(struct sk_if_softc *sc_if) argument 853 sk_init_tx_ring(struct sk_if_softc *sc_if) argument 885 sk_discard_rxbuf(struct sk_if_softc *sc_if, int idx) argument 898 sk_discard_jumbo_rxbuf(struct sk_if_softc *sc_if, int idx) argument 911 sk_newbuf(struct sk_if_softc *sc_if, int idx) argument 954 sk_jumbo_newbuf(struct sk_if_softc *sc_if, int idx) argument 1008 struct sk_if_softc *sc_if = if_getsoftc(ifp); local 1024 struct sk_if_softc *sc_if; local 1040 struct sk_if_softc *sc_if = if_getsoftc(ifp); local 1248 struct sk_if_softc *sc_if; local 1756 struct sk_if_softc *sc_if; local 1857 sk_dma_alloc(struct sk_if_softc *sc_if) argument 2044 sk_dma_jumbo_alloc(struct sk_if_softc *sc_if) argument 2145 sk_dma_free(struct sk_if_softc *sc_if) argument 2218 sk_dma_jumbo_free(struct sk_if_softc *sc_if) argument 2303 sk_encap(struct sk_if_softc *sc_if, struct mbuf **m_head) argument 2395 struct sk_if_softc *sc_if; local 2410 struct sk_if_softc *sc_if; local 2458 struct sk_if_softc *sc_if; local 2648 sk_rxeof(struct sk_if_softc *sc_if) argument 2714 sk_jumbo_rxeof(struct sk_if_softc *sc_if) argument 2781 sk_txeof(struct sk_if_softc *sc_if) argument 2832 struct sk_if_softc *sc_if; local 2876 struct sk_if_softc *sc_if; local 2887 sk_intr_bcom(struct sk_if_softc *sc_if) argument 2940 sk_intr_xmac(struct sk_if_softc *sc_if) argument 2973 sk_intr_yukon(struct sk_if_softc *sc_if) argument 3081 sk_init_xmac(struct sk_if_softc *sc_if) argument 3242 sk_init_yukon(struct sk_if_softc *sc_if) argument 3377 struct sk_if_softc *sc_if = xsc; local 3387 sk_init_locked(struct sk_if_softc *sc_if) argument 3586 sk_stop(struct sk_if_softc *sc_if) argument [all...] |
H A D | if_skreg.h | 174 #define SK_IF_READ_4(sc_if, skip, reg) \ 175 sk_win_read_4(sc_if->sk_softc, reg + \ 176 ((sc_if->sk_port * (skip + 1)) * SK_WIN_LEN)) 177 #define SK_IF_READ_2(sc_if, skip, reg) \ 178 sk_win_read_2(sc_if->sk_softc, reg + \ 179 ((sc_if->sk_port * (skip + 1)) * SK_WIN_LEN)) 180 #define SK_IF_READ_1(sc_if, skip, reg) \ 181 sk_win_read_1(sc_if->sk_softc, reg + \ 182 ((sc_if->sk_port * (skip + 1)) * SK_WIN_LEN)) 184 #define SK_IF_WRITE_4(sc_if, ski [all...] |
/freebsd-current/sys/dev/msk/ |
H A D | if_msk.c | 397 struct msk_if_softc *sc_if; local 399 sc_if = device_get_softc(dev); 401 return (msk_phy_readreg(sc_if, phy, reg)); 405 msk_phy_readreg(struct msk_if_softc *sc_if, int phy, int reg) argument 410 sc = sc_if->msk_softc; 412 GMAC_WRITE_2(sc, sc_if->msk_port, GM_SMI_CTRL, 417 val = GMAC_READ_2(sc, sc_if->msk_port, GM_SMI_CTRL); 419 val = GMAC_READ_2(sc, sc_if->msk_port, GM_SMI_DATA); 425 if_printf(sc_if->msk_ifp, "phy failed to come ready\n"); 435 struct msk_if_softc *sc_if; local 443 msk_phy_writereg(struct msk_if_softc *sc_if, int phy, int reg, int val) argument 469 struct msk_if_softc *sc_if; local 585 msk_rxfilter(struct msk_if_softc *sc_if) argument 625 msk_setvlan(struct msk_if_softc *sc_if, if_t ifp) argument 644 msk_rx_fill(struct msk_if_softc *sc_if, int jumbo) argument 692 msk_init_rx_ring(struct msk_if_softc *sc_if) argument 759 msk_init_jumbo_rx_ring(struct msk_if_softc *sc_if) argument 827 msk_init_tx_ring(struct msk_if_softc *sc_if) argument 854 msk_discard_rxbuf(struct msk_if_softc *sc_if, int idx) argument 873 msk_discard_jumbo_rxbuf(struct msk_if_softc *sc_if, int idx) argument 892 msk_newbuf(struct msk_if_softc *sc_if, int idx) argument 950 msk_jumbo_newbuf(struct msk_if_softc *sc_if, int idx) argument 1013 struct msk_if_softc *sc_if; local 1033 struct msk_if_softc *sc_if; local 1053 struct msk_if_softc *sc_if; local 1587 struct msk_if_softc *sc_if; local 2009 struct msk_if_softc *sc_if; local 2206 msk_txrx_dma_alloc(struct msk_if_softc *sc_if) argument 2391 msk_rx_dma_jalloc(struct msk_if_softc *sc_if) argument 2501 msk_txrx_dma_free(struct msk_if_softc *sc_if) argument 2573 msk_rx_dma_jfree(struct msk_if_softc *sc_if) argument 2614 msk_encap(struct msk_if_softc *sc_if, struct mbuf **m_head) argument 2895 struct msk_if_softc *sc_if; local 2906 struct msk_if_softc *sc_if; local 2956 msk_watchdog(struct msk_if_softc *sc_if) argument 3083 msk_rxcsum(struct msk_if_softc *sc_if, uint32_t control, struct mbuf *m) argument 3173 msk_rxeof(struct msk_if_softc *sc_if, uint32_t status, uint32_t control, int len) argument 3249 msk_jumbo_rxeof(struct msk_if_softc *sc_if, uint32_t status, uint32_t control, int len) argument 3314 msk_txeof(struct msk_if_softc *sc_if, int idx) argument 3369 struct msk_if_softc *sc_if; local 3389 msk_intr_phy(struct msk_if_softc *sc_if) argument 3402 msk_intr_gmac(struct msk_if_softc *sc_if) argument 3433 msk_handle_hwerr(struct msk_if_softc *sc_if, uint32_t status) argument 3556 msk_rxput(struct msk_if_softc *sc_if) argument 3578 struct msk_if_softc *sc_if; local 3746 msk_set_tx_stfwd(struct msk_if_softc *sc_if) argument 3777 struct msk_if_softc *sc_if = xsc; local 3785 msk_init_locked(struct msk_if_softc *sc_if) argument 4060 msk_set_rambuffer(struct msk_if_softc *sc_if) argument 4135 msk_stop(struct msk_if_softc *sc_if) argument 4301 msk_stats_clear(struct msk_if_softc *sc_if) argument 4322 msk_stats_update(struct msk_if_softc *sc_if) argument 4426 struct msk_if_softc *sc_if; local 4447 struct msk_if_softc *sc_if; local 4479 msk_sysctl_node(struct msk_if_softc *sc_if) argument [all...] |
H A D | if_mskreg.h | 2152 #define MSK_IF_READ_4(sc_if, reg) \ 2153 CSR_READ_4((sc_if)->msk_softc, (reg)) 2154 #define MSK_IF_READ_2(sc_if, reg) \ 2155 CSR_READ_2((sc_if)->msk_softc, (reg)) 2156 #define MSK_IF_READ_1(sc_if, reg) \ 2157 CSR_READ_1((sc_if)->msk_softc, (reg)) 2159 #define MSK_IF_WRITE_4(sc_if, reg, val) \ 2160 CSR_WRITE_4((sc_if)->msk_softc, (reg), (val)) 2161 #define MSK_IF_WRITE_2(sc_if, reg, val) \ 2162 CSR_WRITE_2((sc_if) [all...] |