Home
last modified time | relevance | path

Searched refs:mtrp (Results 1 – 7 of 7) sorted by relevance

/titanic_41/usr/src/uts/common/io/mac/plugins/
H A Dmac_6to4.c53 mactype_register_t *mtrp; in _init() local
56 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL) in _init()
58 mtrp->mtr_ident = MAC_PLUGIN_IDENT_6TO4; in _init()
59 mtrp->mtr_ops = &mac_6to4_type_ops; in _init()
60 mtrp->mtr_mactype = DL_6TO4; in _init()
61 mtrp->mtr_nativetype = DL_6TO4; in _init()
62 mtrp->mtr_addrlen = sizeof (ipaddr_t); in _init()
63 if ((err = mactype_register(mtrp)) == 0) { in _init()
67 mactype_free(mtrp); in _init()
H A Dmac_ib.c64 mactype_register_t *mtrp; in _init() local
67 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL) in _init()
69 mtrp->mtr_ident = MAC_PLUGIN_IDENT_IB; in _init()
70 mtrp->mtr_ops = &mac_ib_type_ops; in _init()
71 mtrp->mtr_mactype = DL_IB; in _init()
72 mtrp->mtr_nativetype = DL_IB; in _init()
73 mtrp->mtr_addrlen = IPOIB_ADDRL; in _init()
74 mtrp->mtr_brdcst_addr = ib_brdcst; in _init()
79 mtrp->mtr_stats = NULL; in _init()
80 mtrp->mtr_statcount = 0; in _init()
[all …]
H A Dmac_ipv4.c59 mactype_register_t *mtrp; in _init() local
62 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL) in _init()
64 mtrp->mtr_ident = MAC_PLUGIN_IDENT_IPV4; in _init()
65 mtrp->mtr_ops = &mac_ipv4_type_ops; in _init()
66 mtrp->mtr_mactype = DL_IPV4; in _init()
67 mtrp->mtr_nativetype = DL_IPV4; in _init()
68 mtrp->mtr_addrlen = sizeof (ipaddr_t); in _init()
69 if ((err = mactype_register(mtrp)) == 0) { in _init()
73 mactype_free(mtrp); in _init()
H A Dmac_ether.c309 mactype_register_t *mtrp; in _init() local
312 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL) in _init()
314 mtrp->mtr_ident = MAC_PLUGIN_IDENT_ETHER; in _init()
315 mtrp->mtr_ops = &mac_ether_type_ops; in _init()
316 mtrp->mtr_mactype = DL_ETHER; in _init()
317 mtrp->mtr_nativetype = DL_ETHER; in _init()
318 mtrp->mtr_addrlen = ETHERADDRL; in _init()
319 mtrp->mtr_brdcst_addr = ether_brdcst; in _init()
320 mtrp->mtr_stats = ether_stats; in _init()
321 mtrp->mtr_statcount = A_CNT(ether_stats); in _init()
[all …]
H A Dmac_ipv6.c61 mactype_register_t *mtrp; in _init() local
64 if ((mtrp = mactype_alloc(MACTYPE_VERSION)) == NULL) in _init()
66 mtrp->mtr_ident = MAC_PLUGIN_IDENT_IPV6; in _init()
67 mtrp->mtr_ops = &mac_ipv6_type_ops; in _init()
68 mtrp->mtr_mactype = DL_IPV6; in _init()
69 mtrp->mtr_nativetype = DL_IPV6; in _init()
70 mtrp->mtr_addrlen = sizeof (in6_addr_t); in _init()
71 if ((err = mactype_register(mtrp)) == 0) { in _init()
75 mactype_free(mtrp); in _init()
H A Dmac_wifi.c79 mactype_register_t *mtrp = mactype_alloc(MACTYPE_VERSION); in _init() local
86 if (mtrp == NULL) in _init()
89 mtrp->mtr_ops = &mac_wifi_type_ops; in _init()
90 mtrp->mtr_ident = MAC_PLUGIN_IDENT_WIFI; in _init()
91 mtrp->mtr_mactype = DL_ETHER; in _init()
92 mtrp->mtr_nativetype = DL_WIFI; in _init()
93 mtrp->mtr_stats = wifi_stats; in _init()
94 mtrp->mtr_statcount = A_CNT(wifi_stats); in _init()
95 mtrp->mtr_addrlen = IEEE80211_ADDR_LEN; in _init()
96 mtrp->mtr_brdcst_addr = wifi_bcastaddr; in _init()
[all …]
/titanic_41/usr/src/uts/common/io/mac/
H A Dmac.c2876 mactype_register_t *mtrp; in mactype_alloc() local
2886 mtrp = kmem_zalloc(sizeof (mactype_register_t), KM_SLEEP); in mactype_alloc()
2887 mtrp->mtr_version = mactype_version; in mactype_alloc()
2888 return (mtrp); in mactype_alloc()
2892 mactype_free(mactype_register_t *mtrp) in mactype_free() argument
2894 kmem_free(mtrp, sizeof (mactype_register_t)); in mactype_free()
2898 mactype_register(mactype_register_t *mtrp) in mactype_register() argument
2901 mactype_ops_t *ops = mtrp->mtr_ops; in mactype_register()
2904 if (mtrp->mtr_ident == NULL || ops == NULL) in mactype_register()
2920 mtp->mt_ident = mtrp->mtr_ident; in mactype_register()
[all …]