/illumos-gate/usr/src/uts/common/crypto/api/ |
H A D | kcf_mac.c | 116 data, mac, tmpl); in crypto_mac_prov() 177 mac, spi_ctx_tmpl, KCF_SWFP_RHNDL(crq)); in crypto_mac() 192 pd->pd_sid, mech, key, data, mac, spi_ctx_tmpl); in crypto_mac() 240 key, data, mac, tmpl); in crypto_mac_verify_prov() 301 data, mac, spi_ctx_tmpl, KCF_SWFP_RHNDL(crq)); in crypto_mac_verify() 312 key, data, mac, spi_ctx_tmpl); in crypto_mac_verify() 590 rv = KCF_PROV_MAC_FINAL(pd, ctx, mac, NULL); in crypto_mac_final() 594 ctx->cc_session, NULL, NULL, NULL, mac, NULL); in crypto_mac_final() 608 crypto_data_t *mac, crypto_call_req_t *cr) in crypto_mac_single() argument 626 error = KCF_PROV_MAC(pd, ctx, data, mac, NULL); in crypto_mac_single() [all …]
|
H A D | kcf_dual.c | 141 sid, encr_key, mac_key, pt, ct, mac, spi_encr_tmpl, in crypto_encrypt_mac_prov() 265 (crypto_data_t *)ct, mac, mac_tmpl); in crypto_encrypt_mac() 309 mac_key, mac_tmpl, mac, (crq == NULL) ? NULL : in crypto_encrypt_mac() 971 crypto_data_t *mac, crypto_call_req_t *cr) in crypto_encrypt_mac_final() argument 1032 error = crypto_mac_final(mac_context, mac, NULL); in crypto_encrypt_mac_final() 1041 pd->pd_sid, NULL, NULL, NULL, ct, mac, NULL, NULL) in crypto_encrypt_mac_final() 1231 mac_key, mac_tmpl, mac, in crypto_mac_decrypt_common() 1235 mac_key, mac_tmpl, mac, in crypto_mac_decrypt_common() 1348 ct, mac, pt, spi_mac_tmpl, spi_decr_tmpl, in crypto_mac_decrypt_common() 1481 ct, mac, pt, spi_mac_tmpl, spi_decr_tmpl, in crypto_mac_decrypt_common_prov() [all …]
|
/illumos-gate/usr/src/uts/common/io/e1000g/ |
H A D | e1000g_workarounds.c | 55 if ((hw->mac.type != e1000_82541) && (hw->mac.type != e1000_82547)) in e1000_ttl_workaround_enabled_82541() 84 if (hw->mac.type != e1000_82547) in e1000_fifo_workaround_82547() 152 if (hw->mac.type != e1000_82547) in e1000_update_tx_fifo_head_82547() 177 if ((hw->mac.type != e1000_82541) && (hw->mac.type != e1000_82547)) in e1000_set_ttl_workaround_state_82541() 208 if ((hw->mac.type != e1000_82541) && (hw->mac.type != e1000_82547)) in e1000_igp_ttl_workaround_82547()
|
H A D | e1000g_rx.c | 232 if (hw->mac.type >= e1000_82540) { in e1000g_rx_setup() 284 ((hw->mac.type == e1000_82545) || in e1000g_rx_setup() 285 (hw->mac.type == e1000_82546) || in e1000g_rx_setup() 310 if ((hw->mac.type == e1000_82573) || in e1000g_rx_setup() 311 (hw->mac.type == e1000_82574) || in e1000g_rx_setup() 312 (hw->mac.type == e1000_ich9lan) || in e1000g_rx_setup() 331 if ((hw->mac.type == e1000_pchlan) && in e1000g_rx_setup() 350 if (hw->mac.type == e1000_pch2lan) { in e1000g_rx_setup() 369 if ((hw->mac.type == e1000_82571) || (hw->mac.type == e1000_82572)) { in e1000g_rx_setup() 555 if (hw->mac.type == e1000_82543) { in e1000g_receive() [all …]
|
/illumos-gate/usr/src/uts/common/io/chxge/com/ |
H A D | ch_subr.c | 173 struct cmac *mac = adapter->port[port_id].mac; in link_changed() local 841 mac->ops->set_speed_duplex_fc(mac, lc->speed, in t1_link_start() 853 mac->ops->set_speed_duplex_fc(mac, -1, -1, fc); in t1_link_start() 928 struct cmac *mac = adapter->port[0].mac; in elmer0_ext_intr_handler() local 930 mac->ops->interrupt_handler(mac); in elmer0_ext_intr_handler() 945 struct cmac *mac = adapter->port[0].mac; in elmer0_ext_intr_handler() local 946 mac->ops->interrupt_handler(mac); in elmer0_ext_intr_handler() 1305 struct cmac *mac = adapter->port[i].mac; in t1_free_sw_modules() local 1308 if (mac) in t1_free_sw_modules() 1309 mac->ops->destroy(mac); in t1_free_sw_modules() [all …]
|
/illumos-gate/usr/src/cmd/xargs/ |
H A D | xargs.c | 401 while ((OK == TRUE) && (mac-- > 0)) { in main() 1093 for (i = mac = cflag = 0; (av[i] != NULL) && i < ac; i++, mac++) { in parseargs() 1126 mav[++mac] = strdup(def); in parseargs() 1129 mav[mac][2] = '\0'; in parseargs() 1130 mav[++mac] = strdup(&av[i][2]); in parseargs() 1132 if (mav[mac] == NULL) { in parseargs() 1165 mav[mac][2] = '\0'; in parseargs() 1168 ++mac; /* inc to next mod'd arg */ in parseargs() 1177 mac++; in parseargs() 1180 mav[mac] = NULL; in parseargs() [all …]
|
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/ |
H A D | hmac.c | 50 crypto_data_t mac; in krb5_hmac() local 68 mac.cd_format = CRYPTO_DATA_RAW; in krb5_hmac() 69 mac.cd_offset = 0; in krb5_hmac() 70 mac.cd_length = output->length; in krb5_hmac() 71 mac.cd_raw.iov_base = (char *)output->data; in krb5_hmac() 72 mac.cd_raw.iov_len = output->length; in krb5_hmac() 80 key->key_tmpl, &mac, NULL); in krb5_hmac()
|
/illumos-gate/usr/src/cmd/sendmail/src/ |
H A D | tls.c | 1178 tls_get_info(ssl, srv, host, mac, certreq) in tls_get_info() argument 1182 MACROS_T *mac; 1195 macdefine(mac, A_TEMP, macid("{cipher}"), 1273 macdefine(mac, A_TEMP, macid("{cn_issuer}"), 1321 macdefine(mac, A_PERM, macid("{verify}"), s); 1330 vers = macget(mac, macid("{tls_version}")); 1332 algbits = macget(mac, macid("{alg_bits}")); 1333 s1 = macget(mac, macid("{verify}")); 1334 s2 = macget(mac, macid("{cipher}")); 1353 s1 = macget(mac, macid("{cert_subject}")); [all …]
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | wpa_enc.c | 135 unsigned char *data, unsigned int data_len, unsigned char *mac) in hmac_sha1() argument 138 (void) HMAC(EVP_sha1(), key, key_len, data, data_len, mac, &mac_len); in hmac_sha1() 144 unsigned char *addr[], unsigned int *len, unsigned char *mac) in hmac_sha1_vector() argument 161 hmac_sha1(key, key_len, buf, buf_len, mac); in hmac_sha1_vector() 242 uint8_t *addr[], size_t *len, uint8_t *mac) in hmac_md5_vector() argument 259 hmac_md5(key, key_len, buf, buf_len, mac); in hmac_md5_vector() 266 size_t data_len, uint8_t *mac) in hmac_md5() argument 269 (void) HMAC(EVP_md5(), key, key_len, data, data_len, mac, &mac_len); in hmac_md5()
|
/illumos-gate/usr/src/uts/intel/io/vmxnet3s/ |
H A D | vmxnet3.h | 121 mac_handle_t mac; member 219 #define MACADDR_FMT_ARGS(mac) mac[0], mac[1], mac[2], mac[3], mac[4], mac[5] argument
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/oce/ |
H A D | oce_main.c | 194 mac_register_t *mac; in oce_attach() local 329 mac = mac_alloc(MAC_VERSION); in oce_attach() 330 if (mac == NULL) { in oce_attach() 339 mac->m_driver = dev; in oce_attach() 340 mac->m_dip = dip; in oce_attach() 342 mac->m_callbacks = &oce_mac_cb; in oce_attach() 343 mac->m_min_sdu = 0; in oce_attach() 344 mac->m_max_sdu = dev->mtu; in oce_attach() 345 mac->m_margin = VTAG_SIZE; in oce_attach() 354 mac_free(mac); in oce_attach() [all …]
|
/illumos-gate/usr/src/uts/common/io/nxge/ |
H A D | nxge_espc.c | 37 uint64_t mac[ETHERADDRL]; in nxge_espc_get_next_mac_addr() local 42 mac[j] = st_mac[i]; in nxge_espc_get_next_mac_addr() 43 mac_addr |= (mac[j] << (j*8)); in nxge_espc_get_next_mac_addr() 61 uint8_t port_num = nxgep->mac.portnum; in nxge_espc_mac_addrs_get() 137 uint8_t port_num = nxgep->mac.portnum; in nxge_espc_phy_type_get() 151 nxgep->mac.portmode = PORT_10G_FIBER; in nxge_espc_phy_type_get() 155 nxgep->mac.portmode = PORT_10G_COPPER; in nxge_espc_phy_type_get() 159 nxgep->mac.portmode = PORT_1G_FIBER; in nxge_espc_phy_type_get() 163 nxgep->mac.portmode = PORT_1G_COPPER; in nxge_espc_phy_type_get() 195 npi_status = npi_espc_max_frame_get(handle, &nxgep->mac.maxframesize); in nxge_espc_max_frame_sz_get()
|
/illumos-gate/usr/src/uts/common/io/igc/ |
H A D | igc_gld.c | 484 if ((mac[0] & 0x01) == 0) { in igc_m_multicast() 535 ASSERT3U(mac[0] & 0x01, ==, 0); in igc_group_add_mac() 561 ASSERT3U(mac[0] & 0x01, ==, 0); in igc_group_rem_mac() 1267 if (mac == NULL) { in igc_mac_register() 1274 mac->m_driver = igc; in igc_mac_register() 1275 mac->m_dip = igc->igc_dip; in igc_mac_register() 1276 mac->m_src_addr = igc->igc_hw.mac.addr; in igc_mac_register() 1278 mac->m_min_sdu = 0; in igc_mac_register() 1280 mac->m_margin = VLAN_TAGSZ; in igc_mac_register() 1281 mac->m_priv_props = NULL; in igc_mac_register() [all …]
|
/illumos-gate/usr/src/uts/common/io/ixgbe/ |
H A D | ixgbe_main.c | 958 mac_register_t *mac; in ixgbe_register_mac() local 965 mac->m_driver = ixgbe; in ixgbe_register_mac() 966 mac->m_dip = ixgbe->dip; in ixgbe_register_mac() 967 mac->m_src_addr = hw->mac.addr; in ixgbe_register_mac() 969 mac->m_min_sdu = 0; in ixgbe_register_mac() 977 mac_free(mac); in ixgbe_register_mac() 1015 switch (hw->mac.type) { in ixgbe_identify_hardware() 1079 hw->mac.type); in ixgbe_identify_hardware() 1317 switch (hw->mac.type) { in ixgbe_led_init() 2891 switch (hw->mac.type) { in ixgbe_setup_vmdq() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/nic/ |
H A D | topo_nic.c | 83 nic_port_mac_t *mac = arg; in nic_port_datalink_mac_cb() local 86 topo_mod_dprintf(mac->npm_mod, in nic_port_datalink_mac_cb() 91 (void) snprintf(mac->npm_mac, sizeof (mac->npm_mac), in nic_port_datalink_mac_cb() 95 mac->npm_valid = B_TRUE; in nic_port_datalink_mac_cb() 114 nic_port_mac_t mac; in nic_port_datalink_props() local 193 mac.npm_mac[0] = '\0'; in nic_port_datalink_props() 194 mac.npm_valid = B_FALSE; in nic_port_datalink_props() 195 mac.npm_mod = mod; in nic_port_datalink_props() 197 (void) dladm_walk_macaddr(handle, linkid, &mac, in nic_port_datalink_props() 247 if (mac.npm_valid) { in nic_port_datalink_props() [all …]
|
/illumos-gate/usr/src/uts/common/io/chxge/ |
H A D | pe.c | 226 struct cmac *mac = p->mac; in link_start() local 228 mac->ops->reset(mac); in link_start() 230 mac->ops->macaddress_set(mac, p->enaddr); in link_start() 232 mac->ops->enable(mac, MAC_DIRECTION_RX | MAC_DIRECTION_TX); in link_start() 642 struct cmac *mac = sa->port[0].mac; in pe_set_promiscuous() local 663 mac->ops->set_rx_mode(mac, &rm); in pe_set_promiscuous() 670 struct cmac *mac = sa->port[0].mac; in pe_set_mc() local 717 mac->ops->set_rx_mode(mac, &rm); in pe_set_mc() 794 sp = sa->port[0].mac->ops->statistics_update(sa->port[0].mac, in pe_get_stats() 1605 struct cmac *mac = chp->port[0].mac; in pe_change_mtu() local [all …]
|
/illumos-gate/usr/src/uts/intel/io/dnet/ |
H A D | dnet_mii.h | 82 int mii_rsan(mii_handle_t mac, int phy, enum mii_wait_type wait_type); 88 int mii_autoneg_enab(mii_handle_t mac, int phy); 112 int mii_start_portmon(mii_handle_t mac, mii_linkfunc_t func, kmutex_t *lock); 115 int mii_stop_portmon(mii_handle_t mac); 118 void mii_destroy(mii_handle_t mac);
|
/illumos-gate/usr/src/contrib/ast/src/lib/libpp/ |
H A D | ppinput.c | 351 register struct ppmacro* mac; in dump() local 371 ppprintf("%d", mac->arity); in dump() 373 if (mac->arity) in dump() 375 ppprintf("%s", mac->formals); in dump() 379 ppprintf("%s", mac->value); in dump() 474 struct ppmacro* mac; in ppload() local 673 mac = sym->macro = newof(0, struct ppmacro, 1, 0); in ppload() 678 if (mac->arity = n) in ppload() 682 mac->formals = (char*)memcpy(oldof(0, char, 0, s - b), b, s - b); in ppload() 687 mac->size = s - b - 1; in ppload() [all …]
|
/illumos-gate/usr/src/uts/common/io/vnic/ |
H A D | vnic_dev.c | 348 mac_register_t *mac; in vnic_dev_create() local 482 mac->m_driver = vnic; in vnic_dev_create() 483 mac->m_dip = vnic_get_dip(); in vnic_dev_create() 484 mac->m_instance = (uint_t)-1; in vnic_dev_create() 485 mac->m_src_addr = vnic->vn_addr; in vnic_dev_create() 512 mac_free(mac); in vnic_dev_create() 520 &mac->m_max_sdu); in vnic_dev_create() 525 mac_free(mac); in vnic_dev_create() 530 vnic->vn_mtu = mac->m_max_sdu; in vnic_dev_create() 533 mac->m_min_sdu = 1; in vnic_dev_create() [all …]
|
/illumos-gate/usr/src/uts/common/io/ixgbe/core/ |
H A D | ixgbe_dcb.c | 185 && (hw->mac.type == ixgbe_mac_82598EB)) in ixgbe_dcb_calculate_tc_credits_cee() 403 switch (hw->mac.type) { in ixgbe_dcb_get_tc_stats() 434 switch (hw->mac.type) { in ixgbe_dcb_get_pfc_stats() 476 switch (hw->mac.type) { in ixgbe_dcb_config_rx_arbiter_cee() 517 switch (hw->mac.type) { in ixgbe_dcb_config_tx_desc_arbiter_cee() 561 switch (hw->mac.type) { in ixgbe_dcb_config_tx_data_arbiter_cee() 600 switch (hw->mac.type) { in ixgbe_dcb_config_pfc_cee() 629 switch (hw->mac.type) { in ixgbe_dcb_config_tc_stats() 676 switch (hw->mac.type) { in ixgbe_dcb_hw_config_cee() 712 switch (hw->mac.type) { in ixgbe_dcb_config_pfc() [all …]
|
/illumos-gate/usr/src/pkg/manifests/ |
H A D | system-library-iconv-xsh4-latin.p5m | 76 file path=usr/lib/iconv/$(ARCH64)/8859-5%mac.so 101 file path=usr/lib/iconv/$(ARCH64)/alt%mac.so 109 file path=usr/lib/iconv/$(ARCH64)/mac%alt.so 154 file path=usr/lib/iconv/8859-5%mac.so 162 file path=usr/lib/iconv/CP1251%mac.so 175 file path=usr/lib/iconv/KOI8-R%mac.so 179 file path=usr/lib/iconv/alt%mac.so 184 file path=usr/lib/iconv/mac%8859-5.so 185 file path=usr/lib/iconv/mac%CP1251.so 186 file path=usr/lib/iconv/mac%KOI8-R.so [all …]
|
/illumos-gate/usr/src/cmd/fm/eversholt/files/common/ |
H A D | nic.esc | 69 setpayloadprop("primary-mac-address", confprop(pcifn/port[pn], "primary-mac-address")) && \ 81 setpayloadprop("primary-mac-address", confprop(pciexfn/port[pn], "primary-mac-address")) && \ 113 setpayloadprop("primary-mac-address", confprop(pciexfn/port[pn], "primary-mac-address")) && 125 setpayloadprop("primary-mac-address", confprop(pciexfn/port[pn], "primary-mac-address"))
|
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/ |
H A D | emlxs_ip.c | 186 uint8_t *mac; in emlxs_ip_handle_unsol_req() local 227 mac = nd->fc_srcname.IEEE; in emlxs_ip_handle_unsol_req() 228 ndlp = emlxs_node_find_mac(port, mac); in emlxs_ip_handle_unsol_req() 252 mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]); in emlxs_ip_handle_unsol_req()
|
/illumos-gate/usr/src/uts/common/io/overlay/ |
H A D | overlay.c | 1226 mac_register_t *mac; in overlay_i_create() local 1265 if (mac == NULL) { in overlay_i_create() 1274 mac->m_driver = odd; in overlay_i_create() 1275 mac->m_dip = overlay_dip; in overlay_i_create() 1276 mac->m_dst_addr = NULL; in overlay_i_create() 1278 mac->m_pdata = NULL; in overlay_i_create() 1279 mac->m_pdata_size = 0; in overlay_i_create() 1281 mac->m_priv_props = NULL; in overlay_i_create() 1297 mac->m_min_sdu = 1; in overlay_i_create() 1308 mac->m_margin = 0; in overlay_i_create() [all …]
|
/illumos-gate/usr/src/lib/varpd/files/common/ |
H A D | libvarpd_files.c | 255 char *mac; in varpd_files_lookup() local 270 if (nvlist_lookup_string(nvl, "dhcp-proxy", &mac) != 0) { in varpd_files_lookup() 275 if (ether_aton_r(mac, addr) == NULL) { in varpd_files_lookup() 481 char *mac, *ipstr; in varpd_files_proxy_arp() local 491 mac = nvpair_name(pair); in varpd_files_proxy_arp() 518 if (ether_aton_r(mac, e) == NULL) { in varpd_files_proxy_arp() 537 char macstr[ETHERADDRSTRL], *mac; in varpd_files_proxy_dhcp() local 557 if (nvlist_lookup_string(nvl, "dhcp-proxy", &mac) != 0) { in varpd_files_proxy_dhcp() 562 if (ether_aton_r(mac, addr) == NULL) { in varpd_files_proxy_dhcp()
|