Home
last modified time | relevance | path

Searched refs:macp (Results 1 – 25 of 72) sorted by relevance

123

/illumos-gate/usr/src/uts/sun4v/io/
H A Dvnet.c742 mac_register_t *macp; in vnet_m_multicst() local
757 macp = &vresp->macreg; in vnet_m_multicst()
758 cbp = macp->m_callbacks; in vnet_m_multicst()
759 rv = cbp->mc_multicst(macp->m_driver, add, mca); in vnet_m_multicst()
796 mac_register_t *macp; in vnet_tx_ring_send() local
834 macp = &vresp->macreg; in vnet_tx_ring_send()
835 resid_mp = macp->m_callbacks->mc_tx(macp->m_driver, mp); in vnet_tx_ring_send()
905 macp = &vresp->macreg; in vnet_tx_ring_send()
908 macp = &vresp->macreg; in vnet_tx_ring_send()
909 tx_arg = macp->m_driver; in vnet_tx_ring_send()
[all …]
/illumos-gate/usr/src/common/crypto/modes/
H A Dccm.c211 uint8_t *lastp, *mac_buf, *ccm_mac_p, *macp; in ccm_encrypt_final() local
239 macp = (uint8_t *)ctx->ccm_mac_input_buf; in ccm_encrypt_final()
240 bzero(macp, block_size); in ccm_encrypt_final()
243 bcopy(ctx->ccm_remainder, macp, ctx->ccm_remainder_len); in ccm_encrypt_final()
246 xor_block(macp, mac_buf); in ccm_encrypt_final()
255 macp[i] ^= lastp[i]; in ccm_encrypt_final()
274 bcopy(macp, out_data_1, ctx->ccm_remainder_len); in ccm_encrypt_final()
283 bcopy(macp, out_data_1, out_data_1_len); in ccm_encrypt_final()
288 bcopy((uint8_t *)macp + out_data_1_len, in ccm_encrypt_final()
293 bcopy(macp, out_data_1, out_data_1_len); in ccm_encrypt_final()
[all …]
H A Dgcm.c258 uint8_t *ghash, *macp; in gcm_encrypt_final() local
288 macp = (uint8_t *)ctx->gcm_remainder; in gcm_encrypt_final()
289 bzero(macp + ctx->gcm_remainder_len, in gcm_encrypt_final()
294 macp[i] ^= tmpp[i]; in gcm_encrypt_final()
298 GHASH(ctx, macp, ghash); in gcm_encrypt_final()
311 rv = crypto_put_output_data(macp, out, ctx->gcm_remainder_len); in gcm_encrypt_final()
/illumos-gate/usr/src/uts/common/io/ib/clients/eoib/
H A Deib_main.c812 mac_register_t *macp; in eib_register_with_mac() local
815 if ((macp = mac_alloc(MAC_VERSION)) == NULL) { in eib_register_with_mac()
829 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in eib_register_with_mac()
830 macp->m_driver = ss; in eib_register_with_mac()
831 macp->m_dip = dip; in eib_register_with_mac()
832 macp->m_src_addr = eib_zero_mac; in eib_register_with_mac()
833 macp->m_callbacks = &eib_m_callbacks; in eib_register_with_mac()
834 macp->m_min_sdu = 0; in eib_register_with_mac()
835 macp->m_max_sdu = ETHERMTU; in eib_register_with_mac()
836 macp->m_margin = VLAN_TAGSZ; in eib_register_with_mac()
[all …]
/illumos-gate/usr/src/uts/common/io/zyd/
H A Dzyd.c469 mac_register_t *macp; in zyd_mac_init() local
476 macp = mac_alloc(MAC_VERSION); in zyd_mac_init()
477 if (macp == NULL) { in zyd_mac_init()
489 macp->m_type_ident = MAC_PLUGIN_IDENT_WIFI; in zyd_mac_init()
490 macp->m_driver = sc; in zyd_mac_init()
491 macp->m_dip = sc->dip; in zyd_mac_init()
492 macp->m_src_addr = ic->ic_macaddr; in zyd_mac_init()
493 macp->m_callbacks = &zyd_m_callbacks; in zyd_mac_init()
494 macp->m_min_sdu = 0; in zyd_mac_init()
495 macp->m_max_sdu = IEEE80211_MTU; in zyd_mac_init()
[all …]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/qlge/
H A Dqlge_gld.c954 ql_gld3_init(qlge_t *qlge, mac_register_t *macp) in ql_gld3_init() argument
956 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in ql_gld3_init()
957 macp->m_driver = qlge; in ql_gld3_init()
958 macp->m_dip = qlge->dip; in ql_gld3_init()
960 macp->m_src_addr = qlge->dev_addr.ether_addr_octet; in ql_gld3_init()
961 macp->m_min_sdu = 0; in ql_gld3_init()
962 macp->m_max_sdu = qlge->mtu; in ql_gld3_init()
963 macp->m_margin = VLAN_TAGSZ; in ql_gld3_init()
964 macp->m_priv_props = qlge_priv_prop; in ql_gld3_init()
965 macp->m_v12n = 0; in ql_gld3_init()
[all …]
/illumos-gate/usr/src/uts/common/io/bnx/
H A Dbnxgldv3.c1545 mac_register_t *macp; in bnx_gld_init() local
1555 macp = mac_alloc(MAC_VERSION); in bnx_gld_init()
1556 if (macp == NULL) { in bnx_gld_init()
1563 macp->m_driver = umdevice; in bnx_gld_init()
1564 macp->m_dip = umdevice->os_param.dip; in bnx_gld_init()
1565 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in bnx_gld_init()
1566 macp->m_callbacks = &bnx_callbacks; in bnx_gld_init()
1567 macp->m_min_sdu = 0; in bnx_gld_init()
1568 macp->m_max_sdu = umdevice->dev_var.mtu; in bnx_gld_init()
1569 macp->m_src_addr = &(umdevice->lm_dev.params.mac_addr[0]); in bnx_gld_init()
[all …]
/illumos-gate/usr/src/uts/sun4v/sys/
H A Dvnet_res.h119 int vio_net_resource_reg(mac_register_t *macp,
124 typedef int (*vio_net_resource_reg_t)(mac_register_t *macp,
/illumos-gate/usr/src/uts/common/io/softmac/
H A Dsoftmac_main.c881 mac_register_t *macp; in softmac_mac_register() local
883 if ((macp = mac_alloc(MAC_VERSION)) == NULL) { in softmac_mac_register()
888 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in softmac_mac_register()
889 macp->m_driver = softmac; in softmac_mac_register()
890 macp->m_dip = softmac_dip; in softmac_mac_register()
892 macp->m_margin = softmac->smac_margin; in softmac_mac_register()
893 macp->m_src_addr = softmac->smac_unicst_addr; in softmac_mac_register()
894 macp->m_min_sdu = softmac->smac_min_sdu; in softmac_mac_register()
895 macp->m_max_sdu = softmac->smac_max_sdu; in softmac_mac_register()
896 macp->m_callbacks = &softmac_m_callbacks; in softmac_mac_register()
[all …]
/illumos-gate/usr/src/uts/common/io/efe/
H A Defe.c256 mac_register_t *macp; in efe_attach() local
379 if ((macp = mac_alloc(MAC_VERSION)) == NULL) { in efe_attach()
384 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in efe_attach()
385 macp->m_driver = efep; in efe_attach()
386 macp->m_dip = dip; in efe_attach()
387 macp->m_src_addr = efep->efe_macaddr; in efe_attach()
388 macp->m_callbacks = &efe_m_callbacks; in efe_attach()
389 macp->m_min_sdu = 0; in efe_attach()
390 macp->m_max_sdu = ETHERMTU; in efe_attach()
391 macp->m_margin = VLAN_TAGSZ; in efe_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/atu/
H A Datu.c1171 mac_register_t *macp; in atu_attach() local
1270 macp = mac_alloc(MAC_VERSION); in atu_attach()
1271 if (macp == NULL) in atu_attach()
1274 macp->m_type_ident = MAC_PLUGIN_IDENT_WIFI; in atu_attach()
1275 macp->m_driver = sc; in atu_attach()
1276 macp->m_dip = dip; in atu_attach()
1277 macp->m_src_addr = ic->ic_macaddr; in atu_attach()
1278 macp->m_callbacks = &atu_m_callbacks; in atu_attach()
1279 macp->m_min_sdu = 0; in atu_attach()
1280 macp->m_max_sdu = IEEE80211_MTU; in atu_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/rtls/
H A Drtls.c344 mac_register_t *macp; in rtls_attach() local
511 if ((macp = mac_alloc(MAC_VERSION)) == NULL) { in rtls_attach()
528 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in rtls_attach()
529 macp->m_driver = rtlsp; in rtls_attach()
530 macp->m_dip = devinfo; in rtls_attach()
531 macp->m_src_addr = rtlsp->netaddr; in rtls_attach()
532 macp->m_callbacks = &rtls_m_callbacks; in rtls_attach()
533 macp->m_min_sdu = 0; in rtls_attach()
534 macp->m_max_sdu = ETHERMTU; in rtls_attach()
535 macp->m_margin = VLAN_TAGSZ; in rtls_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/vioif/
H A Dvioif.c1943 mac_register_t *macp = NULL; in vioif_attach() local
2019 if ((macp = mac_alloc(MAC_VERSION)) == NULL) { in vioif_attach()
2024 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in vioif_attach()
2025 macp->m_driver = vif; in vioif_attach()
2026 macp->m_dip = dip; in vioif_attach()
2027 macp->m_src_addr = vif->vif_mac; in vioif_attach()
2028 macp->m_callbacks = &vioif_mac_callbacks; in vioif_attach()
2029 macp->m_min_sdu = 0; in vioif_attach()
2030 macp->m_max_sdu = vif->vif_mtu; in vioif_attach()
2031 macp->m_margin = VLAN_TAGSZ; in vioif_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/rge/
H A Drge_main.c1568 mac_register_t *macp; in rge_attach() local
1822 if ((macp = mac_alloc(MAC_VERSION)) == NULL) in rge_attach()
1824 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in rge_attach()
1825 macp->m_driver = rgep; in rge_attach()
1826 macp->m_dip = devinfo; in rge_attach()
1827 macp->m_src_addr = rgep->netaddr; in rge_attach()
1828 macp->m_callbacks = &rge_m_callbacks; in rge_attach()
1829 macp->m_min_sdu = 0; in rge_attach()
1830 macp->m_max_sdu = rgep->default_mtu; in rge_attach()
1831 macp->m_margin = VLAN_TAGSZ; in rge_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/pcn/
H A Dpcn.c280 mac_register_t *macp; in pcn_attach() local
406 if ((macp = mac_alloc(MAC_VERSION)) == NULL) { in pcn_attach()
411 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in pcn_attach()
412 macp->m_driver = pcnp; in pcn_attach()
413 macp->m_dip = dip; in pcn_attach()
414 macp->m_src_addr = pcnp->pcn_addr; in pcn_attach()
415 macp->m_callbacks = &pcn_m_callbacks; in pcn_attach()
416 macp->m_min_sdu = 0; in pcn_attach()
417 macp->m_max_sdu = ETHERMTU; in pcn_attach()
418 macp->m_margin = VLAN_TAGSZ; in pcn_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/elxl/
H A Delxl.c466 mac_register_t *macp; in elxl_attach() local
571 if ((macp = mac_alloc(MAC_VERSION)) == NULL) { in elxl_attach()
575 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in elxl_attach()
576 macp->m_driver = sc; in elxl_attach()
577 macp->m_dip = dip; in elxl_attach()
578 macp->m_src_addr = sc->ex_curraddr; in elxl_attach()
579 macp->m_callbacks = &elxl_m_callbacks; in elxl_attach()
580 macp->m_min_sdu = 0; in elxl_attach()
581 macp->m_max_sdu = ETHERMTU; in elxl_attach()
582 macp->m_margin = VLAN_TAGSZ; in elxl_attach()
[all …]
/illumos-gate/usr/src/uts/intel/io/amd8111s/
H A Damd8111s_main.c1671 mac_register_t *macp; in amd8111s_attach() local
1774 if ((macp = mac_alloc(MAC_VERSION)) == NULL) in amd8111s_attach()
1777 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in amd8111s_attach()
1778 macp->m_driver = pLayerPointers; in amd8111s_attach()
1779 macp->m_dip = devinfo; in amd8111s_attach()
1782 macp->m_src_addr = pOdl->MacAddress; in amd8111s_attach()
1783 macp->m_callbacks = &amd8111s_m_callbacks; in amd8111s_attach()
1784 macp->m_min_sdu = 0; in amd8111s_attach()
1786 macp->m_max_sdu = ETHERMTU; in amd8111s_attach()
1787 macp->m_margin = VLAN_TAGSZ; in amd8111s_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/iprb/
H A Diprb.c266 mac_register_t *macp; in iprb_attach() local
384 if ((macp = mac_alloc(MAC_VERSION)) == NULL) { in iprb_attach()
390 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in iprb_attach()
391 macp->m_driver = ip; in iprb_attach()
392 macp->m_dip = dip; in iprb_attach()
393 macp->m_src_addr = ip->curraddr; in iprb_attach()
394 macp->m_callbacks = &iprb_m_callbacks; in iprb_attach()
395 macp->m_min_sdu = 0; in iprb_attach()
396 macp->m_max_sdu = ETHERMTU; in iprb_attach()
397 macp->m_margin = VLAN_TAGSZ; in iprb_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/qede/
H A Dqede_gld.c2517 mac_register_t *macp; local
2519 macp = mac_alloc(MAC_VERSION);
2520 if (macp == NULL) {
2525 macp->m_driver = qede;
2526 macp->m_dip = qede->dip;
2527 macp->m_instance = qede->instance;
2528 macp->m_priv_props = NULL;
2529 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
2530 macp->m_src_addr = qede->ether_addr;
2531 macp->m_callbacks = &qede_callbacks;
[all …]
/illumos-gate/usr/src/uts/common/io/xge/drv/
H A Dxgell.c2768 mac_register_t *macp = NULL; in xgell_device_register() local
2808 if ((macp = mac_alloc(MAC_VERSION)) == NULL) in xgell_device_register()
2810 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in xgell_device_register()
2811 macp->m_driver = lldev; in xgell_device_register()
2812 macp->m_dip = lldev->dev_info; in xgell_device_register()
2813 macp->m_src_addr = hldev->macaddr[0]; in xgell_device_register()
2814 macp->m_callbacks = &xgell_m_callbacks; in xgell_device_register()
2815 macp->m_min_sdu = 0; in xgell_device_register()
2816 macp->m_max_sdu = hldev->config.mtu; in xgell_device_register()
2817 macp->m_margin = VLAN_TAGSZ; in xgell_device_register()
[all …]
/illumos-gate/usr/src/uts/common/io/afe/
H A Dafe.c309 mac_register_t *macp; in afe_attach() local
517 if ((macp = mac_alloc(MAC_VERSION)) == NULL) { in afe_attach()
522 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in afe_attach()
523 macp->m_driver = afep; in afe_attach()
524 macp->m_dip = dip; in afe_attach()
525 macp->m_src_addr = afep->afe_curraddr; in afe_attach()
526 macp->m_callbacks = &afe_m_callbacks; in afe_attach()
527 macp->m_min_sdu = 0; in afe_attach()
528 macp->m_max_sdu = ETHERMTU; in afe_attach()
529 macp->m_margin = VLAN_TAGSZ; in afe_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/ural/
H A Dural.c2191 mac_register_t *macp; in ural_attach() local
2322 if ((macp = mac_alloc(MAC_VERSION)) == NULL) { in ural_attach()
2328 macp->m_type_ident = MAC_PLUGIN_IDENT_WIFI; in ural_attach()
2329 macp->m_driver = sc; in ural_attach()
2330 macp->m_dip = devinfo; in ural_attach()
2331 macp->m_src_addr = ic->ic_macaddr; in ural_attach()
2332 macp->m_callbacks = &ural_m_callbacks; in ural_attach()
2333 macp->m_min_sdu = 0; in ural_attach()
2334 macp->m_max_sdu = IEEE80211_MTU; in ural_attach()
2335 macp->m_pdata = &wd; in ural_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/dmfe/
H A Ddmfe_main.c2574 mac_register_t *macp; in dmfe_attach() local
2723 if ((macp = mac_alloc(MAC_VERSION)) == NULL) in dmfe_attach()
2725 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in dmfe_attach()
2726 macp->m_driver = dmfep; in dmfe_attach()
2727 macp->m_dip = devinfo; in dmfe_attach()
2728 macp->m_src_addr = dmfep->curr_addr; in dmfe_attach()
2729 macp->m_callbacks = &dmfe_m_callbacks; in dmfe_attach()
2730 macp->m_min_sdu = 0; in dmfe_attach()
2731 macp->m_max_sdu = ETHERMTU; in dmfe_attach()
2732 macp->m_margin = VLAN_TAGSZ; in dmfe_attach()
[all …]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxnf.c986 mac_register_t *macp; in xnf_attach() local
1018 macp = mac_alloc(MAC_VERSION); in xnf_attach()
1019 if (macp == NULL) in xnf_attach()
1029 macp->m_dip = devinfo; in xnf_attach()
1030 macp->m_driver = xnfp; in xnf_attach()
1033 macp->m_type_ident = MAC_PLUGIN_IDENT_ETHER; in xnf_attach()
1034 macp->m_src_addr = xnfp->xnf_mac_addr; in xnf_attach()
1035 macp->m_callbacks = &xnf_callbacks; in xnf_attach()
1036 macp->m_min_sdu = 0; in xnf_attach()
1038 macp->m_max_sdu = xnfp->xnf_mtu; in xnf_attach()
[all …]
/illumos-gate/usr/src/uts/common/io/ath/
H A Dath_main.c1974 mac_register_t *macp; in ath_attach() local
2283 if ((macp = mac_alloc(MAC_VERSION)) == NULL) { in ath_attach()
2289 macp->m_type_ident = MAC_PLUGIN_IDENT_WIFI; in ath_attach()
2290 macp->m_driver = asc; in ath_attach()
2291 macp->m_dip = devinfo; in ath_attach()
2292 macp->m_src_addr = ic->ic_macaddr; in ath_attach()
2293 macp->m_callbacks = &ath_m_callbacks; in ath_attach()
2294 macp->m_min_sdu = 0; in ath_attach()
2295 macp->m_max_sdu = IEEE80211_MTU; in ath_attach()
2296 macp->m_pdata = &wd; in ath_attach()
[all …]

123