Searched defs:mac (Results 1 - 25 of 170) sorted by relevance

1234567

/illumos-gate/usr/src/tools/smatch/src/validation/preprocessor/
H A Dpreprocessor4.c2 #define mac(x) x(foo) macro
4 mac(foo)
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/crypto/
H A Dhmac.c50 crypto_data_t mac; local
68 mac.cd_format = CRYPTO_DATA_RAW;
69 mac.cd_offset = 0;
70 mac.cd_length = output->length;
71 mac.cd_raw.iov_base = (char *)output->data;
72 mac.cd_raw.iov_len = output->length;
80 key->key_tmpl, &mac, NULL);
/illumos-gate/usr/src/uts/common/io/cxgbe/cxgbe/
H A Dcxgbe.c34 * whose only purpose is to register the mac.
122 mac_register_t *mac; local
133 mac = mac_alloc(MAC_VERSION);
134 if (mac == NULL) {
135 cmn_err(CE_WARN, "%s%d: failed to allocate version %d mac.",
141 mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
142 mac->m_driver = pi;
143 mac->m_dip = dip;
144 mac->m_src_addr = pi->hw_addr;
145 mac
[all...]
/illumos-gate/usr/src/cmd/dlutil/
H A Ddlsend.c54 (void) fprintf(stderr, "Usage: %s [-s sap] device target-mac\n"
65 uchar_t *mac; local
104 if ((mac = _link_aton(argv[1], &maclen)) == NULL) {
142 ret = dlpi_send(dh, mac, maclen, &msg, sizeof (msg), NULL);
/illumos-gate/usr/src/lib/libpp/common/
H A Dppcall.c36 * 0 returned if tok==0 and sym->mac->value to be copied to output by caller
46 register struct ppmacro* mac; local
63 if (mac = sym->macro)
70 if ((pp.state & (COMPATIBILITY|TRANSITION)) != COMPATIBILITY || !mac->arity)
95 else if (!(pp.state & DIRECTIVE) && mac->value && (ppisdig(*mac->value) || *mac->value == '#'))
98 debug((-5, "macro %s = %s", sym->name, mac->value));
101 if (tp = mac->tuple)
174 if (!mac
[all...]
H A Dppinput.c356 register struct ppmacro* mac; local
362 if ((mac = sym->macro) && !(sym->flags & (SYM_BUILTIN|SYM_PREDEFINED)))
376 ppprintf("%d", mac->arity);
378 if (mac->arity)
380 ppprintf("%s", mac->formals);
384 ppprintf("%s", mac->value);
479 struct ppmacro* mac; local
678 mac = sym->macro = newof(0, struct ppmacro, 1, 0);
683 if (mac->arity = n)
687 mac
[all...]
H A Dppop.c310 struct ppmacro* mac = ((struct ppsymbol*)p)->macro; local
312 if (mac)
314 if (mac->formals)
315 free(mac->formals);
316 free(mac->value);
317 free(mac);
/illumos-gate/usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/
H A Decore_common.h68 * @param mac
71 u8 *mac)
73 ((u8 *)fw_hi)[0] = mac[1];
74 ((u8 *)fw_hi)[1] = mac[0];
75 ((u8 *)fw_mid)[0] = mac[3];
76 ((u8 *)fw_mid)[1] = mac[2];
77 ((u8 *)fw_lo)[0] = mac[5];
78 ((u8 *)fw_lo)[1] = mac[4];
70 ecore_set_fw_mac_addr(u16 *fw_hi, u16 *fw_mid, u16 *fw_lo, u8 *mac) argument
/illumos-gate/usr/src/lib/librstp/common/
H A Dtransmit.c47 MAC_HEADER_T mac; member in struct:tx_tcn_bpdu_t
53 MAC_HEADER_T mac; member in struct:tx_stp_bpdu_t
60 MAC_HEADER_T mac; member in struct:tx_rstp_bpdu_t
102 STP_OUT_get_port_mac (port_index, bpdu_packet.mac.src_mac);
H A Dstp_in.c997 STP_IN_get_bridge_id(int vlan_id, unsigned short *priority, unsigned char *mac) argument
1004 (void) memcpy(mac, this->BrId.addr, 6);
/illumos-gate/usr/src/uts/common/io/net80211/
H A Dnet80211_crypto.c88 const uint8_t *mac)
321 "%s keyix %u flags 0x%x mac %s len %u\n",
87 nulldev_key_set(ieee80211com_t *ic, const struct ieee80211_key *k, const uint8_t *mac) argument
/illumos-gate/usr/src/uts/common/crypto/api/
H A Dkcf_mac.c60 * CRYPTO_INVALID_MAC: bogus 'mac' argument.
74 * mac: Storage for the MAC. The length needed depends on the mechanism.
85 * When complete and successful, 'mac' will contain the message
97 crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq)
116 data, mac, tmpl);
130 crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac,
177 mac, spi_ctx_tmpl, KCF_SWFP_RHNDL(crq));
192 pd->pd_sid, mech, key, data, mac, spi_ctx_tmpl);
215 * 'data' and to verify that it matches the MAC specified by 'mac'.
221 crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_
95 crypto_mac_prov(crypto_provider_t provider, crypto_session_id_t sid, crypto_mechanism_t *mech, crypto_data_t *data, crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq) argument
129 crypto_mac(crypto_mechanism_t *mech, crypto_data_t *data, crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq) argument
219 crypto_mac_verify_prov(crypto_provider_t provider, crypto_session_id_t sid, crypto_mechanism_t *mech, crypto_data_t *data, crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq) argument
253 crypto_mac_verify(crypto_mechanism_t *mech, crypto_data_t *data, crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq) argument
571 crypto_mac_final(crypto_context_t context, crypto_data_t *mac, crypto_call_req_t *cr) argument
607 crypto_mac_single(crypto_context_t context, crypto_data_t *data, crypto_data_t *mac, crypto_call_req_t *cr) argument
[all...]
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_espc.c37 uint64_t mac[ETHERADDRL]; local
42 mac[j] = st_mac[i];
43 mac_addr |= (mac[j] << (j*8));
61 uint8_t port_num = nxgep->mac.portnum;
137 uint8_t port_num = nxgep->mac.portnum;
151 nxgep->mac.portmode = PORT_10G_FIBER;
155 nxgep->mac.portmode = PORT_10G_COPPER;
159 nxgep->mac.portmode = PORT_1G_FIBER;
163 nxgep->mac.portmode = PORT_1G_COPPER;
195 npi_status = npi_espc_max_frame_get(handle, &nxgep->mac
[all...]
/illumos-gate/usr/src/uts/common/io/fcoe/
H A Dfcoe_eth.c60 fcoe_open_mac(fcoe_mac_t *mac, int force_promisc, fcoeio_stat_t *err_detail) argument
73 ret = mac_open_by_linkid(mac->fm_linkid, &mac->fm_handle);
76 mac->fm_linkid, ret);
80 (void) sprintf(cli_name, "%s-%d", "fcoe", mac->fm_linkid);
82 ret = mac_client_open(mac->fm_handle,
83 &mac->fm_cli_handle, cli_name, fm_open_flag);
85 (void) fcoe_close_mac(mac);
92 mac_unicast_primary_get(mac->fm_handle, mac
133 fcoe_close_mac(fcoe_mac_t *mac) argument
176 fcoe_enable_callback(fcoe_mac_t *mac) argument
214 fcoe_disable_callback(fcoe_mac_t *mac) argument
241 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
276 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
341 fcoe_mac_t *mac = EPORT2MAC(eport); local
[all...]
H A Dfcoe_fc.c72 fcoe_mac_t *mac; local
85 for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac;
86 mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) {
87 if (client->ect_channelid == mac->fm_linkid) {
92 if (mac == NULL) {
97 if (mac->fm_flags & FCOE_MAC_FLAG_BOUND) {
102 atomic_or_32(&mac->fm_flags, FCOE_MAC_FLAG_BOUND);
103 bcopy(client, &mac
136 fcoe_mac_t *mac = EPORT2MAC(eport); local
160 fcoe_mac_t *mac = EPORT2MAC(eport); local
202 fcoe_mac_t *mac = FRM2MAC(frm); local
411 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
421 fcoe_mac_t *mac = (fcoe_mac_t *)arg; local
430 fcoe_create_port(dev_info_t *parent, fcoe_mac_t *mac, int is_target) argument
467 fcoe_mac_t *mac; local
[all...]
/illumos-gate/usr/src/uts/common/io/fibre-channel/fca/emlxs/
H A Demlxs_ip.c186 uint8_t *mac; local
227 mac = nd->fc_srcname.IEEE;
228 ndlp = emlxs_node_find_mac(port, mac);
251 "Node not found. mac=%02x%02x%02x%02x%02x%02x",
252 mac[0], mac[1], mac[2], mac[3], mac[4], mac[
[all...]
/illumos-gate/usr/src/uts/common/io/e1000api/
H A De1000_82540.c94 switch (hw->mac.type) {
160 struct e1000_mac_info *mac = &hw->mac; local
183 mac->mta_reg_count = 128;
185 mac->rar_entry_count = E1000_RAR_ENTRIES;
190 mac->ops.get_bus_info = e1000_get_bus_info_pci_generic;
192 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci;
194 mac->ops.reset_hw = e1000_reset_hw_82540;
196 mac->ops.init_hw = e1000_init_hw_82540;
198 mac
330 struct e1000_mac_info *mac = &hw->mac; local
462 struct e1000_mac_info *mac = &hw->mac; local
[all...]
H A De1000_82542.c102 struct e1000_mac_info *mac = &hw->mac; local
110 mac->mta_reg_count = 128;
112 mac->rar_entry_count = E1000_RAR_ENTRIES;
117 mac->ops.get_bus_info = e1000_get_bus_info_82542;
119 mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci;
121 mac->ops.reset_hw = e1000_reset_hw_82542;
123 mac->ops.init_hw = e1000_init_hw_82542;
125 mac->ops.setup_link = e1000_setup_link_82542;
127 mac
245 struct e1000_mac_info *mac = &hw->mac; local
319 struct e1000_mac_info *mac = &hw->mac; local
[all...]
/illumos-gate/usr/src/uts/common/io/qede/579xx/drivers/ecore/
H A Decore_vf_api.h100 * @brief Get port mac address for VF
103 * @param port_mac - destination location for port mac
130 * @param mac
134 bool ecore_vf_check_mac(struct ecore_hwfn *p_hwfn, u8 *mac);
142 * @param p_is_forced - out param which indicate in case mac
145 * @return bool - return true if mac exist and false if
199 static OSAL_INLINE bool ecore_vf_check_mac(struct ecore_hwfn *p_hwfn, u8 *mac) {return false;} argument
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/bridged/
H A Drstp.c103 get_port_mac(int port_index, unsigned char *mac) argument
111 (void) memcpy(mac, pd->mac_addr, ETHERADDRL);
450 unsigned char mac[ETHERADDRL]; local
457 STP_IN_get_bridge_id(port->vlan_id, &prio, mac);
458 if (memcmp(port->mac_addr, mac, ETHERADDRL) == 0) {
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dwpa_enc.c135 unsigned char *data, unsigned int data_len, unsigned char *mac)
138 (void) HMAC(EVP_sha1(), key, key_len, data, data_len, mac, &mac_len); local
144 unsigned char *addr[], unsigned int *len, unsigned char *mac)
161 hmac_sha1(key, key_len, buf, buf_len, mac);
242 uint8_t *addr[], size_t *len, uint8_t *mac)
259 hmac_md5(key, key_len, buf, buf_len, mac);
266 size_t data_len, uint8_t *mac)
269 (void) HMAC(EVP_md5(), key, key_len, data, data_len, mac, &mac_len); local
134 hmac_sha1(unsigned char *key, unsigned int key_len, unsigned char *data, unsigned int data_len, unsigned char *mac) argument
143 hmac_sha1_vector(unsigned char *key, unsigned int key_len, size_t num_elem, unsigned char *addr[], unsigned int *len, unsigned char *mac) argument
241 hmac_md5_vector(uint8_t *key, size_t key_len, size_t num_elem, uint8_t *addr[], size_t *len, uint8_t *mac) argument
265 hmac_md5(uint8_t *key, size_t key_len, uint8_t *data, size_t data_len, uint8_t *mac) argument
/illumos-gate/usr/src/lib/udapl/udapl_tavor/common/
H A Ddapl_name_service.c358 uchar_t *mac; local
406 mac = (uchar_t *)LLADDR(&ar.xarp_ha);
414 &((ipoib_mac_t *)mac)->ipoib_gidpref, sizeof (ib_gid_t));
431 "%02x", (int)mac[i] & 0xff);
450 uchar_t *mac; local
497 mac = (uchar_t *)lifr.lifr_nd.lnr_hdw_addr;
502 &((ipoib_mac_t *)mac)->ipoib_gidpref, sizeof (ib_gid_t));
519 "%02x", (int)mac[i] & 0xff);
/illumos-gate/usr/src/uts/common/io/aggr/
H A Daggr_ctl.c142 uchar_t *mac, boolean_t mac_fixed, boolean_t force, uint32_t policy,
153 bcopy(mac, grp.lg_mac, ETHERADDRL);
171 aggr_ioc_info_new_port(void *arg, datalink_id_t linkid, uchar_t *mac, argument
181 bcopy(mac, port.lp_mac, ETHERADDRL);
141 aggr_ioc_info_new_grp(void *arg, datalink_id_t linkid, uint32_t key, uchar_t *mac, boolean_t mac_fixed, boolean_t force, uint32_t policy, uint32_t nports, aggr_lacp_mode_t lacp_mode, aggr_lacp_timer_t lacp_timer) argument
/illumos-gate/usr/src/uts/common/io/chxge/com/
H A Dvsc7321.c242 struct cmac *mac; local
246 mac = t1_os_malloc_wait_zero(sizeof(*mac) + sizeof(cmac_instance));
247 if (!mac) return NULL;
249 mac->ops = &vsc7321_ops;
250 mac->instance = (cmac_instance *)(mac + 1);
252 mac->adapter = adapter;
253 mac->instance->index = index;
275 t1_os_free((void *)mac, sizeo
286 mac_intr_handler(struct cmac *mac) argument
292 mac_intr_enable(struct cmac *mac) argument
298 mac_intr_disable(struct cmac *mac) argument
304 mac_intr_clear(struct cmac *mac) argument
311 mac_set_address(struct cmac* mac, u8 addr[6]) argument
329 mac_get_address(struct cmac *mac, u8 addr[6]) argument
347 mac_reset(struct cmac *mac) argument
357 mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm) argument
364 mac_set_mtu(struct cmac *mac, int mtu) argument
370 mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex, int fc) argument
377 mac_enable(struct cmac *mac, int which) argument
391 mac_disable(struct cmac *mac, int which) argument
418 mac_update_statistics(struct cmac *mac, int flag) argument
424 mac_destroy(struct cmac *mac) argument
[all...]
/illumos-gate/usr/src/uts/common/io/xge/hal/xgehal/
H A Dxgehal-mgmtaux.c1565 xge_hal_mac_config_t *mac; local
1680 mac= &dev_config->mac;
1683 mac->tmac_util_period, "%u");
1685 mac->rmac_util_period, "%u");
1687 mac->rmac_bcast_en, "%u");
1689 mac->rmac_pause_gen_en, "%d");
1691 mac->rmac_pause_rcv_en, "%d");
1693 mac->rmac_pause_time, "%u");
1695 mac
[all...]

Completed in 365 milliseconds

1234567