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

1234567

/illumos-gate/usr/src/boot/sys/boot/arm/at91/boot2/
H A Dcentipad_board.c36 unsigned char mac[6] = { 0x42, 0x53, 0x44, 0, 1, 1 }; variable
47 ReadEEPROM(12 * 1024 + 4, mac, 6);
49 printf("MAC %x:%x:%x:%x:%x:%x\n", mac[0],
50 mac[1], mac[2], mac[3], mac[4], mac[5]);
59 EMAC_SetMACAddress(mac);
H A Dkb920x_board.c36 unsigned char mac[6] = { 0x42, 0x53, 0x44, 0, 0, 1 }; variable
46 ReadEEPROM(12 * 1024 + 4, mac, 6);
47 printf("MAC %x:%x:%x:%x:%x:%x\n", mac[0],
48 mac[1], mac[2], mac[3], mac[4], mac[5]);
57 EMAC_SetMACAddress(mac);
H A Dbwct_board.c14 unsigned char mac[6] = { 0x00, 0x0e, 0x42, 0x02, 0x00, 0x28 }; variable
111 printf("MAC %x:%x:%x:%x:%x:%x\n", mac[0],
112 mac[1], mac[2], mac[3], mac[4], mac[5]);
114 EMAC_SetMACAddress(mac);
/illumos-gate/usr/src/boot/sys/boot/arm/at91/libat91/
H A Demac_init.c73 EMAC_SetMACAddress(unsigned char mac[6]) argument
81 memcpy(localMACAddr, mac, 6);
82 localMAClow = (mac[3] << 24) | (mac[2] << 16) | (mac[1] << 8) | mac[0];
83 localMAChigh = (mac[5] << 8) | mac[4];
/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/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/cmd/mandoc/
H A Dman.c166 char mac[5]; local
177 mac[i++] = buf[offs++];
179 mac[i] = '\0';
181 tok = (i > 0 && i < 4) ? man_hash_find(mac) : TOKEN_NONE;
H A Dmdoc.c339 char mac[5]; local
350 mac[i++] = buf[offs++];
352 mac[i] = '\0';
354 tok = (i > 1 && i < 4) ? mdoc_hash_find(mac) : TOKEN_NONE;
/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/fs/smbclnt/netsmb/
H A Dsmb_sign.c90 uchar_t mac[16]; local
170 digest.cd_length = sizeof (mac);
172 digest.cd_raw.iov_base = (char *)mac;
173 digest.cd_raw.iov_len = sizeof (mac);
180 * (first 8 bytes of the mac)
183 bcopy(mac, signature, SMBSIGLEN);
247 SMBSDEBUG("no mac key\n");
/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/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/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/boot/sys/boot/arm/at91/bootiic/
H A Dloader_prompt.c262 // "m <mac address 12 34 56 78 9a bc>
263 // set mac address using 6 byte values
264 unsigned char mac[6]; local
268 mac[i] = p_ASCIIToHex(argv[i + 1]);
269 EMAC_SetMACAddress(mac);
/illumos-gate/usr/src/boot/sys/boot/arm/at91/bootspi/
H A Dloader_prompt.c245 // "m <mac address 12 34 56 78 9a bc>
246 // set mac address using 6 byte values
247 unsigned char mac[6]; local
251 mac[i] = p_ASCIIToHex(argv[i + 1]);
252 EMAC_SetMACAddress(mac);

Completed in 562 milliseconds

1234567