Symbol: mac
usr/src/boot/i386/libi386/pxe.c
392
uint8_t *mac;
usr/src/boot/i386/libi386/pxe.c
419
mac = undi_info_p->CurrentNodeAddress;
usr/src/boot/i386/libi386/pxe.c
421
mac = undi_info_p->PermNodeAddress;
usr/src/boot/i386/libi386/pxe.c
425
desc->myea[i] = mac[i];
usr/src/cmd/bhyve/common/pci_e82545.c
2344
const char *mac;
usr/src/cmd/bhyve/common/pci_e82545.c
2383
mac = get_config_value_node(nvl, "mac");
usr/src/cmd/bhyve/common/pci_e82545.c
2384
if (mac != NULL) {
usr/src/cmd/bhyve/common/pci_e82545.c
2385
err = net_parsemac(mac, sc->esc_mac.octet);
usr/src/cmd/bhyve/common/pci_virtio_viona.c
426
ether_addr_t mac;
usr/src/cmd/bhyve/common/pci_virtio_viona.c
428
if (!iov_bunch_copy(iob, &mac, sizeof (mac)))
usr/src/cmd/bhyve/common/pci_virtio_viona.c
431
DPRINTF(" [%2d] %s", i, ether_ntoa((struct ether_addr *)mac));
usr/src/cmd/checknr/checknr.c
160
static void chkcmd(char *line, char *mac);
usr/src/cmd/checknr/checknr.c
161
static void nomatch(char *mac);
usr/src/cmd/checknr/checknr.c
164
static void checkknown(char *mac);
usr/src/cmd/checknr/checknr.c
166
static void addmac(char *mac);
usr/src/cmd/checknr/checknr.c
167
static int binsrch(char *mac);
usr/src/cmd/checknr/checknr.c
283
char mac[5]; /* The current macro or nroff command */
usr/src/cmd/checknr/checknr.c
292
(void) strncpy(mac, line+1, 4);
usr/src/cmd/checknr/checknr.c
293
if (isspace(mac[0])) {
usr/src/cmd/checknr/checknr.c
296
} else if (isspace(mac[1])) {
usr/src/cmd/checknr/checknr.c
297
mac[1] = 0;
usr/src/cmd/checknr/checknr.c
298
} else if (isspace(mac[2])) {
usr/src/cmd/checknr/checknr.c
299
mac[2] = 0;
usr/src/cmd/checknr/checknr.c
300
} else if (mac[0] != '\\' || mac[1] != '\"') {
usr/src/cmd/checknr/checknr.c
308
checkknown(mac);
usr/src/cmd/checknr/checknr.c
313
if (eq(mac, "de"))
usr/src/cmd/checknr/checknr.c
316
chkcmd(line, mac);
usr/src/cmd/checknr/checknr.c
409
chkcmd(char *line, char *mac)
usr/src/cmd/checknr/checknr.c
416
if (stktop >= 0 && eq(mac, br[stk[stktop].opno].clbr))
usr/src/cmd/checknr/checknr.c
421
if (eq(mac, br[i].opbr)) {
usr/src/cmd/checknr/checknr.c
436
if (eq(mac, br[i].clbr)) {
usr/src/cmd/checknr/checknr.c
437
nomatch(mac);
usr/src/cmd/checknr/checknr.c
445
nomatch(char *mac)
usr/src/cmd/checknr/checknr.c
455
if (eq(mac, br[stk[j].opno].clbr)) {
usr/src/cmd/checknr/checknr.c
488
(void) printf(gettext("Unmatched .%s\n"), mac);
usr/src/cmd/checknr/checknr.c
508
checkknown(char *mac)
usr/src/cmd/checknr/checknr.c
511
if (eq(mac, "."))
usr/src/cmd/checknr/checknr.c
513
if (binsrch(mac) >= 0)
usr/src/cmd/checknr/checknr.c
515
if (mac[0] == '\\' && mac[1] == '"') /* comments */
usr/src/cmd/checknr/checknr.c
519
(void) printf(gettext("Unknown command: .%s\n"), mac);
usr/src/cmd/checknr/checknr.c
528
char *mac;
usr/src/cmd/checknr/checknr.c
531
mac = line+4;
usr/src/cmd/checknr/checknr.c
532
while (isspace(*mac))
usr/src/cmd/checknr/checknr.c
533
mac++;
usr/src/cmd/checknr/checknr.c
534
if (*mac == 0) {
usr/src/cmd/checknr/checknr.c
539
mac[2] = 0;
usr/src/cmd/checknr/checknr.c
540
if (isspace(mac[1]) || mac[1] == '\\')
usr/src/cmd/checknr/checknr.c
541
mac[1] = 0;
usr/src/cmd/checknr/checknr.c
547
addmac(mac);
usr/src/cmd/checknr/checknr.c
558
addmac(char *mac)
usr/src/cmd/checknr/checknr.c
562
if (binsrch(mac) >= 0) { /* it's OK to redefine something */
usr/src/cmd/checknr/checknr.c
564
(void) printf("binsrch(%s) -> already in table\n", mac);
usr/src/cmd/checknr/checknr.c
570
printf("binsrch(%s) -> %d\n", mac, slot);
usr/src/cmd/checknr/checknr.c
578
(void) strcpy(*loc, mac);
usr/src/cmd/checknr/checknr.c
592
binsrch(char *mac)
usr/src/cmd/checknr/checknr.c
604
d = p[0] - mac[0];
usr/src/cmd/checknr/checknr.c
606
d = p[1] - mac[1];
usr/src/cmd/chmod/chmod.c
182
while ((c = getopt(mac, mav, "Rf@:")) != EOF) {
usr/src/cmd/chmod/chmod.c
215
mac -= optind;
usr/src/cmd/chmod/chmod.c
217
if ((mac >= 2) && (mav[0][0] == 'A')) {
usr/src/cmd/chmod/chmod.c
226
} else if ((mac >= 2) && (mav[0][0] == 'S')) {
usr/src/cmd/chmod/chmod.c
236
if (mac < 2) {
usr/src/cmd/chmod/chmod.c
251
for (i = 1; i < mac; i++) {
usr/src/cmd/chmod/chmod.c
555
for (i = mac = 0;
usr/src/cmd/chmod/chmod.c
571
if ((mav[mac++] = strdup("--")) == NULL) {
usr/src/cmd/chmod/chmod.c
578
if ((mav[mac++] = strdup(av[i])) == NULL) {
usr/src/cmd/chmod/chmod.c
584
mav[mac] = (char *)NULL;
usr/src/cmd/chmod/chmod.c
81
static int mac; /* Alternate to argc (for parseargs) */
usr/src/cmd/cmd-inet/usr.lib/bridged/rstp.c
103
get_port_mac(int port_index, unsigned char *mac)
usr/src/cmd/cmd-inet/usr.lib/bridged/rstp.c
111
(void) memcpy(mac, pd->mac_addr, ETHERADDRL);
usr/src/cmd/cmd-inet/usr.lib/bridged/rstp.c
450
unsigned char mac[ETHERADDRL];
usr/src/cmd/cmd-inet/usr.lib/bridged/rstp.c
457
STP_IN_get_bridge_id(port->vlan_id, &prio, mac);
usr/src/cmd/cmd-inet/usr.lib/bridged/rstp.c
458
if (memcmp(port->mac_addr, mac, ETHERADDRL) == 0) {
usr/src/cmd/cmd-inet/usr.lib/wpad/wpa_enc.c
135
unsigned char *data, unsigned int data_len, unsigned char *mac)
usr/src/cmd/cmd-inet/usr.lib/wpad/wpa_enc.c
138
(void) HMAC(EVP_sha1(), key, key_len, data, data_len, mac, &mac_len);
usr/src/cmd/cmd-inet/usr.lib/wpad/wpa_enc.c
144
unsigned char *addr[], unsigned int *len, unsigned char *mac)
usr/src/cmd/cmd-inet/usr.lib/wpad/wpa_enc.c
161
hmac_sha1(key, key_len, buf, buf_len, mac);
usr/src/cmd/cmd-inet/usr.lib/wpad/wpa_enc.c
242
uint8_t *addr[], size_t *len, uint8_t *mac)
usr/src/cmd/cmd-inet/usr.lib/wpad/wpa_enc.c
259
hmac_md5(key, key_len, buf, buf_len, mac);
usr/src/cmd/cmd-inet/usr.lib/wpad/wpa_enc.c
266
size_t data_len, uint8_t *mac)
usr/src/cmd/cmd-inet/usr.lib/wpad/wpa_enc.c
269
(void) HMAC(EVP_md5(), key, key_len, data, data_len, mac, &mac_len);
usr/src/cmd/cmd-inet/usr.sbin/snoop/ntp.h
302
uchar_t mac[MAC_OCTETS_MAX];
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_capture.c
633
int vers, mac;
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_capture.c
643
mac = htonl(interface->mac_type);
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_capture.c
644
if (nwrite(fd, &mac, sizeof (int)) == -1)
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_ntp.c
220
hbuf[j++] = hexstr[ntp->mac[i] >> 4 & 0x0f];
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_ntp.c
221
hbuf[j++] = hexstr[ntp->mac[i] & 0x0f];
usr/src/cmd/cmd-inet/usr.sbin/snoop/snoop_ntp.c
224
(void) sprintf(get_line((char *)ntp->mac -
usr/src/cmd/cxgbetool/cudbg_view.c
2472
T6_MODREGS(mac),
usr/src/cmd/cxgbetool/cudbg_view.c
2516
T5_MODREGS(mac),
usr/src/cmd/cxgbetool/cxgbetool.c
331
T5_MODREGS(mac),
usr/src/cmd/cxgbetool/cxgbetool.c
373
T6_MODREGS(mac),
usr/src/cmd/deroff/deroff.c
151
mac = MM;
usr/src/cmd/deroff/deroff.c
153
mac = MS;
usr/src/cmd/deroff/deroff.c
522
if (mac == MM) {
usr/src/cmd/deroff/deroff.c
542
} else if (msflag && (mac == MM) && (c1 == 'H') &&
usr/src/cmd/deroff/deroff.c
545
} else if (msflag && (mac == MM) && (c2 == 'L')) {
usr/src/cmd/deroff/deroff.c
82
static int mac = MM;
usr/src/cmd/dlutil/dlsend.c
104
if ((mac = _link_aton(argv[1], &maclen)) == NULL) {
usr/src/cmd/dlutil/dlsend.c
142
ret = dlpi_send(dh, mac, maclen, &msg, sizeof (msg), NULL);
usr/src/cmd/dlutil/dlsend.c
65
uchar_t *mac;
usr/src/cmd/file/elf_read.c
419
int mac;
usr/src/cmd/file/elf_read.c
426
mac = EI_Ehdr.e_machine;
usr/src/cmd/file/elf_read.c
500
mac);
usr/src/cmd/hal/addons/network-devices/common.c
101
addr_to_string(char *prefix, uchar_t *mac, int mac_len, char *buf, int buf_len)
usr/src/cmd/hal/addons/network-devices/common.c
109
n += sprintf(buf + n, "%2.2X", *mac++);
usr/src/cmd/mandoc/roff.c
2008
const char *mac;
usr/src/cmd/mandoc/roff.c
2018
mac = cp;
usr/src/cmd/mandoc/roff.c
2022
r->current_string = roff_getstrn(r, mac, maclen, &deftype);
usr/src/cmd/mandoc/roff.c
2031
t = roffhash_find(r->reqtab, mac, maclen);
usr/src/cmd/mandoc/roff.c
2038
roff_setstrn(&r->strtab, mac, maclen, "", 0, 0);
usr/src/cmd/mandoc/roff.c
2039
roff_setstrn(&r->rentab, mac, maclen, NULL, 0, 0);
usr/src/cmd/mandoc/roff.c
3357
const char *bef_pr, *bef_nl, *mac, *aft_nl, *aft_pr;
usr/src/cmd/mandoc/roff.c
3391
mac = ".EQ";
usr/src/cmd/mandoc/roff.c
3393
mac = ".EN";
usr/src/cmd/mandoc/roff.c
3406
bef_pr, bef_nl, mac, aft_nl, aft_pr, cp2) + 1;
usr/src/cmd/sendmail/src/macro.c
397
macdefine_tagged(mac, vclass, id, value, file, line, grp)
usr/src/cmd/sendmail/src/macro.c
399
macdefine(mac, vclass, id, value)
usr/src/cmd/sendmail/src/macro.c
401
MACROS_T *mac;
usr/src/cmd/sendmail/src/macro.c
419
mac->mac_table[id] == NULL ? "" : "re", macname(id));
usr/src/cmd/sendmail/src/macro.c
424
if (mac->mac_rpool == NULL)
usr/src/cmd/sendmail/src/macro.c
428
if (mac->mac_table[id] != NULL &&
usr/src/cmd/sendmail/src/macro.c
429
bitnset(id, mac->mac_allocated))
usr/src/cmd/sendmail/src/macro.c
430
freeit = mac->mac_table[id];
usr/src/cmd/sendmail/src/macro.c
436
clrbitn(id, mac->mac_allocated);
usr/src/cmd/sendmail/src/macro.c
445
setbitn(id, mac->mac_allocated);
usr/src/cmd/sendmail/src/macro.c
447
mac->mac_table[id] = newvalue;
usr/src/cmd/sendmail/src/macro.c
456
newvalue = sm_rpool_strdup_x(mac->mac_rpool, value);
usr/src/cmd/sendmail/src/macro.c
457
mac->mac_table[id] = newvalue;
usr/src/cmd/sendmail/src/macro.c
485
macset(mac, i, value)
usr/src/cmd/sendmail/src/macro.c
486
MACROS_T *mac;
usr/src/cmd/sendmail/src/macro.c
499
mac->mac_table[i] = value;
usr/src/cmd/sendmail/src/sendmail.h
1110
# define macdefine(mac,c,id,v) \
usr/src/cmd/sendmail/src/sendmail.h
1111
macdefine_tagged(mac,c,id,v,__FILE__,__LINE__,sm_heap_group())
usr/src/cmd/sendmail/src/sendmail.h
1119
# define macdefine_tagged(mac,c,id,v,file,line,grp) macdefine(mac,c,id,v)
usr/src/cmd/sendmail/src/sendmail.h
1122
#define macget(mac, i) (mac)->mac_table[i]
usr/src/cmd/sendmail/src/tls.c
1178
tls_get_info(ssl, srv, host, mac, certreq)
usr/src/cmd/sendmail/src/tls.c
1182
MACROS_T *mac;
usr/src/cmd/sendmail/src/tls.c
1195
macdefine(mac, A_TEMP, macid("{cipher}"),
usr/src/cmd/sendmail/src/tls.c
1199
macdefine(mac, A_TEMP, macid("{cipher_bits}"), bitstr);
usr/src/cmd/sendmail/src/tls.c
1201
macdefine(mac, A_TEMP, macid("{alg_bits}"), bitstr);
usr/src/cmd/sendmail/src/tls.c
1205
macdefine(mac, A_TEMP, macid("{tls_version}"), s);
usr/src/cmd/sendmail/src/tls.c
1224
macdefine(mac, A_TEMP, macid("{cert_subject}"),
usr/src/cmd/sendmail/src/tls.c
1227
macdefine(mac, A_TEMP, macid("{cert_issuer}"),
usr/src/cmd/sendmail/src/tls.c
1268
macdefine(mac, A_TEMP, macid("{cn_subject}"),
usr/src/cmd/sendmail/src/tls.c
1273
macdefine(mac, A_TEMP, macid("{cn_issuer}"),
usr/src/cmd/sendmail/src/tls.c
1289
macdefine(mac, A_TEMP, macid("{cert_md5}"), md5h);
usr/src/cmd/sendmail/src/tls.c
1292
macdefine(mac, A_TEMP, macid("{cert_md5}"), "");
usr/src/cmd/sendmail/src/tls.c
1296
macdefine(mac, A_PERM, macid("{cert_subject}"), "");
usr/src/cmd/sendmail/src/tls.c
1297
macdefine(mac, A_PERM, macid("{cert_issuer}"), "");
usr/src/cmd/sendmail/src/tls.c
1298
macdefine(mac, A_PERM, macid("{cn_subject}"), "");
usr/src/cmd/sendmail/src/tls.c
1299
macdefine(mac, A_PERM, macid("{cn_issuer}"), "");
usr/src/cmd/sendmail/src/tls.c
1300
macdefine(mac, A_TEMP, macid("{cert_md5}"), "");
usr/src/cmd/sendmail/src/tls.c
1321
macdefine(mac, A_PERM, macid("{verify}"), s);
usr/src/cmd/sendmail/src/tls.c
1330
vers = macget(mac, macid("{tls_version}"));
usr/src/cmd/sendmail/src/tls.c
1331
cbits = macget(mac, macid("{cipher_bits}"));
usr/src/cmd/sendmail/src/tls.c
1332
algbits = macget(mac, macid("{alg_bits}"));
usr/src/cmd/sendmail/src/tls.c
1333
s1 = macget(mac, macid("{verify}"));
usr/src/cmd/sendmail/src/tls.c
1334
s2 = macget(mac, macid("{cipher}"));
usr/src/cmd/sendmail/src/tls.c
1353
s1 = macget(mac, macid("{cert_subject}"));
usr/src/cmd/sendmail/src/tls.c
1354
s2 = macget(mac, macid("{cert_issuer}"));
usr/src/cmd/vi/misc/ctags.c
1382
i = mac = fflag = 0; /* proper initializations */
usr/src/cmd/vi/misc/ctags.c
1427
if ((mav[mac] = malloc((size_t)CPFLAG)) ==
usr/src/cmd/vi/misc/ctags.c
1432
(void) sprintf(mav[mac], "-%c", av[i][a]);
usr/src/cmd/vi/misc/ctags.c
1433
++mac;
usr/src/cmd/vi/misc/ctags.c
1437
if ((mav[mac] = malloc(sz + 1)) == (char *)NULL) {
usr/src/cmd/vi/misc/ctags.c
1441
(void) strcpy(mav[mac], av[i]);
usr/src/cmd/vi/misc/ctags.c
1442
++mac;
usr/src/cmd/vi/misc/ctags.c
1446
mav[mac] = (char *)NULL;
usr/src/cmd/vi/misc/ctags.c
156
static int mac; /* our modified argc, after parseargs() */
usr/src/cmd/vi/misc/ctags.c
199
while ((i = getopt(mac, mav, "aBFtuvwxf:")) != EOF) {
usr/src/cmd/vi/misc/ctags.c
248
if (optind == mac) {
usr/src/cmd/vi/misc/ctags.c
257
for (file_num = optind; file_num < mac; file_num++)
usr/src/cmd/vi/misc/ctags.c
265
for (i = 1; i < mac; i++) {
usr/src/cmd/xargs/xargs.c
1093
for (i = mac = cflag = 0; (av[i] != NULL) && i < ac; i++, mac++) {
usr/src/cmd/xargs/xargs.c
1094
if ((mav[mac] = strdup(av[i])) == NULL) {
usr/src/cmd/xargs/xargs.c
1126
mav[++mac] = strdup(def);
usr/src/cmd/xargs/xargs.c
1129
mav[mac][2] = '\0';
usr/src/cmd/xargs/xargs.c
1130
mav[++mac] = strdup(&av[i][2]);
usr/src/cmd/xargs/xargs.c
1132
if (mav[mac] == NULL) {
usr/src/cmd/xargs/xargs.c
1165
mav[mac][2] = '\0';
usr/src/cmd/xargs/xargs.c
1168
++mac; /* inc to next mod'd arg */
usr/src/cmd/xargs/xargs.c
1169
if ((mav[mac] = strdup(&av[i][2])) ==
usr/src/cmd/xargs/xargs.c
1177
mac++;
usr/src/cmd/xargs/xargs.c
1180
mav[mac] = NULL;
usr/src/cmd/xargs/xargs.c
1183
if ((mav[mac] = strdup(av[i])) == NULL) {
usr/src/cmd/xargs/xargs.c
1216
mav[mac] = NULL;
usr/src/cmd/xargs/xargs.c
134
static int mac; /* modified argc, after parsing */
usr/src/cmd/xargs/xargs.c
192
while ((c = getopt(mac, mav, "0tpe:E:I:i:L:l:n:P:s:x")) != EOF) {
usr/src/cmd/xargs/xargs.c
379
mac -= optind; /* dec arg count by what we've processed */
usr/src/cmd/xargs/xargs.c
388
if (mac <= 0) { /* if there're no more args to process, */
usr/src/cmd/xargs/xargs.c
401
while ((OK == TRUE) && (mac-- > 0)) {
usr/src/cmd/zstreamdump/zstreamdump.c
178
char mac[ZIO_DATA_MAC_LEN * 2 + 1];
usr/src/cmd/zstreamdump/zstreamdump.c
468
sprintf_bytes(mac, drrw->drr_mac,
usr/src/cmd/zstreamdump/zstreamdump.c
490
mac);
usr/src/cmd/zstreamdump/zstreamdump.c
573
sprintf_bytes(mac, drrs->drr_mac,
usr/src/cmd/zstreamdump/zstreamdump.c
590
mac);
usr/src/cmd/zstreamdump/zstreamdump.c
642
sprintf_bytes(mac, drror->drr_mac,
usr/src/cmd/zstreamdump/zstreamdump.c
653
mac);
usr/src/grub/grub-0.97/netboot/forcedeth.c
662
u32 mac[2];
usr/src/grub/grub-0.97/netboot/forcedeth.c
664
mac[0] =
usr/src/grub/grub-0.97/netboot/forcedeth.c
667
mac[1] =
usr/src/grub/grub-0.97/netboot/forcedeth.c
670
writel(mac[0], base + NvRegMacAddrA);
usr/src/grub/grub-0.97/netboot/forcedeth.c
671
writel(mac[1], base + NvRegMacAddrB);
usr/src/grub/grub-0.97/netboot/ns83820.c
587
static void ns83820_getmac(struct nic *nic __unused, u8 * mac)
usr/src/grub/grub-0.97/netboot/ns83820.c
597
*mac++ = data;
usr/src/grub/grub-0.97/netboot/ns83820.c
598
*mac++ = data >> 8;
usr/src/grub/grub-0.97/netboot/pxe.h
65
#define MAC_ARGS(mac) \
usr/src/grub/grub-0.97/netboot/pxe.h
66
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]
usr/src/grub/grub-0.97/netboot/tlan.c
1397
void TLan_SetMac(struct nic *nic __unused, int areg, char *mac)
usr/src/grub/grub-0.97/netboot/tlan.c
1403
if (mac != NULL) {
usr/src/grub/grub-0.97/netboot/tlan.c
1406
mac[i]);
usr/src/grub/grub-0.97/netboot/tlan.c
89
static void TLan_SetMac(struct nic *nic __unused, int areg, char *mac);
usr/src/lib/fm/topo/modules/common/nic/topo_nic.c
114
nic_port_mac_t mac;
usr/src/lib/fm/topo/modules/common/nic/topo_nic.c
193
mac.npm_mac[0] = '\0';
usr/src/lib/fm/topo/modules/common/nic/topo_nic.c
194
mac.npm_valid = B_FALSE;
usr/src/lib/fm/topo/modules/common/nic/topo_nic.c
195
mac.npm_mod = mod;
usr/src/lib/fm/topo/modules/common/nic/topo_nic.c
197
(void) dladm_walk_macaddr(handle, linkid, &mac,
usr/src/lib/fm/topo/modules/common/nic/topo_nic.c
247
if (mac.npm_valid) {
usr/src/lib/fm/topo/modules/common/nic/topo_nic.c
250
mac.npm_mac, &err) != 0) {
usr/src/lib/fm/topo/modules/common/nic/topo_nic.c
83
nic_port_mac_t *mac = arg;
usr/src/lib/fm/topo/modules/common/nic/topo_nic.c
86
topo_mod_dprintf(mac->npm_mod,
usr/src/lib/fm/topo/modules/common/nic/topo_nic.c
91
(void) snprintf(mac->npm_mac, sizeof (mac->npm_mac),
usr/src/lib/fm/topo/modules/common/nic/topo_nic.c
95
mac->npm_valid = B_TRUE;
usr/src/lib/libdladm/common/libdlaggr.c
57
#define VALID_PORT_MAC(mac) \
usr/src/lib/libdladm/common/libdlaggr.c
58
(((mac) != NULL) && (bcmp(zero_mac, (mac), ETHERADDRL) != 0) && \
usr/src/lib/libdladm/common/libdlaggr.c
59
(!((mac)[0] & 0x01)))
usr/src/lib/libdladm/common/libdlaggr.c
875
dladm_aggr_macaddr2str(const unsigned char *mac, char *buf)
usr/src/lib/libdladm/common/libdlaggr.c
882
if (bcmp(unknown_mac, mac, ETHERADDRL) == 0)
usr/src/lib/libdladm/common/libdlaggr.c
885
return (_link_ntoa(mac, buf, ETHERADDRL, IFT_OTHER));
usr/src/lib/libdladm/common/libdllink.c
264
char mac[MAXNAMELEN];
usr/src/lib/libdladm/common/libdllink.c
266
(void) snprintf(mac, MAXNAMELEN, "%s%d",
usr/src/lib/libdladm/common/libdllink.c
285
if (strcmp(dmdp->dm_name, mac) == 0)
usr/src/lib/libdladm/common/libdllink.c
295
(void) strlcpy(dmdp->dm_name, mac, MAXNAMELEN);
usr/src/lib/libdladm/common/libdlvnic.c
381
i_dladm_vnic_vrrp_mac(vrid_t vrid, int af, uint8_t *mac, uint_t maclen)
usr/src/lib/libdladm/common/libdlvnic.c
388
mac[0] = mac[1] = mac[3] = 0x0;
usr/src/lib/libdladm/common/libdlvnic.c
389
mac[2] = 0x5e;
usr/src/lib/libdladm/common/libdlvnic.c
390
mac[4] = (af == AF_INET) ? 0x01 : 0x02;
usr/src/lib/libdladm/common/libdlvnic.c
391
mac[5] = vrid;
usr/src/lib/libdladm/common/libdlvnic.c
663
dladm_vnic_macaddr2str(const uchar_t *mac, char *buf)
usr/src/lib/libdladm/common/libdlvnic.c
670
if (bcmp(unknown_mac, mac, ETHERADDRL) == 0)
usr/src/lib/libdladm/common/libdlvnic.c
673
return (_link_ntoa(mac, buf, ETHERADDRL, IFT_OTHER));
usr/src/lib/libjedec/common/libjedec_spd_ddr3.c
514
const uint8_t mac = SPD_DDR3_MAC_MAC(data);
usr/src/lib/libjedec/common/libjedec_spd_ddr3.c
518
spd_insert_map(si, SPD_KEY_MAC, mac, spd_ddr3_mac_map,
usr/src/lib/libjedec/common/libjedec_spd_ddr4.c
250
const uint8_t mac = SPD_DDR4_OPT_FEAT_MAC(data);
usr/src/lib/libjedec/common/libjedec_spd_ddr4.c
254
spd_insert_map(si, SPD_KEY_MAC, mac, spd_ddr4_mac_map,
usr/src/lib/libjedec/common/libjedec_spd_lp4.c
216
const uint8_t mac = SPD_DDR4_OPT_FEAT_MAC(data);
usr/src/lib/libjedec/common/libjedec_spd_lp4.c
220
spd_insert_map(si, SPD_KEY_MAC, mac, spd_lp4_mac_map,
usr/src/lib/librstp/common/stp_in.c
1004
(void) memcpy(mac, this->BrId.addr, 6);
usr/src/lib/librstp/common/stp_in.c
997
STP_IN_get_bridge_id(int vlan_id, unsigned short *priority, unsigned char *mac)
usr/src/lib/librstp/common/stp_in.h
225
STP_IN_get_bridge_id(int vlan_id, unsigned short *priority, unsigned char *mac);
usr/src/lib/librstp/common/stp_vectors.h
45
void (*get_port_mac) (IN int port_index, OUT unsigned char* mac);
usr/src/lib/librstp/common/transmit.c
102
STP_OUT_get_port_mac (port_index, bpdu_packet.mac.src_mac);
usr/src/lib/librstp/common/transmit.c
47
MAC_HEADER_T mac;
usr/src/lib/librstp/common/transmit.c
53
MAC_HEADER_T mac;
usr/src/lib/librstp/common/transmit.c
60
MAC_HEADER_T mac;
usr/src/lib/libzpool/common/kernel.c
702
crypto_data_t *mac, crypto_call_req_t *cr)
usr/src/lib/pkcs11/pkcs11_softtoken/common/softMAC.h
108
#define SOFT_MAC_FINAL(HASH, mac_ctx, mac) \
usr/src/lib/pkcs11/pkcs11_softtoken/common/softMAC.h
109
HASH##Final((mac), &((mac_ctx)->hc_icontext)); \
usr/src/lib/pkcs11/pkcs11_softtoken/common/softMAC.h
110
HASH##Update(&((mac_ctx)->hc_ocontext), (mac), HASH##_HASH_SIZE);\
usr/src/lib/pkcs11/pkcs11_softtoken/common/softMAC.h
111
HASH##Final((mac), &((mac_ctx)->hc_ocontext));
usr/src/lib/pkcs11/pkcs11_softtoken/common/softMAC.h
113
#define SOFT_MAC_FINAL_2(HASH, mac_ctx, mac) \
usr/src/lib/pkcs11/pkcs11_softtoken/common/softMAC.h
114
SHA2Final((mac), &((mac_ctx)->hc_icontext)); \
usr/src/lib/pkcs11/pkcs11_softtoken/common/softMAC.h
115
SHA2Update(&((mac_ctx)->hc_ocontext), (mac), HASH##_DIGEST_LENGTH); \
usr/src/lib/pkcs11/pkcs11_softtoken/common/softMAC.h
116
SHA2Final((mac), &((mac_ctx)->hc_ocontext));
usr/src/lib/smbclnt/libfknsmb/common/fksmb_sign_pkcs.c
203
uint8_t *mac, size_t mac_len)
usr/src/lib/smbclnt/libfknsmb/common/fksmb_sign_pkcs.c
228
rv = C_Sign(hssn, data, data_len, mac, &ck_maclen);
usr/src/lib/smbsrv/libfksmbsrv/common/fksmb_sign_pkcs.c
181
uint8_t *mac, size_t mac_len)
usr/src/lib/smbsrv/libfksmbsrv/common/fksmb_sign_pkcs.c
206
rv = C_Sign(hssn, data, data_len, mac, &ck_maclen);
usr/src/lib/udapl/udapl_tavor/common/dapl_name_service.c
358
uchar_t *mac;
usr/src/lib/udapl/udapl_tavor/common/dapl_name_service.c
406
mac = (uchar_t *)LLADDR(&ar.xarp_ha);
usr/src/lib/udapl/udapl_tavor/common/dapl_name_service.c
414
&((ipoib_mac_t *)mac)->ipoib_gidpref, sizeof (ib_gid_t));
usr/src/lib/udapl/udapl_tavor/common/dapl_name_service.c
431
"%02x", (int)mac[i] & 0xff);
usr/src/lib/udapl/udapl_tavor/common/dapl_name_service.c
450
uchar_t *mac;
usr/src/lib/udapl/udapl_tavor/common/dapl_name_service.c
497
mac = (uchar_t *)lifr.lifr_nd.lnr_hdw_addr;
usr/src/lib/udapl/udapl_tavor/common/dapl_name_service.c
502
&((ipoib_mac_t *)mac)->ipoib_gidpref, sizeof (ib_gid_t));
usr/src/lib/udapl/udapl_tavor/common/dapl_name_service.c
519
"%02x", (int)mac[i] & 0xff);
usr/src/lib/varpd/files/common/libvarpd_files.c
255
char *mac;
usr/src/lib/varpd/files/common/libvarpd_files.c
270
if (nvlist_lookup_string(nvl, "dhcp-proxy", &mac) != 0) {
usr/src/lib/varpd/files/common/libvarpd_files.c
275
if (ether_aton_r(mac, addr) == NULL) {
usr/src/lib/varpd/files/common/libvarpd_files.c
481
char *mac, *ipstr;
usr/src/lib/varpd/files/common/libvarpd_files.c
491
mac = nvpair_name(pair);
usr/src/lib/varpd/files/common/libvarpd_files.c
518
if (ether_aton_r(mac, e) == NULL) {
usr/src/lib/varpd/files/common/libvarpd_files.c
537
char macstr[ETHERADDRSTRL], *mac;
usr/src/lib/varpd/files/common/libvarpd_files.c
557
if (nvlist_lookup_string(nvl, "dhcp-proxy", &mac) != 0) {
usr/src/lib/varpd/files/common/libvarpd_files.c
562
if (ether_aton_r(mac, addr) == NULL) {
usr/src/lib/varpd/libvarpd/common/libvarpd_overlay.c
524
libvarpd_inject_varp(varpd_provider_handle_t *vph, const uint8_t *mac,
usr/src/lib/varpd/libvarpd/common/libvarpd_overlay.c
533
(void) libvarpd_overlay_cache_delete(inst, mac);
usr/src/lib/varpd/libvarpd/common/libvarpd_overlay.c
539
bcopy(mac, otc.otc_entry.otce_mac, ETHERADDRL);
usr/src/test/crypto-tests/tests/common/cryptotest_kcf.c
214
crypto_mac_t mac;
usr/src/test/crypto-tests/tests/common/cryptotest_kcf.c
216
bzero(&mac, sizeof (mac));
usr/src/test/crypto-tests/tests/common/cryptotest_kcf.c
217
mac.cm_session = op->hsession;
usr/src/test/crypto-tests/tests/common/cryptotest_kcf.c
218
mac.cm_datalen = op->inlen;
usr/src/test/crypto-tests/tests/common/cryptotest_kcf.c
219
mac.cm_databuf = op->in;
usr/src/test/crypto-tests/tests/common/cryptotest_kcf.c
220
mac.cm_maclen = op->outlen;
usr/src/test/crypto-tests/tests/common/cryptotest_kcf.c
221
mac.cm_macbuf = op->out;
usr/src/test/crypto-tests/tests/common/cryptotest_kcf.c
223
return (kcf_do_ioctl(CRYPTO_MAC, (uint_t *)&mac, "single"));
usr/src/tools/smatch/src/validation/preprocessor/preprocessor4.c
4
mac(foo)
usr/src/uts/common/crypto/api/kcf_dual.c
1032
error = crypto_mac_final(mac_context, mac, NULL);
usr/src/uts/common/crypto/api/kcf_dual.c
1041
pd->pd_sid, NULL, NULL, NULL, ct, mac, NULL, NULL)
usr/src/uts/common/crypto/api/kcf_dual.c
1051
error = KCF_PROV_ENCRYPT_MAC_FINAL(pd, ctx, ct, mac, NULL);
usr/src/uts/common/crypto/api/kcf_dual.c
1055
ctx->cc_session, NULL, NULL, NULL, ct, mac, NULL, NULL);
usr/src/uts/common/crypto/api/kcf_dual.c
1073
crypto_data_t *mac, crypto_data_t *pt, crypto_call_req_t *crq)
usr/src/uts/common/crypto/api/kcf_dual.c
1076
decr_key, mac_tmpl, decr_tmpl, mac, pt, crq, B_FALSE));
usr/src/uts/common/crypto/api/kcf_dual.c
1084
crypto_data_t *mac, crypto_data_t *pt, crypto_call_req_t *crq)
usr/src/uts/common/crypto/api/kcf_dual.c
1087
decr_mech, ct, mac_key, decr_key, mac_tmpl, decr_tmpl, mac, pt,
usr/src/uts/common/crypto/api/kcf_dual.c
1102
crypto_data_t *mac, crypto_data_t *pt, crypto_call_req_t *crq)
usr/src/uts/common/crypto/api/kcf_dual.c
1105
decr_key, mac_tmpl, decr_tmpl, mac, pt, crq, B_TRUE));
usr/src/uts/common/crypto/api/kcf_dual.c
1114
crypto_data_t *mac, crypto_data_t *pt, crypto_call_req_t *crq)
usr/src/uts/common/crypto/api/kcf_dual.c
1117
decr_mech, ct, mac_key, decr_key, mac_tmpl, decr_tmpl, mac, pt,
usr/src/uts/common/crypto/api/kcf_dual.c
1130
crypto_data_t *mac, crypto_data_t *pt, crypto_call_req_t *crq,
usr/src/uts/common/crypto/api/kcf_dual.c
1231
mac_key, mac_tmpl, mac,
usr/src/uts/common/crypto/api/kcf_dual.c
1235
mac_key, mac_tmpl, mac,
usr/src/uts/common/crypto/api/kcf_dual.c
1343
decr_key, ct, mac, pt, spi_mac_tmpl, spi_decr_tmpl,
usr/src/uts/common/crypto/api/kcf_dual.c
1348
ct, mac, pt, spi_mac_tmpl, spi_decr_tmpl,
usr/src/uts/common/crypto/api/kcf_dual.c
1355
KCF_OP_ATOMIC, pd->pd_sid, mac_key, decr_key, ct, mac, pt,
usr/src/uts/common/crypto/api/kcf_dual.c
136
mac, spi_encr_tmpl, spi_mac_tmpl, KCF_SWFP_RHNDL(crq));
usr/src/uts/common/crypto/api/kcf_dual.c
1393
crypto_data_t *mac, crypto_data_t *pt, crypto_call_req_t *crq,
usr/src/uts/common/crypto/api/kcf_dual.c
141
sid, encr_key, mac_key, pt, ct, mac, spi_encr_tmpl,
usr/src/uts/common/crypto/api/kcf_dual.c
1476
&ldecr_mech, decr_key, ct, mac, pt, spi_mac_tmpl,
usr/src/uts/common/crypto/api/kcf_dual.c
1481
ct, mac, pt, spi_mac_tmpl, spi_decr_tmpl,
usr/src/uts/common/crypto/api/kcf_dual.c
1488
KCF_OP_ATOMIC, sid, mac_key, decr_key, ct, mac, pt,
usr/src/uts/common/crypto/api/kcf_dual.c
176
crypto_dual_data_t *ct, crypto_data_t *mac, crypto_call_req_t *crq)
usr/src/uts/common/crypto/api/kcf_dual.c
2063
crypto_mac_decrypt_final(crypto_context_t context, crypto_data_t *mac,
usr/src/uts/common/crypto/api/kcf_dual.c
2093
mac, NULL);
usr/src/uts/common/crypto/api/kcf_dual.c
2109
pd->pd_sid, NULL, NULL, NULL, mac, pt, NULL, NULL)
usr/src/uts/common/crypto/api/kcf_dual.c
2121
error = KCF_PROV_MAC_DECRYPT_FINAL(pd, ctx, mac, pt, NULL);
usr/src/uts/common/crypto/api/kcf_dual.c
2125
ctx->cc_session, NULL, NULL, NULL, mac, pt, NULL, NULL);
usr/src/uts/common/crypto/api/kcf_dual.c
265
(crypto_data_t *)ct, mac, mac_tmpl);
usr/src/uts/common/crypto/api/kcf_dual.c
309
mac_key, mac_tmpl, mac, (crq == NULL) ? NULL :
usr/src/uts/common/crypto/api/kcf_dual.c
375
mac, spi_encr_tmpl, spi_mac_tmpl, KCF_SWFP_RHNDL(crq));
usr/src/uts/common/crypto/api/kcf_dual.c
380
pd->pd_sid, encr_key, mac_key, pt, ct, mac, spi_encr_tmpl,
usr/src/uts/common/crypto/api/kcf_dual.c
54
crypto_dual_data_t *ct, crypto_data_t *mac, crypto_call_req_t *crq)
usr/src/uts/common/crypto/api/kcf_dual.c
971
crypto_data_t *mac, crypto_call_req_t *cr)
usr/src/uts/common/crypto/api/kcf_mac.c
116
data, mac, tmpl);
usr/src/uts/common/crypto/api/kcf_mac.c
130
crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac,
usr/src/uts/common/crypto/api/kcf_mac.c
177
mac, spi_ctx_tmpl, KCF_SWFP_RHNDL(crq));
usr/src/uts/common/crypto/api/kcf_mac.c
192
pd->pd_sid, mech, key, data, mac, spi_ctx_tmpl);
usr/src/uts/common/crypto/api/kcf_mac.c
221
crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq)
usr/src/uts/common/crypto/api/kcf_mac.c
240
key, data, mac, tmpl);
usr/src/uts/common/crypto/api/kcf_mac.c
254
crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac,
usr/src/uts/common/crypto/api/kcf_mac.c
301
data, mac, spi_ctx_tmpl, KCF_SWFP_RHNDL(crq));
usr/src/uts/common/crypto/api/kcf_mac.c
312
key, data, mac, spi_ctx_tmpl);
usr/src/uts/common/crypto/api/kcf_mac.c
571
crypto_mac_final(crypto_context_t context, crypto_data_t *mac,
usr/src/uts/common/crypto/api/kcf_mac.c
590
rv = KCF_PROV_MAC_FINAL(pd, ctx, mac, NULL);
usr/src/uts/common/crypto/api/kcf_mac.c
594
ctx->cc_session, NULL, NULL, NULL, mac, NULL);
usr/src/uts/common/crypto/api/kcf_mac.c
608
crypto_data_t *mac, crypto_call_req_t *cr)
usr/src/uts/common/crypto/api/kcf_mac.c
626
error = KCF_PROV_MAC(pd, ctx, data, mac, NULL);
usr/src/uts/common/crypto/api/kcf_mac.c
630
NULL, NULL, data, mac, NULL);
usr/src/uts/common/crypto/api/kcf_mac.c
97
crypto_ctx_template_t tmpl, crypto_data_t *mac, crypto_call_req_t *crq)
usr/src/uts/common/crypto/core/kcf_callprov.c
1751
crypto_data_t *mac = cmops->em_mac;
usr/src/uts/common/crypto/core/kcf_callprov.c
1788
err = crypto_mac_final(mac_context, mac, NULL);
usr/src/uts/common/crypto/core/kcf_callprov.c
1873
crypto_data_t *mac = mdops->md_mac;
usr/src/uts/common/crypto/core/kcf_callprov.c
1878
mac, NULL);
usr/src/uts/common/crypto/io/aes.c
1469
aes_mac_final(crypto_ctx_t *ctx, crypto_data_t *mac, crypto_req_handle_t req)
usr/src/uts/common/crypto/io/aes.c
1471
return (aes_encrypt_final(ctx, mac, req));
usr/src/uts/common/crypto/io/aes.c
1477
crypto_key_t *key, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/aes.c
1481
key, data, mac, template, req));
usr/src/uts/common/crypto/io/aes.c
1487
crypto_key_t *key, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/aes.c
1502
if (mac->cd_length != mac_len)
usr/src/uts/common/crypto/io/aes.c
1518
if (crypto_compare_data(mac, buf, mac_len) != CRYPTO_SUCCESS)
usr/src/uts/common/crypto/io/crypto.c
6875
return (mac(dev, ARG, mode, rval));
usr/src/uts/common/crypto/io/crypto.c
714
if (mac_ops->mac != NULL)
usr/src/uts/common/crypto/io/dprov.c
2177
dprov_mac(crypto_ctx_t *ctx, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/dprov.c
2191
NULL, data, NULL, mac, ctx, 0, KM_NOSLEEP);
usr/src/uts/common/crypto/io/dprov.c
2223
dprov_mac_final(crypto_ctx_t *ctx, crypto_data_t *mac, crypto_req_handle_t req)
usr/src/uts/common/crypto/io/dprov.c
2236
NULL, NULL, NULL, mac, ctx, 0, KM_NOSLEEP);
usr/src/uts/common/crypto/io/dprov.c
2247
crypto_key_t *key, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/dprov.c
2270
mechanism, data, key, mac, NULL, session_id, KM_SLEEP);
usr/src/uts/common/crypto/io/dprov.c
2281
crypto_key_t *key, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/dprov.c
2305
mechanism, data, key, mac, NULL, session_id, KM_SLEEP);
usr/src/uts/common/crypto/io/dprov.c
3284
crypto_dual_data_t *ciphertext, crypto_data_t *mac, crypto_req_handle_t req)
usr/src/uts/common/crypto/io/dprov.c
3302
ciphertext, plaintext, mac, KM_NOSLEEP);
usr/src/uts/common/crypto/io/dprov.c
3337
crypto_dual_data_t *ciphertext, crypto_data_t *mac,
usr/src/uts/common/crypto/io/dprov.c
3353
ciphertext, NULL, mac, KM_NOSLEEP);
usr/src/uts/common/crypto/io/dprov.c
3366
crypto_dual_data_t *ciphertext, crypto_data_t *mac,
usr/src/uts/common/crypto/io/dprov.c
3400
mac_key, ciphertext, plaintext, mac, KM_SLEEP);
usr/src/uts/common/crypto/io/dprov.c
3455
crypto_data_t *mac, crypto_data_t *plaintext, crypto_req_handle_t req)
usr/src/uts/common/crypto/io/dprov.c
3470
ciphertext, plaintext, mac, KM_NOSLEEP);
usr/src/uts/common/crypto/io/dprov.c
3504
dprov_mac_decrypt_final(crypto_ctx_t *ctx, crypto_data_t *mac,
usr/src/uts/common/crypto/io/dprov.c
3520
NULL, plaintext, mac, KM_NOSLEEP);
usr/src/uts/common/crypto/io/dprov.c
3533
crypto_data_t *mac, crypto_data_t *plaintext,
usr/src/uts/common/crypto/io/dprov.c
3567
mac_key, ciphertext, plaintext, mac, KM_SLEEP);
usr/src/uts/common/crypto/io/dprov.c
3580
crypto_data_t *mac, crypto_data_t *plaintext,
usr/src/uts/common/crypto/io/dprov.c
3614
mac_key, ciphertext, plaintext, mac, KM_SLEEP);
usr/src/uts/common/crypto/io/dprov.c
5172
crypto_data_t *mac, crypto_ctx_t *ctx, crypto_session_id_t sid, int kmflag)
usr/src/uts/common/crypto/io/dprov.c
5183
taskq_req->dr_mac_req.dr_mac = mac;
usr/src/uts/common/crypto/io/dprov.c
5279
crypto_data_t *data, crypto_data_t *mac, int kmflag)
usr/src/uts/common/crypto/io/dprov.c
5294
taskq_req->dr_cipher_mac_req.mr_mac = mac;
usr/src/uts/common/crypto/io/md5_mod.c
1006
md5_mac_final(crypto_ctx_t *ctx, crypto_data_t *mac, crypto_req_handle_t req)
usr/src/uts/common/crypto/io/md5_mod.c
1021
if ((mac->cd_length == 0) || (mac->cd_length < digest_len)) {
usr/src/uts/common/crypto/io/md5_mod.c
1022
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/md5_mod.c
1042
switch (mac->cd_format) {
usr/src/uts/common/crypto/io/md5_mod.c
1052
bcopy(digest, (unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/md5_mod.c
1053
mac->cd_offset, digest_len);
usr/src/uts/common/crypto/io/md5_mod.c
1055
MD5Final((unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/md5_mod.c
1056
mac->cd_offset,
usr/src/uts/common/crypto/io/md5_mod.c
1062
&PROV_MD5_HMAC_CTX(ctx)->hc_ocontext, mac,
usr/src/uts/common/crypto/io/md5_mod.c
1067
&PROV_MD5_HMAC_CTX(ctx)->hc_ocontext, mac,
usr/src/uts/common/crypto/io/md5_mod.c
1075
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/md5_mod.c
1077
mac->cd_length = 0;
usr/src/uts/common/crypto/io/md5_mod.c
1111
crypto_key_t *key, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/md5_mod.c
1184
switch (mac->cd_format) {
usr/src/uts/common/crypto/io/md5_mod.c
1193
bcopy(digest, (unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/md5_mod.c
1194
mac->cd_offset, digest_len);
usr/src/uts/common/crypto/io/md5_mod.c
1196
MD5Final((unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/md5_mod.c
1197
mac->cd_offset, &md5_hmac_ctx.hc_ocontext);
usr/src/uts/common/crypto/io/md5_mod.c
1201
ret = md5_digest_final_uio(&md5_hmac_ctx.hc_ocontext, mac,
usr/src/uts/common/crypto/io/md5_mod.c
1205
ret = md5_digest_final_mblk(&md5_hmac_ctx.hc_ocontext, mac,
usr/src/uts/common/crypto/io/md5_mod.c
1213
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/md5_mod.c
1215
mac->cd_length = 0;
usr/src/uts/common/crypto/io/md5_mod.c
1223
mac->cd_length = 0;
usr/src/uts/common/crypto/io/md5_mod.c
1231
crypto_key_t *key, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/md5_mod.c
1285
if (mac->cd_length != digest_len) {
usr/src/uts/common/crypto/io/md5_mod.c
1315
switch (mac->cd_format) {
usr/src/uts/common/crypto/io/md5_mod.c
1318
if (bcmp(digest, (unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/md5_mod.c
1319
mac->cd_offset, digest_len) != 0)
usr/src/uts/common/crypto/io/md5_mod.c
1324
off_t offset = mac->cd_offset;
usr/src/uts/common/crypto/io/md5_mod.c
1331
if (mac->cd_uio->uio_segflg != UIO_SYSSPACE)
usr/src/uts/common/crypto/io/md5_mod.c
1336
offset >= mac->cd_uio->uio_iov[vec_idx].iov_len &&
usr/src/uts/common/crypto/io/md5_mod.c
1337
vec_idx < mac->cd_uio->uio_iovcnt;
usr/src/uts/common/crypto/io/md5_mod.c
1338
offset -= mac->cd_uio->uio_iov[vec_idx++].iov_len)
usr/src/uts/common/crypto/io/md5_mod.c
1340
if (vec_idx == mac->cd_uio->uio_iovcnt) {
usr/src/uts/common/crypto/io/md5_mod.c
1351
while (vec_idx < mac->cd_uio->uio_iovcnt && length > 0) {
usr/src/uts/common/crypto/io/md5_mod.c
1352
cur_len = MIN(mac->cd_uio->uio_iov[vec_idx].iov_len -
usr/src/uts/common/crypto/io/md5_mod.c
1356
mac->cd_uio->uio_iov[vec_idx].iov_base + offset,
usr/src/uts/common/crypto/io/md5_mod.c
1371
off_t offset = mac->cd_offset;
usr/src/uts/common/crypto/io/md5_mod.c
1378
for (mp = mac->cd_mp; mp != NULL && offset >= MBLKL(mp);
usr/src/uts/common/crypto/io/md5_mod.c
1414
mac->cd_length = 0;
usr/src/uts/common/crypto/io/sha1_mod.c
1000
ret = sha1_digest_final_mblk(octx, mac, digest_len, digest);
usr/src/uts/common/crypto/io/sha1_mod.c
1007
mac->cd_length = SHA1_DIGEST_LENGTH;
usr/src/uts/common/crypto/io/sha1_mod.c
1009
mac->cd_length = 0;
usr/src/uts/common/crypto/io/sha1_mod.c
1052
sha1_mac_final(crypto_ctx_t *ctx, crypto_data_t *mac, crypto_req_handle_t req)
usr/src/uts/common/crypto/io/sha1_mod.c
1068
if ((mac->cd_length == 0) || (mac->cd_length < digest_len)) {
usr/src/uts/common/crypto/io/sha1_mod.c
1069
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/sha1_mod.c
1089
switch (mac->cd_format) {
usr/src/uts/common/crypto/io/sha1_mod.c
1099
bcopy(digest, (unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha1_mod.c
1100
mac->cd_offset, digest_len);
usr/src/uts/common/crypto/io/sha1_mod.c
1102
SHA1Final((unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha1_mod.c
1103
mac->cd_offset,
usr/src/uts/common/crypto/io/sha1_mod.c
1109
&PROV_SHA1_HMAC_CTX(ctx)->hc_ocontext, mac,
usr/src/uts/common/crypto/io/sha1_mod.c
1114
&PROV_SHA1_HMAC_CTX(ctx)->hc_ocontext, mac,
usr/src/uts/common/crypto/io/sha1_mod.c
1122
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/sha1_mod.c
1124
mac->cd_length = 0;
usr/src/uts/common/crypto/io/sha1_mod.c
1157
crypto_key_t *key, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/sha1_mod.c
1230
switch (mac->cd_format) {
usr/src/uts/common/crypto/io/sha1_mod.c
1239
bcopy(digest, (unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha1_mod.c
1240
mac->cd_offset, digest_len);
usr/src/uts/common/crypto/io/sha1_mod.c
1242
SHA1Final((unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha1_mod.c
1243
mac->cd_offset, &sha1_hmac_ctx.hc_ocontext);
usr/src/uts/common/crypto/io/sha1_mod.c
1247
ret = sha1_digest_final_uio(&sha1_hmac_ctx.hc_ocontext, mac,
usr/src/uts/common/crypto/io/sha1_mod.c
1251
ret = sha1_digest_final_mblk(&sha1_hmac_ctx.hc_ocontext, mac,
usr/src/uts/common/crypto/io/sha1_mod.c
1259
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/sha1_mod.c
1261
mac->cd_length = 0;
usr/src/uts/common/crypto/io/sha1_mod.c
1269
mac->cd_length = 0;
usr/src/uts/common/crypto/io/sha1_mod.c
1277
crypto_key_t *key, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/sha1_mod.c
1329
if (mac->cd_length != digest_len) {
usr/src/uts/common/crypto/io/sha1_mod.c
1360
switch (mac->cd_format) {
usr/src/uts/common/crypto/io/sha1_mod.c
1363
if (bcmp(digest, (unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha1_mod.c
1364
mac->cd_offset, digest_len) != 0)
usr/src/uts/common/crypto/io/sha1_mod.c
1369
off_t offset = mac->cd_offset;
usr/src/uts/common/crypto/io/sha1_mod.c
1376
if (mac->cd_uio->uio_segflg != UIO_SYSSPACE)
usr/src/uts/common/crypto/io/sha1_mod.c
1381
offset >= mac->cd_uio->uio_iov[vec_idx].iov_len &&
usr/src/uts/common/crypto/io/sha1_mod.c
1382
vec_idx < mac->cd_uio->uio_iovcnt;
usr/src/uts/common/crypto/io/sha1_mod.c
1383
offset -= mac->cd_uio->uio_iov[vec_idx++].iov_len)
usr/src/uts/common/crypto/io/sha1_mod.c
1385
if (vec_idx == mac->cd_uio->uio_iovcnt) {
usr/src/uts/common/crypto/io/sha1_mod.c
1396
while (vec_idx < mac->cd_uio->uio_iovcnt && length > 0) {
usr/src/uts/common/crypto/io/sha1_mod.c
1397
cur_len = MIN(mac->cd_uio->uio_iov[vec_idx].iov_len -
usr/src/uts/common/crypto/io/sha1_mod.c
1401
mac->cd_uio->uio_iov[vec_idx].iov_base + offset,
usr/src/uts/common/crypto/io/sha1_mod.c
1416
off_t offset = mac->cd_offset;
usr/src/uts/common/crypto/io/sha1_mod.c
1423
for (mp = mac->cd_mp; mp != NULL && offset >= MBLKL(mp);
usr/src/uts/common/crypto/io/sha1_mod.c
1459
mac->cd_length = 0;
usr/src/uts/common/crypto/io/sha1_mod.c
921
sha1_mac(crypto_ctx_t *ctx, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/sha1_mod.c
937
if ((mac->cd_length == 0) ||
usr/src/uts/common/crypto/io/sha1_mod.c
938
(mac->cd_length < digest_len)) {
usr/src/uts/common/crypto/io/sha1_mod.c
939
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/sha1_mod.c
965
mac->cd_length = 0;
usr/src/uts/common/crypto/io/sha1_mod.c
980
switch (mac->cd_format) {
usr/src/uts/common/crypto/io/sha1_mod.c
989
bcopy(digest, (unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha1_mod.c
990
mac->cd_offset, digest_len);
usr/src/uts/common/crypto/io/sha1_mod.c
992
SHA1Final((unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha1_mod.c
993
mac->cd_offset, octx);
usr/src/uts/common/crypto/io/sha1_mod.c
997
ret = sha1_digest_final_uio(octx, mac, digest_len, digest);
usr/src/uts/common/crypto/io/sha2_mod.c
1042
sha2_mac(crypto_ctx_t *ctx, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/sha2_mod.c
1079
if ((mac->cd_length == 0) || (mac->cd_length < digest_len)) {
usr/src/uts/common/crypto/io/sha2_mod.c
1080
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/sha2_mod.c
1111
mac->cd_length = 0;
usr/src/uts/common/crypto/io/sha2_mod.c
1130
switch (mac->cd_format) {
usr/src/uts/common/crypto/io/sha2_mod.c
1139
bcopy(digest, (unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha2_mod.c
1140
mac->cd_offset, digest_len);
usr/src/uts/common/crypto/io/sha2_mod.c
1142
SHA2Final((unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha2_mod.c
1143
mac->cd_offset, octx);
usr/src/uts/common/crypto/io/sha2_mod.c
1147
ret = sha2_digest_final_uio(octx, mac, digest_len, digest);
usr/src/uts/common/crypto/io/sha2_mod.c
1150
ret = sha2_digest_final_mblk(octx, mac, digest_len, digest);
usr/src/uts/common/crypto/io/sha2_mod.c
1157
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/sha2_mod.c
1159
mac->cd_length = 0;
usr/src/uts/common/crypto/io/sha2_mod.c
1204
sha2_mac_final(crypto_ctx_t *ctx, crypto_data_t *mac, crypto_req_handle_t req)
usr/src/uts/common/crypto/io/sha2_mod.c
1238
if ((mac->cd_length == 0) || (mac->cd_length < digest_len)) {
usr/src/uts/common/crypto/io/sha2_mod.c
1239
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/sha2_mod.c
1259
switch (mac->cd_format) {
usr/src/uts/common/crypto/io/sha2_mod.c
1269
bcopy(digest, (unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha2_mod.c
1270
mac->cd_offset, digest_len);
usr/src/uts/common/crypto/io/sha2_mod.c
1272
SHA2Final((unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha2_mod.c
1273
mac->cd_offset,
usr/src/uts/common/crypto/io/sha2_mod.c
1279
&PROV_SHA2_HMAC_CTX(ctx)->hc_ocontext, mac,
usr/src/uts/common/crypto/io/sha2_mod.c
1284
&PROV_SHA2_HMAC_CTX(ctx)->hc_ocontext, mac,
usr/src/uts/common/crypto/io/sha2_mod.c
1292
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/sha2_mod.c
1294
mac->cd_length = 0;
usr/src/uts/common/crypto/io/sha2_mod.c
1326
crypto_key_t *key, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/sha2_mod.c
1426
switch (mac->cd_format) {
usr/src/uts/common/crypto/io/sha2_mod.c
1435
bcopy(digest, (unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha2_mod.c
1436
mac->cd_offset, digest_len);
usr/src/uts/common/crypto/io/sha2_mod.c
1438
SHA2Final((unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha2_mod.c
1439
mac->cd_offset, &sha2_hmac_ctx.hc_ocontext);
usr/src/uts/common/crypto/io/sha2_mod.c
1443
ret = sha2_digest_final_uio(&sha2_hmac_ctx.hc_ocontext, mac,
usr/src/uts/common/crypto/io/sha2_mod.c
1447
ret = sha2_digest_final_mblk(&sha2_hmac_ctx.hc_ocontext, mac,
usr/src/uts/common/crypto/io/sha2_mod.c
1455
mac->cd_length = digest_len;
usr/src/uts/common/crypto/io/sha2_mod.c
1460
mac->cd_length = 0;
usr/src/uts/common/crypto/io/sha2_mod.c
1468
crypto_key_t *key, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/sha2_mod.c
1539
if (mac->cd_length != digest_len) {
usr/src/uts/common/crypto/io/sha2_mod.c
1578
switch (mac->cd_format) {
usr/src/uts/common/crypto/io/sha2_mod.c
1581
if (bcmp(digest, (unsigned char *)mac->cd_raw.iov_base +
usr/src/uts/common/crypto/io/sha2_mod.c
1582
mac->cd_offset, digest_len) != 0)
usr/src/uts/common/crypto/io/sha2_mod.c
1587
off_t offset = mac->cd_offset;
usr/src/uts/common/crypto/io/sha2_mod.c
1594
if (mac->cd_uio->uio_segflg != UIO_SYSSPACE)
usr/src/uts/common/crypto/io/sha2_mod.c
1599
offset >= mac->cd_uio->uio_iov[vec_idx].iov_len &&
usr/src/uts/common/crypto/io/sha2_mod.c
1600
vec_idx < mac->cd_uio->uio_iovcnt;
usr/src/uts/common/crypto/io/sha2_mod.c
1601
offset -= mac->cd_uio->uio_iov[vec_idx++].iov_len)
usr/src/uts/common/crypto/io/sha2_mod.c
1603
if (vec_idx == mac->cd_uio->uio_iovcnt) {
usr/src/uts/common/crypto/io/sha2_mod.c
1614
while (vec_idx < mac->cd_uio->uio_iovcnt && length > 0) {
usr/src/uts/common/crypto/io/sha2_mod.c
1615
cur_len = MIN(mac->cd_uio->uio_iov[vec_idx].iov_len -
usr/src/uts/common/crypto/io/sha2_mod.c
1619
mac->cd_uio->uio_iov[vec_idx].iov_base + offset,
usr/src/uts/common/crypto/io/sha2_mod.c
1634
off_t offset = mac->cd_offset;
usr/src/uts/common/crypto/io/sha2_mod.c
1641
for (mp = mac->cd_mp; mp != NULL && offset >= MBLKL(mp);
usr/src/uts/common/crypto/io/sha2_mod.c
1676
mac->cd_length = 0;
usr/src/uts/common/crypto/io/skein_mod.c
756
crypto_key_t *key, crypto_data_t *data, crypto_data_t *mac,
usr/src/uts/common/crypto/io/skein_mod.c
775
if ((error = skein_final(&ctx, mac, req)) != CRYPTO_SUCCESS)
usr/src/uts/common/fs/smbclnt/netsmb/nsmb_kcrypt.h
117
uint8_t *data, size_t data_len, uint8_t *mac, size_t mac_len);
usr/src/uts/common/fs/smbclnt/netsmb/nsmb_sign_kcf.c
213
uint8_t *mac, size_t mac_len)
usr/src/uts/common/fs/smbclnt/netsmb/nsmb_sign_kcf.c
234
cmac.cd_raw.iov_base = (void *)mac;
usr/src/uts/common/fs/smbsrv/smb_sign_kcf.c
224
uint8_t *mac, size_t mac_len)
usr/src/uts/common/fs/smbsrv/smb_sign_kcf.c
233
return (smb2_mac(mech, key, key_len, &in_cd, mac, mac_len));
usr/src/uts/common/fs/smbsrv/smb_signing.c
415
unsigned char mac[SMB_SIG_SIZE];
usr/src/uts/common/fs/smbsrv/smb_signing.c
428
if (smb_sign_calc(sr, &mbc, sr->reply_seqnum, mac) != 0) {
usr/src/uts/common/fs/smbsrv/smb_signing.c
437
SMB_SIG_SIZE, mac);
usr/src/uts/common/fs/zfs/arc.c
1203
uint8_t *iv, uint8_t *mac)
usr/src/uts/common/fs/zfs/arc.c
1211
bcopy(hdr->b_crypt_hdr.b_mac, mac, ZIO_DATA_MAC_LEN);
usr/src/uts/common/fs/zfs/arc.c
2673
const uint8_t *salt, const uint8_t *iv, const uint8_t *mac,
usr/src/uts/common/fs/zfs/arc.c
2678
byteorder, salt, iv, mac, ot, psize, lsize, compression_type);
usr/src/uts/common/fs/zfs/arc.c
3407
const uint8_t *mac)
usr/src/uts/common/fs/zfs/arc.c
3429
if (mac != NULL)
usr/src/uts/common/fs/zfs/arc.c
3430
bcopy(mac, hdr->b_crypt_hdr.b_mac, ZIO_DATA_MAC_LEN);
usr/src/uts/common/fs/zfs/arc.c
3528
const uint8_t *salt, const uint8_t *iv, const uint8_t *mac,
usr/src/uts/common/fs/zfs/arc.c
3551
bcopy(mac, hdr->b_crypt_hdr.b_mac, ZIO_DATA_MAC_LEN);
usr/src/uts/common/fs/zfs/arc.c
7877
uint8_t mac[ZIO_DATA_MAC_LEN];
usr/src/uts/common/fs/zfs/arc.c
7899
zio_crypt_decode_mac_bp(bp, mac);
usr/src/uts/common/fs/zfs/arc.c
7903
salt, iv, mac, HDR_GET_PSIZE(hdr), eabd,
usr/src/uts/common/fs/zfs/arc.c
8378
uint8_t mac[ZIO_DATA_MAC_LEN] = { 0 };
usr/src/uts/common/fs/zfs/arc.c
8439
hdr->b_crypt_hdr.b_iv, mac, psize, to_write, eabd,
usr/src/uts/common/fs/zfs/arc.c
8451
ASSERT0(bcmp(mac, hdr->b_crypt_hdr.b_mac, ZIO_DATA_MAC_LEN));
usr/src/uts/common/fs/zfs/dbuf.c
1288
uint8_t mac[ZIO_DATA_MAC_LEN];
usr/src/uts/common/fs/zfs/dbuf.c
1291
iv, mac);
usr/src/uts/common/fs/zfs/dbuf.c
1294
mac, dn->dn_type, size, arc_buf_lsize(db->db_buf),
usr/src/uts/common/fs/zfs/dbuf.c
2160
const uint8_t *salt, const uint8_t *iv, const uint8_t *mac, dmu_tx_t *tx)
usr/src/uts/common/fs/zfs/dbuf.c
2186
bcopy(mac, dr->dt.dl.dr_mac, ZIO_DATA_MAC_LEN);
usr/src/uts/common/fs/zfs/dbuf.c
2917
uint8_t mac[ZIO_DATA_MAC_LEN];
usr/src/uts/common/fs/zfs/dbuf.c
2919
arc_get_raw_params(data, &byteorder, salt, iv, mac);
usr/src/uts/common/fs/zfs/dbuf.c
2921
dmu_objset_id(dn->dn_objset), byteorder, salt, iv, mac,
usr/src/uts/common/fs/zfs/dbuf.c
3630
uint8_t mac[ZIO_DATA_MAC_LEN];
usr/src/uts/common/fs/zfs/dbuf.c
3632
arc_get_raw_params(*datap, &byteorder, salt, iv, mac);
usr/src/uts/common/fs/zfs/dbuf.c
3634
dmu_objset_id(os), byteorder, salt, iv, mac,
usr/src/uts/common/fs/zfs/dmu.c
1719
uint8_t mac[ZIO_DATA_MAC_LEN];
usr/src/uts/common/fs/zfs/dmu.c
1735
arc_get_raw_params(srcdb->db_buf, &byteorder, salt, iv, mac);
usr/src/uts/common/fs/zfs/dmu.c
1737
byteorder, salt, iv, mac, type,
usr/src/uts/common/fs/zfs/dsl_crypt.c
1176
uint64_t root_ddobj, uint64_t guid, uint8_t *iv, uint8_t *mac,
usr/src/uts/common/fs/zfs/dsl_crypt.c
1189
mac, tx));
usr/src/uts/common/fs/zfs/dsl_crypt.c
1210
uint8_t mac[WRAPPING_MAC_LEN];
usr/src/uts/common/fs/zfs/dsl_crypt.c
1216
VERIFY0(zio_crypt_key_wrap(&dck->dck_wkey->wk_key, key, iv, mac,
usr/src/uts/common/fs/zfs/dsl_crypt.c
1221
key->zk_crypt, wkey->wk_ddobj, key->zk_guid, iv, mac, keydata,
usr/src/uts/common/fs/zfs/dsl_crypt.c
2271
uint8_t *keydata, *hmac_keydata, *iv, *mac;
usr/src/uts/common/fs/zfs/dsl_crypt.c
2290
VERIFY0(nvlist_lookup_uint8_array(nvl, DSL_CRYPTO_KEY_MAC, &mac, &len));
usr/src/uts/common/fs/zfs/dsl_crypt.c
2334
rddobj, key_guid, iv, mac, keydata, hmac_keydata, keyformat, salt,
usr/src/uts/common/fs/zfs/dsl_crypt.c
2434
uint8_t mac[WRAPPING_MAC_LEN];
usr/src/uts/common/fs/zfs/dsl_crypt.c
2471
mac);
usr/src/uts/common/fs/zfs/dsl_crypt.c
2538
VERIFY0(nvlist_add_uint8_array(nvl, DSL_CRYPTO_KEY_MAC, mac,
usr/src/uts/common/fs/zfs/dsl_crypt.c
2759
uint_t datalen, uint8_t *mac)
usr/src/uts/common/fs/zfs/dsl_crypt.c
2785
bcopy(digestbuf, mac, ZIO_DATA_MAC_LEN);
usr/src/uts/common/fs/zfs/dsl_crypt.c
2789
if (bcmp(digestbuf, mac, ZIO_DATA_MAC_LEN) != 0)
usr/src/uts/common/fs/zfs/dsl_crypt.c
2811
uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,
usr/src/uts/common/fs/zfs/dsl_crypt.c
2861
mac, datalen, plainbuf, cipherbuf, no_crypt);
usr/src/uts/common/fs/zfs/dsl_crypt.c
2891
bzero(mac, ZIO_DATA_MAC_LEN);
usr/src/uts/common/fs/zfs/dsl_crypt.c
558
uint8_t mac[WRAPPING_MAC_LEN];
usr/src/uts/common/fs/zfs/dsl_crypt.c
592
mac);
usr/src/uts/common/fs/zfs/dsl_crypt.c
604
raw_keydata, raw_hmac_keydata, iv, mac, &dck->dck_key);
usr/src/uts/common/fs/zfs/sys/arc.h
200
uint8_t *iv, uint8_t *mac);
usr/src/uts/common/fs/zfs/sys/arc.h
205
const uint8_t *mac);
usr/src/uts/common/fs/zfs/sys/arc.h
212
const uint8_t *mac, dmu_object_type_t ot, uint64_t psize, uint64_t lsize,
usr/src/uts/common/fs/zfs/sys/arc.h
218
const uint8_t *salt, const uint8_t *iv, const uint8_t *mac,
usr/src/uts/common/fs/zfs/sys/dmu.h
523
const uint8_t *salt, const uint8_t *iv, const uint8_t *mac);
usr/src/uts/common/fs/zfs/sys/dmu.h
756
const uint8_t *salt, const uint8_t *iv, const uint8_t *mac, dmu_tx_t *tx);
usr/src/uts/common/fs/zfs/sys/dmu.h
869
const uint8_t *salt, const uint8_t *iv, const uint8_t *mac, dmu_tx_t *tx);
usr/src/uts/common/fs/zfs/sys/dsl_crypt.h
227
abd_t *abd, uint_t datalen, uint8_t *mac);
usr/src/uts/common/fs/zfs/sys/dsl_crypt.h
232
uint8_t *iv, uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,
usr/src/uts/common/fs/zfs/sys/zio_crypt.h
115
uint8_t *mac, uint8_t *keydata_out, uint8_t *hmac_keydata_out);
usr/src/uts/common/fs/zfs/sys/zio_crypt.h
118
uint8_t *mac, zio_crypt_key_t *key);
usr/src/uts/common/fs/zfs/sys/zio_crypt.h
125
void zio_crypt_encode_mac_bp(blkptr_t *bp, uint8_t *mac);
usr/src/uts/common/fs/zfs/sys/zio_crypt.h
126
void zio_crypt_decode_mac_bp(const blkptr_t *bp, uint8_t *mac);
usr/src/uts/common/fs/zfs/sys/zio_crypt.h
127
void zio_crypt_encode_mac_zil(void *data, uint8_t *mac);
usr/src/uts/common/fs/zfs/sys/zio_crypt.h
128
void zio_crypt_decode_mac_zil(const void *data, uint8_t *mac);
usr/src/uts/common/fs/zfs/sys/zio_crypt.h
141
uint8_t *mac, uint_t datalen, uint8_t *plainbuf, uint8_t *cipherbuf,
usr/src/uts/common/fs/zfs/sys/zio_crypt.h
145
uint8_t *mac, uint_t datalen, abd_t *pabd, abd_t *cabd,
usr/src/uts/common/fs/zfs/zio.c
378
uint8_t mac[ZIO_DATA_MAC_LEN];
usr/src/uts/common/fs/zfs/zio.c
3787
uint8_t mac[ZIO_DATA_MAC_LEN];
usr/src/uts/common/fs/zfs/zio.c
3836
mac));
usr/src/uts/common/fs/zfs/zio.c
3837
zio_crypt_encode_mac_bp(bp, mac);
usr/src/uts/common/fs/zfs/zio.c
3858
zio->io_abd, psize, mac));
usr/src/uts/common/fs/zfs/zio.c
3859
zio_crypt_encode_mac_bp(bp, mac);
usr/src/uts/common/fs/zfs/zio.c
3894
salt, iv, mac, psize, zio->io_abd, eabd, &no_crypt));
usr/src/uts/common/fs/zfs/zio.c
3902
zio_crypt_encode_mac_zil(enc_buf, mac);
usr/src/uts/common/fs/zfs/zio.c
3907
zio_crypt_encode_mac_bp(bp, mac);
usr/src/uts/common/fs/zfs/zio.c
393
zio_crypt_decode_mac_bp(bp, mac);
usr/src/uts/common/fs/zfs/zio.c
411
tmp, lsize, BP_SHOULD_BYTESWAP(bp), mac);
usr/src/uts/common/fs/zfs/zio.c
415
zio->io_abd, size, BP_SHOULD_BYTESWAP(bp), mac);
usr/src/uts/common/fs/zfs/zio.c
435
zio_crypt_decode_mac_bp(bp, mac);
usr/src/uts/common/fs/zfs/zio.c
437
zio->io_abd, size, mac);
usr/src/uts/common/fs/zfs/zio.c
455
zio_crypt_decode_mac_zil(tmp, mac);
usr/src/uts/common/fs/zfs/zio.c
458
zio_crypt_decode_mac_bp(bp, mac);
usr/src/uts/common/fs/zfs/zio.c
462
BP_GET_DEDUP(bp), BP_SHOULD_BYTESWAP(bp), salt, iv, mac, size, data,
usr/src/uts/common/fs/zfs/zio_crypt.c
1823
uint8_t *mac, uio_t *puio, uio_t *cuio, uint_t *enc_len, uint8_t **authbuf,
usr/src/uts/common/fs/zfs/zio_crypt.c
1860
mac_iov->iov_base = (void *)mac;
usr/src/uts/common/fs/zfs/zio_crypt.c
1875
uint8_t *mac, uint_t datalen, uint8_t *plainbuf, uint8_t *cipherbuf,
usr/src/uts/common/fs/zfs/zio_crypt.c
1894
cipherbuf, datalen, byteswap, mac, &puio, &cuio, &enc_len,
usr/src/uts/common/fs/zfs/zio_crypt.c
1974
boolean_t byteswap, uint8_t *salt, uint8_t *iv, uint8_t *mac,
usr/src/uts/common/fs/zfs/zio_crypt.c
1988
ret = zio_do_crypt_data(encrypt, key, ot, byteswap, salt, iv, mac,
usr/src/uts/common/fs/zfs/zio_crypt.c
493
uint8_t *mac, uint8_t *keydata_out, uint8_t *hmac_keydata_out)
usr/src/uts/common/fs/zfs/zio_crypt.c
522
cipher_iovecs[2].iov_base = (char *)mac;
usr/src/uts/common/fs/zfs/zio_crypt.c
564
uint8_t *mac, zio_crypt_key_t *key)
usr/src/uts/common/fs/zfs/zio_crypt.c
589
cipher_iovecs[2].iov_base = (char *)mac;
usr/src/uts/common/fs/zfs/zio_crypt.c
815
zio_crypt_encode_mac_bp(blkptr_t *bp, uint8_t *mac)
usr/src/uts/common/fs/zfs/zio_crypt.c
823
bcopy(mac, &bp->blk_cksum.zc_word[2], sizeof (uint64_t));
usr/src/uts/common/fs/zfs/zio_crypt.c
824
bcopy(mac + sizeof (uint64_t), &bp->blk_cksum.zc_word[3],
usr/src/uts/common/fs/zfs/zio_crypt.c
827
bcopy(mac, &val64, sizeof (uint64_t));
usr/src/uts/common/fs/zfs/zio_crypt.c
830
bcopy(mac + sizeof (uint64_t), &val64, sizeof (uint64_t));
usr/src/uts/common/fs/zfs/zio_crypt.c
836
zio_crypt_decode_mac_bp(const blkptr_t *bp, uint8_t *mac)
usr/src/uts/common/fs/zfs/zio_crypt.c
844
bzero(mac, ZIO_DATA_MAC_LEN);
usr/src/uts/common/fs/zfs/zio_crypt.c
849
bcopy(&bp->blk_cksum.zc_word[2], mac, sizeof (uint64_t));
usr/src/uts/common/fs/zfs/zio_crypt.c
850
bcopy(&bp->blk_cksum.zc_word[3], mac + sizeof (uint64_t),
usr/src/uts/common/fs/zfs/zio_crypt.c
854
bcopy(&val64, mac, sizeof (uint64_t));
usr/src/uts/common/fs/zfs/zio_crypt.c
857
bcopy(&val64, mac + sizeof (uint64_t), sizeof (uint64_t));
usr/src/uts/common/fs/zfs/zio_crypt.c
862
zio_crypt_encode_mac_zil(void *data, uint8_t *mac)
usr/src/uts/common/fs/zfs/zio_crypt.c
866
bcopy(mac, &zilc->zc_eck.zec_cksum.zc_word[2], sizeof (uint64_t));
usr/src/uts/common/fs/zfs/zio_crypt.c
867
bcopy(mac + sizeof (uint64_t), &zilc->zc_eck.zec_cksum.zc_word[3],
usr/src/uts/common/fs/zfs/zio_crypt.c
872
zio_crypt_decode_mac_zil(const void *data, uint8_t *mac)
usr/src/uts/common/fs/zfs/zio_crypt.c
881
bcopy(&zilc->zc_eck.zec_cksum.zc_word[2], mac, sizeof (uint64_t));
usr/src/uts/common/fs/zfs/zio_crypt.c
882
bcopy(&zilc->zc_eck.zec_cksum.zc_word[3], mac + sizeof (uint64_t),
usr/src/uts/common/gssapi/mechs/krb5/crypto/hmac.c
50
crypto_data_t mac;
usr/src/uts/common/gssapi/mechs/krb5/crypto/hmac.c
68
mac.cd_format = CRYPTO_DATA_RAW;
usr/src/uts/common/gssapi/mechs/krb5/crypto/hmac.c
69
mac.cd_offset = 0;
usr/src/uts/common/gssapi/mechs/krb5/crypto/hmac.c
70
mac.cd_length = output->length;
usr/src/uts/common/gssapi/mechs/krb5/crypto/hmac.c
71
mac.cd_raw.iov_base = (char *)output->data;
usr/src/uts/common/gssapi/mechs/krb5/crypto/hmac.c
72
mac.cd_raw.iov_len = output->length;
usr/src/uts/common/gssapi/mechs/krb5/crypto/hmac.c
80
key->key_tmpl, &mac, NULL);
usr/src/uts/common/inet/ip/ipsecah.c
2698
#define AH_INIT_CRYPTO_MAC(mac, icvlen, icvbuf) { \
usr/src/uts/common/inet/ip/ipsecah.c
2699
(mac)->cd_format = CRYPTO_DATA_RAW; \
usr/src/uts/common/inet/ip/ipsecah.c
2700
(mac)->cd_offset = 0; \
usr/src/uts/common/inet/ip/ipsecah.c
2701
(mac)->cd_length = icvlen; \
usr/src/uts/common/inet/ip/ipsecah.c
2702
(mac)->cd_raw.iov_base = icvbuf; \
usr/src/uts/common/inet/ip/ipsecah.c
2703
(mac)->cd_raw.iov_len = icvlen; \
usr/src/uts/common/inet/ip/ipsecesp.c
1790
#define ESP_INIT_CRYPTO_MAC(mac, icvlen, icvbuf) { \
usr/src/uts/common/inet/ip/ipsecesp.c
1791
(mac)->cd_format = CRYPTO_DATA_RAW; \
usr/src/uts/common/inet/ip/ipsecesp.c
1792
(mac)->cd_offset = 0; \
usr/src/uts/common/inet/ip/ipsecesp.c
1793
(mac)->cd_length = icvlen; \
usr/src/uts/common/inet/ip/ipsecesp.c
1794
(mac)->cd_raw.iov_base = (char *)icvbuf; \
usr/src/uts/common/inet/ip/ipsecesp.c
1795
(mac)->cd_raw.iov_len = icvlen; \
usr/src/uts/common/inet/iptun/iptun.c
1180
mac_register_t *mac;
usr/src/uts/common/inet/iptun/iptun.c
1185
if ((mac = mac_alloc(MAC_VERSION)) == NULL)
usr/src/uts/common/inet/iptun/iptun.c
1188
mac->m_type_ident = iptun->iptun_typeinfo->iti_ident;
usr/src/uts/common/inet/iptun/iptun.c
1189
mac->m_driver = iptun;
usr/src/uts/common/inet/iptun/iptun.c
1190
mac->m_dip = iptun_dip;
usr/src/uts/common/inet/iptun/iptun.c
1191
mac->m_instance = (uint_t)-1;
usr/src/uts/common/inet/iptun/iptun.c
1192
mac->m_src_addr = (uint8_t *)&iptun->iptun_laddr.ia_addr;
usr/src/uts/common/inet/iptun/iptun.c
1193
mac->m_dst_addr = iptun->iptun_typeinfo->iti_hasraddr ?
usr/src/uts/common/inet/iptun/iptun.c
1195
mac->m_callbacks = &iptun_m_callbacks;
usr/src/uts/common/inet/iptun/iptun.c
1196
mac->m_min_sdu = iptun->iptun_typeinfo->iti_minmtu;
usr/src/uts/common/inet/iptun/iptun.c
1197
mac->m_max_sdu = iptun->iptun_mtu;
usr/src/uts/common/inet/iptun/iptun.c
1199
mac->m_pdata = &iptun->iptun_header;
usr/src/uts/common/inet/iptun/iptun.c
1200
mac->m_pdata_size = iptun->iptun_header_size;
usr/src/uts/common/inet/iptun/iptun.c
1202
if ((err = mac_register(mac, &iptun->iptun_mh)) == 0)
usr/src/uts/common/inet/iptun/iptun.c
1204
mac_free(mac);
usr/src/uts/common/io/aggr/aggr_ctl.c
147
uchar_t *mac, boolean_t mac_fixed, boolean_t force, uint32_t policy,
usr/src/uts/common/io/aggr/aggr_ctl.c
158
bcopy(mac, grp.lg_mac, ETHERADDRL);
usr/src/uts/common/io/aggr/aggr_ctl.c
176
aggr_ioc_info_new_port(void *arg, datalink_id_t linkid, uchar_t *mac,
usr/src/uts/common/io/aggr/aggr_ctl.c
186
bcopy(mac, port.lp_mac, ETHERADDRL);
usr/src/uts/common/io/aggr/aggr_grp.c
1450
mac_register_t *mac;
usr/src/uts/common/io/aggr/aggr_grp.c
1578
if ((mac = mac_alloc(MAC_VERSION)) == NULL) {
usr/src/uts/common/io/aggr/aggr_grp.c
1582
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/aggr/aggr_grp.c
1583
mac->m_driver = grp;
usr/src/uts/common/io/aggr/aggr_grp.c
1584
mac->m_dip = aggr_dip;
usr/src/uts/common/io/aggr/aggr_grp.c
1585
mac->m_instance = grp->lg_key > AGGR_MAX_KEY ? (uint_t)-1 : grp->lg_key;
usr/src/uts/common/io/aggr/aggr_grp.c
1586
mac->m_src_addr = grp->lg_addr;
usr/src/uts/common/io/aggr/aggr_grp.c
1587
mac->m_callbacks = &aggr_m_callbacks;
usr/src/uts/common/io/aggr/aggr_grp.c
1588
mac->m_min_sdu = 0;
usr/src/uts/common/io/aggr/aggr_grp.c
1589
mac->m_max_sdu = grp->lg_max_sdu = aggr_grp_max_sdu(grp);
usr/src/uts/common/io/aggr/aggr_grp.c
1590
mac->m_margin = aggr_grp_max_margin(grp);
usr/src/uts/common/io/aggr/aggr_grp.c
1591
mac->m_v12n = MAC_VIRT_LEVEL1;
usr/src/uts/common/io/aggr/aggr_grp.c
1592
err = mac_register(mac, &grp->lg_mh);
usr/src/uts/common/io/aggr/aggr_grp.c
1593
mac_free(mac);
usr/src/uts/common/io/aggr/aggr_lacp.c
1120
struct ether_addr *mac = &cport->sp_partner_system;
usr/src/uts/common/io/aggr/aggr_lacp.c
1130
mac->ether_addr_octet[0], mac->ether_addr_octet[1],
usr/src/uts/common/io/aggr/aggr_lacp.c
1131
mac->ether_addr_octet[2], mac->ether_addr_octet[3],
usr/src/uts/common/io/aggr/aggr_lacp.c
1132
mac->ether_addr_octet[4], mac->ether_addr_octet[5]);
usr/src/uts/common/io/arn/arn_ath9k.h
876
const uint8_t *mac);
usr/src/uts/common/io/arn/arn_ath9k.h
878
const struct ath9k_keyval *k, const uint8_t *mac, int xorKey);
usr/src/uts/common/io/arn/arn_ath9k.h
931
void ath9k_hw_getmac(struct ath_hal *ah, uint8_t *mac);
usr/src/uts/common/io/arn/arn_ath9k.h
932
boolean_t ath9k_hw_setmac(struct ath_hal *ah, const uint8_t *mac);
usr/src/uts/common/io/arn/arn_hw.c
2660
ath9k_hw_keysetmac(struct ath_hal *ah, uint16_t entry, const uint8_t *mac)
usr/src/uts/common/io/arn/arn_hw.c
2670
if (mac != NULL) {
usr/src/uts/common/io/arn/arn_hw.c
2671
macHi = (mac[5] << 8) | mac[4];
usr/src/uts/common/io/arn/arn_hw.c
2672
macLo = (mac[3] << 24) |
usr/src/uts/common/io/arn/arn_hw.c
2673
(mac[2] << 16) |
usr/src/uts/common/io/arn/arn_hw.c
2674
(mac[1] << 8) |
usr/src/uts/common/io/arn/arn_hw.c
2675
mac[0];
usr/src/uts/common/io/arn/arn_hw.c
2690
const struct ath9k_keyval *k, const uint8_t *mac, int xorKey)
usr/src/uts/common/io/arn/arn_hw.c
2772
(void) ath9k_hw_keysetmac(ah, entry, mac);
usr/src/uts/common/io/arn/arn_hw.c
2813
(void) ath9k_hw_keysetmac(ah, entry, mac);
usr/src/uts/common/io/arn/arn_hw.c
4008
ath9k_hw_getmac(struct ath_hal *ah, uint8_t *mac)
usr/src/uts/common/io/arn/arn_hw.c
4012
(void) memcpy(mac, ahp->ah_macaddr, 6);
usr/src/uts/common/io/arn/arn_hw.c
4016
ath9k_hw_setmac(struct ath_hal *ah, const uint8_t *mac)
usr/src/uts/common/io/arn/arn_hw.c
4020
(void) memcpy(ahp->ah_macaddr, mac, 6);
usr/src/uts/common/io/arn/arn_main.c
1927
struct ath9k_keyval *hk, const uint8_t mac[IEEE80211_ADDR_LEN])
usr/src/uts/common/io/arn/arn_main.c
1937
if (mac == NULL) {
usr/src/uts/common/io/arn/arn_main.c
1941
mac, B_FALSE));
usr/src/uts/common/io/arn/arn_main.c
1951
mac, B_FALSE));
usr/src/uts/common/io/arn/arn_main.c
1969
return (ath9k_hw_set_keycache_entry(ah, k->wk_keyix, hk, mac, B_FALSE));
usr/src/uts/common/io/arn/arn_main.c
1975
const uint8_t mac[IEEE80211_ADDR_LEN])
usr/src/uts/common/io/arn/arn_main.c
2009
return (arn_keyset_tkip(sc, k, &hk, mac));
usr/src/uts/common/io/arn/arn_main.c
2012
k->wk_keyix, &hk, mac, B_FALSE));
usr/src/uts/common/io/ath/ath_aux.c
810
const HAL_KEYVAL *hk, const uint8_t mac[IEEE80211_ADDR_LEN])
usr/src/uts/common/io/ath/ath_aux.c
830
ieee80211_macaddr_sprintf(mac));
usr/src/uts/common/io/ath/ath_aux.c
861
HAL_KEYVAL *hk, const uint8_t mac[IEEE80211_ADDR_LEN])
usr/src/uts/common/io/ath/ath_aux.c
884
hk, mac);
usr/src/uts/common/io/ath/ath_aux.c
885
return (ATH_HAL_KEYSET(ah, k->wk_keyix+32, hk, mac));
usr/src/uts/common/io/ath/ath_aux.c
897
mac);
usr/src/uts/common/io/ath/ath_aux.c
898
return (ATH_HAL_KEYSET(ah, k->wk_keyix, hk, mac));
usr/src/uts/common/io/ath/ath_aux.c
921
const uint8_t mac[IEEE80211_ADDR_LEN])
usr/src/uts/common/io/ath/ath_aux.c
953
return (ath_keyset_tkip(asc, k, &hk, mac));
usr/src/uts/common/io/ath/ath_aux.c
955
ath_keyprint(asc, "ath_keyset:", k->wk_keyix, &hk, mac);
usr/src/uts/common/io/ath/ath_aux.c
956
return (ATH_HAL_KEYSET(ah, k->wk_keyix, &hk, mac));
usr/src/uts/common/io/ath/ath_aux.h
69
const uint8_t mac[IEEE80211_ADDR_LEN]);
usr/src/uts/common/io/bfe/bfe.c
1080
ether_addr_t mac[ETHERADDRL] = {0, 0, 0, 0, 0, 0};
usr/src/uts/common/io/bfe/bfe.c
1118
bfe_cam_write(bfe, (uchar_t *)mac, i);
usr/src/uts/common/io/bge/bge_chip2.c
1820
uint64_t mac;
usr/src/uts/common/io/bge/bge_chip2.c
1859
mac = mac_high;
usr/src/uts/common/io/bge/bge_chip2.c
1860
mac = mac << 32;
usr/src/uts/common/io/bge/bge_chip2.c
1861
mac |= mac_low;
usr/src/uts/common/io/bge/bge_chip2.c
1863
mac = BGE_BSWAP_32(mac_high);
usr/src/uts/common/io/bge/bge_chip2.c
1864
mac = mac << 32;
usr/src/uts/common/io/bge/bge_chip2.c
1865
mac |= BGE_BSWAP_32(mac_low);
usr/src/uts/common/io/bge/bge_chip2.c
1868
return (mac);
usr/src/uts/common/io/bge/bge_chip2.c
3738
uint64_t mac;
usr/src/uts/common/io/bge/bge_chip2.c
3774
mac = bge_reg_get64(bgep, MAC_ADDRESS_REG(0));
usr/src/uts/common/io/bge/bge_chip2.c
3781
mac = bge_reg_get64(bgep, MAC_ADDRESS_REG(0));
usr/src/uts/common/io/bge/bge_chip2.c
3790
if (mac != 0ULL)
usr/src/uts/common/io/bge/bge_chip2.c
3801
mac, magic));
usr/src/uts/common/io/bge/bge_chip2.c
3803
return (mac);
usr/src/uts/common/io/bge/bge_chip2.c
3820
uint64_t mac;
usr/src/uts/common/io/bge/bge_chip2.c
4061
mac = bge_poll_firmware(bgep);
usr/src/uts/common/io/bge/bge_chip2.c
4148
if (mac == 0ULL)
usr/src/uts/common/io/bge/bge_chip2.c
4149
mac = bge_get_nvmac(bgep);
usr/src/uts/common/io/bge/bge_chip2.c
4150
if (mac != 0ULL && mac != ~0ULL) {
usr/src/uts/common/io/bge/bge_chip2.c
4151
bgep->chipid.hw_mac_addr = mac;
usr/src/uts/common/io/bge/bge_chip2.c
4153
bgep->chipid.vendor_addr.addr[i] = (uchar_t)mac;
usr/src/uts/common/io/bge/bge_chip2.c
4154
mac >>= 8;
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_common.h
71
u8 *mac)
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_common.h
73
((u8 *)fw_hi)[0] = mac[1];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_common.h
74
((u8 *)fw_hi)[1] = mac[0];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_common.h
75
((u8 *)fw_mid)[0] = mac[3];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_common.h
76
((u8 *)fw_mid)[1] = mac[2];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_common.h
77
((u8 *)fw_lo)[0] = mac[5];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_common.h
78
((u8 *)fw_lo)[1] = mac[4];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1026
data->vlan_mac.mac[0], data->vlan_mac.mac[1], data->vlan_mac.mac[2], data->vlan_mac.mac[3], data->vlan_mac.mac[4], data->vlan_mac.mac[5], data->vlan_mac.vlan);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1031
(mm_memcmp(data->vlan_mac.mac, pos->u.vlan_mac.mac,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1184
u8 *mac = elem->cmd_data.vlan_mac.u.mac.mac;
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1205
ecore_set_mac_in_nig(pdev, add, mac,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1208
ecore_set_mac_in_nig(pdev, add, mac,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1218
&rule_entry->mac.header);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1221
(add ? "add" : "delete"), mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], raw->cl_id);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1224
ecore_set_fw_mac_addr(&rule_entry->mac.mac_msb,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1225
&rule_entry->mac.mac_mid,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1226
&rule_entry->mac.mac_lsb, mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1227
rule_entry->mac.inner_mac =
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1228
mm_cpu_to_le16(elem->cmd_data.vlan_mac.u.mac.is_inner_mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1239
&rule_entry->mac.header);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1242
ecore_set_fw_mac_addr(&rule_entry->mac.mac_msb,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1243
&rule_entry->mac.mac_mid,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1244
&rule_entry->mac.mac_lsb, mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1245
rule_entry->mac.inner_mac =
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1247
u.mac.is_inner_mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1282
struct ecore_vlan_mac_obj *o, BOOL add, int opcode, u8 *mac,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1303
&cfg_entry->lsb_mac_addr, mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1312
u8 *mac, u16 vlan_id, int opcode, struct mac_configuration_cmd *config)
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1319
ecore_vlan_mac_set_cfg_entry_e1x(pdev, o, add, opcode, mac, vlan_id,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1324
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5], raw->cl_id, cam_offset);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1355
elem->cmd_data.vlan_mac.u.mac.mac, 0,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
136
static __inline u32_t ecore_crc32_le(u32_t seed, u8_t *mac, u32_t len)
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
140
memcpy(((u8_t *)(&packet_buf[0]))+2, &mac[0], 2);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
141
memcpy(&packet_buf[1], &mac[2], 4);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1422
u8 *mac = elem->cmd_data.vlan_mac.u.vlan_mac.mac;
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1436
&rule_entry->pair.mac_lsb, mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1454
&rule_entry->pair.mac_lsb, mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1494
elem->cmd_data.vlan_mac.u.vlan_mac.mac,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1573
struct ecore_mac_ramrod_data *data = &elem->cmd_data.vlan_mac.u.mac;
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
1578
if (mm_memcmp(&pos->cmd_data.vlan_mac.u.mac, data,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
2898
static INLINE u8 ecore_mcast_bin_from_mac(u8 *mac)
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
2900
return (ecore_crc32_le(0, mac, ETH_ALEN) >> 24) & 0xff;
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
2905
u8 mac[ETH_ALEN];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
2985
mm_memcpy(cur_mac->mac, pos->mac, ETH_ALEN);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3096
bin = ecore_mcast_bin_from_mac(cfg_data->mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3180
cfg_data.mac = &pmac_pos->mac[0];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3186
pmac_pos->mac[0], pmac_pos->mac[1], pmac_pos->mac[2], pmac_pos->mac[3], pmac_pos->mac[4], pmac_pos->mac[5]);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3305
cfg_data.mac = mlist_pos->mac;
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3311
mlist_pos->mac[0], mlist_pos->mac[1], mlist_pos->mac[2], mlist_pos->mac[3], mlist_pos->mac[4], mlist_pos->mac[5]);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3603
bit = ecore_mcast_bin_from_mac(mlist_pos->mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3607
mlist_pos->mac[0], mlist_pos->mac[1], mlist_pos->mac[2], mlist_pos->mac[3], mlist_pos->mac[4], mlist_pos->mac[5], bit);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3772
cfg_data->mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3836
cfg_data.mac = &elem->mac[0];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3842
cfg_data.mac[0], cfg_data.mac[1], cfg_data.mac[2], cfg_data.mac[3], cfg_data.mac[4], cfg_data.mac[5]);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3871
cfg_data.mac = &pmac_pos->mac[0];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3877
pmac_pos->mac[0], pmac_pos->mac[1], pmac_pos->mac[2], pmac_pos->mac[3], pmac_pos->mac[4], pmac_pos->mac[5]);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3910
__le16 *fw_lo, u8 *mac)
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3912
mac[1] = ((u8 *)fw_hi)[0];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3913
mac[0] = ((u8 *)fw_hi)[1];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3914
mac[3] = ((u8 *)fw_mid)[0];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3915
mac[2] = ((u8 *)fw_mid)[1];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3916
mac[5] = ((u8 *)fw_lo)[0];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3917
mac[4] = ((u8 *)fw_lo)[1];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3961
elem->mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
3963
elem->mac[0], elem->mac[1], elem->mac[2], elem->mac[3], elem->mac[4], elem->mac[5]);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
930
ECORE_MSG(pdev, "Checking MAC %02x:%02x:%02x:%02x:%02x:%02x for ADD command\n", data->mac.mac[0], data->mac.mac[1], data->mac.mac[2], data->mac.mac[3], data->mac.mac[4], data->mac.mac[5]);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
932
if (!ECORE_IS_VALID_ETHER_ADDR(data->mac.mac))
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
938
if (mm_memcmp(data->mac.mac, pos->u.mac.mac, ETH_ALEN) &&
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
939
(data->mac.is_inner_mac == pos->u.mac.is_inner_mac))
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
968
data->vlan_mac.mac[0], data->vlan_mac.mac[1], data->vlan_mac.mac[2], data->vlan_mac.mac[3], data->vlan_mac.mac[4], data->vlan_mac.mac[5], data->vlan_mac.vlan);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
973
(mm_memcmp(data->vlan_mac.mac, pos->u.vlan_mac.mac,
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
990
ECORE_MSG(pdev, "Checking MAC %02x:%02x:%02x:%02x:%02x:%02x for DEL command\n", data->mac.mac[0], data->mac.mac[1], data->mac.mac[2], data->mac.mac[3], data->mac.mac[4], data->mac.mac[5]);
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
994
if ((mm_memcmp(data->mac.mac, pos->u.mac.mac, ETH_ALEN)) &&
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.c
995
(data->mac.is_inner_mac == pos->u.mac.is_inner_mac))
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.h
152
u8 mac[ETH_ALEN];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.h
161
u8 mac[ETH_ALEN];
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.h
167
struct ecore_mac_ramrod_data mac;
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.h
564
u8 *mac;
usr/src/uts/common/io/bnxe/577xx/drivers/common/ecore/ecore_sp_verbs.h
568
u8 *mac;
usr/src/uts/common/io/bnxe/577xx/drivers/common/include/vm/hw_channel.h
330
u8 mac[ETH_ALEN];
usr/src/uts/common/io/bnxe/577xx/drivers/common/include/vm/hw_channel.h
456
u8 mac[ETH_ALEN];
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_devinfo.c
4130
u8_t lm_is_mac_locally_administrated(struct _lm_device_t *pdev, u8_t * mac)
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_devinfo.c
4133
if (mac != NULL)
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_devinfo.c
4135
res = (mac[0] != pdev->params.mac_addr[0]) ||
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_devinfo.c
4136
(mac[1] != pdev->params.mac_addr[1]) ||
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_devinfo.c
4137
(mac[2] != pdev->params.mac_addr[2]) ||
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_devinfo.c
4138
(mac[3] != pdev->params.mac_addr[3]) ||
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_devinfo.c
4139
(mac[4] != pdev->params.mac_addr[4]) ||
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_devinfo.c
4140
(mac[5] != pdev->params.mac_addr[5]);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
1559
ASSERT_STATIC( ETHERNET_ADDRESS_SIZE == sizeof(ramrod_param.user_req.u.vlan_mac.mac) );
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
1561
mm_memcpy( ramrod_param.user_req.u.vlan_mac.mac, mac_addr, sizeof(ramrod_param.user_req.u.vlan_mac.mac));
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
1569
ASSERT_STATIC( ETHERNET_ADDRESS_SIZE == sizeof(ramrod_param.user_req.u.mac.mac) );
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
1571
mm_memcpy( ramrod_param.user_req.u.mac.mac, mac_addr, sizeof(ramrod_param.user_req.u.mac.mac) );
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
1572
ramrod_param.user_req.u.mac.is_inner_mac = is_encap_inner_mac_filter;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
1792
mm_memcpy( ramrod_param.user_req.u.vlan_mac.mac, mac_addr, sizeof(ramrod_param.user_req.u.vlan_mac.mac));
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
1800
mm_memcpy( ramrod_param.user_req.u.mac.mac, mac_addr, sizeof(ramrod_param.user_req.u.mac.mac) );
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
1801
ramrod_param.user_req.u.mac.is_inner_mac = is_encap_inner_mac_filter;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
2263
mc_mac->mac = mc_addrs;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
4237
mm_memcpy(classification_ramrod_data.vlan_mac.mac, mac_addr, sizeof(classification_ramrod_data.vlan_mac.mac));
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
4244
mm_memcpy(classification_ramrod_data.mac.mac, mac_addr, sizeof(classification_ramrod_data.mac.mac) );
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/device/lm_sp.c
4245
classification_ramrod_data.mac.is_inner_mac = is_encap_inner_mac_filter;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/fw/5710_hsi.h
3399
struct eth_classify_mac_cmd mac;
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/include/lm.h
1817
u8_t lm_is_mac_locally_administrated(IN struct _lm_device_t *pdev, IN u8_t * mac);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/lm_vf.c
2187
mm_memcpy(mess->filters[idx_entries].mac, pbuf + idx_entries*ETHERNET_ADDRESS_SIZE, ETHERNET_ADDRESS_SIZE);
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/lm_vf.c
2907
if ((bulletin->mac[0] != pdev->params.mac_addr[0])
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/lm_vf.c
2908
|| (bulletin->mac[1] != pdev->params.mac_addr[1])
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/lm_vf.c
2909
|| (bulletin->mac[2] != pdev->params.mac_addr[2])
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/lm_vf.c
2910
|| (bulletin->mac[3] != pdev->params.mac_addr[3])
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/lm_vf.c
2911
|| (bulletin->mac[4] != pdev->params.mac_addr[4])
usr/src/uts/common/io/bnxe/577xx/drivers/common/lm/vf/channel_vf/lm_vf.c
2912
|| (bulletin->mac[5] != pdev->params.mac_addr[5]))
usr/src/uts/common/io/bnxe/bnxe_hw.c
890
if (IS_ETH_ADDRESS_EQUAL(pMcastAddr, pTmp->mac))
usr/src/uts/common/io/bnxe/bnxe_hw.c
911
pTmp->mac = (u8_t *)pTmp + sizeof(struct ecore_mcast_list_elem);
usr/src/uts/common/io/bnxe/bnxe_hw.c
913
COPY_ETH_ADDRESS(pMcastAddr, pTmp->mac);
usr/src/uts/common/io/bridge.c
585
mac_register_t *mac;
usr/src/uts/common/io/bridge.c
589
if ((mac = mac_alloc(MAC_VERSION)) == NULL)
usr/src/uts/common/io/bridge.c
602
mac_free(mac);
usr/src/uts/common/io/bridge.c
608
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/bridge.c
609
mac->m_driver = bnew;
usr/src/uts/common/io/bridge.c
610
mac->m_dip = bridge_dev_info;
usr/src/uts/common/io/bridge.c
611
mac->m_instance = (uint_t)-1;
usr/src/uts/common/io/bridge.c
612
mac->m_src_addr = (uint8_t *)zero_addr;
usr/src/uts/common/io/bridge.c
613
mac->m_callbacks = &bridge_m_callbacks;
usr/src/uts/common/io/bridge.c
621
mac->m_min_sdu = 1;
usr/src/uts/common/io/bridge.c
622
mac->m_max_sdu = 1500;
usr/src/uts/common/io/bridge.c
623
err = mac_register(mac, &bnew->bm_mh);
usr/src/uts/common/io/bridge.c
624
mac_free(mac);
usr/src/uts/common/io/cardbus/cardbus_cfg.c
2881
uchar_t mac[6];
usr/src/uts/common/io/cardbus/cardbus_cfg.c
2886
if (localetheraddr(NULL, (struct ether_addr *)mac)) {
usr/src/uts/common/io/cardbus/cardbus_cfg.c
2890
(caddr_t)mac, 6);
usr/src/uts/common/io/chxge/ch.c
1499
ch_set_mac_address(gld_mac_info_t *mp, uint8_t *mac)
usr/src/uts/common/io/chxge/ch.c
1509
pe_set_mac(chp, mac);
usr/src/uts/common/io/chxge/com/ch_mac.c
104
static int mac_intr_disable(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ch_mac.c
108
if (t1_is_asic(mac->adapter)) {
usr/src/uts/common/io/chxge/com/ch_mac.c
116
mac_intr = t1_read_reg_4(mac->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/ch_mac.c
118
t1_write_reg_4(mac->adapter, A_PL_ENABLE, mac_intr);
usr/src/uts/common/io/chxge/com/ch_mac.c
120
mac_intr = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
122
mac_intr &= ~(static_aPorts[mac->instance->index]);
usr/src/uts/common/io/chxge/com/ch_mac.c
123
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
130
static int mac_intr_clear(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ch_mac.c
134
if (t1_is_asic(mac->adapter)) {
usr/src/uts/common/io/chxge/com/ch_mac.c
142
t1_write_reg_4(mac->adapter, A_PL_CAUSE,
usr/src/uts/common/io/chxge/com/ch_mac.c
145
mac_intr = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
147
mac_intr |= (static_aPorts[mac->instance->index]);
usr/src/uts/common/io/chxge/com/ch_mac.c
148
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
155
static int mac_get_address(struct cmac *mac, u8 addr[6])
usr/src/uts/common/io/chxge/com/ch_mac.c
159
data32_lo = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
160
MAC_REG_IDLO(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
161
data32_hi = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
162
MAC_REG_IDHI(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
173
static int mac_reset(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ch_mac.c
177
int idx = mac->instance->index;
usr/src/uts/common/io/chxge/com/ch_mac.c
179
data32 = t1_read_reg_4(mac->adapter, MAC_REG_CSR(idx));
usr/src/uts/common/io/chxge/com/ch_mac.c
180
t1_write_reg_4(mac->adapter, MAC_REG_CSR(idx),
usr/src/uts/common/io/chxge/com/ch_mac.c
184
data32 = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
193
adapter_name(mac->adapter), idx);
usr/src/uts/common/io/chxge/com/ch_mac.c
200
static int mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm)
usr/src/uts/common/io/chxge/com/ch_mac.c
204
val = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
205
MAC_REG_CSR(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
209
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
210
MAC_REG_CSR(mac->instance->index), val);
usr/src/uts/common/io/chxge/com/ch_mac.c
215
static int mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex,
usr/src/uts/common/io/chxge/com/ch_mac.c
220
data32 = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
221
MAC_REG_CSR(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
246
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
247
MAC_REG_CSR(mac->instance->index), data32);
usr/src/uts/common/io/chxge/com/ch_mac.c
251
static int mac_enable(struct cmac *mac, int which)
usr/src/uts/common/io/chxge/com/ch_mac.c
255
val = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
256
MAC_REG_CSR(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
261
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
262
MAC_REG_CSR(mac->instance->index), val);
usr/src/uts/common/io/chxge/com/ch_mac.c
266
static int mac_disable(struct cmac *mac, int which)
usr/src/uts/common/io/chxge/com/ch_mac.c
270
val = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
271
MAC_REG_CSR(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
276
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
277
MAC_REG_CSR(mac->instance->index), val);
usr/src/uts/common/io/chxge/com/ch_mac.c
282
mac_set_ifs(struct cmac *mac, u32 mode)
usr/src/uts/common/io/chxge/com/ch_mac.c
284
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
285
MAC_REG_IFS(mac->instance->index), mode);
usr/src/uts/common/io/chxge/com/ch_mac.c
291
mac_enable_isl(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ch_mac.c
293
u32 data32 = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
294
MAC_REG_CSR(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
296
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
297
MAC_REG_CSR(mac->instance->index), data32);
usr/src/uts/common/io/chxge/com/ch_mac.c
302
static int mac_set_mtu(struct cmac *mac, int mtu)
usr/src/uts/common/io/chxge/com/ch_mac.c
306
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
307
MAC_REG_LARGEFRAMELENGTH(mac->instance->index),
usr/src/uts/common/io/chxge/com/ch_mac.c
313
static const struct cmac_statistics *mac_update_statistics(struct cmac *mac,
usr/src/uts/common/io/chxge/com/ch_mac.c
319
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
320
MAC_REG_RMCNT(mac->instance->index), 0);
usr/src/uts/common/io/chxge/com/ch_mac.c
322
*p++ = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
323
MAC_REG_RMDATA(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
326
return (&mac->stats);
usr/src/uts/common/io/chxge/com/ch_mac.c
329
static void mac_destroy(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ch_mac.c
331
t1_os_free((void *)mac, sizeof (*mac) + sizeof (cmac_instance));
usr/src/uts/common/io/chxge/com/ch_mac.c
373
struct cmac *mac;
usr/src/uts/common/io/chxge/com/ch_mac.c
379
mac = t1_os_malloc_wait_zero(sizeof (*mac) + sizeof (cmac_instance));
usr/src/uts/common/io/chxge/com/ch_mac.c
380
if (!mac)
usr/src/uts/common/io/chxge/com/ch_mac.c
383
mac->ops = &chelsio_mac_ops;
usr/src/uts/common/io/chxge/com/ch_mac.c
384
mac->instance = (cmac_instance *) (mac + 1);
usr/src/uts/common/io/chxge/com/ch_mac.c
386
mac->instance->index = index;
usr/src/uts/common/io/chxge/com/ch_mac.c
387
mac->adapter = adapter;
usr/src/uts/common/io/chxge/com/ch_mac.c
389
data32 = t1_read_reg_4(adapter, MAC_REG_CSR(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
393
t1_write_reg_4(adapter, MAC_REG_CSR(mac->instance->index), data32);
usr/src/uts/common/io/chxge/com/ch_mac.c
398
MAC_REG_GMRANDBACKOFFSEED(mac->instance->index), data32);
usr/src/uts/common/io/chxge/com/ch_mac.c
401
data32 = t1_read_reg_4(adapter, MAC_REG_IDLO(mac->instance->index));
usr/src/uts/common/io/chxge/com/ch_mac.c
406
t1_write_reg_4(adapter, MAC_REG_IDLO(mac->instance->index),
usr/src/uts/common/io/chxge/com/ch_mac.c
408
t1_write_reg_4(adapter, MAC_REG_IDHI(mac->instance->index),
usr/src/uts/common/io/chxge/com/ch_mac.c
412
(void) mac_set_mtu(mac, 1500);
usr/src/uts/common/io/chxge/com/ch_mac.c
413
return (mac);
usr/src/uts/common/io/chxge/com/ch_mac.c
78
static int mac_intr_enable(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ch_mac.c
82
if (t1_is_asic(mac->adapter)) {
usr/src/uts/common/io/chxge/com/ch_mac.c
90
mac_intr = t1_read_reg_4(mac->adapter, A_PL_ENABLE);
usr/src/uts/common/io/chxge/com/ch_mac.c
92
t1_write_reg_4(mac->adapter, A_PL_ENABLE, mac_intr);
usr/src/uts/common/io/chxge/com/ch_mac.c
94
mac_intr = t1_read_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_mac.c
96
mac_intr |= static_aPorts[mac->instance->index];
usr/src/uts/common/io/chxge/com/ch_mac.c
97
t1_write_reg_4(mac->adapter,
usr/src/uts/common/io/chxge/com/ch_subr.c
1002
adapter->port[i].mac->ops->interrupt_enable(adapter->
usr/src/uts/common/io/chxge/com/ch_subr.c
1003
port[i].mac);
usr/src/uts/common/io/chxge/com/ch_subr.c
1043
adapter->port[i].mac->ops->interrupt_disable(adapter->
usr/src/uts/common/io/chxge/com/ch_subr.c
1044
port[i].mac);
usr/src/uts/common/io/chxge/com/ch_subr.c
1080
adapter->port[i].mac->ops->interrupt_clear(adapter->
usr/src/uts/common/io/chxge/com/ch_subr.c
1081
port[i].mac);
usr/src/uts/common/io/chxge/com/ch_subr.c
1305
struct cmac *mac = adapter->port[i].mac;
usr/src/uts/common/io/chxge/com/ch_subr.c
1308
if (mac)
usr/src/uts/common/io/chxge/com/ch_subr.c
1309
mac->ops->destroy(mac);
usr/src/uts/common/io/chxge/com/ch_subr.c
1466
struct cmac *mac;
usr/src/uts/common/io/chxge/com/ch_subr.c
1477
adapter->port[i].mac = mac = bi->gmac->create(adapter, i);
usr/src/uts/common/io/chxge/com/ch_subr.c
1478
if (!mac) {
usr/src/uts/common/io/chxge/com/ch_subr.c
1489
mac->ops->macaddress_get(mac, hw_addr);
usr/src/uts/common/io/chxge/com/ch_subr.c
173
struct cmac *mac = adapter->port[port_id].mac;
usr/src/uts/common/io/chxge/com/ch_subr.c
175
mac->ops->set_speed_duplex_fc(mac, speed, duplex, fc);
usr/src/uts/common/io/chxge/com/ch_subr.c
820
t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc)
usr/src/uts/common/io/chxge/com/ch_subr.c
827
if (fc == ((PAUSE_RX | PAUSE_TX) & !is_T2(mac->adapter)))
usr/src/uts/common/io/chxge/com/ch_subr.c
841
mac->ops->set_speed_duplex_fc(mac, lc->speed,
usr/src/uts/common/io/chxge/com/ch_subr.c
853
mac->ops->set_speed_duplex_fc(mac, -1, -1, fc);
usr/src/uts/common/io/chxge/com/ch_subr.c
928
struct cmac *mac = adapter->port[0].mac;
usr/src/uts/common/io/chxge/com/ch_subr.c
930
mac->ops->interrupt_handler(mac);
usr/src/uts/common/io/chxge/com/ch_subr.c
945
struct cmac *mac = adapter->port[0].mac;
usr/src/uts/common/io/chxge/com/ch_subr.c
946
mac->ops->interrupt_handler(mac);
usr/src/uts/common/io/chxge/com/common.h
249
int t1_link_start(struct cphy *phy, struct cmac *mac, struct link_config *lc);
usr/src/uts/common/io/chxge/com/ixf1010.c
154
#define MACREG(mac, mac_reg) ((mac)->instance->mac_base + (mac_reg))
usr/src/uts/common/io/chxge/com/ixf1010.c
163
static void disable_port(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ixf1010.c
167
(void) t1_tpi_read(mac->adapter, REG_PORT_ENABLE, &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
168
val &= ~(1 << mac->instance->index);
usr/src/uts/common/io/chxge/com/ixf1010.c
169
(void) t1_tpi_write(mac->adapter, REG_PORT_ENABLE, val);
usr/src/uts/common/io/chxge/com/ixf1010.c
172
#define RMON_UPDATE(mac, name, stat_name) \
usr/src/uts/common/io/chxge/com/ixf1010.c
173
(void) t1_tpi_read((mac)->adapter, MACREG(mac, REG_##name), &val); \
usr/src/uts/common/io/chxge/com/ixf1010.c
174
(mac)->stats.stat_name += val;
usr/src/uts/common/io/chxge/com/ixf1010.c
180
static void port_stats_update(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ixf1010.c
185
RMON_UPDATE(mac, RxOctetsTotalOK, RxOctetsOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
186
RMON_UPDATE(mac, RxOctetsBad, RxOctetsBad);
usr/src/uts/common/io/chxge/com/ixf1010.c
187
RMON_UPDATE(mac, RxUCPkts, RxUnicastFramesOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
188
RMON_UPDATE(mac, RxMCPkts, RxMulticastFramesOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
189
RMON_UPDATE(mac, RxBCPkts, RxBroadcastFramesOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
190
RMON_UPDATE(mac, RxJumboPkts, RxJumboFramesOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
191
RMON_UPDATE(mac, RxFCSErrors, RxFCSErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
192
RMON_UPDATE(mac, RxAlignErrors, RxAlignErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
193
RMON_UPDATE(mac, RxLongErrors, RxFrameTooLongErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
194
RMON_UPDATE(mac, RxVeryLongErrors, RxFrameTooLongErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
195
RMON_UPDATE(mac, RxPauseMacControlCounter, RxPauseFrames);
usr/src/uts/common/io/chxge/com/ixf1010.c
196
RMON_UPDATE(mac, RxDataErrors, RxDataErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
197
RMON_UPDATE(mac, RxJabberErrors, RxJabberErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
198
RMON_UPDATE(mac, RxRuntErrors, RxRuntErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
199
RMON_UPDATE(mac, RxShortErrors, RxRuntErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
200
RMON_UPDATE(mac, RxSequenceErrors, RxSequenceErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
201
RMON_UPDATE(mac, RxSymbolErrors, RxSymbolErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
204
RMON_UPDATE(mac, TxOctetsTotalOK, TxOctetsOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
205
RMON_UPDATE(mac, TxOctetsBad, TxOctetsBad);
usr/src/uts/common/io/chxge/com/ixf1010.c
206
RMON_UPDATE(mac, TxUCPkts, TxUnicastFramesOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
207
RMON_UPDATE(mac, TxMCPkts, TxMulticastFramesOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
208
RMON_UPDATE(mac, TxBCPkts, TxBroadcastFramesOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
209
RMON_UPDATE(mac, TxJumboPkts, TxJumboFramesOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
210
RMON_UPDATE(mac, TxPauseFrames, TxPauseFrames);
usr/src/uts/common/io/chxge/com/ixf1010.c
211
RMON_UPDATE(mac, TxExcessiveLengthDrop, TxLengthErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
212
RMON_UPDATE(mac, TxUnderrun, TxUnderrun);
usr/src/uts/common/io/chxge/com/ixf1010.c
213
RMON_UPDATE(mac, TxCRCErrors, TxFCSErrors);
usr/src/uts/common/io/chxge/com/ixf1010.c
218
static int mac_intr_op(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ixf1010.c
224
static int mac_set_address(struct cmac *mac, u8 addr[6])
usr/src/uts/common/io/chxge/com/ixf1010.c
236
(void) t1_tpi_write(mac->adapter, MACREG(mac, REG_MACADDR_LOW), addr_lo);
usr/src/uts/common/io/chxge/com/ixf1010.c
237
(void) t1_tpi_write(mac->adapter, MACREG(mac, REG_MACADDR_HIGH), addr_hi);
usr/src/uts/common/io/chxge/com/ixf1010.c
241
static int mac_get_address(struct cmac *mac, u8 addr[6])
usr/src/uts/common/io/chxge/com/ixf1010.c
245
(void) t1_tpi_read(mac->adapter, MACREG(mac, REG_MACADDR_LOW), &addr_lo);
usr/src/uts/common/io/chxge/com/ixf1010.c
246
(void) t1_tpi_read(mac->adapter, MACREG(mac, REG_MACADDR_HIGH), &addr_hi);
usr/src/uts/common/io/chxge/com/ixf1010.c
259
static int mac_reset(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ixf1010.c
264
static int mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm)
usr/src/uts/common/io/chxge/com/ixf1010.c
267
adapter_t *adapter = mac->adapter;
usr/src/uts/common/io/chxge/com/ixf1010.c
271
(void) t1_tpi_read(adapter, MACREG(mac, REG_RX_FILTER), &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
273
if (!t1_rx_mode_promisc(rm) && mac->instance->version > 0)
usr/src/uts/common/io/chxge/com/ixf1010.c
279
(void) t1_tpi_write(adapter, MACREG(mac, REG_RX_FILTER), new_mode);
usr/src/uts/common/io/chxge/com/ixf1010.c
282
(void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_LOW), 0);
usr/src/uts/common/io/chxge/com/ixf1010.c
283
(void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_HIGH), 0);
usr/src/uts/common/io/chxge/com/ixf1010.c
290
(void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_LOW), addr_lo);
usr/src/uts/common/io/chxge/com/ixf1010.c
291
(void) t1_tpi_write(adapter, MACREG(mac, REG_MC_ADDR_HIGH), addr_hi);
usr/src/uts/common/io/chxge/com/ixf1010.c
299
static int mac_set_mtu(struct cmac *mac, int mtu)
usr/src/uts/common/io/chxge/com/ixf1010.c
303
(void) t1_tpi_write(mac->adapter, MACREG(mac, REG_MAX_FRAME_SIZE),
usr/src/uts/common/io/chxge/com/ixf1010.c
308
static int mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex,
usr/src/uts/common/io/chxge/com/ixf1010.c
320
(void) t1_tpi_write(mac->adapter, MACREG(mac, REG_RGMII_SPEED), val);
usr/src/uts/common/io/chxge/com/ixf1010.c
323
(void) t1_tpi_read(mac->adapter, MACREG(mac, REG_FC_ENABLE), &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
329
(void) t1_tpi_write(mac->adapter, MACREG(mac, REG_FC_ENABLE), val);
usr/src/uts/common/io/chxge/com/ixf1010.c
333
static int mac_get_speed_duplex_fc(struct cmac *mac, int *speed, int *duplex,
usr/src/uts/common/io/chxge/com/ixf1010.c
341
(void) t1_tpi_read(mac->adapter, MACREG(mac, REG_RGMII_SPEED),
usr/src/uts/common/io/chxge/com/ixf1010.c
346
(void) t1_tpi_read(mac->adapter, MACREG(mac, REG_FC_ENABLE), &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
356
static void enable_port(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ixf1010.c
359
u32 index = mac->instance->index;
usr/src/uts/common/io/chxge/com/ixf1010.c
360
adapter_t *adapter = mac->adapter;
usr/src/uts/common/io/chxge/com/ixf1010.c
362
(void) t1_tpi_read(adapter, MACREG(mac, REG_DIVERSE_CONFIG), &val);
usr/src/uts/common/io/chxge/com/ixf1010.c
364
(void) t1_tpi_write(adapter, MACREG(mac, REG_DIVERSE_CONFIG), val);
usr/src/uts/common/io/chxge/com/ixf1010.c
365
if (mac->instance->version > 0)
usr/src/uts/common/io/chxge/com/ixf1010.c
366
(void) t1_tpi_write(adapter, MACREG(mac, REG_RX_FILTER), 3);
usr/src/uts/common/io/chxge/com/ixf1010.c
368
(void) t1_tpi_write(adapter, MACREG(mac, REG_RX_FILTER), 2);
usr/src/uts/common/io/chxge/com/ixf1010.c
378
port_stats_update(mac);
usr/src/uts/common/io/chxge/com/ixf1010.c
379
(void) memset(&mac->stats, 0, sizeof(struct cmac_statistics));
usr/src/uts/common/io/chxge/com/ixf1010.c
380
mac->instance->ticks = 0;
usr/src/uts/common/io/chxge/com/ixf1010.c
401
TX_FIFO_XFER_THRES_BASE + mac->instance->index * 4, 0x400);
usr/src/uts/common/io/chxge/com/ixf1010.c
406
static int mac_enable(struct cmac *mac, int which)
usr/src/uts/common/io/chxge/com/ixf1010.c
409
enable_port(mac);
usr/src/uts/common/io/chxge/com/ixf1010.c
413
static int mac_disable(struct cmac *mac, int which)
usr/src/uts/common/io/chxge/com/ixf1010.c
416
disable_port(mac);
usr/src/uts/common/io/chxge/com/ixf1010.c
429
static const struct cmac_statistics *mac_update_statistics(struct cmac *mac,
usr/src/uts/common/io/chxge/com/ixf1010.c
433
MAJOR_UPDATE_TICKS <= mac->instance->ticks) {
usr/src/uts/common/io/chxge/com/ixf1010.c
434
port_stats_update(mac);
usr/src/uts/common/io/chxge/com/ixf1010.c
435
mac->instance->ticks = 0;
usr/src/uts/common/io/chxge/com/ixf1010.c
439
RMON_UPDATE(mac, RxOctetsTotalOK, RxOctetsOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
440
RMON_UPDATE(mac, TxOctetsTotalOK, TxOctetsOK);
usr/src/uts/common/io/chxge/com/ixf1010.c
441
mac->instance->ticks++;
usr/src/uts/common/io/chxge/com/ixf1010.c
443
return &mac->stats;
usr/src/uts/common/io/chxge/com/ixf1010.c
446
static void mac_destroy(struct cmac *mac)
usr/src/uts/common/io/chxge/com/ixf1010.c
448
t1_os_free((void *)mac, sizeof(*mac) + sizeof(cmac_instance));
usr/src/uts/common/io/chxge/com/ixf1010.c
510
struct cmac *mac;
usr/src/uts/common/io/chxge/com/ixf1010.c
515
mac = t1_os_malloc_wait_zero(sizeof(*mac) + sizeof(cmac_instance));
usr/src/uts/common/io/chxge/com/ixf1010.c
516
if (!mac) return NULL;
usr/src/uts/common/io/chxge/com/ixf1010.c
518
mac->ops = &ixf1010_ops;
usr/src/uts/common/io/chxge/com/ixf1010.c
519
mac->instance = (cmac_instance *)(mac + 1);
usr/src/uts/common/io/chxge/com/ixf1010.c
521
mac->instance->mac_base = MACREG_BASE + (index * 0x200);
usr/src/uts/common/io/chxge/com/ixf1010.c
522
mac->instance->index = index;
usr/src/uts/common/io/chxge/com/ixf1010.c
523
mac->adapter = adapter;
usr/src/uts/common/io/chxge/com/ixf1010.c
524
mac->instance->ticks = 0;
usr/src/uts/common/io/chxge/com/ixf1010.c
527
mac->instance->version = val >> 28;
usr/src/uts/common/io/chxge/com/ixf1010.c
528
return mac;
usr/src/uts/common/io/chxge/com/pm3393.c
554
#define RMON_UPDATE(mac, name, stat_name) \
usr/src/uts/common/io/chxge/com/pm3393.c
556
(void) t1_tpi_read((mac)->adapter, OFFSET(name), &val0); \
usr/src/uts/common/io/chxge/com/pm3393.c
557
(void) t1_tpi_read((mac)->adapter, OFFSET(((name)+1)), &val1); \
usr/src/uts/common/io/chxge/com/pm3393.c
558
(void) t1_tpi_read((mac)->adapter, OFFSET(((name)+2)), &val2); \
usr/src/uts/common/io/chxge/com/pm3393.c
559
(mac)->stats.stat_name = (u16)val0 | (((u16)val1) << 16) \
usr/src/uts/common/io/chxge/com/pm3393.c
561
| ((mac)->stats.stat_name & (~(u64)0 << 40)); \
usr/src/uts/common/io/chxge/com/pm3393.c
563
(mac)->stats.stat_name += ((u64)1 << 40); \
usr/src/uts/common/io/chxge/com/pm3393.c
567
static const struct cmac_statistics *pm3393_update_statistics(struct cmac *mac,
usr/src/uts/common/io/chxge/com/pm3393.c
574
(void) pmwrite(mac, SUNI1x10GEXP_REG_MSTAT_CONTROL,
usr/src/uts/common/io/chxge/com/pm3393.c
578
(void) pmread(mac, SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_0, &val0);
usr/src/uts/common/io/chxge/com/pm3393.c
579
(void) pmread(mac, SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_1, &val1);
usr/src/uts/common/io/chxge/com/pm3393.c
580
(void) pmread(mac, SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_2, &val2);
usr/src/uts/common/io/chxge/com/pm3393.c
581
(void) pmread(mac, SUNI1x10GEXP_REG_MSTAT_COUNTER_ROLLOVER_3, &val3);
usr/src/uts/common/io/chxge/com/pm3393.c
586
RMON_UPDATE(mac, RxOctetsReceivedOK, RxOctetsOK);
usr/src/uts/common/io/chxge/com/pm3393.c
587
RMON_UPDATE(mac, RxUnicastFramesReceivedOK, RxUnicastFramesOK);
usr/src/uts/common/io/chxge/com/pm3393.c
588
RMON_UPDATE(mac, RxMulticastFramesReceivedOK, RxMulticastFramesOK);
usr/src/uts/common/io/chxge/com/pm3393.c
589
RMON_UPDATE(mac, RxBroadcastFramesReceivedOK, RxBroadcastFramesOK);
usr/src/uts/common/io/chxge/com/pm3393.c
590
RMON_UPDATE(mac, RxPAUSEMACCtrlFramesReceived, RxPauseFrames);
usr/src/uts/common/io/chxge/com/pm3393.c
591
RMON_UPDATE(mac, RxFrameCheckSequenceErrors, RxFCSErrors);
usr/src/uts/common/io/chxge/com/pm3393.c
592
RMON_UPDATE(mac, RxFramesLostDueToInternalMACErrors, RxInternalMACRcvError);
usr/src/uts/common/io/chxge/com/pm3393.c
593
RMON_UPDATE(mac, RxSymbolErrors, RxSymbolErrors);
usr/src/uts/common/io/chxge/com/pm3393.c
594
RMON_UPDATE(mac, RxInRangeLengthErrors, RxInRangeLengthErrors);
usr/src/uts/common/io/chxge/com/pm3393.c
595
RMON_UPDATE(mac, RxFramesTooLongErrors , RxFrameTooLongErrors);
usr/src/uts/common/io/chxge/com/pm3393.c
596
RMON_UPDATE(mac, RxJabbers, RxJabberErrors);
usr/src/uts/common/io/chxge/com/pm3393.c
597
RMON_UPDATE(mac, RxFragments, RxRuntErrors);
usr/src/uts/common/io/chxge/com/pm3393.c
598
RMON_UPDATE(mac, RxUndersizedFrames, RxRuntErrors);
usr/src/uts/common/io/chxge/com/pm3393.c
601
RMON_UPDATE(mac, TxOctetsTransmittedOK, TxOctetsOK);
usr/src/uts/common/io/chxge/com/pm3393.c
602
RMON_UPDATE(mac, TxFramesLostDueToInternalMACTransmissionError, TxInternalMACXmitError);
usr/src/uts/common/io/chxge/com/pm3393.c
603
RMON_UPDATE(mac, TxTransmitSystemError, TxFCSErrors);
usr/src/uts/common/io/chxge/com/pm3393.c
604
RMON_UPDATE(mac, TxUnicastFramesTransmittedOK, TxUnicastFramesOK);
usr/src/uts/common/io/chxge/com/pm3393.c
605
RMON_UPDATE(mac, TxMulticastFramesTransmittedOK, TxMulticastFramesOK);
usr/src/uts/common/io/chxge/com/pm3393.c
606
RMON_UPDATE(mac, TxBroadcastFramesTransmittedOK, TxBroadcastFramesOK);
usr/src/uts/common/io/chxge/com/pm3393.c
607
RMON_UPDATE(mac, TxPAUSEMACCtrlFramesTransmitted, TxPauseFrames);
usr/src/uts/common/io/chxge/com/pm3393.c
609
return &mac->stats;
usr/src/uts/common/io/chxge/com/vsc7321.c
240
struct cmac *mac;
usr/src/uts/common/io/chxge/com/vsc7321.c
244
mac = t1_os_malloc_wait_zero(sizeof(*mac) + sizeof(cmac_instance));
usr/src/uts/common/io/chxge/com/vsc7321.c
245
if (!mac) return NULL;
usr/src/uts/common/io/chxge/com/vsc7321.c
247
mac->ops = &vsc7321_ops;
usr/src/uts/common/io/chxge/com/vsc7321.c
248
mac->instance = (cmac_instance *)(mac + 1);
usr/src/uts/common/io/chxge/com/vsc7321.c
250
mac->adapter = adapter;
usr/src/uts/common/io/chxge/com/vsc7321.c
251
mac->instance->index = index;
usr/src/uts/common/io/chxge/com/vsc7321.c
273
t1_os_free((void *)mac, sizeof(*mac) + sizeof(cmac_instance));
usr/src/uts/common/io/chxge/com/vsc7321.c
277
mac->instance->version = (val >> 16) & 0xf;
usr/src/uts/common/io/chxge/com/vsc7321.c
280
return mac;
usr/src/uts/common/io/chxge/com/vsc7321.c
284
static int mac_intr_handler(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7321.c
290
static int mac_intr_enable(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7321.c
296
static int mac_intr_disable(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7321.c
302
static int mac_intr_clear(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7321.c
309
static int mac_set_address(struct cmac* mac, u8 addr[6])
usr/src/uts/common/io/chxge/com/vsc7321.c
312
int port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7321.c
322
vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port), addr_lo);
usr/src/uts/common/io/chxge/com/vsc7321.c
323
vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port), addr_hi);
usr/src/uts/common/io/chxge/com/vsc7321.c
327
static int mac_get_address(struct cmac *mac, u8 addr[6])
usr/src/uts/common/io/chxge/com/vsc7321.c
330
int port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7321.c
332
vsc_read(mac->adapter, REG_MAC_LOW_ADDR(port), &addr_lo);
usr/src/uts/common/io/chxge/com/vsc7321.c
333
vsc_read(mac->adapter, REG_MAC_HIGH_ADDR(port), &addr_hi);
usr/src/uts/common/io/chxge/com/vsc7321.c
345
static int mac_reset(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7321.c
347
int index = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7321.c
349
run_table(mac->adapter, vsc7321_portinit[index],
usr/src/uts/common/io/chxge/com/vsc7321.c
355
static int mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm)
usr/src/uts/common/io/chxge/com/vsc7321.c
362
static int mac_set_mtu(struct cmac *mac, int mtu)
usr/src/uts/common/io/chxge/com/vsc7321.c
368
static int mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex,
usr/src/uts/common/io/chxge/com/vsc7321.c
375
static int mac_enable(struct cmac *mac, int which)
usr/src/uts/common/io/chxge/com/vsc7321.c
378
int port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7321.c
380
vsc_read(mac->adapter, REG_MODE_CFG(port), &val);
usr/src/uts/common/io/chxge/com/vsc7321.c
385
vsc_write(mac->adapter, REG_MODE_CFG(port), val);
usr/src/uts/common/io/chxge/com/vsc7321.c
389
static int mac_disable(struct cmac *mac, int which)
usr/src/uts/common/io/chxge/com/vsc7321.c
392
int port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7321.c
394
vsc_read(mac->adapter, REG_MODE_CFG(port), &val);
usr/src/uts/common/io/chxge/com/vsc7321.c
399
vsc_write(mac->adapter, REG_MODE_CFG(port), val);
usr/src/uts/common/io/chxge/com/vsc7321.c
408
int mac_get_statistics(struct cmac* mac, struct cmac_statistics* ps)
usr/src/uts/common/io/chxge/com/vsc7321.c
410
port_stats_update(mac);
usr/src/uts/common/io/chxge/com/vsc7321.c
416
static const struct cmac_statistics *mac_update_statistics(struct cmac *mac,
usr/src/uts/common/io/chxge/com/vsc7321.c
419
return &mac->stats;
usr/src/uts/common/io/chxge/com/vsc7321.c
422
static void mac_destroy(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7321.c
424
t1_os_free((void *)mac, sizeof(*mac) + sizeof(cmac_instance));
usr/src/uts/common/io/chxge/com/vsc7326.c
382
static int mac_intr_handler(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7326.c
388
static int mac_intr_enable(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7326.c
394
static int mac_intr_disable(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7326.c
400
static int mac_intr_clear(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7326.c
406
static int mac_set_address(struct cmac* mac, u8 addr[6])
usr/src/uts/common/io/chxge/com/vsc7326.c
409
int port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7326.c
411
vsc_write(mac->adapter, REG_MAC_LOW_ADDR(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
413
vsc_write(mac->adapter, REG_MAC_HIGH_ADDR(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
416
vsc_read(mac->adapter, REG_ING_FFILT_UM_EN, &val);
usr/src/uts/common/io/chxge/com/vsc7326.c
418
vsc_write(mac->adapter, REG_ING_FFILT_UM_EN, val | (port << 28));
usr/src/uts/common/io/chxge/com/vsc7326.c
420
vsc_write(mac->adapter, REG_ING_FFILT_MASK0,
usr/src/uts/common/io/chxge/com/vsc7326.c
422
vsc_write(mac->adapter, REG_ING_FFILT_MASK1,
usr/src/uts/common/io/chxge/com/vsc7326.c
424
vsc_write(mac->adapter, REG_ING_FFILT_MASK2,
usr/src/uts/common/io/chxge/com/vsc7326.c
429
static int mac_get_address(struct cmac *mac, u8 addr[6])
usr/src/uts/common/io/chxge/com/vsc7326.c
432
int port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7326.c
434
vsc_read(mac->adapter, REG_MAC_LOW_ADDR(port), &addr_lo);
usr/src/uts/common/io/chxge/com/vsc7326.c
435
vsc_read(mac->adapter, REG_MAC_HIGH_ADDR(port), &addr_hi);
usr/src/uts/common/io/chxge/com/vsc7326.c
447
static int mac_reset(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7326.c
449
int index = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7326.c
451
run_table(mac->adapter, vsc7326_portinit[index],
usr/src/uts/common/io/chxge/com/vsc7326.c
457
static int mac_set_rx_mode(struct cmac *mac, struct t1_rx_mode *rm)
usr/src/uts/common/io/chxge/com/vsc7326.c
460
int port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7326.c
462
vsc_read(mac->adapter, REG_ING_FFILT_UM_EN, &v);
usr/src/uts/common/io/chxge/com/vsc7326.c
470
vsc_write(mac->adapter, REG_ING_FFILT_UM_EN, v);
usr/src/uts/common/io/chxge/com/vsc7326.c
474
static int mac_set_mtu(struct cmac *mac, int mtu)
usr/src/uts/common/io/chxge/com/vsc7326.c
476
int port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7326.c
482
vsc_write(mac->adapter, REG_MAX_LEN(port), mtu + 14 + 4);
usr/src/uts/common/io/chxge/com/vsc7326.c
486
static int mac_set_speed_duplex_fc(struct cmac *mac, int speed, int duplex,
usr/src/uts/common/io/chxge/com/vsc7326.c
490
int enable, port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7326.c
499
vsc_read(mac->adapter, REG_MODE_CFG(port), &v);
usr/src/uts/common/io/chxge/com/vsc7326.c
506
vsc_write(mac->adapter, REG_MODE_CFG(port), v);
usr/src/uts/common/io/chxge/com/vsc7326.c
514
vsc_write(mac->adapter, REG_DEV_SETUP(port), v | 1); /* reset */
usr/src/uts/common/io/chxge/com/vsc7326.c
515
vsc_write(mac->adapter, REG_DEV_SETUP(port), v);
usr/src/uts/common/io/chxge/com/vsc7326.c
516
vsc_read(mac->adapter, REG_DBG(port), &v);
usr/src/uts/common/io/chxge/com/vsc7326.c
524
vsc_write(mac->adapter, REG_DBG(port), v);
usr/src/uts/common/io/chxge/com/vsc7326.c
526
vsc_write(mac->adapter, REG_TX_IFG(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
538
vsc_write(mac->adapter, REG_MODE_CFG(port), enable);
usr/src/uts/common/io/chxge/com/vsc7326.c
542
vsc_read(mac->adapter, REG_PAUSE_CFG(port), &v);
usr/src/uts/common/io/chxge/com/vsc7326.c
551
vsc_write(mac->adapter, REG_PAUSE_CFG(port), v);
usr/src/uts/common/io/chxge/com/vsc7326.c
555
static int mac_enable(struct cmac *mac, int which)
usr/src/uts/common/io/chxge/com/vsc7326.c
558
int port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7326.c
560
vsc_read(mac->adapter, REG_MODE_CFG(port), &val);
usr/src/uts/common/io/chxge/com/vsc7326.c
565
vsc_write(mac->adapter, REG_MODE_CFG(port), val);
usr/src/uts/common/io/chxge/com/vsc7326.c
569
static int mac_disable(struct cmac *mac, int which)
usr/src/uts/common/io/chxge/com/vsc7326.c
572
int i, port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7326.c
575
(void) mac_reset(mac);
usr/src/uts/common/io/chxge/com/vsc7326.c
577
vsc_read(mac->adapter, REG_MODE_CFG(port), &val);
usr/src/uts/common/io/chxge/com/vsc7326.c
582
vsc_write(mac->adapter, REG_MODE_CFG(port), val);
usr/src/uts/common/io/chxge/com/vsc7326.c
583
vsc_read(mac->adapter, REG_MODE_CFG(port), &val);
usr/src/uts/common/io/chxge/com/vsc7326.c
587
vsc_write(mac->adapter, CRA(4, port, i), 0);
usr/src/uts/common/io/chxge/com/vsc7326.c
590
memset(&mac->stats, 0, sizeof(struct cmac_statistics));
usr/src/uts/common/io/chxge/com/vsc7326.c
595
static void rmon_update(struct cmac *mac, unsigned int addr, u64 *stat)
usr/src/uts/common/io/chxge/com/vsc7326.c
599
vsc_read(mac->adapter, addr, &v);
usr/src/uts/common/io/chxge/com/vsc7326.c
610
static void port_stats_update(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7326.c
612
int port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7326.c
615
rmon_update(mac, REG_RX_OK_BYTES(port), &mac->stats.RxOctetsOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
616
rmon_update(mac, REG_RX_BAD_BYTES(port), &mac->stats.RxOctetsBad);
usr/src/uts/common/io/chxge/com/vsc7326.c
617
rmon_update(mac, REG_RX_UNICAST(port), &mac->stats.RxUnicastFramesOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
618
rmon_update(mac, REG_RX_MULTICAST(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
619
&mac->stats.RxMulticastFramesOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
620
rmon_update(mac, REG_RX_BROADCAST(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
621
&mac->stats.RxBroadcastFramesOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
622
rmon_update(mac, REG_CRC(port), &mac->stats.RxFCSErrors);
usr/src/uts/common/io/chxge/com/vsc7326.c
623
rmon_update(mac, REG_RX_ALIGNMENT(port), &mac->stats.RxAlignErrors);
usr/src/uts/common/io/chxge/com/vsc7326.c
624
rmon_update(mac, REG_RX_OVERSIZE(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
625
&mac->stats.RxFrameTooLongErrors);
usr/src/uts/common/io/chxge/com/vsc7326.c
626
rmon_update(mac, REG_RX_PAUSE(port), &mac->stats.RxPauseFrames);
usr/src/uts/common/io/chxge/com/vsc7326.c
627
rmon_update(mac, REG_RX_JABBERS(port), &mac->stats.RxJabberErrors);
usr/src/uts/common/io/chxge/com/vsc7326.c
628
rmon_update(mac, REG_RX_FRAGMENTS(port), &mac->stats.RxRuntErrors);
usr/src/uts/common/io/chxge/com/vsc7326.c
629
rmon_update(mac, REG_RX_UNDERSIZE(port), &mac->stats.RxRuntErrors);
usr/src/uts/common/io/chxge/com/vsc7326.c
630
rmon_update(mac, REG_RX_SYMBOL_CARRIER(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
631
&mac->stats.RxSymbolErrors);
usr/src/uts/common/io/chxge/com/vsc7326.c
632
rmon_update(mac, REG_RX_SIZE_1519_TO_MAX(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
633
&mac->stats.RxJumboFramesOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
636
rmon_update(mac, REG_TX_OK_BYTES(port), &mac->stats.TxOctetsOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
637
rmon_update(mac, REG_TX_UNICAST(port), &mac->stats.TxUnicastFramesOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
638
rmon_update(mac, REG_TX_MULTICAST(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
639
&mac->stats.TxMulticastFramesOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
640
rmon_update(mac, REG_TX_BROADCAST(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
641
&mac->stats.TxBroadcastFramesOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
642
rmon_update(mac, REG_TX_PAUSE(port), &mac->stats.TxPauseFrames);
usr/src/uts/common/io/chxge/com/vsc7326.c
643
rmon_update(mac, REG_TX_UNDERRUN(port), &mac->stats.TxUnderrun);
usr/src/uts/common/io/chxge/com/vsc7326.c
644
rmon_update(mac, REG_TX_SIZE_1519_TO_MAX(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
645
&mac->stats.TxJumboFramesOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
657
static const struct cmac_statistics *mac_update_statistics(struct cmac *mac,
usr/src/uts/common/io/chxge/com/vsc7326.c
661
mac->instance->ticks >= MAJOR_UPDATE_TICKS) {
usr/src/uts/common/io/chxge/com/vsc7326.c
662
port_stats_update(mac);
usr/src/uts/common/io/chxge/com/vsc7326.c
663
mac->instance->ticks = 0;
usr/src/uts/common/io/chxge/com/vsc7326.c
665
int port = mac->instance->index;
usr/src/uts/common/io/chxge/com/vsc7326.c
667
rmon_update(mac, REG_RX_OK_BYTES(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
668
&mac->stats.RxOctetsOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
669
rmon_update(mac, REG_RX_BAD_BYTES(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
670
&mac->stats.RxOctetsBad);
usr/src/uts/common/io/chxge/com/vsc7326.c
671
rmon_update(mac, REG_TX_OK_BYTES(port),
usr/src/uts/common/io/chxge/com/vsc7326.c
672
&mac->stats.TxOctetsOK);
usr/src/uts/common/io/chxge/com/vsc7326.c
673
mac->instance->ticks++;
usr/src/uts/common/io/chxge/com/vsc7326.c
675
return &mac->stats;
usr/src/uts/common/io/chxge/com/vsc7326.c
678
static void mac_destroy(struct cmac *mac)
usr/src/uts/common/io/chxge/com/vsc7326.c
680
t1_os_free((void *)mac, sizeof(*mac) + sizeof(cmac_instance));
usr/src/uts/common/io/chxge/com/vsc7326.c
724
struct cmac *mac;
usr/src/uts/common/io/chxge/com/vsc7326.c
728
mac = t1_os_malloc_wait_zero(sizeof(*mac) + sizeof(cmac_instance));
usr/src/uts/common/io/chxge/com/vsc7326.c
729
if (!mac) return NULL;
usr/src/uts/common/io/chxge/com/vsc7326.c
731
mac->ops = &vsc7326_ops;
usr/src/uts/common/io/chxge/com/vsc7326.c
732
mac->instance = (cmac_instance *)(mac + 1);
usr/src/uts/common/io/chxge/com/vsc7326.c
733
mac->adapter = adapter;
usr/src/uts/common/io/chxge/com/vsc7326.c
735
mac->instance->index = index;
usr/src/uts/common/io/chxge/com/vsc7326.c
736
mac->instance->ticks = 0;
usr/src/uts/common/io/chxge/com/vsc7326.c
750
return mac;
usr/src/uts/common/io/chxge/oschtoe.h
176
struct cmac *mac;
usr/src/uts/common/io/chxge/pe.c
1605
struct cmac *mac = chp->port[0].mac;
usr/src/uts/common/io/chxge/pe.c
1608
if (!mac->ops->set_mtu) {
usr/src/uts/common/io/chxge/pe.c
1614
if (ret = mac->ops->set_mtu(mac, chp->ch_mtu)) {
usr/src/uts/common/io/chxge/pe.c
226
struct cmac *mac = p->mac;
usr/src/uts/common/io/chxge/pe.c
228
mac->ops->reset(mac);
usr/src/uts/common/io/chxge/pe.c
229
if (mac->ops->macaddress_set)
usr/src/uts/common/io/chxge/pe.c
230
mac->ops->macaddress_set(mac, p->enaddr);
usr/src/uts/common/io/chxge/pe.c
231
(void) t1_link_start(p->phy, mac, &p->link_config);
usr/src/uts/common/io/chxge/pe.c
232
mac->ops->enable(mac, MAC_DIRECTION_RX | MAC_DIRECTION_TX);
usr/src/uts/common/io/chxge/pe.c
628
sa->port[0].mac->ops->macaddress_set(sa->port[0].mac, ac_enaddr);
usr/src/uts/common/io/chxge/pe.c
642
struct cmac *mac = sa->port[0].mac;
usr/src/uts/common/io/chxge/pe.c
663
mac->ops->set_rx_mode(mac, &rm);
usr/src/uts/common/io/chxge/pe.c
670
struct cmac *mac = sa->port[0].mac;
usr/src/uts/common/io/chxge/pe.c
717
mac->ops->set_rx_mode(mac, &rm);
usr/src/uts/common/io/chxge/pe.c
794
sp = sa->port[0].mac->ops->statistics_update(sa->port[0].mac,
usr/src/uts/common/io/comstar/stmf/stmf.c
6094
struct ether_addr mac;
usr/src/uts/common/io/comstar/stmf/stmf.c
6095
uint8_t *e = (uint8_t *)&mac;
usr/src/uts/common/io/comstar/stmf/stmf.c
6114
if (hid == 0 && !localetheraddr((struct ether_addr *)NULL, &mac)) {
usr/src/uts/common/io/cryptmod.c
1003
mac.cd_format = CRYPTO_DATA_RAW;
usr/src/uts/common/io/cryptmod.c
1004
mac.cd_offset = 0;
usr/src/uts/common/io/cryptmod.c
1005
mac.cd_length = hmaclen;
usr/src/uts/common/io/cryptmod.c
1006
mac.cd_raw = v1;
usr/src/uts/common/io/cryptmod.c
1034
cdata->hmac_tmpl, &mac, NULL);
usr/src/uts/common/io/cryptmod.c
1056
crypto_data_t mac;
usr/src/uts/common/io/cryptmod.c
1072
mac.cd_format = CRYPTO_DATA_RAW;
usr/src/uts/common/io/cryptmod.c
1073
mac.cd_offset = 0;
usr/src/uts/common/io/cryptmod.c
1074
mac.cd_length = hmaclen;
usr/src/uts/common/io/cryptmod.c
1075
mac.cd_raw = v1;
usr/src/uts/common/io/cryptmod.c
1093
cdata->hmac_tmpl, &mac, NULL);
usr/src/uts/common/io/cryptmod.c
1190
crypto_data_t mac;
usr/src/uts/common/io/cryptmod.c
1209
mac.cd_format = CRYPTO_DATA_RAW;
usr/src/uts/common/io/cryptmod.c
1210
mac.cd_offset = 0;
usr/src/uts/common/io/cryptmod.c
1211
mac.cd_length = hmaclen;
usr/src/uts/common/io/cryptmod.c
1212
mac.cd_raw = vmac;
usr/src/uts/common/io/cryptmod.c
1217
rv = crypto_mac(&mac_mech, &dd, key, NULL, &mac, NULL);
usr/src/uts/common/io/cryptmod.c
987
crypto_data_t mac;
usr/src/uts/common/io/cxgbe/common/common.h
679
int port, int pf, int vf, u8 mac[], bool alloc_vi);
usr/src/uts/common/io/cxgbe/common/common.h
681
int port, int pf, int vf, u8 mac[]);
usr/src/uts/common/io/cxgbe/common/common.h
836
unsigned int nmac, u8 *mac, unsigned int *rss_size,
usr/src/uts/common/io/cxgbe/common/common.h
840
unsigned int pf, unsigned int vf, unsigned int nmac, u8 *mac,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10759
int port, int pf, int vf, u8 mac[], bool alloc_vi)
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10827
ret = t4_alloc_vi(pi->adapter, mbox, port, pf, vf, 1, mac,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10876
int port, int pf, int vf, u8 mac[])
usr/src/uts/common/io/cxgbe/common/t4_hw.c
10878
return t4_init_portinfo_viid(pi, mbox, port, pf, vf, mac, true);
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8142
unsigned int nmac, u8 *mac, unsigned int *rss_size,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8165
if (mac) {
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8166
memcpy(mac, c.mac, sizeof(c.mac));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8169
memcpy(mac + 24, c.nmac3, sizeof(c.nmac3));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8172
memcpy(mac + 18, c.nmac2, sizeof(c.nmac2));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8175
memcpy(mac + 12, c.nmac1, sizeof(c.nmac1));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8178
memcpy(mac + 6, c.nmac0, sizeof(c.nmac0));
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8209
unsigned int pf, unsigned int vf, unsigned int nmac, u8 *mac,
usr/src/uts/common/io/cxgbe/common/t4_hw.c
8212
return t4_alloc_vi_func(adap, mbox, port, pf, vf, nmac, mac, rss_size,
usr/src/uts/common/io/cxgbe/firmware/t4fw_interface.h
6549
__u8 mac[6];
usr/src/uts/common/io/cxgbe/firmware/t4fw_interface.h
8957
__u8 mac[6];
usr/src/uts/common/io/cxgbe/firmware/t4fw_interface.h
9282
__u8 mac[6];
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2781
mac_register_t *mac = mac_alloc(MAC_VERSION);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2782
if (mac == NULL) {
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2789
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2790
mac->m_driver = pi;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2791
mac->m_dip = dip;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2792
mac->m_src_addr = pi->hw_addr;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2793
mac->m_callbacks = pi->mc;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2794
mac->m_max_sdu = pi->mtu;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2796
mac->m_priv_props = (char **)props;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2797
mac->m_margin = VLAN_TAGSZ;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2799
if (!mac->m_callbacks->mc_unicst) {
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2801
mac->m_v12n = MAC_VIRT_LEVEL1;
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2805
const int rc = mac_register(mac, &mh);
usr/src/uts/common/io/cxgbe/t4nex/t4_nexus.c
2806
mac_free(mac);
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
1147
if (!hw->mac.ops.check_mng_mode(hw)) {
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
1473
if (!(hw->mac.ops.check_mng_mode(hw) ||
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
198
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
206
mac->ops.check_for_link = e1000_check_for_serdes_link_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
207
mac->ops.setup_physical_interface =
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
212
mac->ops.check_for_link = e1000_check_for_copper_link_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
213
mac->ops.setup_physical_interface =
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
219
mac->mta_reg_count = 128;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
221
mac->rar_entry_count = E1000_RAR_ENTRIES;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
223
mac->asf_firmware_present = TRUE;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
225
mac->has_fwsm = TRUE;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
227
mac->arc_subsystem_valid = !!(E1000_READ_REG(hw, E1000_FWSM) &
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
230
mac->adaptive_ifs = FALSE;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
235
mac->ops.get_bus_info = e1000_get_bus_info_pcie_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
237
mac->ops.reset_hw = e1000_reset_hw_80003es2lan;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
239
mac->ops.init_hw = e1000_init_hw_80003es2lan;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
241
mac->ops.setup_link = e1000_setup_link_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
243
mac->ops.check_mng_mode = e1000_check_mng_mode_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
245
mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
247
mac->ops.write_vfta = e1000_write_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
249
mac->ops.clear_vfta = e1000_clear_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
251
mac->ops.read_mac_addr = e1000_read_mac_addr_80003es2lan;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
253
mac->ops.id_led_init = e1000_id_led_init_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
255
mac->ops.blink_led = e1000_blink_led_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
257
mac->ops.setup_led = e1000_setup_led_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
259
mac->ops.cleanup_led = e1000_cleanup_led_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
261
mac->ops.led_on = e1000_led_on_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
262
mac->ops.led_off = e1000_led_off_generic;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
264
mac->ops.clear_hw_cntrs = e1000_clear_hw_cntrs_80003es2lan;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
266
mac->ops.get_link_up_info = e1000_get_link_up_info_80003es2lan;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
269
hw->mac.ops.set_lan_id(hw);
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
284
hw->mac.ops.init_params = e1000_init_mac_params_80003es2lan;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
735
if (hw->mac.forced_speed_duplex & E1000_ALL_10_SPEED)
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
886
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
897
ret_val = mac->ops.id_led_init(hw);
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
904
mac->ops.clear_vfta(hw);
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
907
e1000_init_rx_addrs_generic(hw, mac->rar_entry_count);
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
911
for (i = 0; i < mac->mta_reg_count; i++)
usr/src/uts/common/io/e1000api/e1000_80003es2lan.c
915
ret_val = mac->ops.setup_link(hw);
usr/src/uts/common/io/e1000api/e1000_82540.c
160
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82540.c
183
mac->mta_reg_count = 128;
usr/src/uts/common/io/e1000api/e1000_82540.c
185
mac->rar_entry_count = E1000_RAR_ENTRIES;
usr/src/uts/common/io/e1000api/e1000_82540.c
190
mac->ops.get_bus_info = e1000_get_bus_info_pci_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
192
mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci;
usr/src/uts/common/io/e1000api/e1000_82540.c
194
mac->ops.reset_hw = e1000_reset_hw_82540;
usr/src/uts/common/io/e1000api/e1000_82540.c
196
mac->ops.init_hw = e1000_init_hw_82540;
usr/src/uts/common/io/e1000api/e1000_82540.c
198
mac->ops.setup_link = e1000_setup_link_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
200
mac->ops.setup_physical_interface =
usr/src/uts/common/io/e1000api/e1000_82540.c
207
mac->ops.check_for_link = e1000_check_for_copper_link_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
210
mac->ops.check_for_link = e1000_check_for_fiber_link_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
213
mac->ops.check_for_link = e1000_check_for_serdes_link_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
221
mac->ops.get_link_up_info =
usr/src/uts/common/io/e1000api/e1000_82540.c
226
mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
228
mac->ops.write_vfta = e1000_write_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
230
mac->ops.clear_vfta = e1000_clear_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
232
mac->ops.read_mac_addr = e1000_read_mac_addr_82540;
usr/src/uts/common/io/e1000api/e1000_82540.c
234
mac->ops.id_led_init = e1000_id_led_init_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
236
mac->ops.setup_led = e1000_setup_led_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
238
mac->ops.cleanup_led = e1000_cleanup_led_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
240
mac->ops.led_on = e1000_led_on_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
241
mac->ops.led_off = e1000_led_off_generic;
usr/src/uts/common/io/e1000api/e1000_82540.c
243
mac->ops.clear_hw_cntrs = e1000_clear_hw_cntrs_82540;
usr/src/uts/common/io/e1000api/e1000_82540.c
259
hw->mac.ops.init_params = e1000_init_mac_params_82540;
usr/src/uts/common/io/e1000api/e1000_82540.c
293
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82540.c
330
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82540.c
338
ret_val = mac->ops.id_led_init(hw);
usr/src/uts/common/io/e1000api/e1000_82540.c
346
if (mac->type < e1000_82545_rev_3)
usr/src/uts/common/io/e1000api/e1000_82540.c
349
mac->ops.clear_vfta(hw);
usr/src/uts/common/io/e1000api/e1000_82540.c
352
e1000_init_rx_addrs_generic(hw, mac->rar_entry_count);
usr/src/uts/common/io/e1000api/e1000_82540.c
356
for (i = 0; i < mac->mta_reg_count; i++) {
usr/src/uts/common/io/e1000api/e1000_82540.c
369
if (mac->type < e1000_82545_rev_3)
usr/src/uts/common/io/e1000api/e1000_82540.c
373
ret_val = mac->ops.setup_link(hw);
usr/src/uts/common/io/e1000api/e1000_82540.c
428
if (hw->mac.type == e1000_82545_rev_3 ||
usr/src/uts/common/io/e1000api/e1000_82540.c
429
hw->mac.type == e1000_82546_rev_3) {
usr/src/uts/common/io/e1000api/e1000_82540.c
462
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82540.c
467
switch (mac->type) {
usr/src/uts/common/io/e1000api/e1000_82540.c
595
if (hw->mac.type != e1000_82545_rev_3)
usr/src/uts/common/io/e1000api/e1000_82540.c
705
hw->mac.perm_addr[i] = (u8)(nvm_data & 0xFF);
usr/src/uts/common/io/e1000api/e1000_82540.c
706
hw->mac.perm_addr[i+1] = (u8)(nvm_data >> 8);
usr/src/uts/common/io/e1000api/e1000_82540.c
711
hw->mac.perm_addr[5] ^= 1;
usr/src/uts/common/io/e1000api/e1000_82540.c
714
hw->mac.addr[i] = hw->mac.perm_addr[i];
usr/src/uts/common/io/e1000api/e1000_82540.c
94
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82541.c
1054
E1000_WRITE_REG(hw, E1000_LEDCTL, hw->mac.ledctl_mode1);
usr/src/uts/common/io/e1000api/e1000_82541.c
1079
E1000_WRITE_REG(hw, E1000_LEDCTL, hw->mac.ledctl_default);
usr/src/uts/common/io/e1000api/e1000_82541.c
1122
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82541.c
1158
if (hw->mac.type == e1000_82547) {
usr/src/uts/common/io/e1000api/e1000_82541.c
1294
hw->mac.perm_addr[i] = (u8)(nvm_data & 0xFF);
usr/src/uts/common/io/e1000api/e1000_82541.c
1295
hw->mac.perm_addr[i+1] = (u8)(nvm_data >> 8);
usr/src/uts/common/io/e1000api/e1000_82541.c
1299
hw->mac.addr[i] = hw->mac.perm_addr[i];
usr/src/uts/common/io/e1000api/e1000_82541.c
221
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82541.c
228
mac->mta_reg_count = 128;
usr/src/uts/common/io/e1000api/e1000_82541.c
230
mac->rar_entry_count = E1000_RAR_ENTRIES;
usr/src/uts/common/io/e1000api/e1000_82541.c
232
mac->asf_firmware_present = TRUE;
usr/src/uts/common/io/e1000api/e1000_82541.c
237
mac->ops.get_bus_info = e1000_get_bus_info_pci_generic;
usr/src/uts/common/io/e1000api/e1000_82541.c
239
mac->ops.set_lan_id = e1000_set_lan_id_single_port;
usr/src/uts/common/io/e1000api/e1000_82541.c
241
mac->ops.reset_hw = e1000_reset_hw_82541;
usr/src/uts/common/io/e1000api/e1000_82541.c
243
mac->ops.init_hw = e1000_init_hw_82541;
usr/src/uts/common/io/e1000api/e1000_82541.c
245
mac->ops.setup_link = e1000_setup_link_generic;
usr/src/uts/common/io/e1000api/e1000_82541.c
247
mac->ops.setup_physical_interface = e1000_setup_copper_link_82541;
usr/src/uts/common/io/e1000api/e1000_82541.c
249
mac->ops.check_for_link = e1000_check_for_link_82541;
usr/src/uts/common/io/e1000api/e1000_82541.c
251
mac->ops.get_link_up_info = e1000_get_link_up_info_82541;
usr/src/uts/common/io/e1000api/e1000_82541.c
253
mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_generic;
usr/src/uts/common/io/e1000api/e1000_82541.c
255
mac->ops.write_vfta = e1000_write_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_82541.c
257
mac->ops.clear_vfta = e1000_clear_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_82541.c
259
mac->ops.read_mac_addr = e1000_read_mac_addr_82541;
usr/src/uts/common/io/e1000api/e1000_82541.c
261
mac->ops.id_led_init = e1000_id_led_init_generic;
usr/src/uts/common/io/e1000api/e1000_82541.c
263
mac->ops.setup_led = e1000_setup_led_82541;
usr/src/uts/common/io/e1000api/e1000_82541.c
265
mac->ops.cleanup_led = e1000_cleanup_led_82541;
usr/src/uts/common/io/e1000api/e1000_82541.c
267
mac->ops.led_on = e1000_led_on_generic;
usr/src/uts/common/io/e1000api/e1000_82541.c
268
mac->ops.led_off = e1000_led_off_generic;
usr/src/uts/common/io/e1000api/e1000_82541.c
270
mac->ops.clear_hw_cntrs = e1000_clear_hw_cntrs_82541;
usr/src/uts/common/io/e1000api/e1000_82541.c
285
hw->mac.ops.init_params = e1000_init_mac_params_82541;
usr/src/uts/common/io/e1000api/e1000_82541.c
318
if ((hw->mac.type == e1000_82541) || (hw->mac.type == e1000_82547)) {
usr/src/uts/common/io/e1000api/e1000_82541.c
325
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82541.c
348
if ((hw->mac.type == e1000_82541) || (hw->mac.type == e1000_82547)) {
usr/src/uts/common/io/e1000api/e1000_82541.c
376
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82541.c
384
ret_val = mac->ops.id_led_init(hw);
usr/src/uts/common/io/e1000api/e1000_82541.c
398
mac->ops.clear_vfta(hw);
usr/src/uts/common/io/e1000api/e1000_82541.c
401
e1000_init_rx_addrs_generic(hw, mac->rar_entry_count);
usr/src/uts/common/io/e1000api/e1000_82541.c
405
for (i = 0; i < mac->mta_reg_count; i++) {
usr/src/uts/common/io/e1000api/e1000_82541.c
417
ret_val = mac->ops.setup_link(hw);
usr/src/uts/common/io/e1000api/e1000_82541.c
512
if ((hw->mac.type == e1000_82541) || (hw->mac.type == e1000_82547)) {
usr/src/uts/common/io/e1000api/e1000_82541.c
549
if (hw->mac.type == e1000_82541 || hw->mac.type == e1000_82547) {
usr/src/uts/common/io/e1000api/e1000_82541.c
560
if (hw->mac.autoneg) {
usr/src/uts/common/io/e1000api/e1000_82541.c
586
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82541.c
598
if (!mac->get_link_status) {
usr/src/uts/common/io/e1000api/e1000_82541.c
617
mac->get_link_status = FALSE;
usr/src/uts/common/io/e1000api/e1000_82541.c
629
if (!mac->autoneg) {
usr/src/uts/common/io/e1000api/e1000_82541.c
641
mac->ops.config_collision_dist(hw);
usr/src/uts/common/io/e1000api/e1000_82541.c
686
ret_val = hw->mac.ops.get_link_up_info(hw, &speed, &duplex);
usr/src/uts/common/io/e1000api/e1000_82541.c
953
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82542.c
102
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82542.c
110
mac->mta_reg_count = 128;
usr/src/uts/common/io/e1000api/e1000_82542.c
112
mac->rar_entry_count = E1000_RAR_ENTRIES;
usr/src/uts/common/io/e1000api/e1000_82542.c
117
mac->ops.get_bus_info = e1000_get_bus_info_82542;
usr/src/uts/common/io/e1000api/e1000_82542.c
119
mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci;
usr/src/uts/common/io/e1000api/e1000_82542.c
121
mac->ops.reset_hw = e1000_reset_hw_82542;
usr/src/uts/common/io/e1000api/e1000_82542.c
123
mac->ops.init_hw = e1000_init_hw_82542;
usr/src/uts/common/io/e1000api/e1000_82542.c
125
mac->ops.setup_link = e1000_setup_link_82542;
usr/src/uts/common/io/e1000api/e1000_82542.c
127
mac->ops.setup_physical_interface =
usr/src/uts/common/io/e1000api/e1000_82542.c
130
mac->ops.check_for_link = e1000_check_for_fiber_link_generic;
usr/src/uts/common/io/e1000api/e1000_82542.c
132
mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_generic;
usr/src/uts/common/io/e1000api/e1000_82542.c
134
mac->ops.write_vfta = e1000_write_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_82542.c
136
mac->ops.clear_vfta = e1000_clear_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_82542.c
138
mac->ops.read_mac_addr = e1000_read_mac_addr_82542;
usr/src/uts/common/io/e1000api/e1000_82542.c
140
mac->ops.rar_set = e1000_rar_set_82542;
usr/src/uts/common/io/e1000api/e1000_82542.c
142
mac->ops.led_on = e1000_led_on_82542;
usr/src/uts/common/io/e1000api/e1000_82542.c
143
mac->ops.led_off = e1000_led_off_82542;
usr/src/uts/common/io/e1000api/e1000_82542.c
145
mac->ops.clear_hw_cntrs = e1000_clear_hw_cntrs_82542;
usr/src/uts/common/io/e1000api/e1000_82542.c
147
mac->ops.get_link_up_info =
usr/src/uts/common/io/e1000api/e1000_82542.c
163
hw->mac.ops.init_params = e1000_init_mac_params_82542;
usr/src/uts/common/io/e1000api/e1000_82542.c
245
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82542.c
255
mac->ops.clear_vfta(hw);
usr/src/uts/common/io/e1000api/e1000_82542.c
267
e1000_init_rx_addrs_generic(hw, mac->rar_entry_count);
usr/src/uts/common/io/e1000api/e1000_82542.c
280
for (i = 0; i < mac->mta_reg_count; i++)
usr/src/uts/common/io/e1000api/e1000_82542.c
319
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82542.c
330
if (mac->report_tx_early)
usr/src/uts/common/io/e1000api/e1000_82542.c
343
ret_val = mac->ops.setup_physical_interface(hw);
usr/src/uts/common/io/e1000api/e1000_82542.c
582
hw->mac.perm_addr[i] = (u8)(nvm_data & 0xFF);
usr/src/uts/common/io/e1000api/e1000_82542.c
583
hw->mac.perm_addr[i+1] = (u8)(nvm_data >> 8);
usr/src/uts/common/io/e1000api/e1000_82542.c
587
hw->mac.addr[i] = hw->mac.perm_addr[i];
usr/src/uts/common/io/e1000api/e1000_82543.c
1034
if (hw->mac.type == e1000_82543) {
usr/src/uts/common/io/e1000api/e1000_82543.c
1075
if (hw->mac.type == e1000_82543) {
usr/src/uts/common/io/e1000api/e1000_82543.c
1091
if (hw->mac.autoneg) {
usr/src/uts/common/io/e1000api/e1000_82543.c
110
phy->ops.read_reg = (hw->mac.type == e1000_82543)
usr/src/uts/common/io/e1000api/e1000_82543.c
1125
if (hw->mac.type == e1000_82544) {
usr/src/uts/common/io/e1000api/e1000_82543.c
1126
hw->mac.ops.config_collision_dist(hw);
usr/src/uts/common/io/e1000api/e1000_82543.c
113
phy->ops.reset = (hw->mac.type == e1000_82543)
usr/src/uts/common/io/e1000api/e1000_82543.c
116
phy->ops.write_reg = (hw->mac.type == e1000_82543)
usr/src/uts/common/io/e1000api/e1000_82543.c
1160
hw->mac.ops.config_collision_dist(hw);
usr/src/uts/common/io/e1000api/e1000_82543.c
1199
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82543.c
1207
if (!mac->get_link_status) {
usr/src/uts/common/io/e1000api/e1000_82543.c
1219
mac->get_link_status = FALSE;
usr/src/uts/common/io/e1000api/e1000_82543.c
1227
if (!mac->autoneg) {
usr/src/uts/common/io/e1000api/e1000_82543.c
1236
if (mac->forced_speed_duplex & E1000_ALL_10_SPEED) {
usr/src/uts/common/io/e1000api/e1000_82543.c
1257
if (mac->type == e1000_82544)
usr/src/uts/common/io/e1000api/e1000_82543.c
1258
hw->mac.ops.config_collision_dist(hw);
usr/src/uts/common/io/e1000api/e1000_82543.c
1286
ret_val = mac->ops.get_link_up_info(hw, &speed, &duplex);
usr/src/uts/common/io/e1000api/e1000_82543.c
1335
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82543.c
1357
if (!mac->autoneg_failed) {
usr/src/uts/common/io/e1000api/e1000_82543.c
1358
mac->autoneg_failed = TRUE;
usr/src/uts/common/io/e1000api/e1000_82543.c
1365
E1000_WRITE_REG(hw, E1000_TXCW, (mac->txcw & ~E1000_TXCW_ANE));
usr/src/uts/common/io/e1000api/e1000_82543.c
1386
E1000_WRITE_REG(hw, E1000_TXCW, mac->txcw);
usr/src/uts/common/io/e1000api/e1000_82543.c
1389
mac->serdes_has_link = TRUE;
usr/src/uts/common/io/e1000api/e1000_82543.c
140
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82543.c
1431
hw->mac.ops.config_collision_dist(hw);
usr/src/uts/common/io/e1000api/e1000_82543.c
1463
if ((hw->mac.type == e1000_82544) && (offset & 1)) {
usr/src/uts/common/io/e1000api/e1000_82543.c
1486
if (hw->mac.type == e1000_82544 &&
usr/src/uts/common/io/e1000api/e1000_82543.c
1513
if (hw->mac.type == e1000_82544 &&
usr/src/uts/common/io/e1000api/e1000_82543.c
1583
hw->mac.perm_addr[i] = (u8)(nvm_data & 0xFF);
usr/src/uts/common/io/e1000api/e1000_82543.c
1584
hw->mac.perm_addr[i+1] = (u8)(nvm_data >> 8);
usr/src/uts/common/io/e1000api/e1000_82543.c
1589
hw->mac.perm_addr[5] ^= 1;
usr/src/uts/common/io/e1000api/e1000_82543.c
1592
hw->mac.addr[i] = hw->mac.perm_addr[i];
usr/src/uts/common/io/e1000api/e1000_82543.c
195
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82543.c
211
mac->mta_reg_count = 128;
usr/src/uts/common/io/e1000api/e1000_82543.c
213
mac->rar_entry_count = E1000_RAR_ENTRIES;
usr/src/uts/common/io/e1000api/e1000_82543.c
218
mac->ops.get_bus_info = e1000_get_bus_info_pci_generic;
usr/src/uts/common/io/e1000api/e1000_82543.c
220
mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pci;
usr/src/uts/common/io/e1000api/e1000_82543.c
222
mac->ops.reset_hw = e1000_reset_hw_82543;
usr/src/uts/common/io/e1000api/e1000_82543.c
224
mac->ops.init_hw = e1000_init_hw_82543;
usr/src/uts/common/io/e1000api/e1000_82543.c
226
mac->ops.setup_link = e1000_setup_link_82543;
usr/src/uts/common/io/e1000api/e1000_82543.c
228
mac->ops.setup_physical_interface =
usr/src/uts/common/io/e1000api/e1000_82543.c
232
mac->ops.check_for_link =
usr/src/uts/common/io/e1000api/e1000_82543.c
237
mac->ops.get_link_up_info =
usr/src/uts/common/io/e1000api/e1000_82543.c
242
mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_generic;
usr/src/uts/common/io/e1000api/e1000_82543.c
244
mac->ops.write_vfta = e1000_write_vfta_82543;
usr/src/uts/common/io/e1000api/e1000_82543.c
246
mac->ops.clear_vfta = e1000_clear_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_82543.c
248
mac->ops.read_mac_addr = e1000_read_mac_addr_82543;
usr/src/uts/common/io/e1000api/e1000_82543.c
250
mac->ops.led_on = e1000_led_on_82543;
usr/src/uts/common/io/e1000api/e1000_82543.c
251
mac->ops.led_off = e1000_led_off_82543;
usr/src/uts/common/io/e1000api/e1000_82543.c
253
mac->ops.clear_hw_cntrs = e1000_clear_hw_cntrs_82543;
usr/src/uts/common/io/e1000api/e1000_82543.c
256
if ((hw->mac.type != e1000_82543) ||
usr/src/uts/common/io/e1000api/e1000_82543.c
273
hw->mac.ops.init_params = e1000_init_mac_params_82543;
usr/src/uts/common/io/e1000api/e1000_82543.c
292
if (hw->mac.type != e1000_82543) {
usr/src/uts/common/io/e1000api/e1000_82543.c
316
if (hw->mac.type != e1000_82543) {
usr/src/uts/common/io/e1000api/e1000_82543.c
344
if (hw->mac.type != e1000_82543) {
usr/src/uts/common/io/e1000api/e1000_82543.c
390
if (hw->mac.type != e1000_82543) {
usr/src/uts/common/io/e1000api/e1000_82543.c
751
if (!hw->mac.autoneg && (hw->mac.forced_speed_duplex &
usr/src/uts/common/io/e1000api/e1000_82543.c
926
if (hw->mac.type == e1000_82543) {
usr/src/uts/common/io/e1000api/e1000_82543.c
958
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82543.c
968
mac->ops.clear_vfta(hw);
usr/src/uts/common/io/e1000api/e1000_82543.c
971
e1000_init_rx_addrs_generic(hw, mac->rar_entry_count);
usr/src/uts/common/io/e1000api/e1000_82543.c
975
for (i = 0; i < mac->mta_reg_count; i++) {
usr/src/uts/common/io/e1000api/e1000_82543.c
985
if (hw->mac.type == e1000_82543 && dev_spec->dma_fairness) {
usr/src/uts/common/io/e1000api/e1000_82543.c
993
ret_val = mac->ops.setup_link(hw);
usr/src/uts/common/io/e1000api/e1000_82571.c
1093
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1111
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1145
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1168
if (hw->mac.type == e1000_82571) {
usr/src/uts/common/io/e1000api/e1000_82571.c
117
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1179
hw->mac.serdes_link_state = e1000_serdes_link_down;
usr/src/uts/common/io/e1000api/e1000_82571.c
1192
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82571.c
1195
u16 i, rar_count = mac->rar_entry_count;
usr/src/uts/common/io/e1000api/e1000_82571.c
1202
ret_val = mac->ops.id_led_init(hw);
usr/src/uts/common/io/e1000api/e1000_82571.c
1209
mac->ops.clear_vfta(hw);
usr/src/uts/common/io/e1000api/e1000_82571.c
1222
for (i = 0; i < mac->mta_reg_count; i++)
usr/src/uts/common/io/e1000api/e1000_82571.c
1226
ret_val = mac->ops.setup_link(hw);
usr/src/uts/common/io/e1000api/e1000_82571.c
1235
switch (mac->type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1289
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1305
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1321
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1334
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1347
if (hw->mac.type == e1000_82571) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1356
if ((hw->mac.type == e1000_82571) ||
usr/src/uts/common/io/e1000api/e1000_82571.c
1357
(hw->mac.type == e1000_82572)) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1366
if (hw->mac.type <= e1000_82573) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1373
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1413
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1480
ctrl = hw->mac.ledctl_mode2;
usr/src/uts/common/io/e1000api/e1000_82571.c
1486
if (((hw->mac.ledctl_mode2 >> (i * 8)) & 0xFF) ==
usr/src/uts/common/io/e1000api/e1000_82571.c
1548
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1612
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1652
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82571.c
1671
switch (mac->serdes_link_state) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1677
mac->serdes_link_state =
usr/src/uts/common/io/e1000api/e1000_82571.c
1679
mac->serdes_has_link = FALSE;
usr/src/uts/common/io/e1000api/e1000_82571.c
1682
mac->serdes_has_link = TRUE;
usr/src/uts/common/io/e1000api/e1000_82571.c
1694
E1000_WRITE_REG(hw, E1000_TXCW, mac->txcw);
usr/src/uts/common/io/e1000api/e1000_82571.c
1697
mac->serdes_link_state =
usr/src/uts/common/io/e1000api/e1000_82571.c
1699
mac->serdes_has_link = FALSE;
usr/src/uts/common/io/e1000api/e1000_82571.c
1702
mac->serdes_has_link = TRUE;
usr/src/uts/common/io/e1000api/e1000_82571.c
1713
mac->serdes_link_state =
usr/src/uts/common/io/e1000api/e1000_82571.c
1716
mac->serdes_has_link = TRUE;
usr/src/uts/common/io/e1000api/e1000_82571.c
1719
mac->serdes_link_state =
usr/src/uts/common/io/e1000api/e1000_82571.c
1729
(mac->txcw & ~E1000_TXCW_ANE));
usr/src/uts/common/io/e1000api/e1000_82571.c
1740
mac->serdes_link_state =
usr/src/uts/common/io/e1000api/e1000_82571.c
1742
mac->serdes_has_link = TRUE;
usr/src/uts/common/io/e1000api/e1000_82571.c
175
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1753
E1000_WRITE_REG(hw, E1000_TXCW, mac->txcw);
usr/src/uts/common/io/e1000api/e1000_82571.c
1756
mac->serdes_link_state =
usr/src/uts/common/io/e1000api/e1000_82571.c
1758
mac->serdes_has_link = FALSE;
usr/src/uts/common/io/e1000api/e1000_82571.c
1764
mac->serdes_has_link = FALSE;
usr/src/uts/common/io/e1000api/e1000_82571.c
1765
mac->serdes_link_state = e1000_serdes_link_down;
usr/src/uts/common/io/e1000api/e1000_82571.c
1780
mac->serdes_has_link = FALSE;
usr/src/uts/common/io/e1000api/e1000_82571.c
1781
mac->serdes_link_state =
usr/src/uts/common/io/e1000api/e1000_82571.c
1792
mac->serdes_link_state =
usr/src/uts/common/io/e1000api/e1000_82571.c
1794
mac->serdes_has_link = FALSE;
usr/src/uts/common/io/e1000api/e1000_82571.c
1823
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1850
if (hw->mac.type != e1000_82571)
usr/src/uts/common/io/e1000api/e1000_82571.c
1867
if (hw->mac.type != e1000_82571)
usr/src/uts/common/io/e1000api/e1000_82571.c
1880
hw->mac.ops.rar_set(hw, hw->mac.addr,
usr/src/uts/common/io/e1000api/e1000_82571.c
1881
hw->mac.rar_entry_count - 1);
usr/src/uts/common/io/e1000api/e1000_82571.c
1948
if (hw->mac.type == e1000_82571) {
usr/src/uts/common/io/e1000api/e1000_82571.c
1973
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82571.c
1979
if (!(mac->ops.check_mng_mode(hw) || phy->ops.check_reset_block(hw)))
usr/src/uts/common/io/e1000api/e1000_82571.c
230
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
262
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
288
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82571.c
301
mac->ops.setup_physical_interface =
usr/src/uts/common/io/e1000api/e1000_82571.c
303
mac->ops.check_for_link = e1000_check_for_fiber_link_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
304
mac->ops.get_link_up_info =
usr/src/uts/common/io/e1000api/e1000_82571.c
312
mac->ops.setup_physical_interface =
usr/src/uts/common/io/e1000api/e1000_82571.c
314
mac->ops.check_for_link = e1000_check_for_serdes_link_82571;
usr/src/uts/common/io/e1000api/e1000_82571.c
315
mac->ops.get_link_up_info =
usr/src/uts/common/io/e1000api/e1000_82571.c
320
mac->ops.setup_physical_interface =
usr/src/uts/common/io/e1000api/e1000_82571.c
322
mac->ops.check_for_link = e1000_check_for_copper_link_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
323
mac->ops.get_link_up_info =
usr/src/uts/common/io/e1000api/e1000_82571.c
329
mac->mta_reg_count = 128;
usr/src/uts/common/io/e1000api/e1000_82571.c
331
mac->rar_entry_count = E1000_RAR_ENTRIES;
usr/src/uts/common/io/e1000api/e1000_82571.c
333
mac->asf_firmware_present = TRUE;
usr/src/uts/common/io/e1000api/e1000_82571.c
335
mac->adaptive_ifs = TRUE;
usr/src/uts/common/io/e1000api/e1000_82571.c
340
mac->ops.get_bus_info = e1000_get_bus_info_pcie_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
342
mac->ops.reset_hw = e1000_reset_hw_82571;
usr/src/uts/common/io/e1000api/e1000_82571.c
344
mac->ops.init_hw = e1000_init_hw_82571;
usr/src/uts/common/io/e1000api/e1000_82571.c
346
mac->ops.setup_link = e1000_setup_link_82571;
usr/src/uts/common/io/e1000api/e1000_82571.c
348
mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
350
mac->ops.write_vfta = e1000_write_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
352
mac->ops.clear_vfta = e1000_clear_vfta_82571;
usr/src/uts/common/io/e1000api/e1000_82571.c
354
mac->ops.read_mac_addr = e1000_read_mac_addr_82571;
usr/src/uts/common/io/e1000api/e1000_82571.c
356
mac->ops.id_led_init = e1000_id_led_init_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
358
mac->ops.setup_led = e1000_setup_led_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
360
mac->ops.cleanup_led = e1000_cleanup_led_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
362
mac->ops.led_off = e1000_led_off_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
364
mac->ops.clear_hw_cntrs = e1000_clear_hw_cntrs_82571;
usr/src/uts/common/io/e1000api/e1000_82571.c
367
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
369
mac->ops.set_lan_id = e1000_set_lan_id_single_port;
usr/src/uts/common/io/e1000api/e1000_82571.c
370
mac->ops.check_mng_mode = e1000_check_mng_mode_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
371
mac->ops.led_on = e1000_led_on_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
372
mac->ops.blink_led = e1000_blink_led_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
375
mac->has_fwsm = TRUE;
usr/src/uts/common/io/e1000api/e1000_82571.c
379
mac->arc_subsystem_valid = !!(E1000_READ_REG(hw, E1000_FWSM) &
usr/src/uts/common/io/e1000api/e1000_82571.c
384
mac->ops.set_lan_id = e1000_set_lan_id_single_port;
usr/src/uts/common/io/e1000api/e1000_82571.c
385
mac->ops.check_mng_mode = e1000_check_mng_mode_82574;
usr/src/uts/common/io/e1000api/e1000_82571.c
386
mac->ops.led_on = e1000_led_on_82574;
usr/src/uts/common/io/e1000api/e1000_82571.c
389
mac->ops.check_mng_mode = e1000_check_mng_mode_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
390
mac->ops.led_on = e1000_led_on_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
391
mac->ops.blink_led = e1000_blink_led_generic;
usr/src/uts/common/io/e1000api/e1000_82571.c
394
mac->has_fwsm = TRUE;
usr/src/uts/common/io/e1000api/e1000_82571.c
404
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
452
hw->mac.ops.init_params = e1000_init_mac_params_82571;
usr/src/uts/common/io/e1000api/e1000_82571.c
472
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
753
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82571.c
800
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82575.c
1000
if (hw->mac.type == e1000_i350) {
usr/src/uts/common/io/e1000api/e1000_82575.c
1011
if (hw->mac.type == e1000_82580) {
usr/src/uts/common/io/e1000api/e1000_82575.c
1210
hw->mac.get_link_status = !hw->mac.serdes_has_link;
usr/src/uts/common/io/e1000api/e1000_82575.c
1331
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82575.c
1348
mac->serdes_has_link = TRUE;
usr/src/uts/common/io/e1000api/e1000_82575.c
1365
if (mac->type == e1000_i354) {
usr/src/uts/common/io/e1000api/e1000_82575.c
1377
mac->serdes_has_link = FALSE;
usr/src/uts/common/io/e1000api/e1000_82575.c
140
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82575.c
1493
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82575.c
1495
u16 i, rar_count = mac->rar_entry_count;
usr/src/uts/common/io/e1000api/e1000_82575.c
1500
ret_val = mac->ops.id_led_init(hw);
usr/src/uts/common/io/e1000api/e1000_82575.c
1508
mac->ops.clear_vfta(hw);
usr/src/uts/common/io/e1000api/e1000_82575.c
1515
for (i = 0; i < mac->mta_reg_count; i++)
usr/src/uts/common/io/e1000api/e1000_82575.c
1520
for (i = 0; i < mac->uta_reg_count; i++)
usr/src/uts/common/io/e1000api/e1000_82575.c
1524
ret_val = mac->ops.setup_link(hw);
usr/src/uts/common/io/e1000api/e1000_82575.c
1562
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82575.c
1664
if (hw->mac.type == e1000_82575 || hw->mac.type == e1000_82576)
usr/src/uts/common/io/e1000api/e1000_82575.c
1670
pcs_autoneg = hw->mac.autoneg;
usr/src/uts/common/io/e1000api/e1000_82575.c
1684
if (hw->mac.type == e1000_82575 ||
usr/src/uts/common/io/e1000api/e1000_82575.c
1685
hw->mac.type == e1000_82576) {
usr/src/uts/common/io/e1000api/e1000_82575.c
1978
if (hw->mac.type == e1000_82575) {
usr/src/uts/common/io/e1000api/e1000_82575.c
209
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82575.c
2159
if (hw->mac.type != e1000_82575 ||
usr/src/uts/common/io/e1000api/e1000_82575.c
2280
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82575.c
2318
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82575.c
2432
if (hw->mac.type != e1000_82580)
usr/src/uts/common/io/e1000api/e1000_82575.c
2475
if (hw->mac.type == e1000_82580)
usr/src/uts/common/io/e1000api/e1000_82575.c
2498
if (global_device_reset && hw->mac.ops.acquire_swfw_sync(hw,
usr/src/uts/common/io/e1000api/e1000_82575.c
2547
hw->mac.ops.release_swfw_sync(hw, swmbsw_mask);
usr/src/uts/common/io/e1000api/e1000_82575.c
273
hw->mac.ops.check_for_link =
usr/src/uts/common/io/e1000api/e1000_82575.c
3026
if ((hw->mac.type < e1000_i350) ||
usr/src/uts/common/io/e1000api/e1000_82575.c
3287
if (hw->mac.ops.acquire_swfw_sync(hw, swfw_mask)
usr/src/uts/common/io/e1000api/e1000_82575.c
3335
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/e1000api/e1000_82575.c
3346
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/e1000api/e1000_82575.c
3375
if (hw->mac.ops.acquire_swfw_sync(hw, swfw_mask) != E1000_SUCCESS) {
usr/src/uts/common/io/e1000api/e1000_82575.c
3419
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/e1000api/e1000_82575.c
353
if (hw->mac.type < e1000_i210) {
usr/src/uts/common/io/e1000api/e1000_82575.c
394
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_82575.c
417
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_82575.c
425
mac->mta_reg_count = 128;
usr/src/uts/common/io/e1000api/e1000_82575.c
427
mac->uta_reg_count = (hw->mac.type == e1000_82575) ? 0 : 128;
usr/src/uts/common/io/e1000api/e1000_82575.c
429
mac->rar_entry_count = E1000_RAR_ENTRIES_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
430
if (mac->type == e1000_82576)
usr/src/uts/common/io/e1000api/e1000_82575.c
431
mac->rar_entry_count = E1000_RAR_ENTRIES_82576;
usr/src/uts/common/io/e1000api/e1000_82575.c
432
if (mac->type == e1000_82580)
usr/src/uts/common/io/e1000api/e1000_82575.c
433
mac->rar_entry_count = E1000_RAR_ENTRIES_82580;
usr/src/uts/common/io/e1000api/e1000_82575.c
434
if (mac->type == e1000_i350 || mac->type == e1000_i354)
usr/src/uts/common/io/e1000api/e1000_82575.c
435
mac->rar_entry_count = E1000_RAR_ENTRIES_I350;
usr/src/uts/common/io/e1000api/e1000_82575.c
438
if (mac->type >= e1000_i350)
usr/src/uts/common/io/e1000api/e1000_82575.c
442
if (mac->type >= e1000_i210)
usr/src/uts/common/io/e1000api/e1000_82575.c
446
mac->asf_firmware_present = TRUE;
usr/src/uts/common/io/e1000api/e1000_82575.c
448
mac->has_fwsm = TRUE;
usr/src/uts/common/io/e1000api/e1000_82575.c
450
mac->arc_subsystem_valid =
usr/src/uts/common/io/e1000api/e1000_82575.c
456
mac->ops.get_bus_info = e1000_get_bus_info_pcie_generic;
usr/src/uts/common/io/e1000api/e1000_82575.c
458
if (mac->type >= e1000_82580)
usr/src/uts/common/io/e1000api/e1000_82575.c
459
mac->ops.reset_hw = e1000_reset_hw_82580;
usr/src/uts/common/io/e1000api/e1000_82575.c
461
mac->ops.reset_hw = e1000_reset_hw_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
463
if ((mac->type == e1000_i210) || (mac->type == e1000_i211))
usr/src/uts/common/io/e1000api/e1000_82575.c
464
mac->ops.init_hw = e1000_init_hw_i210;
usr/src/uts/common/io/e1000api/e1000_82575.c
466
mac->ops.init_hw = e1000_init_hw_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
468
mac->ops.setup_link = e1000_setup_link_generic;
usr/src/uts/common/io/e1000api/e1000_82575.c
470
mac->ops.setup_physical_interface =
usr/src/uts/common/io/e1000api/e1000_82575.c
474
mac->ops.shutdown_serdes = e1000_shutdown_serdes_link_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
476
mac->ops.power_up_serdes = e1000_power_up_serdes_link_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
478
mac->ops.check_for_link = e1000_check_for_link_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
480
mac->ops.read_mac_addr = e1000_read_mac_addr_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
482
mac->ops.config_collision_dist = e1000_config_collision_dist_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
484
mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_generic;
usr/src/uts/common/io/e1000api/e1000_82575.c
485
if (hw->mac.type == e1000_i350 || mac->type == e1000_i354) {
usr/src/uts/common/io/e1000api/e1000_82575.c
487
mac->ops.write_vfta = e1000_write_vfta_i350;
usr/src/uts/common/io/e1000api/e1000_82575.c
489
mac->ops.clear_vfta = e1000_clear_vfta_i350;
usr/src/uts/common/io/e1000api/e1000_82575.c
492
mac->ops.write_vfta = e1000_write_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_82575.c
494
mac->ops.clear_vfta = e1000_clear_vfta_generic;
usr/src/uts/common/io/e1000api/e1000_82575.c
496
if (hw->mac.type >= e1000_82580)
usr/src/uts/common/io/e1000api/e1000_82575.c
497
mac->ops.validate_mdi_setting =
usr/src/uts/common/io/e1000api/e1000_82575.c
500
mac->ops.id_led_init = e1000_id_led_init_generic;
usr/src/uts/common/io/e1000api/e1000_82575.c
502
mac->ops.blink_led = e1000_blink_led_generic;
usr/src/uts/common/io/e1000api/e1000_82575.c
504
mac->ops.setup_led = e1000_setup_led_generic;
usr/src/uts/common/io/e1000api/e1000_82575.c
506
mac->ops.cleanup_led = e1000_cleanup_led_generic;
usr/src/uts/common/io/e1000api/e1000_82575.c
508
mac->ops.led_on = e1000_led_on_generic;
usr/src/uts/common/io/e1000api/e1000_82575.c
509
mac->ops.led_off = e1000_led_off_generic;
usr/src/uts/common/io/e1000api/e1000_82575.c
511
mac->ops.clear_hw_cntrs = e1000_clear_hw_cntrs_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
513
mac->ops.get_link_up_info = e1000_get_link_up_info_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
515
mac->ops.acquire_swfw_sync = e1000_acquire_swfw_sync_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
516
mac->ops.release_swfw_sync = e1000_release_swfw_sync_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
517
if (mac->type >= e1000_i210) {
usr/src/uts/common/io/e1000api/e1000_82575.c
518
mac->ops.acquire_swfw_sync = e1000_acquire_swfw_sync_i210;
usr/src/uts/common/io/e1000api/e1000_82575.c
519
mac->ops.release_swfw_sync = e1000_release_swfw_sync_i210;
usr/src/uts/common/io/e1000api/e1000_82575.c
523
hw->mac.ops.set_lan_id(hw);
usr/src/uts/common/io/e1000api/e1000_82575.c
538
hw->mac.ops.init_params = e1000_init_mac_params_82575;
usr/src/uts/common/io/e1000api/e1000_82575.c
563
return hw->mac.ops.acquire_swfw_sync(hw, mask);
usr/src/uts/common/io/e1000api/e1000_82575.c
585
hw->mac.ops.release_swfw_sync(hw, mask);
usr/src/uts/common/io/e1000api/e1000_82575.c
672
if (hw->mac.type == e1000_i354)
usr/src/uts/common/io/e1000api/e1000_82575.c
689
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_api.c
1025
if (hw->mac.ops.set_obff_timer)
usr/src/uts/common/io/e1000api/e1000_api.c
1026
return hw->mac.ops.set_obff_timer(hw, itr);
usr/src/uts/common/io/e1000api/e1000_api.c
1266
if (hw->mac.ops.read_mac_addr)
usr/src/uts/common/io/e1000api/e1000_api.c
1267
return hw->mac.ops.read_mac_addr(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
1434
if (hw->mac.ops.power_up_serdes)
usr/src/uts/common/io/e1000api/e1000_api.c
1435
hw->mac.ops.power_up_serdes(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
1446
if (hw->mac.ops.shutdown_serdes)
usr/src/uts/common/io/e1000api/e1000_api.c
1447
hw->mac.ops.shutdown_serdes(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
152
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_api.c
159
mac->type = e1000_82542;
usr/src/uts/common/io/e1000api/e1000_api.c
163
mac->type = e1000_82543;
usr/src/uts/common/io/e1000api/e1000_api.c
169
mac->type = e1000_82544;
usr/src/uts/common/io/e1000api/e1000_api.c
176
mac->type = e1000_82540;
usr/src/uts/common/io/e1000api/e1000_api.c
180
mac->type = e1000_82545;
usr/src/uts/common/io/e1000api/e1000_api.c
185
mac->type = e1000_82545_rev_3;
usr/src/uts/common/io/e1000api/e1000_api.c
190
mac->type = e1000_82546;
usr/src/uts/common/io/e1000api/e1000_api.c
198
mac->type = e1000_82546_rev_3;
usr/src/uts/common/io/e1000api/e1000_api.c
203
mac->type = e1000_82541;
usr/src/uts/common/io/e1000api/e1000_api.c
209
mac->type = e1000_82541_rev_2;
usr/src/uts/common/io/e1000api/e1000_api.c
213
mac->type = e1000_82547;
usr/src/uts/common/io/e1000api/e1000_api.c
216
mac->type = e1000_82547_rev_2;
usr/src/uts/common/io/e1000api/e1000_api.c
227
mac->type = e1000_82571;
usr/src/uts/common/io/e1000api/e1000_api.c
233
mac->type = e1000_82572;
usr/src/uts/common/io/e1000api/e1000_api.c
238
mac->type = e1000_82573;
usr/src/uts/common/io/e1000api/e1000_api.c
242
mac->type = e1000_82574;
usr/src/uts/common/io/e1000api/e1000_api.c
245
mac->type = e1000_82583;
usr/src/uts/common/io/e1000api/e1000_api.c
251
mac->type = e1000_80003es2lan;
usr/src/uts/common/io/e1000api/e1000_api.c
261
mac->type = e1000_ich8lan;
usr/src/uts/common/io/e1000api/e1000_api.c
275
mac->type = e1000_ich9lan;
usr/src/uts/common/io/e1000api/e1000_api.c
280
mac->type = e1000_ich10lan;
usr/src/uts/common/io/e1000api/e1000_api.c
286
mac->type = e1000_pchlan;
usr/src/uts/common/io/e1000api/e1000_api.c
290
mac->type = e1000_pch2lan;
usr/src/uts/common/io/e1000api/e1000_api.c
300
mac->type = e1000_pch_lpt;
usr/src/uts/common/io/e1000api/e1000_api.c
311
mac->type = e1000_pch_spt;
usr/src/uts/common/io/e1000api/e1000_api.c
327
mac->type = e1000_pch_cnp;
usr/src/uts/common/io/e1000api/e1000_api.c
335
mac->type = e1000_pch_tgp;
usr/src/uts/common/io/e1000api/e1000_api.c
341
mac->type = e1000_pch_adp;
usr/src/uts/common/io/e1000api/e1000_api.c
347
mac->type = e1000_pch_mtp;
usr/src/uts/common/io/e1000api/e1000_api.c
353
mac->type = e1000_pch_lnp;
usr/src/uts/common/io/e1000api/e1000_api.c
359
mac->type = e1000_pch_rpl;
usr/src/uts/common/io/e1000api/e1000_api.c
363
mac->type = e1000_pch_arl;
usr/src/uts/common/io/e1000api/e1000_api.c
371
mac->type = e1000_pch_ptp;
usr/src/uts/common/io/e1000api/e1000_api.c
375
mac->type = e1000_pch_nvl;
usr/src/uts/common/io/e1000api/e1000_api.c
380
mac->type = e1000_82575;
usr/src/uts/common/io/e1000api/e1000_api.c
390
mac->type = e1000_82576;
usr/src/uts/common/io/e1000api/e1000_api.c
402
mac->type = e1000_82580;
usr/src/uts/common/io/e1000api/e1000_api.c
409
mac->type = e1000_i350;
usr/src/uts/common/io/e1000api/e1000_api.c
419
mac->type = e1000_i210;
usr/src/uts/common/io/e1000api/e1000_api.c
422
mac->type = e1000_i211;
usr/src/uts/common/io/e1000api/e1000_api.c
426
mac->type = e1000_vfadapt;
usr/src/uts/common/io/e1000api/e1000_api.c
430
mac->type = e1000_vfadapt_i350;
usr/src/uts/common/io/e1000api/e1000_api.c
436
mac->type = e1000_i354;
usr/src/uts/common/io/e1000api/e1000_api.c
48
if (hw->mac.ops.init_params) {
usr/src/uts/common/io/e1000api/e1000_api.c
49
ret_val = hw->mac.ops.init_params(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
490
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_api.c
598
if (hw->mac.ops.get_bus_info)
usr/src/uts/common/io/e1000api/e1000_api.c
599
return hw->mac.ops.get_bus_info(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
613
if (hw->mac.ops.clear_vfta)
usr/src/uts/common/io/e1000api/e1000_api.c
614
hw->mac.ops.clear_vfta(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
628
if (hw->mac.ops.write_vfta)
usr/src/uts/common/io/e1000api/e1000_api.c
629
hw->mac.ops.write_vfta(hw, offset, value);
usr/src/uts/common/io/e1000api/e1000_api.c
644
if (hw->mac.ops.update_mc_addr_list)
usr/src/uts/common/io/e1000api/e1000_api.c
645
hw->mac.ops.update_mc_addr_list(hw, mc_addr_list,
usr/src/uts/common/io/e1000api/e1000_api.c
672
if (hw->mac.ops.check_for_link)
usr/src/uts/common/io/e1000api/e1000_api.c
673
return hw->mac.ops.check_for_link(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
687
if (hw->mac.ops.check_mng_mode)
usr/src/uts/common/io/e1000api/e1000_api.c
688
return hw->mac.ops.check_mng_mode(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
715
if (hw->mac.ops.reset_hw)
usr/src/uts/common/io/e1000api/e1000_api.c
716
return hw->mac.ops.reset_hw(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
730
if (hw->mac.ops.init_hw)
usr/src/uts/common/io/e1000api/e1000_api.c
731
return hw->mac.ops.init_hw(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
746
if (hw->mac.ops.setup_link)
usr/src/uts/common/io/e1000api/e1000_api.c
747
return hw->mac.ops.setup_link(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
764
if (hw->mac.ops.get_link_up_info)
usr/src/uts/common/io/e1000api/e1000_api.c
765
return hw->mac.ops.get_link_up_info(hw, speed, duplex);
usr/src/uts/common/io/e1000api/e1000_api.c
780
if (hw->mac.ops.setup_led)
usr/src/uts/common/io/e1000api/e1000_api.c
781
return hw->mac.ops.setup_led(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
795
if (hw->mac.ops.cleanup_led)
usr/src/uts/common/io/e1000api/e1000_api.c
796
return hw->mac.ops.cleanup_led(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
811
if (hw->mac.ops.blink_led)
usr/src/uts/common/io/e1000api/e1000_api.c
812
return hw->mac.ops.blink_led(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
826
if (hw->mac.ops.id_led_init)
usr/src/uts/common/io/e1000api/e1000_api.c
827
return hw->mac.ops.id_led_init(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
841
if (hw->mac.ops.led_on)
usr/src/uts/common/io/e1000api/e1000_api.c
842
return hw->mac.ops.led_on(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
856
if (hw->mac.ops.led_off)
usr/src/uts/common/io/e1000api/e1000_api.c
857
return hw->mac.ops.led_off(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
908
if (hw->mac.ops.config_collision_dist)
usr/src/uts/common/io/e1000api/e1000_api.c
909
hw->mac.ops.config_collision_dist(hw);
usr/src/uts/common/io/e1000api/e1000_api.c
922
if (hw->mac.ops.rar_set)
usr/src/uts/common/io/e1000api/e1000_api.c
923
return hw->mac.ops.rar_set(hw, addr, index);
usr/src/uts/common/io/e1000api/e1000_api.c
936
if (hw->mac.ops.validate_mdi_setting)
usr/src/uts/common/io/e1000api/e1000_api.c
937
return hw->mac.ops.validate_mdi_setting(hw);
usr/src/uts/common/io/e1000api/e1000_hw.h
1079
struct e1000_mac_info mac;
usr/src/uts/common/io/e1000api/e1000_i210.c
925
if ((hw->mac.type >= e1000_i210) &&
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1159
if (!hw->mac.max_frame_size) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1164
hw->mac.ops.get_link_up_info(hw, &speed, &duplex);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1182
(2 * (s64)hw->mac.max_frame_size)) * 8 * 1000;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1291
if ((hw->mac.type < e1000_pch_lpt) ||
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1437
if ((hw->mac.type < e1000_pch_lpt) ||
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1570
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1583
if (!mac->get_link_status)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1594
if (hw->mac.type == e1000_pchlan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1604
if ((hw->mac.type >= e1000_pch2lan) && link) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1615
} else if (hw->mac.type >= e1000_pch_spt &&
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1631
if (hw->mac.type == e1000_pch2lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1637
if (hw->mac.type >= e1000_pch_lpt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1666
if (hw->mac.type >= e1000_pch_spt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1715
if (hw->mac.type >= e1000_pch_lpt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1733
if (hw->mac.type >= e1000_pch_lpt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1747
if (hw->mac.type == e1000_pch_spt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1763
mac->get_link_status = FALSE;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1765
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1811
if (!mac->autoneg)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1818
mac->ops.config_collision_dist(hw);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1842
hw->mac.ops.init_params = e1000_init_mac_params_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
1844
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2070
if (index < (u32) (hw->mac.rar_entry_count)) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2139
if (index < hw->mac.rar_entry_count) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2206
for (i = 0; i < hw->mac.mta_reg_count; i++) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2208
(u16)(hw->mac.mta_shadow[i] &
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2211
(u16)((hw->mac.mta_shadow[i] >> 16) &
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2312
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
235
if (hw->mac.type < e1000_pch_lpt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2354
if ((hw->mac.type < e1000_pch2lan) &&
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2367
if (((hw->mac.type == e1000_pchlan) &&
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2369
(hw->mac.type > e1000_pchlan)) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2440
if (hw->mac.type != e1000_pchlan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
246
if (hw->mac.type >= e1000_pch_lpt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2575
if (hw->mac.type < e1000_pchlan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2582
if (hw->mac.type == e1000_pchlan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2617
if ((d0_state || (hw->mac.type != e1000_pchlan)) &&
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2663
if (hw->mac.type != e1000_pchlan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2757
for (i = 0; i < (hw->mac.rar_entry_count); i++) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2778
static u32 e1000_calc_rx_da_crc(u8 mac[])
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2787
crc = crc ^ mac[i];
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2811
if (hw->mac.type < e1000_pch2lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2825
for (i = 0; i < hw->mac.rar_entry_count; i++) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
295
if (hw->mac.type < e1000_pch_lpt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
2981
if (hw->mac.type != e1000_pch2lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3018
if (hw->mac.type != e1000_pch2lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3068
if (hw->mac.type < e1000_pch2lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3132
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3148
if (hw->mac.type >= e1000_pchlan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3162
if (hw->mac.type == e1000_pch2lan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3198
if ((hw->mac.type == e1000_pch2lan) &&
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3278
if (hw->mac.type == e1000_ich8lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3412
if (hw->mac.type == e1000_ich8lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
344
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3451
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3721
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3741
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3768
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
379
if ((hw->mac.type == e1000_pchlan) &&
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3798
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3804
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3887
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
391
if (hw->mac.type >= e1000_pch_lpt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
3995
if (offset > ICH_FLASH_LINEAR_ADDR_MASK && hw->mac.type < e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
443
if ((hw->mac.type == e1000_pch2lan) &&
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4433
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4492
if (hw->mac.type >= e1000_pch_spt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4512
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4526
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4588
if (hw->mac.type >= e1000_pch_spt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4604
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4619
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4821
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4831
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4909
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4922
mac->ledctl_default = E1000_READ_REG(hw, E1000_LEDCTL);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4923
mac->ledctl_mode1 = mac->ledctl_default;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4924
mac->ledctl_mode2 = mac->ledctl_default;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
493
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4933
mac->ledctl_mode1 &= ~(E1000_PHY_LED0_MASK << shift);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4934
mac->ledctl_mode1 |= (ledctl_on << shift);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4939
mac->ledctl_mode1 &= ~(E1000_PHY_LED0_MASK << shift);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4940
mac->ledctl_mode1 |= (ledctl_off << shift);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4950
mac->ledctl_mode2 &= ~(E1000_PHY_LED0_MASK << shift);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4951
mac->ledctl_mode2 |= (ledctl_on << shift);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4956
mac->ledctl_mode2 &= ~(E1000_PHY_LED0_MASK << shift);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
4957
mac->ledctl_mode2 |= (ledctl_off << shift);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5032
if (hw->mac.type == e1000_ich8lan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5039
if (hw->mac.type == e1000_pchlan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5063
if ((hw->mac.type == e1000_pch2lan) &&
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5074
if (hw->mac.type == e1000_pch2lan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5098
if (hw->mac.type == e1000_pchlan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5125
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5135
ret_val = mac->ops.id_led_init(hw);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5141
e1000_init_rx_addrs_generic(hw, mac->rar_entry_count);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5145
for (i = 0; i < mac->mta_reg_count; i++)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5162
ret_val = mac->ops.setup_link(hw);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5181
if (mac->type == e1000_ich8lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5218
if (hw->mac.type >= e1000_pchlan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5234
if (hw->mac.type == e1000_ich8lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5249
if (hw->mac.type == e1000_ich8lan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5264
if (hw->mac.type == e1000_ich8lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5269
if (hw->mac.type >= e1000_pch_lpt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5317
ret_val = hw->mac.ops.setup_physical_interface(hw);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5477
if ((hw->mac.type == e1000_ich8lan) &&
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5570
if (hw->mac.type != e1000_ich8lan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5612
if (hw->mac.type == e1000_ich8lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5651
if ((hw->mac.type != e1000_ich8lan) ||
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5702
(hw->mac.type >= e1000_pch_spt)) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5788
if (hw->mac.type == e1000_ich8lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5791
if (hw->mac.type >= e1000_pchlan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5795
if (hw->mac.type == e1000_pchlan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5823
if (hw->mac.type < e1000_pch2lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5896
E1000_WRITE_REG(hw, E1000_LEDCTL, hw->mac.ledctl_default);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5914
E1000_WRITE_REG(hw, E1000_LEDCTL, hw->mac.ledctl_mode2);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5932
E1000_WRITE_REG(hw, E1000_LEDCTL, hw->mac.ledctl_mode1);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5947
(u16)hw->mac.ledctl_mode1);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5961
(u16)hw->mac.ledctl_default);
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
5972
u16 data = (u16)hw->mac.ledctl_mode2;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
6004
u16 data = (u16)hw->mac.ledctl_mode1;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
6051
if (hw->mac.type >= e1000_ich10lan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
6073
if (hw->mac.type <= e1000_ich9lan) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
6099
if (!(hw->mac.ops.check_mng_mode(hw) ||
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
661
if (hw->mac.type >= e1000_pch_spt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
721
if (hw->mac.type >= e1000_pch_spt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
744
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
752
mac->mta_reg_count = 32;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
754
mac->rar_entry_count = E1000_ICH_RAR_ENTRIES;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
755
if (mac->type == e1000_ich8lan)
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
756
mac->rar_entry_count--;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
758
mac->asf_firmware_present = TRUE;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
760
mac->has_fwsm = TRUE;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
762
mac->arc_subsystem_valid = FALSE;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
764
mac->adaptive_ifs = TRUE;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
769
mac->ops.get_bus_info = e1000_get_bus_info_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
771
mac->ops.set_lan_id = e1000_set_lan_id_single_port;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
773
mac->ops.reset_hw = e1000_reset_hw_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
775
mac->ops.init_hw = e1000_init_hw_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
777
mac->ops.setup_link = e1000_setup_link_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
779
mac->ops.setup_physical_interface = e1000_setup_copper_link_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
781
mac->ops.check_for_link = e1000_check_for_copper_link_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
783
mac->ops.get_link_up_info = e1000_get_link_up_info_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
785
mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_generic;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
787
mac->ops.clear_hw_cntrs = e1000_clear_hw_cntrs_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
790
switch (mac->type) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
795
mac->ops.check_mng_mode = e1000_check_mng_mode_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
797
mac->ops.id_led_init = e1000_id_led_init_generic;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
799
mac->ops.blink_led = e1000_blink_led_generic;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
801
mac->ops.setup_led = e1000_setup_led_generic;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
803
mac->ops.cleanup_led = e1000_cleanup_led_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
805
mac->ops.led_on = e1000_led_on_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
806
mac->ops.led_off = e1000_led_off_ich8lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
809
mac->rar_entry_count = E1000_PCH2_RAR_ENTRIES;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
810
mac->ops.rar_set = e1000_rar_set_pch2lan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
824
mac->ops.update_mc_addr_list =
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
829
mac->ops.check_mng_mode = e1000_check_mng_mode_pchlan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
831
mac->ops.id_led_init = e1000_id_led_init_pchlan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
833
mac->ops.setup_led = e1000_setup_led_pchlan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
835
mac->ops.cleanup_led = e1000_cleanup_led_pchlan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
837
mac->ops.led_on = e1000_led_on_pchlan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
838
mac->ops.led_off = e1000_led_off_pchlan;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
844
if (mac->type >= e1000_pch_lpt) {
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
845
mac->rar_entry_count = E1000_PCH_LPT_RAR_ENTRIES;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
846
mac->ops.rar_set = e1000_rar_set_pch_lpt;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
847
mac->ops.setup_physical_interface = e1000_setup_copper_link_pch_lpt;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
848
mac->ops.set_obff_timer = e1000_set_obff_timer_pch_lpt;
usr/src/uts/common/io/e1000api/e1000_ich8lan.c
852
if (mac->type == e1000_ich8lan)
usr/src/uts/common/io/e1000api/e1000_mac.c
1032
ret_val = hw->mac.ops.setup_physical_interface(hw);
usr/src/uts/common/io/e1000api/e1000_mac.c
1060
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
1115
mac->txcw = txcw;
usr/src/uts/common/io/e1000api/e1000_mac.c
1129
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
1149
mac->autoneg_failed = TRUE;
usr/src/uts/common/io/e1000api/e1000_mac.c
1155
ret_val = mac->ops.check_for_link(hw);
usr/src/uts/common/io/e1000api/e1000_mac.c
1160
mac->autoneg_failed = FALSE;
usr/src/uts/common/io/e1000api/e1000_mac.c
1162
mac->autoneg_failed = FALSE;
usr/src/uts/common/io/e1000api/e1000_mac.c
1188
hw->mac.ops.config_collision_dist(hw);
usr/src/uts/common/io/e1000api/e1000_mac.c
1353
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
1365
if (mac->autoneg_failed) {
usr/src/uts/common/io/e1000api/e1000_mac.c
1384
if ((hw->phy.media_type == e1000_media_type_copper) && mac->autoneg) {
usr/src/uts/common/io/e1000api/e1000_mac.c
1504
ret_val = mac->ops.get_link_up_info(hw, &speed, &duplex);
usr/src/uts/common/io/e1000api/e1000_mac.c
1529
mac->autoneg) {
usr/src/uts/common/io/e1000api/e1000_mac.c
179
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
1839
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
1853
mac->ledctl_default = E1000_READ_REG(hw, E1000_LEDCTL);
usr/src/uts/common/io/e1000api/e1000_mac.c
1854
mac->ledctl_mode1 = mac->ledctl_default;
usr/src/uts/common/io/e1000api/e1000_mac.c
1855
mac->ledctl_mode2 = mac->ledctl_default;
usr/src/uts/common/io/e1000api/e1000_mac.c
1863
mac->ledctl_mode1 &= ~(ledctl_mask << (i << 3));
usr/src/uts/common/io/e1000api/e1000_mac.c
1864
mac->ledctl_mode1 |= ledctl_on << (i << 3);
usr/src/uts/common/io/e1000api/e1000_mac.c
1869
mac->ledctl_mode1 &= ~(ledctl_mask << (i << 3));
usr/src/uts/common/io/e1000api/e1000_mac.c
1870
mac->ledctl_mode1 |= ledctl_off << (i << 3);
usr/src/uts/common/io/e1000api/e1000_mac.c
1880
mac->ledctl_mode2 &= ~(ledctl_mask << (i << 3));
usr/src/uts/common/io/e1000api/e1000_mac.c
1881
mac->ledctl_mode2 |= ledctl_on << (i << 3);
usr/src/uts/common/io/e1000api/e1000_mac.c
1886
mac->ledctl_mode2 &= ~(ledctl_mask << (i << 3));
usr/src/uts/common/io/e1000api/e1000_mac.c
1887
mac->ledctl_mode2 |= ledctl_off << (i << 3);
usr/src/uts/common/io/e1000api/e1000_mac.c
1911
if (hw->mac.ops.setup_led != e1000_setup_led_generic)
usr/src/uts/common/io/e1000api/e1000_mac.c
1916
hw->mac.ledctl_default = ledctl;
usr/src/uts/common/io/e1000api/e1000_mac.c
1924
E1000_WRITE_REG(hw, E1000_LEDCTL, hw->mac.ledctl_mode1);
usr/src/uts/common/io/e1000api/e1000_mac.c
1941
E1000_WRITE_REG(hw, E1000_LEDCTL, hw->mac.ledctl_default);
usr/src/uts/common/io/e1000api/e1000_mac.c
1969
ledctl_blink = hw->mac.ledctl_mode2;
usr/src/uts/common/io/e1000api/e1000_mac.c
1971
u32 mode = (hw->mac.ledctl_mode2 >> i) &
usr/src/uts/common/io/e1000api/e1000_mac.c
1973
u32 led_default = hw->mac.ledctl_default >> i;
usr/src/uts/common/io/e1000api/e1000_mac.c
2012
E1000_WRITE_REG(hw, E1000_LEDCTL, hw->mac.ledctl_mode2);
usr/src/uts/common/io/e1000api/e1000_mac.c
2041
E1000_WRITE_REG(hw, E1000_LEDCTL, hw->mac.ledctl_mode1);
usr/src/uts/common/io/e1000api/e1000_mac.c
2124
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
2128
if (!mac->adaptive_ifs) {
usr/src/uts/common/io/e1000api/e1000_mac.c
2133
mac->current_ifs_val = 0;
usr/src/uts/common/io/e1000api/e1000_mac.c
2134
mac->ifs_min_val = IFS_MIN;
usr/src/uts/common/io/e1000api/e1000_mac.c
2135
mac->ifs_max_val = IFS_MAX;
usr/src/uts/common/io/e1000api/e1000_mac.c
2136
mac->ifs_step_size = IFS_STEP;
usr/src/uts/common/io/e1000api/e1000_mac.c
2137
mac->ifs_ratio = IFS_RATIO;
usr/src/uts/common/io/e1000api/e1000_mac.c
2139
mac->in_ifs_mode = FALSE;
usr/src/uts/common/io/e1000api/e1000_mac.c
2152
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
2156
if (!mac->adaptive_ifs) {
usr/src/uts/common/io/e1000api/e1000_mac.c
2161
if ((mac->collision_delta * mac->ifs_ratio) > mac->tx_packet_delta) {
usr/src/uts/common/io/e1000api/e1000_mac.c
2162
if (mac->tx_packet_delta > MIN_NUM_XMITS) {
usr/src/uts/common/io/e1000api/e1000_mac.c
2163
mac->in_ifs_mode = TRUE;
usr/src/uts/common/io/e1000api/e1000_mac.c
2164
if (mac->current_ifs_val < mac->ifs_max_val) {
usr/src/uts/common/io/e1000api/e1000_mac.c
2165
if (!mac->current_ifs_val)
usr/src/uts/common/io/e1000api/e1000_mac.c
2166
mac->current_ifs_val = mac->ifs_min_val;
usr/src/uts/common/io/e1000api/e1000_mac.c
2168
mac->current_ifs_val +=
usr/src/uts/common/io/e1000api/e1000_mac.c
2169
mac->ifs_step_size;
usr/src/uts/common/io/e1000api/e1000_mac.c
2171
mac->current_ifs_val);
usr/src/uts/common/io/e1000api/e1000_mac.c
2175
if (mac->in_ifs_mode &&
usr/src/uts/common/io/e1000api/e1000_mac.c
2176
(mac->tx_packet_delta <= MIN_NUM_XMITS)) {
usr/src/uts/common/io/e1000api/e1000_mac.c
2177
mac->current_ifs_val = 0;
usr/src/uts/common/io/e1000api/e1000_mac.c
2178
mac->in_ifs_mode = FALSE;
usr/src/uts/common/io/e1000api/e1000_mac.c
219
mac->ops.set_lan_id(hw);
usr/src/uts/common/io/e1000api/e1000_mac.c
2195
if (!hw->mac.autoneg && (hw->phy.mdix == 0 || hw->phy.mdix == 3)) {
usr/src/uts/common/io/e1000api/e1000_mac.c
234
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
265
mac->ops.set_lan_id(hw);
usr/src/uts/common/io/e1000api/e1000_mac.c
380
hw->mac.ops.rar_set(hw, hw->mac.addr, 0);
usr/src/uts/common/io/e1000api/e1000_mac.c
385
hw->mac.ops.rar_set(hw, mac_addr, i);
usr/src/uts/common/io/e1000api/e1000_mac.c
414
if ((hw->mac.type < e1000_82571) || (hw->mac.type == e1000_82573))
usr/src/uts/common/io/e1000api/e1000_mac.c
420
if (hw->mac.type >= e1000_82580)
usr/src/uts/common/io/e1000api/e1000_mac.c
464
hw->mac.ops.rar_set(hw, alt_mac_addr, 0);
usr/src/uts/common/io/e1000api/e1000_mac.c
50
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
524
hash_mask = (hw->mac.mta_reg_count * 32) - 1;
usr/src/uts/common/io/e1000api/e1000_mac.c
54
mac->ops.init_params = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
55
mac->ops.init_hw = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
557
switch (hw->mac.mc_filter_type) {
usr/src/uts/common/io/e1000api/e1000_mac.c
56
mac->ops.reset_hw = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
57
mac->ops.setup_physical_interface = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
58
mac->ops.get_bus_info = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
59
mac->ops.set_lan_id = e1000_set_lan_id_multi_port_pcie;
usr/src/uts/common/io/e1000api/e1000_mac.c
596
memset(&hw->mac.mta_shadow, 0, sizeof(hw->mac.mta_shadow));
usr/src/uts/common/io/e1000api/e1000_mac.c
60
mac->ops.read_mac_addr = e1000_read_mac_addr_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
602
hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1);
usr/src/uts/common/io/e1000api/e1000_mac.c
605
hw->mac.mta_shadow[hash_reg] |= (1 << hash_bit);
usr/src/uts/common/io/e1000api/e1000_mac.c
61
mac->ops.config_collision_dist = e1000_config_collision_dist_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
610
for (i = hw->mac.mta_reg_count - 1; i >= 0; i--)
usr/src/uts/common/io/e1000api/e1000_mac.c
611
E1000_WRITE_REG_ARRAY(hw, E1000_MTA, i, hw->mac.mta_shadow[i]);
usr/src/uts/common/io/e1000api/e1000_mac.c
62
mac->ops.clear_hw_cntrs = e1000_null_mac_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
64
mac->ops.cleanup_led = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
65
mac->ops.setup_led = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
66
mac->ops.blink_led = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
67
mac->ops.led_on = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
68
mac->ops.led_off = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
70
mac->ops.setup_link = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
71
mac->ops.get_link_up_info = e1000_null_link_info;
usr/src/uts/common/io/e1000api/e1000_mac.c
711
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
72
mac->ops.check_for_link = e1000_null_ops_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
722
if (!mac->get_link_status)
usr/src/uts/common/io/e1000api/e1000_mac.c
73
mac->ops.set_obff_timer = e1000_null_set_obff_timer;
usr/src/uts/common/io/e1000api/e1000_mac.c
736
mac->get_link_status = FALSE;
usr/src/uts/common/io/e1000api/e1000_mac.c
746
if (!mac->autoneg)
usr/src/uts/common/io/e1000api/e1000_mac.c
75
mac->ops.check_mng_mode = e1000_null_mng_mode;
usr/src/uts/common/io/e1000api/e1000_mac.c
753
mac->ops.config_collision_dist(hw);
usr/src/uts/common/io/e1000api/e1000_mac.c
77
mac->ops.update_mc_addr_list = e1000_null_update_mc;
usr/src/uts/common/io/e1000api/e1000_mac.c
776
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
78
mac->ops.clear_vfta = e1000_null_mac_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
79
mac->ops.write_vfta = e1000_null_write_vfta;
usr/src/uts/common/io/e1000api/e1000_mac.c
798
if (!mac->autoneg_failed) {
usr/src/uts/common/io/e1000api/e1000_mac.c
799
mac->autoneg_failed = TRUE;
usr/src/uts/common/io/e1000api/e1000_mac.c
80
mac->ops.rar_set = e1000_rar_set_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
805
E1000_WRITE_REG(hw, E1000_TXCW, (mac->txcw & ~E1000_TXCW_ANE));
usr/src/uts/common/io/e1000api/e1000_mac.c
81
mac->ops.validate_mdi_setting = e1000_validate_mdi_setting_generic;
usr/src/uts/common/io/e1000api/e1000_mac.c
825
E1000_WRITE_REG(hw, E1000_TXCW, mac->txcw);
usr/src/uts/common/io/e1000api/e1000_mac.c
828
mac->serdes_has_link = TRUE;
usr/src/uts/common/io/e1000api/e1000_mac.c
843
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_mac.c
863
if (!mac->autoneg_failed) {
usr/src/uts/common/io/e1000api/e1000_mac.c
864
mac->autoneg_failed = TRUE;
usr/src/uts/common/io/e1000api/e1000_mac.c
870
E1000_WRITE_REG(hw, E1000_TXCW, (mac->txcw & ~E1000_TXCW_ANE));
usr/src/uts/common/io/e1000api/e1000_mac.c
890
E1000_WRITE_REG(hw, E1000_TXCW, mac->txcw);
usr/src/uts/common/io/e1000api/e1000_mac.c
893
mac->serdes_has_link = TRUE;
usr/src/uts/common/io/e1000api/e1000_mac.c
904
mac->serdes_has_link = TRUE;
usr/src/uts/common/io/e1000api/e1000_mac.c
908
mac->serdes_has_link = FALSE;
usr/src/uts/common/io/e1000api/e1000_mac.c
921
mac->serdes_has_link = TRUE;
usr/src/uts/common/io/e1000api/e1000_mac.c
924
mac->serdes_has_link = FALSE;
usr/src/uts/common/io/e1000api/e1000_mac.c
928
mac->serdes_has_link = FALSE;
usr/src/uts/common/io/e1000api/e1000_mac.c
932
mac->serdes_has_link = FALSE;
usr/src/uts/common/io/e1000api/e1000_mac.c
963
if (hw->mac.type == e1000_i350) {
usr/src/uts/common/io/e1000api/e1000_manage.c
139
hw->mac.tx_pkt_filtering = TRUE;
usr/src/uts/common/io/e1000api/e1000_manage.c
142
if (!hw->mac.ops.check_mng_mode(hw)) {
usr/src/uts/common/io/e1000api/e1000_manage.c
143
hw->mac.tx_pkt_filtering = FALSE;
usr/src/uts/common/io/e1000api/e1000_manage.c
144
return hw->mac.tx_pkt_filtering;
usr/src/uts/common/io/e1000api/e1000_manage.c
152
hw->mac.tx_pkt_filtering = FALSE;
usr/src/uts/common/io/e1000api/e1000_manage.c
153
return hw->mac.tx_pkt_filtering;
usr/src/uts/common/io/e1000api/e1000_manage.c
171
hw->mac.tx_pkt_filtering = TRUE;
usr/src/uts/common/io/e1000api/e1000_manage.c
172
return hw->mac.tx_pkt_filtering;
usr/src/uts/common/io/e1000api/e1000_manage.c
177
hw->mac.tx_pkt_filtering = FALSE;
usr/src/uts/common/io/e1000api/e1000_manage.c
179
return hw->mac.tx_pkt_filtering;
usr/src/uts/common/io/e1000api/e1000_manage.c
347
if (!hw->mac.asf_firmware_present)
usr/src/uts/common/io/e1000api/e1000_manage.c
355
if (hw->mac.has_fwsm) {
usr/src/uts/common/io/e1000api/e1000_manage.c
363
} else if ((hw->mac.type == e1000_82574) ||
usr/src/uts/common/io/e1000api/e1000_manage.c
364
(hw->mac.type == e1000_82583)) {
usr/src/uts/common/io/e1000api/e1000_manage.c
400
if (!(hw->mac.arc_subsystem_valid)) {
usr/src/uts/common/io/e1000api/e1000_manage.c
405
if (!hw->mac.asf_firmware_present) {
usr/src/uts/common/io/e1000api/e1000_manage.c
473
if (hw->mac.type < e1000_i210) {
usr/src/uts/common/io/e1000api/e1000_manage.c
77
if (!hw->mac.arc_subsystem_valid) {
usr/src/uts/common/io/e1000api/e1000_mbx.c
759
switch (hw->mac.type) {
usr/src/uts/common/io/e1000api/e1000_nvm.c
1140
hw->mac.perm_addr[i] = (u8)(rar_low >> (i*8));
usr/src/uts/common/io/e1000api/e1000_nvm.c
1143
hw->mac.perm_addr[i+4] = (u8)(rar_high >> (i*8));
usr/src/uts/common/io/e1000api/e1000_nvm.c
1146
hw->mac.addr[i] = hw->mac.perm_addr[i];
usr/src/uts/common/io/e1000api/e1000_nvm.c
778
if ((hw->mac.type >= e1000_i210) &&
usr/src/uts/common/io/e1000api/e1000_phy.c
1425
if (hw->mac.autoneg) {
usr/src/uts/common/io/e1000api/e1000_phy.c
1674
hw->mac.get_link_status = TRUE;
usr/src/uts/common/io/e1000api/e1000_phy.c
1695
if (hw->mac.autoneg) {
usr/src/uts/common/io/e1000api/e1000_phy.c
1724
hw->mac.ops.config_collision_dist(hw);
usr/src/uts/common/io/e1000api/e1000_phy.c
2016
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_phy.c
2036
if (mac->forced_speed_duplex & E1000_ALL_HALF_DUPLEX) {
usr/src/uts/common/io/e1000api/e1000_phy.c
2047
if (mac->forced_speed_duplex & E1000_ALL_100_SPEED) {
usr/src/uts/common/io/e1000api/e1000_phy.c
2058
hw->mac.ops.config_collision_dist(hw);
usr/src/uts/common/io/e1000api/e1000_phy.c
335
if (hw->mac.type == e1000_pch2lan)
usr/src/uts/common/io/e1000api/e1000_phy.c
3440
if ((hw->mac.type == e1000_pchlan) &&
usr/src/uts/common/io/e1000api/e1000_phy.c
400
if (hw->mac.type == e1000_pch2lan)
usr/src/uts/common/io/e1000api/e1000_vf.c
106
mac->asf_firmware_present = FALSE;
usr/src/uts/common/io/e1000api/e1000_vf.c
108
mac->arc_subsystem_valid = FALSE;
usr/src/uts/common/io/e1000api/e1000_vf.c
110
mac->adaptive_ifs = FALSE;
usr/src/uts/common/io/e1000api/e1000_vf.c
112
mac->mta_reg_count = 128;
usr/src/uts/common/io/e1000api/e1000_vf.c
114
mac->rar_entry_count = 1;
usr/src/uts/common/io/e1000api/e1000_vf.c
118
mac->ops.setup_link = e1000_setup_link_vf;
usr/src/uts/common/io/e1000api/e1000_vf.c
120
mac->ops.get_bus_info = e1000_get_bus_info_pcie_vf;
usr/src/uts/common/io/e1000api/e1000_vf.c
122
mac->ops.reset_hw = e1000_reset_hw_vf;
usr/src/uts/common/io/e1000api/e1000_vf.c
124
mac->ops.init_hw = e1000_init_hw_vf;
usr/src/uts/common/io/e1000api/e1000_vf.c
126
mac->ops.check_for_link = e1000_check_for_link_vf;
usr/src/uts/common/io/e1000api/e1000_vf.c
128
mac->ops.get_link_up_info = e1000_get_link_up_info_vf;
usr/src/uts/common/io/e1000api/e1000_vf.c
130
mac->ops.update_mc_addr_list = e1000_update_mc_addr_list_vf;
usr/src/uts/common/io/e1000api/e1000_vf.c
132
mac->ops.rar_set = e1000_rar_set_vf;
usr/src/uts/common/io/e1000api/e1000_vf.c
134
mac->ops.read_mac_addr = e1000_read_mac_addr_vf;
usr/src/uts/common/io/e1000api/e1000_vf.c
148
hw->mac.ops.init_params = e1000_init_mac_params_vf;
usr/src/uts/common/io/e1000api/e1000_vf.c
292
memcpy(hw->mac.perm_addr, addr, 6);
usr/src/uts/common/io/e1000api/e1000_vf.c
312
e1000_rar_set_vf(hw, hw->mac.addr, 0);
usr/src/uts/common/io/e1000api/e1000_vf.c
365
hash_mask = (hw->mac.mta_reg_count * 32) - 1;
usr/src/uts/common/io/e1000api/e1000_vf.c
520
hw->mac.addr[i] = hw->mac.perm_addr[i];
usr/src/uts/common/io/e1000api/e1000_vf.c
536
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_vf.c
550
mac->get_link_status = TRUE;
usr/src/uts/common/io/e1000api/e1000_vf.c
552
if (!mac->get_link_status)
usr/src/uts/common/io/e1000api/e1000_vf.c
582
mac->get_link_status = FALSE;
usr/src/uts/common/io/e1000api/e1000_vf.c
93
struct e1000_mac_info *mac = &hw->mac;
usr/src/uts/common/io/e1000api/e1000_vf.h
268
struct e1000_mac_info mac;
usr/src/uts/common/io/e1000g/e1000_osdep.h
124
if ((hw)->mac.type != e1000_82542) \
usr/src/uts/common/io/e1000g/e1000_osdep.h
136
((hw)->mac.type != e1000_82542) ? \
usr/src/uts/common/io/e1000g/e1000_osdep.h
145
if ((hw)->mac.type != e1000_82542) \
usr/src/uts/common/io/e1000g/e1000_osdep.h
158
((hw)->mac.type != e1000_82542) ? \
usr/src/uts/common/io/e1000g/e1000g_alloc.c
1351
((Adapter->shared.mac.type == e1000_82545) ||
usr/src/uts/common/io/e1000g/e1000g_alloc.c
1352
(Adapter->shared.mac.type == e1000_82546) ||
usr/src/uts/common/io/e1000g/e1000g_alloc.c
1353
(Adapter->shared.mac.type == e1000_82546_rev_3))) {
usr/src/uts/common/io/e1000g/e1000g_alloc.c
225
((Adapter->shared.mac.type == e1000_82545) ||
usr/src/uts/common/io/e1000g/e1000g_alloc.c
226
(Adapter->shared.mac.type == e1000_82546) ||
usr/src/uts/common/io/e1000g/e1000g_alloc.c
227
(Adapter->shared.mac.type == e1000_82546_rev_3))) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1034
if (mac->type < e1000_82543)
usr/src/uts/common/io/e1000g/e1000g_main.c
1168
Adapter->shared.mac.type < e1000_pch_spt)
usr/src/uts/common/io/e1000g/e1000g_main.c
1455
if (!is_valid_mac_addr(hw->mac.addr)) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1470
if (hw->mac.type < e1000_82547) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1478
} else if ((hw->mac.type == e1000_82571) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
1479
(hw->mac.type == e1000_82572) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
1480
(hw->mac.type == e1000_80003es2lan)) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1488
} else if (hw->mac.type == e1000_82573) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1490
} else if (hw->mac.type == e1000_82574) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1493
} else if (hw->mac.type == e1000_ich8lan) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1495
} else if (hw->mac.type == e1000_ich9lan) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1497
} else if (hw->mac.type == e1000_ich10lan) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1499
} else if (hw->mac.type == e1000_pchlan) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1501
} else if (hw->mac.type == e1000_pch2lan) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1503
} else if (hw->mac.type == e1000_pch_lpt) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1505
} else if (hw->mac.type == e1000_pch_spt) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1507
} else if (hw->mac.type == e1000_pch_cnp) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1509
} else if (hw->mac.type == e1000_pch_tgp) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1511
} else if (hw->mac.type == e1000_pch_adp) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1513
} else if (hw->mac.type == e1000_pch_mtp) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1515
} else if (hw->mac.type == e1000_pch_lnp) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1517
} else if (hw->mac.type == e1000_pch_rpl) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1519
} else if (hw->mac.type == e1000_pch_arl) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1521
} else if (hw->mac.type == e1000_pch_ptp) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1523
} else if (hw->mac.type == e1000_pch_nvl) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1551
((hw->mac.type == e1000_82573 || hw->mac.type == e1000_82574 ||
usr/src/uts/common/io/e1000g/e1000g_main.c
1552
hw->mac.type == e1000_ich9lan || hw->mac.type == e1000_ich10lan) ?
usr/src/uts/common/io/e1000g/e1000g_main.c
1559
if (hw->mac.type == e1000_80003es2lan)
usr/src/uts/common/io/e1000g/e1000g_main.c
1578
if (hw->mac.type >= e1000_82544)
usr/src/uts/common/io/e1000g/e1000g_main.c
1584
if (hw->mac.type == e1000_82546)
usr/src/uts/common/io/e1000g/e1000g_main.c
1633
if (hw->mac.type >= e1000_82540) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1639
if (hw->mac.autoneg)
usr/src/uts/common/io/e1000g/e1000g_main.c
1749
if (hw->mac.get_link_status) {
usr/src/uts/common/io/e1000g/e1000g_main.c
1754
if (hw->mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000g/e1000g_main.c
1761
link_up = !hw->mac.get_link_status;
usr/src/uts/common/io/e1000g/e1000g_main.c
1774
link_up = hw->mac.serdes_has_link;
usr/src/uts/common/io/e1000g/e1000g_main.c
2115
if (Adapter->shared.mac.type >= e1000_pch_spt)
usr/src/uts/common/io/e1000g/e1000g_main.c
2498
Adapter->shared.mac.get_link_status = B_TRUE;
usr/src/uts/common/io/e1000g/e1000g_main.c
2532
(Adapter->shared.mac.type == e1000_80003es2lan)) {
usr/src/uts/common/io/e1000g/e1000g_main.c
2561
Adapter->unicst_total = min(hw->mac.rar_entry_count,
usr/src/uts/common/io/e1000g/e1000g_main.c
2575
if (hw->mac.type >= e1000_pch_lpt) {
usr/src/uts/common/io/e1000g/e1000g_main.c
2593
if ((hw->mac.type == e1000_82571) &&
usr/src/uts/common/io/e1000g/e1000g_main.c
2610
if ((hw->mac.type == e1000_82571) &&
usr/src/uts/common/io/e1000g/e1000g_main.c
2612
(void) e1000_rar_set(hw, hw->mac.addr, LAST_RAR_ENTRY);
usr/src/uts/common/io/e1000g/e1000g_main.c
2616
if (Adapter->unicst_addr[slot].mac.set == 1)
usr/src/uts/common/io/e1000g/e1000g_main.c
2618
Adapter->unicst_addr[slot].mac.addr, slot);
usr/src/uts/common/io/e1000g/e1000g_main.c
2642
if ((hw->mac.type == e1000_82542) &&
usr/src/uts/common/io/e1000g/e1000g_main.c
2657
bcopy(mac_addr, Adapter->unicst_addr[slot].mac.addr,
usr/src/uts/common/io/e1000g/e1000g_main.c
2660
Adapter->unicst_addr[slot].mac.set = 1;
usr/src/uts/common/io/e1000g/e1000g_main.c
2665
if ((hw->mac.type == e1000_82571) &&
usr/src/uts/common/io/e1000g/e1000g_main.c
2687
if ((hw->mac.type == e1000_82542) &&
usr/src/uts/common/io/e1000g/e1000g_main.c
3014
if ((Adapter->unicst_addr[slot].mac.set == 1) &&
usr/src/uts/common/io/e1000g/e1000g_main.c
3015
(bcmp(Adapter->unicst_addr[slot].mac.addr,
usr/src/uts/common/io/e1000g/e1000g_main.c
3056
if (Adapter->unicst_addr[slot].mac.set == 0)
usr/src/uts/common/io/e1000g/e1000g_main.c
3089
ASSERT(Adapter->unicst_addr[slot].mac.set);
usr/src/uts/common/io/e1000g/e1000g_main.c
3332
if (Adapter->shared.mac.ops.blink_led != NULL &&
usr/src/uts/common/io/e1000g/e1000g_main.c
3333
Adapter->shared.mac.ops.blink_led !=
usr/src/uts/common/io/e1000g/e1000g_main.c
3338
if (Adapter->shared.mac.ops.led_off != NULL &&
usr/src/uts/common/io/e1000g/e1000g_main.c
3339
Adapter->shared.mac.ops.led_off !=
usr/src/uts/common/io/e1000g/e1000g_main.c
3344
if (Adapter->shared.mac.ops.led_on != NULL &&
usr/src/uts/common/io/e1000g/e1000g_main.c
3345
Adapter->shared.mac.ops.led_on !=
usr/src/uts/common/io/e1000g/e1000g_main.c
3795
struct e1000_mac_info *mac = &Adapter->shared.mac;
usr/src/uts/common/io/e1000g/e1000g_main.c
3800
if ((mac->type == e1000_ich8lan) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
3801
((mac->type == e1000_ich9lan) && (phy->type ==
usr/src/uts/common/io/e1000g/e1000g_main.c
4019
if (hw->mac.type >= e1000_82540) {
usr/src/uts/common/io/e1000g/e1000g_main.c
4044
if (hw->mac.type >= e1000_82540) {
usr/src/uts/common/io/e1000g/e1000g_main.c
4278
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
4314
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
4347
MIN_MCAST_NUM, MAX_MCAST_NUM, hw->mac.mta_reg_count * 32,
usr/src/uts/common/io/e1000g/e1000g_main.c
4453
if ((hw->mac.type == e1000_82571) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
4454
(hw->mac.type == e1000_82572)) {
usr/src/uts/common/io/e1000g/e1000g_main.c
4511
struct e1000_mac_info *mac;
usr/src/uts/common/io/e1000g/e1000g_main.c
4516
mac = &Adapter->shared.mac;
usr/src/uts/common/io/e1000g/e1000g_main.c
4525
mac->autoneg = true;
usr/src/uts/common/io/e1000g/e1000g_main.c
4549
mac->autoneg = false;
usr/src/uts/common/io/e1000g/e1000g_main.c
4556
mac->forced_speed_duplex = ADVERTISE_100_FULL;
usr/src/uts/common/io/e1000g/e1000g_main.c
4558
mac->forced_speed_duplex = ADVERTISE_100_HALF;
usr/src/uts/common/io/e1000g/e1000g_main.c
4560
mac->forced_speed_duplex = ADVERTISE_10_FULL;
usr/src/uts/common/io/e1000g/e1000g_main.c
4562
mac->forced_speed_duplex = ADVERTISE_10_HALF;
usr/src/uts/common/io/e1000g/e1000g_main.c
4572
mac->autoneg = true;
usr/src/uts/common/io/e1000g/e1000g_main.c
4670
if ((hw->mac.type == e1000_82571) && e1000_get_laa_state_82571(hw)) {
usr/src/uts/common/io/e1000g/e1000g_main.c
4677
if ((ether_addr.mac.addr[5] != hw->mac.addr[0]) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
4678
(ether_addr.mac.addr[4] != hw->mac.addr[1]) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
4679
(ether_addr.mac.addr[3] != hw->mac.addr[2]) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
4680
(ether_addr.mac.addr[2] != hw->mac.addr[3]) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
4681
(ether_addr.mac.addr[1] != hw->mac.addr[4]) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
4682
(ether_addr.mac.addr[0] != hw->mac.addr[5])) {
usr/src/uts/common/io/e1000g/e1000g_main.c
4683
(void) e1000_rar_set(hw, hw->mac.addr, 0);
usr/src/uts/common/io/e1000g/e1000g_main.c
4745
struct e1000_mac_info *mac = &Adapter->shared.mac;
usr/src/uts/common/io/e1000g/e1000g_main.c
4759
mac->autoneg = false;
usr/src/uts/common/io/e1000g/e1000g_main.c
4760
mac->forced_speed_duplex = ADVERTISE_10_HALF;
usr/src/uts/common/io/e1000g/e1000g_main.c
4766
mac->autoneg = false;
usr/src/uts/common/io/e1000g/e1000g_main.c
4767
mac->forced_speed_duplex = ADVERTISE_10_FULL;
usr/src/uts/common/io/e1000g/e1000g_main.c
4773
mac->autoneg = false;
usr/src/uts/common/io/e1000g/e1000g_main.c
4774
mac->forced_speed_duplex = ADVERTISE_100_HALF;
usr/src/uts/common/io/e1000g/e1000g_main.c
4780
mac->autoneg = false;
usr/src/uts/common/io/e1000g/e1000g_main.c
4781
mac->forced_speed_duplex = ADVERTISE_100_FULL;
usr/src/uts/common/io/e1000g/e1000g_main.c
4791
mac->autoneg = true;
usr/src/uts/common/io/e1000g/e1000g_main.c
4795
mac->autoneg = true;
usr/src/uts/common/io/e1000g/e1000g_main.c
4863
if (hw->mac.type != e1000_pchlan && hw->mac.type != e1000_pch2lan)
usr/src/uts/common/io/e1000g/e1000g_main.c
4868
hw->mac.autoneg = true;
usr/src/uts/common/io/e1000g/e1000g_main.c
5064
!hw->mac.autoneg ||
usr/src/uts/common/io/e1000g/e1000g_main.c
5450
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
5475
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
5501
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
5550
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
5691
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
5771
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
5859
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
6049
hw->mac.addr[nelts] = bytes[nelts];
usr/src/uts/common/io/e1000g/e1000g_main.c
6063
bcopy(&sysaddr, hw->mac.addr, ETHERADDRL);
usr/src/uts/common/io/e1000g/e1000g_main.c
607
mac_register_t *mac;
usr/src/uts/common/io/e1000g/e1000g_main.c
6081
hw->mac.addr[nelts] = bytes[nelts];
usr/src/uts/common/io/e1000g/e1000g_main.c
6088
bcopy(hw->mac.addr, hw->mac.perm_addr,
usr/src/uts/common/io/e1000g/e1000g_main.c
610
if ((mac = mac_alloc(MAC_VERSION)) == NULL)
usr/src/uts/common/io/e1000g/e1000g_main.c
6121
if (Adapter->shared.mac.type < e1000_82571)
usr/src/uts/common/io/e1000g/e1000g_main.c
613
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/e1000g/e1000g_main.c
614
mac->m_driver = Adapter;
usr/src/uts/common/io/e1000g/e1000g_main.c
615
mac->m_dip = Adapter->dip;
usr/src/uts/common/io/e1000g/e1000g_main.c
616
mac->m_src_addr = hw->mac.addr;
usr/src/uts/common/io/e1000g/e1000g_main.c
617
mac->m_callbacks = &e1000g_m_callbacks;
usr/src/uts/common/io/e1000g/e1000g_main.c
618
mac->m_min_sdu = 0;
usr/src/uts/common/io/e1000g/e1000g_main.c
619
mac->m_max_sdu = Adapter->default_mtu;
usr/src/uts/common/io/e1000g/e1000g_main.c
620
mac->m_margin = VLAN_TAGSZ;
usr/src/uts/common/io/e1000g/e1000g_main.c
621
mac->m_priv_props = e1000g_priv_props;
usr/src/uts/common/io/e1000g/e1000g_main.c
622
mac->m_v12n = MAC_VIRT_LEVEL1;
usr/src/uts/common/io/e1000g/e1000g_main.c
624
err = mac_register(mac, &Adapter->mh);
usr/src/uts/common/io/e1000g/e1000g_main.c
6246
if (Adapter->shared.mac.type < e1000_82571)
usr/src/uts/common/io/e1000g/e1000g_main.c
625
mac_free(mac);
usr/src/uts/common/io/e1000g/e1000g_main.c
6429
Adapter->param_adv_autoneg = hw->mac.autoneg;
usr/src/uts/common/io/e1000g/e1000g_main.c
6702
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
6737
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
686
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
738
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
792
if (osdep->ich_flash_handle != NULL && hw->mac.type < e1000_pch_spt)
usr/src/uts/common/io/e1000g/e1000g_main.c
820
hw->mac.autoneg_failed = true;
usr/src/uts/common/io/e1000g/e1000g_main.c
826
hw->mac.adaptive_ifs = true;
usr/src/uts/common/io/e1000g/e1000g_main.c
829
if ((hw->mac.type == e1000_82547) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
830
(hw->mac.type == e1000_82541) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
831
(hw->mac.type == e1000_82547_rev_2) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
832
(hw->mac.type == e1000_82541_rev_2))
usr/src/uts/common/io/e1000g/e1000g_main.c
848
hw->mac.forced_speed_duplex = ADVERTISE_100_FULL;
usr/src/uts/common/io/e1000g/e1000g_main.c
896
struct e1000_mac_info *mac = &Adapter->shared.mac;
usr/src/uts/common/io/e1000g/e1000g_main.c
899
switch (mac->type) {
usr/src/uts/common/io/e1000g/e1000g_main.c
956
struct e1000_mac_info *mac = &Adapter->shared.mac;
usr/src/uts/common/io/e1000g/e1000g_main.c
991
((mac->type == e1000_82545) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
992
(mac->type == e1000_82546) ||
usr/src/uts/common/io/e1000g/e1000g_main.c
993
(mac->type == e1000_82546_rev_3))) {
usr/src/uts/common/io/e1000g/e1000g_osdep.c
167
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_osdep.c
71
switch (hw->mac.type) {
usr/src/uts/common/io/e1000g/e1000g_rx.c
231
if (hw->mac.type >= e1000_82540) {
usr/src/uts/common/io/e1000g/e1000g_rx.c
272
(hw->mac.mc_filter_type << E1000_RCTL_MO_SHIFT) |
usr/src/uts/common/io/e1000g/e1000g_rx.c
283
((hw->mac.type == e1000_82545) ||
usr/src/uts/common/io/e1000g/e1000g_rx.c
284
(hw->mac.type == e1000_82546) ||
usr/src/uts/common/io/e1000g/e1000g_rx.c
285
(hw->mac.type == e1000_82546_rev_3))) {
usr/src/uts/common/io/e1000g/e1000g_rx.c
309
if ((hw->mac.type == e1000_82573) ||
usr/src/uts/common/io/e1000g/e1000g_rx.c
310
(hw->mac.type == e1000_82574) ||
usr/src/uts/common/io/e1000g/e1000g_rx.c
311
(hw->mac.type == e1000_ich9lan) ||
usr/src/uts/common/io/e1000g/e1000g_rx.c
312
(hw->mac.type == e1000_ich10lan)) {
usr/src/uts/common/io/e1000g/e1000g_rx.c
330
if ((hw->mac.type == e1000_pchlan) &&
usr/src/uts/common/io/e1000g/e1000g_rx.c
349
if (hw->mac.type == e1000_pch2lan) {
usr/src/uts/common/io/e1000g/e1000g_rx.c
368
if ((hw->mac.type == e1000_82571) || (hw->mac.type == e1000_82572)) {
usr/src/uts/common/io/e1000g/e1000g_rx.c
554
if (hw->mac.type == e1000_82543) {
usr/src/uts/common/io/e1000g/e1000g_rx.c
566
length, hw->mac.addr);
usr/src/uts/common/io/e1000g/e1000g_stat.c
223
if ((hw->mac.type != e1000_ich8lan) &&
usr/src/uts/common/io/e1000g/e1000g_stat.c
224
(hw->mac.type != e1000_ich9lan) &&
usr/src/uts/common/io/e1000g/e1000g_stat.c
225
(hw->mac.type != e1000_ich10lan) &&
usr/src/uts/common/io/e1000g/e1000g_stat.c
226
(hw->mac.type != e1000_pchlan)) {
usr/src/uts/common/io/e1000g/e1000g_stat.c
268
hw->mac.tx_packet_delta = E1000_READ_REG(hw, E1000_TPT);
usr/src/uts/common/io/e1000g/e1000g_stat.c
269
Adapter->opackets += hw->mac.tx_packet_delta;
usr/src/uts/common/io/e1000g/e1000g_stat.c
601
*val = hw->mac.autoneg;
usr/src/uts/common/io/e1000g/e1000g_stat.c
649
*val = hw->mac.autoneg;
usr/src/uts/common/io/e1000g/e1000g_sw.h
620
} mac;
usr/src/uts/common/io/e1000g/e1000g_tx.c
1512
if (hw->mac.type == e1000_82544) {
usr/src/uts/common/io/e1000g/e1000g_tx.c
852
if (hw->mac.type == e1000_82547)
usr/src/uts/common/io/e1000g/e1000g_tx.c
959
if ((hw->mac.type == e1000_82542) &&
usr/src/uts/common/io/e1000g/e1000g_tx.c
967
} else if (hw->mac.type == e1000_80003es2lan) {
usr/src/uts/common/io/e1000g/e1000g_tx.c
988
if (hw->mac.type >= e1000_82540) {
usr/src/uts/common/io/e1000g/e1000g_workarounds.c
152
if (hw->mac.type != e1000_82547)
usr/src/uts/common/io/e1000g/e1000g_workarounds.c
177
if ((hw->mac.type != e1000_82541) && (hw->mac.type != e1000_82547))
usr/src/uts/common/io/e1000g/e1000g_workarounds.c
208
if ((hw->mac.type != e1000_82541) && (hw->mac.type != e1000_82547))
usr/src/uts/common/io/e1000g/e1000g_workarounds.c
55
if ((hw->mac.type != e1000_82541) && (hw->mac.type != e1000_82547))
usr/src/uts/common/io/e1000g/e1000g_workarounds.c
84
if (hw->mac.type != e1000_82547)
usr/src/uts/common/io/fcoe/fcoe.c
1000
if (mac != NULL) {
usr/src/uts/common/io/fcoe/fcoe.c
1003
return (mac);
usr/src/uts/common/io/fcoe/fcoe.c
1006
mac = kmem_zalloc(sizeof (fcoe_mac_t), KM_SLEEP);
usr/src/uts/common/io/fcoe/fcoe.c
1007
mac->fm_linkid = linkid;
usr/src/uts/common/io/fcoe/fcoe.c
1008
mac->fm_flags = 0;
usr/src/uts/common/io/fcoe/fcoe.c
1009
mac->fm_ss = fcoe_global_ss;
usr/src/uts/common/io/fcoe/fcoe.c
1010
list_insert_tail(&mac->fm_ss->ss_mac_list, mac);
usr/src/uts/common/io/fcoe/fcoe.c
1012
return (mac);
usr/src/uts/common/io/fcoe/fcoe.c
1016
fcoe_destroy_mac(fcoe_mac_t *mac)
usr/src/uts/common/io/fcoe/fcoe.c
1018
ASSERT(mac != NULL);
usr/src/uts/common/io/fcoe/fcoe.c
1019
list_remove(&mac->fm_ss->ss_mac_list, mac);
usr/src/uts/common/io/fcoe/fcoe.c
1020
kmem_free(mac, sizeof (fcoe_mac_t));
usr/src/uts/common/io/fcoe/fcoe.c
1030
fcoe_get_mblk(fcoe_mac_t *mac, uint32_t raw_frame_size)
usr/src/uts/common/io/fcoe/fcoe.c
1060
fcoe_mac_t *mac = NULL;
usr/src/uts/common/io/fcoe/fcoe.c
1071
mac = EPORT2MAC(fmi->fmi_frame->frm_eport);
usr/src/uts/common/io/fcoe/fcoe.c
1072
mac->fm_client.ect_release_sol_frame(fmi->fmi_frame);
usr/src/uts/common/io/fcoe/fcoe.c
1075
mac->fm_frm_cnt--;
usr/src/uts/common/io/fcoe/fcoe.c
120
static void fcoe_init_wwn_from_mac(uint8_t *wwn, uint8_t *mac,
usr/src/uts/common/io/fcoe/fcoe.c
1254
fcoe_mac_t *mac;
usr/src/uts/common/io/fcoe/fcoe.c
1261
for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac;
usr/src/uts/common/io/fcoe/fcoe.c
1262
mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) {
usr/src/uts/common/io/fcoe/fcoe.c
1263
if (mac == checkedmac) {
usr/src/uts/common/io/fcoe/fcoe.c
1266
nwwn = mac->fm_eport.eport_nodewwn;
usr/src/uts/common/io/fcoe/fcoe.c
1267
pwwn = mac->fm_eport.eport_portwwn;
usr/src/uts/common/io/fcoe/fcoe.c
1283
fcoe_mac_t *mac = NULL;
usr/src/uts/common/io/fcoe/fcoe.c
1289
for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac;
usr/src/uts/common/io/fcoe/fcoe.c
1290
mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) {
usr/src/uts/common/io/fcoe/fcoe.c
1292
bcopy(mac->fm_eport.eport_portwwn,
usr/src/uts/common/io/fcoe/fcoe.c
1294
ports[i].fpi_mac_linkid = mac->fm_linkid;
usr/src/uts/common/io/fcoe/fcoe.c
1295
bcopy(mac->fm_current_addr,
usr/src/uts/common/io/fcoe/fcoe.c
1297
bcopy(mac->fm_primary_addr,
usr/src/uts/common/io/fcoe/fcoe.c
1300
EPORT_CLT_TYPE(&mac->fm_eport);
usr/src/uts/common/io/fcoe/fcoe.c
1302
mac->fm_eport.eport_mtu;
usr/src/uts/common/io/fcoe/fcoe.c
1304
mac->fm_promisc_handle != NULL ? 1 : 0;
usr/src/uts/common/io/fcoe/fcoe.c
946
fcoe_mac_t *mac = NULL;
usr/src/uts/common/io/fcoe/fcoe.c
949
for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac;
usr/src/uts/common/io/fcoe/fcoe.c
950
mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) {
usr/src/uts/common/io/fcoe/fcoe.c
951
if (linkid != mac->fm_linkid) {
usr/src/uts/common/io/fcoe/fcoe.c
954
return (mac);
usr/src/uts/common/io/fcoe/fcoe.c
965
fcoe_mac_t *mac = NULL;
usr/src/uts/common/io/fcoe/fcoe.c
968
for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac;
usr/src/uts/common/io/fcoe/fcoe.c
969
mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) {
usr/src/uts/common/io/fcoe/fcoe.c
970
if (mac == pmac) {
usr/src/uts/common/io/fcoe/fcoe.c
981
fcoe_init_wwn_from_mac(uint8_t *wwn, uint8_t *mac, int is_pwwn, uint8_t idx)
usr/src/uts/common/io/fcoe/fcoe.c
984
ASSERT(mac != NULL);
usr/src/uts/common/io/fcoe/fcoe.c
987
bcopy(mac, wwn + 2, ETHERADDRL);
usr/src/uts/common/io/fcoe/fcoe.c
996
fcoe_mac_t *mac = NULL;
usr/src/uts/common/io/fcoe/fcoe.c
999
mac = fcoe_lookup_mac_by_id(linkid);
usr/src/uts/common/io/fcoe/fcoe_eth.c
103
mac->fm_force_promisc = B_TRUE;
usr/src/uts/common/io/fcoe/fcoe_eth.c
107
mac_sdu_get(mac->fm_handle, NULL, &mac->fm_eport.eport_mtu);
usr/src/uts/common/io/fcoe/fcoe_eth.c
108
if (mac->fm_eport.eport_mtu < FCOE_MIN_MTU_SIZE) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
109
if (!fcoe_enable_p2pmode || mac->fm_eport.eport_mtu < 1500) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
115
(void) fcoe_close_mac(mac);
usr/src/uts/common/io/fcoe/fcoe_eth.c
121
mac->fm_eport.eport_link_speed =
usr/src/uts/common/io/fcoe/fcoe_eth.c
122
mac_client_stat_get(mac->fm_cli_handle, MAC_STAT_IFSPEED);
usr/src/uts/common/io/fcoe/fcoe_eth.c
124
cv_init(&mac->fm_tx_cv, NULL, CV_DRIVER, NULL);
usr/src/uts/common/io/fcoe/fcoe_eth.c
125
mutex_init(&mac->fm_mutex, NULL, MUTEX_DRIVER, NULL);
usr/src/uts/common/io/fcoe/fcoe_eth.c
126
mac->fm_running = B_TRUE;
usr/src/uts/common/io/fcoe/fcoe_eth.c
133
fcoe_close_mac(fcoe_mac_t *mac)
usr/src/uts/common/io/fcoe/fcoe_eth.c
137
if (mac->fm_handle == NULL) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
141
if (mac->fm_running) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
142
cv_destroy(&mac->fm_tx_cv);
usr/src/uts/common/io/fcoe/fcoe_eth.c
143
mutex_destroy(&mac->fm_mutex);
usr/src/uts/common/io/fcoe/fcoe_eth.c
144
mac->fm_running = B_FALSE;
usr/src/uts/common/io/fcoe/fcoe_eth.c
147
if (mac->fm_promisc_handle != NULL) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
148
mac_promisc_remove(mac->fm_promisc_handle);
usr/src/uts/common/io/fcoe/fcoe_eth.c
149
mac->fm_promisc_handle = NULL;
usr/src/uts/common/io/fcoe/fcoe_eth.c
151
mac_rx_clear(mac->fm_cli_handle);
usr/src/uts/common/io/fcoe/fcoe_eth.c
154
if (mac->fm_notify_handle != NULL) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
155
ret = mac_notify_remove(mac->fm_notify_handle, B_TRUE);
usr/src/uts/common/io/fcoe/fcoe_eth.c
157
mac->fm_notify_handle = NULL;
usr/src/uts/common/io/fcoe/fcoe_eth.c
160
if (mac->fm_unicst_handle != NULL) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
161
(void) mac_unicast_remove(mac->fm_cli_handle,
usr/src/uts/common/io/fcoe/fcoe_eth.c
162
mac->fm_unicst_handle);
usr/src/uts/common/io/fcoe/fcoe_eth.c
163
mac->fm_unicst_handle = NULL;
usr/src/uts/common/io/fcoe/fcoe_eth.c
166
mac_client_close(mac->fm_cli_handle, 0);
usr/src/uts/common/io/fcoe/fcoe_eth.c
167
mac->fm_cli_handle = NULL;
usr/src/uts/common/io/fcoe/fcoe_eth.c
169
(void) mac_close(mac->fm_handle);
usr/src/uts/common/io/fcoe/fcoe_eth.c
170
mac->fm_handle = NULL;
usr/src/uts/common/io/fcoe/fcoe_eth.c
176
fcoe_enable_callback(fcoe_mac_t *mac)
usr/src/uts/common/io/fcoe/fcoe_eth.c
183
if (mac->fm_force_promisc) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
184
ret = mac_promisc_add(mac->fm_cli_handle,
usr/src/uts/common/io/fcoe/fcoe_eth.c
185
MAC_CLIENT_PROMISC_FILTERED, fcoe_rx, mac,
usr/src/uts/common/io/fcoe/fcoe_eth.c
186
&mac->fm_promisc_handle,
usr/src/uts/common/io/fcoe/fcoe_eth.c
190
mac->fm_linkid, ret);
usr/src/uts/common/io/fcoe/fcoe_eth.c
194
mac_rx_set(mac->fm_cli_handle, fcoe_rx, mac);
usr/src/uts/common/io/fcoe/fcoe_eth.c
198
mac->fm_link_state =
usr/src/uts/common/io/fcoe/fcoe_eth.c
199
mac_stat_get(mac->fm_handle, MAC_STAT_LINK_UP)?
usr/src/uts/common/io/fcoe/fcoe_eth.c
202
mac->fm_eport.eport_link_speed =
usr/src/uts/common/io/fcoe/fcoe_eth.c
203
mac_client_stat_get(mac->fm_cli_handle, MAC_STAT_IFSPEED);
usr/src/uts/common/io/fcoe/fcoe_eth.c
208
mac->fm_notify_handle = mac_notify_add(mac->fm_handle,
usr/src/uts/common/io/fcoe/fcoe_eth.c
209
fcoe_mac_notify, (void *)mac);
usr/src/uts/common/io/fcoe/fcoe_eth.c
214
fcoe_disable_callback(fcoe_mac_t *mac)
usr/src/uts/common/io/fcoe/fcoe_eth.c
218
if (mac->fm_promisc_handle) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
219
mac_promisc_remove(mac->fm_promisc_handle);
usr/src/uts/common/io/fcoe/fcoe_eth.c
220
mac->fm_promisc_handle = NULL;
usr/src/uts/common/io/fcoe/fcoe_eth.c
222
mac_rx_clear(mac->fm_cli_handle);
usr/src/uts/common/io/fcoe/fcoe_eth.c
225
if (mac->fm_notify_handle) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
226
ret = mac_notify_remove(mac->fm_notify_handle, B_TRUE);
usr/src/uts/common/io/fcoe/fcoe_eth.c
228
mac->fm_notify_handle = NULL;
usr/src/uts/common/io/fcoe/fcoe_eth.c
231
ret = fcoe_mac_set_address(&mac->fm_eport,
usr/src/uts/common/io/fcoe/fcoe_eth.c
232
mac->fm_primary_addr, B_FALSE);
usr/src/uts/common/io/fcoe/fcoe_eth.c
233
FCOE_SET_DEFAULT_FPORT_ADDR(mac->fm_eport.eport_efh_dst);
usr/src/uts/common/io/fcoe/fcoe_eth.c
241
fcoe_mac_t *mac = (fcoe_mac_t *)arg;
usr/src/uts/common/io/fcoe/fcoe_eth.c
263
frm = fcoe_allocate_frame(&mac->fm_eport, frame_size, mp);
usr/src/uts/common/io/fcoe/fcoe_eth.c
276
fcoe_mac_t *mac = (fcoe_mac_t *)arg;
usr/src/uts/common/io/fcoe/fcoe_eth.c
289
if (mac_stat_get(mac->fm_handle, MAC_STAT_LINK_UP) != 0) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
290
if (mac->fm_link_state == FCOE_MAC_LINK_STATE_UP) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
294
mac->fm_eport.eport_link_speed =
usr/src/uts/common/io/fcoe/fcoe_eth.c
295
mac_client_stat_get(mac->fm_cli_handle,
usr/src/uts/common/io/fcoe/fcoe_eth.c
297
(void) fcoe_mac_set_address(&mac->fm_eport,
usr/src/uts/common/io/fcoe/fcoe_eth.c
298
mac->fm_primary_addr, B_FALSE);
usr/src/uts/common/io/fcoe/fcoe_eth.c
301
mac->fm_eport.eport_efh_dst);
usr/src/uts/common/io/fcoe/fcoe_eth.c
303
mac->fm_link_state = FCOE_MAC_LINK_STATE_UP;
usr/src/uts/common/io/fcoe/fcoe_eth.c
306
mac->fm_linkid, arg, type);
usr/src/uts/common/io/fcoe/fcoe_eth.c
307
fcoe_mac_notify_link_up(mac);
usr/src/uts/common/io/fcoe/fcoe_eth.c
309
if (mac->fm_link_state == FCOE_MAC_LINK_STATE_DOWN) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
312
mac->fm_link_state = FCOE_MAC_LINK_STATE_DOWN;
usr/src/uts/common/io/fcoe/fcoe_eth.c
315
mac->fm_linkid, arg, type);
usr/src/uts/common/io/fcoe/fcoe_eth.c
316
fcoe_mac_notify_link_down(mac);
usr/src/uts/common/io/fcoe/fcoe_eth.c
324
mutex_enter(&mac->fm_mutex);
usr/src/uts/common/io/fcoe/fcoe_eth.c
325
cv_broadcast(&mac->fm_tx_cv);
usr/src/uts/common/io/fcoe/fcoe_eth.c
326
mutex_exit(&mac->fm_mutex);
usr/src/uts/common/io/fcoe/fcoe_eth.c
341
fcoe_mac_t *mac = EPORT2MAC(eport);
usr/src/uts/common/io/fcoe/fcoe_eth.c
344
if (bcmp(addr, mac->fm_current_addr, 6) == 0) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
348
mutex_enter(&mac->fm_mutex);
usr/src/uts/common/io/fcoe/fcoe_eth.c
349
if (mac->fm_promisc_handle == NULL) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
350
ret = mac_unicast_primary_set(mac->fm_handle, addr);
usr/src/uts/common/io/fcoe/fcoe_eth.c
352
mutex_exit(&mac->fm_mutex);
usr/src/uts/common/io/fcoe/fcoe_eth.c
354
"failed %x", mac->fm_linkid, ret);
usr/src/uts/common/io/fcoe/fcoe_eth.c
359
bcopy(addr, mac->fm_current_addr, ETHERADDRL);
usr/src/uts/common/io/fcoe/fcoe_eth.c
361
bcopy(mac->fm_primary_addr,
usr/src/uts/common/io/fcoe/fcoe_eth.c
362
mac->fm_current_addr, ETHERADDRL);
usr/src/uts/common/io/fcoe/fcoe_eth.c
364
mutex_exit(&mac->fm_mutex);
usr/src/uts/common/io/fcoe/fcoe_eth.c
60
fcoe_open_mac(fcoe_mac_t *mac, int force_promisc, fcoeio_stat_t *err_detail)
usr/src/uts/common/io/fcoe/fcoe_eth.c
73
ret = mac_open_by_linkid(mac->fm_linkid, &mac->fm_handle);
usr/src/uts/common/io/fcoe/fcoe_eth.c
76
mac->fm_linkid, ret);
usr/src/uts/common/io/fcoe/fcoe_eth.c
80
(void) sprintf(cli_name, "%s-%d", "fcoe", mac->fm_linkid);
usr/src/uts/common/io/fcoe/fcoe_eth.c
82
ret = mac_client_open(mac->fm_handle,
usr/src/uts/common/io/fcoe/fcoe_eth.c
83
&mac->fm_cli_handle, cli_name, fm_open_flag);
usr/src/uts/common/io/fcoe/fcoe_eth.c
85
(void) fcoe_close_mac(mac);
usr/src/uts/common/io/fcoe/fcoe_eth.c
92
mac_unicast_primary_get(mac->fm_handle, mac->fm_primary_addr);
usr/src/uts/common/io/fcoe/fcoe_eth.c
93
bcopy(mac->fm_primary_addr, mac->fm_current_addr,
usr/src/uts/common/io/fcoe/fcoe_eth.c
96
if (mac_unicast_add(mac->fm_cli_handle, NULL, MAC_UNICAST_PRIMARY,
usr/src/uts/common/io/fcoe/fcoe_eth.c
97
&mac->fm_unicst_handle, 0, &diag)) {
usr/src/uts/common/io/fcoe/fcoe_eth.c
98
(void) fcoe_close_mac(mac);
usr/src/uts/common/io/fcoe/fcoe_fc.c
104
atomic_or_32(&mac->fm_flags, FCOE_MAC_FLAG_BOUND);
usr/src/uts/common/io/fcoe/fcoe_fc.c
105
bcopy(client, &mac->fm_client, sizeof (fcoe_client_t));
usr/src/uts/common/io/fcoe/fcoe_fc.c
110
eport = &mac->fm_eport;
usr/src/uts/common/io/fcoe/fcoe_fc.c
112
eport->eport_fcoe_private = mac;
usr/src/uts/common/io/fcoe/fcoe_fc.c
138
fcoe_mac_t *mac = EPORT2MAC(eport);
usr/src/uts/common/io/fcoe/fcoe_fc.c
146
while (mac->fm_frm_cnt > 0) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
151
atomic_and_32(&mac->fm_eport.eport_flags, ~EPORT_FLAG_MAC_IN_USE);
usr/src/uts/common/io/fcoe/fcoe_fc.c
153
(void) fcoe_close_mac(mac);
usr/src/uts/common/io/fcoe/fcoe_fc.c
154
fcoe_destroy_mac(mac);
usr/src/uts/common/io/fcoe/fcoe_fc.c
162
fcoe_mac_t *mac = EPORT2MAC(eport);
usr/src/uts/common/io/fcoe/fcoe_fc.c
170
if (fcoe_enable_callback(mac) == FCOE_FAILURE) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
173
mac->fm_state = FCOE_MAC_STATE_ONLINE;
usr/src/uts/common/io/fcoe/fcoe_fc.c
174
if (mac->fm_link_state == FCOE_MAC_LINK_STATE_UP)
usr/src/uts/common/io/fcoe/fcoe_fc.c
177
fcoe_mac_notify_link_up, mac, DDI_SLEEP);
usr/src/uts/common/io/fcoe/fcoe_fc.c
180
if (fcoe_disable_callback(mac) == FCOE_FAILURE) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
183
mac->fm_state = FCOE_MAC_STATE_OFFLINE;
usr/src/uts/common/io/fcoe/fcoe_fc.c
185
mutex_enter(&mac->fm_mutex);
usr/src/uts/common/io/fcoe/fcoe_fc.c
186
cv_broadcast(&mac->fm_tx_cv);
usr/src/uts/common/io/fcoe/fcoe_fc.c
187
mutex_exit(&mac->fm_mutex);
usr/src/uts/common/io/fcoe/fcoe_fc.c
204
fcoe_mac_t *mac = FRM2MAC(frm);
usr/src/uts/common/io/fcoe/fcoe_fc.c
211
ret_cookie = mac_tx(mac->fm_cli_handle, FRM2MBLK(frm), 0,
usr/src/uts/common/io/fcoe/fcoe_fc.c
215
mutex_enter(&mac->fm_mutex);
usr/src/uts/common/io/fcoe/fcoe_fc.c
216
(void) cv_reltimedwait(&mac->fm_tx_cv, &mac->fm_mutex,
usr/src/uts/common/io/fcoe/fcoe_fc.c
218
mutex_exit(&mac->fm_mutex);
usr/src/uts/common/io/fcoe/fcoe_fc.c
220
if (mac->fm_state == FCOE_MAC_STATE_OFFLINE) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
238
mac->fm_frm_cnt ++;
usr/src/uts/common/io/fcoe/fcoe_fc.c
414
fcoe_mac_t *mac = (fcoe_mac_t *)arg;
usr/src/uts/common/io/fcoe/fcoe_fc.c
416
ASSERT(mac->fm_flags & FCOE_MAC_FLAG_BOUND);
usr/src/uts/common/io/fcoe/fcoe_fc.c
418
mac->fm_client.ect_port_event(&mac->fm_eport,
usr/src/uts/common/io/fcoe/fcoe_fc.c
424
fcoe_mac_t *mac = (fcoe_mac_t *)arg;
usr/src/uts/common/io/fcoe/fcoe_fc.c
426
if (mac->fm_flags & FCOE_MAC_FLAG_BOUND) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
427
mac->fm_client.ect_port_event(&mac->fm_eport,
usr/src/uts/common/io/fcoe/fcoe_fc.c
433
fcoe_create_port(dev_info_t *parent, fcoe_mac_t *mac, int is_target)
usr/src/uts/common/io/fcoe/fcoe_fc.c
446
"mac_id", mac->fm_linkid) != DDI_PROP_SUCCESS) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
449
ddi_get_instance(parent), mac->fm_linkid);
usr/src/uts/common/io/fcoe/fcoe_fc.c
457
ddi_get_instance(parent), mac->fm_linkid);
usr/src/uts/common/io/fcoe/fcoe_fc.c
460
mac->fm_client_dev = child;
usr/src/uts/common/io/fcoe/fcoe_fc.c
470
fcoe_mac_t *mac;
usr/src/uts/common/io/fcoe/fcoe_fc.c
472
mac = fcoe_lookup_mac_by_id(linkid);
usr/src/uts/common/io/fcoe/fcoe_fc.c
473
if (mac == NULL) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
478
*is_target = EPORT_CLT_TYPE(&mac->fm_eport);
usr/src/uts/common/io/fcoe/fcoe_fc.c
479
if ((mac->fm_flags & FCOE_MAC_FLAG_ENABLED) != FCOE_MAC_FLAG_ENABLED) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
484
if (!(mac->fm_flags & FCOE_MAC_FLAG_BOUND)) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
492
atomic_and_32(&mac->fm_eport.eport_flags, ~EPORT_FLAG_MAC_IN_USE);
usr/src/uts/common/io/fcoe/fcoe_fc.c
493
mac->fm_flags |= FCOE_MAC_FLAG_USER_DEL;
usr/src/uts/common/io/fcoe/fcoe_fc.c
494
rval = ndi_devi_offline(mac->fm_client_dev, NDI_DEVI_REMOVE);
usr/src/uts/common/io/fcoe/fcoe_fc.c
498
ddi_get_name(mac->fm_client_dev));
usr/src/uts/common/io/fcoe/fcoe_fc.c
499
atomic_or_32(&mac->fm_eport.eport_flags,
usr/src/uts/common/io/fcoe/fcoe_fc.c
507
(void) fcoe_close_mac(mac);
usr/src/uts/common/io/fcoe/fcoe_fc.c
508
fcoe_destroy_mac(mac);
usr/src/uts/common/io/fcoe/fcoe_fc.c
74
fcoe_mac_t *mac;
usr/src/uts/common/io/fcoe/fcoe_fc.c
87
for (mac = list_head(&fcoe_global_ss->ss_mac_list); mac;
usr/src/uts/common/io/fcoe/fcoe_fc.c
88
mac = list_next(&fcoe_global_ss->ss_mac_list, mac)) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
89
if (client->ect_channelid == mac->fm_linkid) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
94
if (mac == NULL) {
usr/src/uts/common/io/fcoe/fcoe_fc.c
99
if (mac->fm_flags & FCOE_MAC_FLAG_BOUND) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_ip.c
186
uint8_t *mac;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_ip.c
227
mac = nd->fc_srcname.IEEE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_ip.c
228
ndlp = emlxs_node_find_mac(port, mac);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_ip.c
252
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_node.c
428
emlxs_node_find_mac(emlxs_port_t *port, uint8_t *mac)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_node.c
441
if ((nlp->nlp_portname.IEEE[0] == mac[0])) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_node.c
449
if ((nlp->nlp_portname.IEEE[1] == mac[1]) &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_node.c
450
(nlp->nlp_portname.IEEE[2] == mac[2]) &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_node.c
451
(nlp->nlp_portname.IEEE[3] == mac[3]) &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_node.c
452
(nlp->nlp_portname.IEEE[4] == mac[4]) &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_node.c
453
(nlp->nlp_portname.IEEE[5] == mac[5])) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_node.c
466
"find: MAC=%02x%02x%02x%02x%02x%02x", mac[0], mac[1], mac[2],
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_node.c
467
mac[3], mac[4], mac[5]);
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
194
mac_register_t *mac;
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
329
mac = mac_alloc(MAC_VERSION);
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
330
if (mac == NULL) {
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
338
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
339
mac->m_driver = dev;
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
340
mac->m_dip = dip;
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
341
mac->m_src_addr = dev->mac_addr;
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
342
mac->m_callbacks = &oce_mac_cb;
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
343
mac->m_min_sdu = 0;
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
344
mac->m_max_sdu = dev->mtu;
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
345
mac->m_margin = VTAG_SIZE;
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
346
mac->m_priv_props = oce_priv_props;
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
352
ret = mac_register(mac, (mac_handle_t *)&dev->mac_handle);
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
354
mac_free(mac);
usr/src/uts/common/io/fibre-channel/fca/oce/oce_main.c
355
mac = NULL;
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
1018
const uint8_t *mac, uint32_t *pmac_id)
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
1027
bcopy(mac, &fwcmd->params.req.mac_address[0], ETHERADDRL);
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
419
uint8_t type, struct mac_address_format *mac)
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
456
LE_16(fwcmd->params.rsp.mac.size_of_struct));
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
459
fwcmd->params.rsp.mac.mac_addr[0],
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
460
fwcmd->params.rsp.mac.mac_addr[1],
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
461
fwcmd->params.rsp.mac.mac_addr[2],
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
462
fwcmd->params.rsp.mac.mac_addr[3],
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
463
fwcmd->params.rsp.mac.mac_addr[4],
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
464
fwcmd->params.rsp.mac.mac_addr[5]);
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
467
mac->size_of_struct = LE_16(fwcmd->params.rsp.mac.size_of_struct);
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
468
bcopy(&fwcmd->params.rsp.mac.mac_addr[0], &mac->mac_addr[0],
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
469
mac->size_of_struct);
usr/src/uts/common/io/fibre-channel/fca/oce/oce_mbx.c
700
bcopy(mca_table, &fwcmd->params.req.mac[0],
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c
443
ql_m_unicst(void *arg, const uint8_t *mac)
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c
456
bcopy(mac, qlge->unicst_addr[0].addr.ether_addr_octet, ETHERADDRL);
usr/src/uts/common/io/fibre-channel/fca/qlge/qlge_gld.c
458
status = ql_unicst_set(qlge, mac, 0);
usr/src/uts/common/io/gld.c
1143
gld_mac_info_t *mac = vlan->gldv_mac;
usr/src/uts/common/io/gld.c
1144
gld_mac_pvt_t *mac_pvt = (gld_mac_pvt_t *)mac->gldm_mac_pvt;
usr/src/uts/common/io/gld.c
1153
instance = (vlan->gldv_id * GLD_VLAN_SCALE) + mac->gldm_ppa;
usr/src/uts/common/io/gld.c
1315
gld_mac_info_t *mac;
usr/src/uts/common/io/gld.c
1352
for (mac = device->gld_mac_next;
usr/src/uts/common/io/gld.c
1353
mac != (gld_mac_info_t *)&device->gld_mac_next;
usr/src/uts/common/io/gld.c
1354
mac = mac->gldm_next) {
usr/src/uts/common/io/gld.c
1355
gld_mac_pvt_t *pvt = (gld_mac_pvt_t *)mac->gldm_mac_pvt;
usr/src/uts/common/io/gld.c
1357
if (!(mac->gldm_GLD_flags & GLD_MAC_READY))
usr/src/uts/common/io/gld.c
1361
if (minor == GLD_STYLE1_PPA_TO_MINOR(mac->gldm_ppa)) {
usr/src/uts/common/io/gld.c
1362
devinfo = mac->gldm_devinfo;
usr/src/uts/common/io/gld.c
1375
ASSERT(str->gld_mac_info == mac);
usr/src/uts/common/io/gld.c
1377
devinfo = mac->gldm_devinfo;
usr/src/uts/common/io/gld.c
5570
gld_mac_info_t *mac;
usr/src/uts/common/io/gld.c
5596
for (mac = dev->gld_mac_next;
usr/src/uts/common/io/gld.c
5597
mac != (gld_mac_info_t *)&dev->gld_mac_next;
usr/src/uts/common/io/gld.c
5598
mac = mac->gldm_next) {
usr/src/uts/common/io/gld.c
5600
gld_mac_pvt_t *pvt = (gld_mac_pvt_t *)mac->gldm_mac_pvt;
usr/src/uts/common/io/gld.c
5602
if (!(mac->gldm_GLD_flags & GLD_MAC_READY))
usr/src/uts/common/io/gld.c
5605
GLDM_LOCK(mac, RW_WRITER);
usr/src/uts/common/io/gld.c
5606
ASSERT(mac->gldm_devinfo != NULL);
usr/src/uts/common/io/gld.c
5607
ASSERT(mac->gldm_mac_pvt != NULL);
usr/src/uts/common/io/gld.c
5618
ASSERT(vlan->gldv_mac == mac);
usr/src/uts/common/io/gld.c
5626
mac);
usr/src/uts/common/io/gld.c
5640
GLDM_UNLOCK(mac);
usr/src/uts/common/io/hxge/hxge_pfc.c
1138
uint64_t mac[ETHERADDRL];
usr/src/uts/common/io/hxge/hxge_pfc.c
1143
mac[j] = st_mac[i];
usr/src/uts/common/io/hxge/hxge_pfc.c
1144
mac_addr |= (mac[j] << (j*8));
usr/src/uts/common/io/i40e/core/i40e_adminq.c
580
switch (hw->mac.type) {
usr/src/uts/common/io/i40e/core/i40e_adminq_cmd.h
1353
u8 mac[6];
usr/src/uts/common/io/i40e/core/i40e_adminq_cmd.h
49
#define I40E_FW_MINOR_VERSION(_h) ((_h)->mac.type == I40E_MAC_XL710 ? \
usr/src/uts/common/io/i40e/core/i40e_common.c
1003
switch (hw->mac.type) {
usr/src/uts/common/io/i40e/core/i40e_common.c
102
hw->mac.type, status);
usr/src/uts/common/io/i40e/core/i40e_common.c
1738
if (hw->mac.type == I40E_MAC_XL710 &&
usr/src/uts/common/io/i40e/core/i40e_common.c
2051
if ((hw->mac.type == I40E_MAC_XL710) &&
usr/src/uts/common/io/i40e/core/i40e_common.c
2057
hw->mac.type != I40E_MAC_X722) {
usr/src/uts/common/io/i40e/core/i40e_common.c
4073
if (hw->mac.type == I40E_MAC_X722) {
usr/src/uts/common/io/i40e/core/i40e_common.c
4197
if (hw->mac.type == I40E_MAC_X722) {
usr/src/uts/common/io/i40e/core/i40e_common.c
5607
i40e_memcpy(cmd->mac, mac_addr, ETH_ALEN,
usr/src/uts/common/io/i40e/core/i40e_common.c
5888
if (hw->mac.type == I40E_MAC_X722)
usr/src/uts/common/io/i40e/core/i40e_common.c
7196
(hw->mac.type == I40E_MAC_X722));
usr/src/uts/common/io/i40e/core/i40e_common.c
7257
(hw->mac.type == I40E_MAC_X722));
usr/src/uts/common/io/i40e/core/i40e_common.c
75
hw->mac.type = I40E_MAC_XL710;
usr/src/uts/common/io/i40e/core/i40e_common.c
7507
i40e_memcpy(hw->mac.perm_addr,
usr/src/uts/common/io/i40e/core/i40e_common.c
7511
i40e_memcpy(hw->mac.addr, vsi_res->default_mac_addr,
usr/src/uts/common/io/i40e/core/i40e_common.c
83
hw->mac.type = I40E_MAC_X722;
usr/src/uts/common/io/i40e/core/i40e_common.c
86
hw->mac.type = I40E_MAC_X722_VF;
usr/src/uts/common/io/i40e/core/i40e_common.c
91
hw->mac.type = I40E_MAC_VF;
usr/src/uts/common/io/i40e/core/i40e_common.c
94
hw->mac.type = I40E_MAC_GENERIC;
usr/src/uts/common/io/i40e/core/i40e_dcb.c
837
if ((hw->mac.type == I40E_MAC_XL710) &&
usr/src/uts/common/io/i40e/core/i40e_dcb.c
843
if ((hw->mac.type == I40E_MAC_XL710) &&
usr/src/uts/common/io/i40e/core/i40e_dcb.c
913
if (hw->mac.type == I40E_MAC_XL710)
usr/src/uts/common/io/i40e/core/i40e_dcb.c
915
else if (hw->mac.type == I40E_MAC_X722)
usr/src/uts/common/io/i40e/core/i40e_type.h
695
struct i40e_mac_info mac;
usr/src/uts/common/io/i40e/core/i40e_type.h
780
return (hw->mac.type == I40E_MAC_VF ||
usr/src/uts/common/io/i40e/core/i40e_type.h
781
hw->mac.type == I40E_MAC_X722_VF);
usr/src/uts/common/io/i40e/i40e_gld.c
1556
mac_register_t *mac = mac_alloc(MAC_VERSION);
usr/src/uts/common/io/i40e/i40e_gld.c
1558
if (mac == NULL)
usr/src/uts/common/io/i40e/i40e_gld.c
1561
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/i40e/i40e_gld.c
1562
mac->m_driver = i40e;
usr/src/uts/common/io/i40e/i40e_gld.c
1563
mac->m_dip = i40e->i40e_dip;
usr/src/uts/common/io/i40e/i40e_gld.c
1564
mac->m_src_addr = hw->mac.addr;
usr/src/uts/common/io/i40e/i40e_gld.c
1565
mac->m_callbacks = &i40e_m_callbacks;
usr/src/uts/common/io/i40e/i40e_gld.c
1566
mac->m_min_sdu = 0;
usr/src/uts/common/io/i40e/i40e_gld.c
1567
mac->m_max_sdu = i40e->i40e_sdu;
usr/src/uts/common/io/i40e/i40e_gld.c
1568
mac->m_margin = VLAN_TAGSZ;
usr/src/uts/common/io/i40e/i40e_gld.c
1569
mac->m_priv_props = i40e_priv_props;
usr/src/uts/common/io/i40e/i40e_gld.c
1570
mac->m_v12n = MAC_VIRT_LEVEL1;
usr/src/uts/common/io/i40e/i40e_gld.c
1572
status = mac_register(mac, &i40e->i40e_mac_hdl);
usr/src/uts/common/io/i40e/i40e_gld.c
1575
mac_free(mac);
usr/src/uts/common/io/i40e/i40e_gld.c
663
if (hw->mac.type != I40E_MAC_XL710 || hw->aq.api_maj_ver != 1 ||
usr/src/uts/common/io/i40e/i40e_main.c
1359
rc = i40e_get_mac_addr(hw, hw->mac.addr);
usr/src/uts/common/io/i40e/i40e_main.c
1366
rc = i40e_validate_mac_addr(hw->mac.addr);
usr/src/uts/common/io/i40e/i40e_main.c
1372
bcopy(hw->mac.addr, hw->mac.perm_addr, ETHERADDRL);
usr/src/uts/common/io/i40e/i40e_main.c
1373
if ((rc = i40e_get_port_mac_addr(hw, hw->mac.port_addr)) !=
usr/src/uts/common/io/i40e/i40e_main.c
2261
bcopy(hw->mac.port_addr, filt.mac_addr, ETHERADDRL);
usr/src/uts/common/io/i40e/i40e_main.c
466
return (i40e->i40e_hw_space.mac.type == I40E_MAC_X722);
usr/src/uts/common/io/ib/clients/eoib/eib_data.c
485
eib_data_lookup_vnic(eib_t *ss, uint8_t *mac, uint16_t vlan, eib_vnic_t **vnicp,
usr/src/uts/common/io/ib/clients/eoib/eib_data.c
495
if (mac == NULL)
usr/src/uts/common/io/ib/clients/eoib/eib_data.c
511
(bcmp(vn_mac, mac, ETHERADDRL) == 0)) {
usr/src/uts/common/io/ib/clients/eoib/eib_data.c
534
(bcmp(vrq->vr_mac, mac, ETHERADDRL) == 0)) {
usr/src/uts/common/io/ib/clients/eoib/eib_fip.c
1467
eib_fip_dequeue_tbl_entry(eib_vhub_table_t *tbl, uint8_t *mac, uint32_t tusn,
usr/src/uts/common/io/ib/clients/eoib/eib_fip.c
1474
bkt = (mac[ETHERADDRL-1]) % EIB_TB_NBUCKETS;
usr/src/uts/common/io/ib/clients/eoib/eib_fip.c
1484
if (bcmp(elem->mp_mac, mac, ETHERADDRL) == 0)
usr/src/uts/common/io/ib/clients/eoib/eib_vnic.c
821
eib_vnic_need_new(eib_t *ss, uint8_t *mac, uint16_t vlan)
usr/src/uts/common/io/ib/clients/eoib/eib_vnic.c
838
bcopy(mac, vrq->vr_mac, ETHERADDRL);
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1056
ibd_n2h_gid(ipoib_mac_t *mac, ib_gid_t *dgid)
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1061
bcopy(mac->ipoib_gidpref, &nbopref, sizeof (ib_sn_prefix_t));
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1062
bcopy(mac->ipoib_gidsuff, &nboguid, sizeof (ib_guid_t));
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1071
ibd_h2n_mac(ipoib_mac_t *mac, ib_qpn_t qpn, ib_sn_prefix_t prefix,
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1077
mac->ipoib_qpn = htonl(qpn);
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1080
bcopy(&nbopref, mac->ipoib_gidpref, sizeof (ib_sn_prefix_t));
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1081
bcopy(&nboguid, mac->ipoib_gidsuff, sizeof (ib_guid_t));
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1460
ibd_acache_find(ibd_state_t *state, ipoib_mac_t *mac, boolean_t hold, int num)
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1470
(mod_hash_key_t)mac, (mod_hash_val_t)&ptr) == 0) {
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1484
ibd_acache_lookup(ibd_state_t *state, ipoib_mac_t *mac, int *err, int numwqe)
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1493
if (((ulong_t)mac & 3) == 0) {
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1496
htonl(mac->ipoib_qpn), htonl(mac->ipoib_gidpref[0]),
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1497
htonl(mac->ipoib_gidpref[1]), htonl(mac->ipoib_gidsuff[0]),
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1498
htonl(mac->ipoib_gidsuff[1]));
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1504
(memcmp(&ptr->ac_mac, mac, sizeof (*mac)) == 0)) {
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1509
if (((ptr = ibd_acache_find(state, mac, B_TRUE, numwqe)) != NULL)) {
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1535
bcopy(mac, &(req->rq_mac), IPOIB_ADDRL);
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1538
bcopy(mac, &state->id_ah_addr, IPOIB_ADDRL);
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1541
(bcmp(&state->id_ah_addr, mac, IPOIB_ADDRL) == 0)) {
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1559
(void) ibd_get_allroutergroup(state, mac, &routermac);
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1565
(bcmp(&state->id_ah_addr, mac, IPOIB_ADDRL) != 0)) {
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1694
ibd_async_mcache(ibd_state_t *state, ipoib_mac_t *mac, boolean_t *redirect)
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1701
ibd_n2h_gid(mac, &mgid);
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1730
if (!ibd_get_allroutergroup(state, mac, &routermac))
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1734
bcopy(&routermac, mac, IPOIB_ADDRL);
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1764
ibd_async_acache(ibd_state_t *state, ipoib_mac_t *mac)
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1774
htonl(mac->ipoib_qpn), htonl(mac->ipoib_gidpref[0]),
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1775
htonl(mac->ipoib_gidpref[1]), htonl(mac->ipoib_gidsuff[0]),
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1776
htonl(mac->ipoib_gidsuff[1]));
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1783
if (mac->ipoib_qpn == htonl(IB_MC_QPN)) {
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1790
if ((mce = ibd_async_mcache(state, mac, &redirected)) ==
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1809
htonl(mac->ipoib_qpn), htonl(mac->ipoib_gidpref[0]),
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1810
htonl(mac->ipoib_gidpref[1]),
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1811
htonl(mac->ipoib_gidsuff[0]),
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1812
htonl(mac->ipoib_gidsuff[1]));
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1815
if (ibd_acache_find(state, mac, B_FALSE, 0) != NULL) {
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1862
bcopy((char *)mac, &ce->ac_mac, IPOIB_ADDRL);
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1895
if (state->id_enable_rc && (mac->ipoib_qpn != htonl(IB_MC_QPN)) &&
usr/src/uts/common/io/ib/clients/ibd/ibd.c
1896
(htonl(mac->ipoib_qpn) & IBD_MAC_ADDR_RC)) {
usr/src/uts/common/io/igb/igb_gld.c
1000
if (igb->hw.mac.ops.led_on != NULL &&
usr/src/uts/common/io/igb/igb_gld.c
1001
igb->hw.mac.ops.led_on != e1000_null_ops_generic) {
usr/src/uts/common/io/igb/igb_gld.c
1433
switch (hw->mac.type) {
usr/src/uts/common/io/igb/igb_gld.c
1585
switch (igb->hw.mac.type) {
usr/src/uts/common/io/igb/igb_gld.c
289
*val = hw->mac.autoneg;
usr/src/uts/common/io/igb/igb_gld.c
337
*val = hw->mac.autoneg;
usr/src/uts/common/io/igb/igb_gld.c
618
if (igb->unicst_addr[rx_group->index].mac.set == 1) {
usr/src/uts/common/io/igb/igb_gld.c
624
if (igb->unicst_addr[i].mac.set == 0) {
usr/src/uts/common/io/igb/igb_gld.c
641
bcopy(mac_addr, igb->unicst_addr[slot].mac.addr, ETHERADDRL);
usr/src/uts/common/io/igb/igb_gld.c
642
igb->unicst_addr[slot].mac.group_index = rx_group->index;
usr/src/uts/common/io/igb/igb_gld.c
643
igb->unicst_addr[slot].mac.set = 1;
usr/src/uts/common/io/igb/igb_gld.c
675
if (igb->unicst_addr[slot].mac.set == 0) {
usr/src/uts/common/io/igb/igb_gld.c
682
igb->unicst_addr[slot].mac.set = 0;
usr/src/uts/common/io/igb/igb_gld.c
992
if (igb->hw.mac.ops.blink_led != NULL &&
usr/src/uts/common/io/igb/igb_gld.c
993
igb->hw.mac.ops.blink_led != e1000_null_ops_generic) {
usr/src/uts/common/io/igb/igb_gld.c
996
if (igb->hw.mac.ops.led_off != NULL &&
usr/src/uts/common/io/igb/igb_gld.c
997
igb->hw.mac.ops.led_off != e1000_null_ops_generic) {
usr/src/uts/common/io/igb/igb_main.c
1319
if (((igb->hw.mac.type != e1000_i210) &&
usr/src/uts/common/io/igb/igb_main.c
1320
(igb->hw.mac.type != e1000_i211)) &&
usr/src/uts/common/io/igb/igb_main.c
1345
if (!is_valid_mac_addr(hw->mac.addr)) {
usr/src/uts/common/io/igb/igb_main.c
1389
switch (hw->mac.type) {
usr/src/uts/common/io/igb/igb_main.c
1413
if ((hw->mac.type == e1000_82575) && (default_mtu > ETHERMTU)) {
usr/src/uts/common/io/igb/igb_main.c
1452
if (hw->mac.type < e1000_82576) {
usr/src/uts/common/io/igb/igb_main.c
1916
if (igb->hw.mac.type == e1000_i350)
usr/src/uts/common/io/igb/igb_main.c
1918
else if (igb->hw.mac.type == e1000_i354)
usr/src/uts/common/io/igb/igb_main.c
2231
(hw->mac.mc_filter_type << E1000_RCTL_MO_SHIFT) |
usr/src/uts/common/io/igb/igb_main.c
2321
if ((hw->mac.type == e1000_82575) &&
usr/src/uts/common/io/igb/igb_main.c
2463
if (hw->mac.type == e1000_82576) {
usr/src/uts/common/io/igb/igb_main.c
2465
} else if (hw->mac.type == e1000_82575) {
usr/src/uts/common/io/igb/igb_main.c
2662
igb->unicst_addr[slot].mac.set = 0;
usr/src/uts/common/io/igb/igb_main.c
2669
igb->unicst_addr[slot].mac.addr,
usr/src/uts/common/io/igb/igb_main.c
2671
igb->unicst_addr[slot].mac.group_index);
usr/src/uts/common/io/igb/igb_main.c
2687
if (bcmp(igb->unicst_addr[slot].mac.addr,
usr/src/uts/common/io/igb/igb_main.c
2709
bcopy(mac_addr, igb->unicst_addr[slot].mac.addr, ETHERADDRL);
usr/src/uts/common/io/igb/igb_main.c
2974
if (hw->mac.type >= e1000_82576)
usr/src/uts/common/io/igb/igb_main.c
3129
struct e1000_mac_info *mac;
usr/src/uts/common/io/igb/igb_main.c
3133
mac = &igb->hw.mac;
usr/src/uts/common/io/igb/igb_main.c
3138
mac->autoneg = true;
usr/src/uts/common/io/igb/igb_main.c
3162
mac->autoneg = false;
usr/src/uts/common/io/igb/igb_main.c
3168
mac->forced_speed_duplex = ADVERTISE_100_FULL;
usr/src/uts/common/io/igb/igb_main.c
3170
mac->forced_speed_duplex = ADVERTISE_100_HALF;
usr/src/uts/common/io/igb/igb_main.c
3172
mac->forced_speed_duplex = ADVERTISE_10_FULL;
usr/src/uts/common/io/igb/igb_main.c
3174
mac->forced_speed_duplex = ADVERTISE_10_HALF;
usr/src/uts/common/io/igb/igb_main.c
3182
mac->autoneg = true;
usr/src/uts/common/io/igb/igb_main.c
3216
if (hw->mac.get_link_status) {
usr/src/uts/common/io/igb/igb_main.c
3218
link_up = !hw->mac.get_link_status;
usr/src/uts/common/io/igb/igb_main.c
3229
link_up = hw->mac.serdes_has_link;
usr/src/uts/common/io/igb/igb_main.c
3377
if (hw->mac.type == e1000_82580) {
usr/src/uts/common/io/igb/igb_main.c
3436
hw->mac.addr[nelts] = bytes[nelts];
usr/src/uts/common/io/igb/igb_main.c
3450
bcopy(&sysaddr, hw->mac.addr, ETHERADDRL);
usr/src/uts/common/io/igb/igb_main.c
3468
hw->mac.addr[nelts] = bytes[nelts];
usr/src/uts/common/io/igb/igb_main.c
3475
bcopy(hw->mac.addr, hw->mac.perm_addr, ETHERADDRL);
usr/src/uts/common/io/igb/igb_main.c
3602
if (hw->mac.autoneg)
usr/src/uts/common/io/igb/igb_main.c
4104
igb->hw.mac.get_link_status = true;
usr/src/uts/common/io/igb/igb_main.c
4187
igb->hw.mac.get_link_status = true;
usr/src/uts/common/io/igb/igb_main.c
5138
igb->param_adv_autoneg_cap = hw->mac.autoneg;
usr/src/uts/common/io/igb/igb_main.c
637
if (igb->hw.mac.type == e1000_i350)
usr/src/uts/common/io/igb/igb_main.c
639
else if (igb->hw.mac.type == e1000_i354)
usr/src/uts/common/io/igb/igb_main.c
902
mac_register_t *mac;
usr/src/uts/common/io/igb/igb_main.c
905
if ((mac = mac_alloc(MAC_VERSION)) == NULL)
usr/src/uts/common/io/igb/igb_main.c
908
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/igb/igb_main.c
909
mac->m_driver = igb;
usr/src/uts/common/io/igb/igb_main.c
910
mac->m_dip = igb->dip;
usr/src/uts/common/io/igb/igb_main.c
911
mac->m_src_addr = hw->mac.addr;
usr/src/uts/common/io/igb/igb_main.c
912
mac->m_callbacks = &igb_m_callbacks;
usr/src/uts/common/io/igb/igb_main.c
913
mac->m_min_sdu = 0;
usr/src/uts/common/io/igb/igb_main.c
914
mac->m_max_sdu = igb->max_frame_size -
usr/src/uts/common/io/igb/igb_main.c
916
mac->m_margin = VLAN_TAGSZ;
usr/src/uts/common/io/igb/igb_main.c
917
mac->m_priv_props = igb_priv_props;
usr/src/uts/common/io/igb/igb_main.c
918
mac->m_v12n = MAC_VIRT_LEVEL1;
usr/src/uts/common/io/igb/igb_main.c
920
status = mac_register(mac, &igb->mac_hdl);
usr/src/uts/common/io/igb/igb_main.c
922
mac_free(mac);
usr/src/uts/common/io/igb/igb_main.c
960
switch (hw->mac.type) {
usr/src/uts/common/io/igb/igb_sensor.c
164
if (hw->mac.type != e1000_i350 || hw->bus.func != 0) {
usr/src/uts/common/io/igb/igb_sensor.c
80
if (igb->hw.mac.ops.acquire_swfw_sync(&igb->hw, E1000_SWFW_PWRTS_SM) !=
usr/src/uts/common/io/igb/igb_sensor.c
85
igb->hw.mac.ops.release_swfw_sync(&igb->hw, E1000_SWFW_PWRTS_SM);
usr/src/uts/common/io/igb/igb_sw.h
349
} mac;
usr/src/uts/common/io/igb/igb_tx.c
1003
if (hw->mac.type >= e1000_82576) {
usr/src/uts/common/io/igc/core/igc_api.c
118
mac->type = igc_i225;
usr/src/uts/common/io/igc/core/igc_api.c
171
switch (hw->mac.type) {
usr/src/uts/common/io/igc/core/igc_api.c
20
if (hw->mac.ops.init_params) {
usr/src/uts/common/io/igc/core/igc_api.c
21
ret_val = hw->mac.ops.init_params(hw);
usr/src/uts/common/io/igc/core/igc_api.c
213
if (hw->mac.ops.get_bus_info)
usr/src/uts/common/io/igc/core/igc_api.c
214
return hw->mac.ops.get_bus_info(hw);
usr/src/uts/common/io/igc/core/igc_api.c
228
if (hw->mac.ops.clear_vfta)
usr/src/uts/common/io/igc/core/igc_api.c
229
hw->mac.ops.clear_vfta(hw);
usr/src/uts/common/io/igc/core/igc_api.c
243
if (hw->mac.ops.write_vfta)
usr/src/uts/common/io/igc/core/igc_api.c
244
hw->mac.ops.write_vfta(hw, offset, value);
usr/src/uts/common/io/igc/core/igc_api.c
259
if (hw->mac.ops.update_mc_addr_list)
usr/src/uts/common/io/igc/core/igc_api.c
260
hw->mac.ops.update_mc_addr_list(hw, mc_addr_list,
usr/src/uts/common/io/igc/core/igc_api.c
287
if (hw->mac.ops.check_for_link)
usr/src/uts/common/io/igc/core/igc_api.c
288
return hw->mac.ops.check_for_link(hw);
usr/src/uts/common/io/igc/core/igc_api.c
302
if (hw->mac.ops.reset_hw)
usr/src/uts/common/io/igc/core/igc_api.c
303
return hw->mac.ops.reset_hw(hw);
usr/src/uts/common/io/igc/core/igc_api.c
317
if (hw->mac.ops.init_hw)
usr/src/uts/common/io/igc/core/igc_api.c
318
return hw->mac.ops.init_hw(hw);
usr/src/uts/common/io/igc/core/igc_api.c
333
if (hw->mac.ops.setup_link)
usr/src/uts/common/io/igc/core/igc_api.c
334
return hw->mac.ops.setup_link(hw);
usr/src/uts/common/io/igc/core/igc_api.c
351
if (hw->mac.ops.get_link_up_info)
usr/src/uts/common/io/igc/core/igc_api.c
352
return hw->mac.ops.get_link_up_info(hw, speed, duplex);
usr/src/uts/common/io/igc/core/igc_api.c
379
if (hw->mac.ops.config_collision_dist)
usr/src/uts/common/io/igc/core/igc_api.c
380
hw->mac.ops.config_collision_dist(hw);
usr/src/uts/common/io/igc/core/igc_api.c
393
if (hw->mac.ops.rar_set)
usr/src/uts/common/io/igc/core/igc_api.c
394
return hw->mac.ops.rar_set(hw, addr, index);
usr/src/uts/common/io/igc/core/igc_api.c
407
if (hw->mac.ops.validate_mdi_setting)
usr/src/uts/common/io/igc/core/igc_api.c
408
return hw->mac.ops.validate_mdi_setting(hw);
usr/src/uts/common/io/igc/core/igc_api.c
589
if (hw->mac.ops.read_mac_addr)
usr/src/uts/common/io/igc/core/igc_api.c
590
return hw->mac.ops.read_mac_addr(hw);
usr/src/uts/common/io/igc/core/igc_api.c
98
struct igc_mac_info *mac = &hw->mac;
usr/src/uts/common/io/igc/core/igc_base.c
27
return hw->mac.ops.acquire_swfw_sync(hw, mask);
usr/src/uts/common/io/igc/core/igc_base.c
45
hw->mac.ops.release_swfw_sync(hw, mask);
usr/src/uts/common/io/igc/core/igc_base.c
56
struct igc_mac_info *mac = &hw->mac;
usr/src/uts/common/io/igc/core/igc_base.c
58
u16 i, rar_count = mac->rar_entry_count;
usr/src/uts/common/io/igc/core/igc_base.c
67
for (i = 0; i < mac->mta_reg_count; i++)
usr/src/uts/common/io/igc/core/igc_base.c
72
for (i = 0; i < mac->uta_reg_count; i++)
usr/src/uts/common/io/igc/core/igc_base.c
76
ret_val = mac->ops.setup_link(hw);
usr/src/uts/common/io/igc/core/igc_hw.h
519
struct igc_mac_info mac;
usr/src/uts/common/io/igc/core/igc_i225.c
1000
if (!mac->get_link_status) {
usr/src/uts/common/io/igc/core/igc_i225.c
101
mac->ops.init_hw = igc_init_hw_i225;
usr/src/uts/common/io/igc/core/igc_i225.c
1027
mac->get_link_status = false;
usr/src/uts/common/io/igc/core/igc_i225.c
103
mac->ops.setup_link = igc_setup_link_generic;
usr/src/uts/common/io/igc/core/igc_i225.c
1037
if (!mac->autoneg)
usr/src/uts/common/io/igc/core/igc_i225.c
1044
mac->ops.config_collision_dist(hw);
usr/src/uts/common/io/igc/core/igc_i225.c
105
mac->ops.check_for_link = igc_check_for_link_i225;
usr/src/uts/common/io/igc/core/igc_i225.c
107
mac->ops.get_link_up_info = igc_get_speed_and_duplex_copper_generic;
usr/src/uts/common/io/igc/core/igc_i225.c
1073
hw->mac.ops.init_params = igc_init_mac_params_i225;
usr/src/uts/common/io/igc/core/igc_i225.c
109
mac->ops.acquire_swfw_sync = igc_acquire_swfw_sync_i225;
usr/src/uts/common/io/igc/core/igc_i225.c
111
mac->ops.release_swfw_sync = igc_release_swfw_sync_i225;
usr/src/uts/common/io/igc/core/igc_i225.c
115
mac->ops.setup_physical_interface = igc_setup_copper_link_i225;
usr/src/uts/common/io/igc/core/igc_i225.c
1168
if (hw->mac.type != igc_i225 ||
usr/src/uts/common/io/igc/core/igc_i225.c
118
mac->asf_firmware_present = true;
usr/src/uts/common/io/igc/core/igc_i225.c
121
mac->ops.update_mc_addr_list = igc_update_mc_addr_list_generic;
usr/src/uts/common/io/igc/core/igc_i225.c
123
mac->ops.write_vfta = igc_write_vfta_generic;
usr/src/uts/common/io/igc/core/igc_i225.c
83
struct igc_mac_info *mac = &hw->mac;
usr/src/uts/common/io/igc/core/igc_i225.c
895
hw->mac.ops.get_link_up_info(hw, &speed, &duplex);
usr/src/uts/common/io/igc/core/igc_i225.c
94
mac->mta_reg_count = 128;
usr/src/uts/common/io/igc/core/igc_i225.c
96
mac->rar_entry_count = IGC_RAR_ENTRIES_BASE;
usr/src/uts/common/io/igc/core/igc_i225.c
989
struct igc_mac_info *mac = &hw->mac;
usr/src/uts/common/io/igc/core/igc_i225.c
99
mac->ops.reset_hw = igc_reset_hw_i225;
usr/src/uts/common/io/igc/core/igc_mac.c
178
hw->mac.ops.rar_set(hw, hw->mac.addr, 0);
usr/src/uts/common/io/igc/core/igc_mac.c
183
hw->mac.ops.rar_set(hw, mac_addr, i);
usr/src/uts/common/io/igc/core/igc_mac.c
19
struct igc_mac_info *mac = &hw->mac;
usr/src/uts/common/io/igc/core/igc_mac.c
23
mac->ops.init_params = igc_null_ops_generic;
usr/src/uts/common/io/igc/core/igc_mac.c
24
mac->ops.config_collision_dist = igc_config_collision_dist_generic;
usr/src/uts/common/io/igc/core/igc_mac.c
248
hw->mac.ops.rar_set(hw, alt_mac_addr, 0);
usr/src/uts/common/io/igc/core/igc_mac.c
25
mac->ops.rar_set = igc_rar_set_generic;
usr/src/uts/common/io/igc/core/igc_mac.c
308
hash_mask = (hw->mac.mta_reg_count * 32) - 1;
usr/src/uts/common/io/igc/core/igc_mac.c
341
switch (hw->mac.mc_filter_type) {
usr/src/uts/common/io/igc/core/igc_mac.c
380
memset(&hw->mac.mta_shadow, 0, sizeof(hw->mac.mta_shadow));
usr/src/uts/common/io/igc/core/igc_mac.c
386
hash_reg = (hash_value >> 5) & (hw->mac.mta_reg_count - 1);
usr/src/uts/common/io/igc/core/igc_mac.c
389
hw->mac.mta_shadow[hash_reg] |= (1 << hash_bit);
usr/src/uts/common/io/igc/core/igc_mac.c
394
for (i = hw->mac.mta_reg_count - 1; i >= 0; i--)
usr/src/uts/common/io/igc/core/igc_mac.c
395
IGC_WRITE_REG_ARRAY(hw, IGC_MTA, i, hw->mac.mta_shadow[i]);
usr/src/uts/common/io/igc/core/igc_mac.c
460
struct igc_mac_info *mac = &hw->mac;
usr/src/uts/common/io/igc/core/igc_mac.c
471
if (!mac->get_link_status)
usr/src/uts/common/io/igc/core/igc_mac.c
485
mac->get_link_status = false;
usr/src/uts/common/io/igc/core/igc_mac.c
495
if (!mac->autoneg)
usr/src/uts/common/io/igc/core/igc_mac.c
502
mac->ops.config_collision_dist(hw);
usr/src/uts/common/io/igc/core/igc_mac.c
554
ret_val = hw->mac.ops.setup_physical_interface(hw);
usr/src/uts/common/io/igc/core/igc_mac.c
706
struct igc_mac_info *mac = &hw->mac;
usr/src/uts/common/io/igc/core/igc_mac.c
723
if (mac->autoneg) {
usr/src/uts/common/io/igc/core/igc_mac.c
843
ret_val = mac->ops.get_link_up_info(hw, &speed, &duplex);
usr/src/uts/common/io/igc/core/igc_mac.c
887
if ((hw->mac.type == igc_i225) &&
usr/src/uts/common/io/igc/core/igc_nvm.c
623
hw->mac.perm_addr[i] = (u8)(rar_low >> (i*8));
usr/src/uts/common/io/igc/core/igc_nvm.c
626
hw->mac.perm_addr[i+4] = (u8)(rar_high >> (i*8));
usr/src/uts/common/io/igc/core/igc_nvm.c
629
hw->mac.addr[i] = hw->mac.perm_addr[i];
usr/src/uts/common/io/igc/core/igc_phy.c
519
hw->mac.get_link_status = true;
usr/src/uts/common/io/igc/core/igc_phy.c
540
if (hw->mac.autoneg) {
usr/src/uts/common/io/igc/core/igc_phy.c
569
hw->mac.ops.config_collision_dist(hw);
usr/src/uts/common/io/igc/core/igc_phy.c
592
struct igc_mac_info *mac = &hw->mac;
usr/src/uts/common/io/igc/core/igc_phy.c
612
if (mac->forced_speed_duplex & IGC_ALL_HALF_DUPLEX) {
usr/src/uts/common/io/igc/core/igc_phy.c
623
if (mac->forced_speed_duplex & IGC_ALL_100_SPEED) {
usr/src/uts/common/io/igc/core/igc_phy.c
634
hw->mac.ops.config_collision_dist(hw);
usr/src/uts/common/io/igc/igc.c
1255
igc->igc_nucast = igc->igc_hw.mac.rar_entry_count;
usr/src/uts/common/io/igc/igc.c
1288
igc->igc_nmcast = igc->igc_hw.mac.mta_reg_count;
usr/src/uts/common/io/igc/igc.c
1395
igc->igc_hw.mac.get_link_status = true;
usr/src/uts/common/io/igc/igc.c
1761
igc->igc_hw.mac.autoneg = true;
usr/src/uts/common/io/igc/igc.c
545
return (!igc->igc_hw.mac.get_link_status);
usr/src/uts/common/io/igc/igc.c
560
igc->igc_hw.mac.get_link_status = true;
usr/src/uts/common/io/igc/igc.c
770
switch (igc->igc_hw.mac.type) {
usr/src/uts/common/io/igc/igc.c
778
igc->igc_hw.mac.type);
usr/src/uts/common/io/igc/igc_gld.c
1265
mac_register_t *mac = mac_alloc(MAC_VERSION);
usr/src/uts/common/io/igc/igc_gld.c
1267
if (mac == NULL) {
usr/src/uts/common/io/igc/igc_gld.c
1273
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/igc/igc_gld.c
1274
mac->m_driver = igc;
usr/src/uts/common/io/igc/igc_gld.c
1275
mac->m_dip = igc->igc_dip;
usr/src/uts/common/io/igc/igc_gld.c
1276
mac->m_src_addr = igc->igc_hw.mac.addr;
usr/src/uts/common/io/igc/igc_gld.c
1277
mac->m_callbacks = &igc_mac_callbacks;
usr/src/uts/common/io/igc/igc_gld.c
1278
mac->m_min_sdu = 0;
usr/src/uts/common/io/igc/igc_gld.c
1279
mac->m_max_sdu = igc->igc_mtu;
usr/src/uts/common/io/igc/igc_gld.c
1280
mac->m_margin = VLAN_TAGSZ;
usr/src/uts/common/io/igc/igc_gld.c
1281
mac->m_priv_props = NULL;
usr/src/uts/common/io/igc/igc_gld.c
1282
mac->m_v12n = MAC_VIRT_LEVEL1;
usr/src/uts/common/io/igc/igc_gld.c
1284
ret = mac_register(mac, &igc->igc_mac_hdl);
usr/src/uts/common/io/igc/igc_gld.c
1285
mac_free(mac);
usr/src/uts/common/io/igc/igc_gld.c
242
*valp = igc->igc_hw.mac.autoneg;
usr/src/uts/common/io/igc/igc_gld.c
280
*valp = igc->igc_hw.mac.autoneg;
usr/src/uts/common/io/igc/igc_gld.c
479
igc_m_multicast(void *drv, boolean_t add, const uint8_t *mac)
usr/src/uts/common/io/igc/igc_gld.c
484
if ((mac[0] & 0x01) == 0) {
usr/src/uts/common/io/igc/igc_gld.c
496
bcopy(mac, igc->igc_mcast[i].ia_mac, ETHERADDRL);
usr/src/uts/common/io/igc/igc_gld.c
509
if (!igc->igc_mcast[i].ia_valid || bcmp(mac,
usr/src/uts/common/io/igc/igc_gld.c
531
igc_group_add_mac(void *gr_drv, const uint8_t *mac)
usr/src/uts/common/io/igc/igc_gld.c
535
ASSERT3U(mac[0] & 0x01, ==, 0);
usr/src/uts/common/io/igc/igc_gld.c
544
bcopy(mac, igc->igc_ucast[i].ia_mac, ETHERADDRL);
usr/src/uts/common/io/igc/igc_gld.c
557
igc_group_rem_mac(void *gr_drv, const uint8_t *mac)
usr/src/uts/common/io/igc/igc_gld.c
561
ASSERT3U(mac[0] & 0x01, ==, 0);
usr/src/uts/common/io/igc/igc_gld.c
567
if (!igc->igc_ucast[i].ia_valid || bcmp(mac,
usr/src/uts/common/io/igc/igc_gld.c
976
*u8p = igc->igc_hw.mac.autoneg;
usr/src/uts/common/io/igc/igc_ring.c
577
rctl |= igc->igc_hw.mac.mc_filter_type << IGC_RCTL_MO_SHIFT;
usr/src/uts/common/io/iwk/iwk2.c
1822
const uint8_t mac[IEEE80211_ADDR_LEN])
usr/src/uts/common/io/iwk/iwk2.c
1845
if (IEEE80211_IS_MULTICAST(mac)) {
usr/src/uts/common/io/iwk/iwk2.c
1860
mac)) {
usr/src/uts/common/io/iwk/iwk2.c
259
const uint8_t mac[IEEE80211_ADDR_LEN]);
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
1060
for (offset = 0; offset < hw->mac.vft_size; offset++)
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
1064
for (offset = 0; offset < hw->mac.vft_size; offset++)
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
1143
if (hw->mac.ops.acquire_swfw_sync(hw, gssr) != IXGBE_SUCCESS)
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
1187
hw->mac.ops.release_swfw_sync(hw, gssr);
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
121
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
134
mac->ops.start_hw = ixgbe_start_hw_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
135
mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
136
mac->ops.reset_hw = ixgbe_reset_hw_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
137
mac->ops.get_media_type = ixgbe_get_media_type_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
1370
for (i = 0; ((i < hw->mac.max_tx_queues) &&
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
1377
for (i = 0; ((i < hw->mac.max_rx_queues) &&
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
138
mac->ops.get_supported_physical_layer =
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
140
mac->ops.read_analog_reg8 = ixgbe_read_analog_reg8_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
141
mac->ops.write_analog_reg8 = ixgbe_write_analog_reg8_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
142
mac->ops.set_lan_id = ixgbe_set_lan_id_multi_port_pcie_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
143
mac->ops.enable_rx_dma = ixgbe_enable_rx_dma_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
146
mac->ops.set_vmdq = ixgbe_set_vmdq_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
147
mac->ops.clear_vmdq = ixgbe_clear_vmdq_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
148
mac->ops.set_vfta = ixgbe_set_vfta_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
149
mac->ops.set_vlvf = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
150
mac->ops.clear_vfta = ixgbe_clear_vfta_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
153
mac->ops.fc_enable = ixgbe_fc_enable_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
155
mac->mcft_size = IXGBE_82598_MC_TBL_SIZE;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
156
mac->vft_size = IXGBE_82598_VFT_TBL_SIZE;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
157
mac->num_rar_entries = IXGBE_82598_RAR_ENTRIES;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
158
mac->rx_pb_size = IXGBE_82598_RX_PB_SIZE;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
159
mac->max_rx_queues = IXGBE_82598_MAX_RX_QUEUES;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
160
mac->max_tx_queues = IXGBE_82598_MAX_TX_QUEUES;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
161
mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
168
mac->ops.check_link = ixgbe_check_mac_link_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
169
mac->ops.setup_link = ixgbe_setup_mac_link_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
170
mac->ops.flap_tx_laser = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
171
mac->ops.get_link_capabilities = ixgbe_get_link_capabilities_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
172
mac->ops.setup_rxpba = ixgbe_set_rxpba_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
175
mac->ops.set_fw_drv_ver = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
177
mac->ops.get_rtrup2tc = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
193
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
204
if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
205
mac->ops.setup_link = ixgbe_setup_copper_link_82598;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
206
mac->ops.get_link_capabilities =
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
267
for (i = 0; ((i < hw->mac.max_tx_queues) &&
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
274
for (i = 0; ((i < hw->mac.max_rx_queues) &&
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
310
if (hw->mac.orig_link_settings_stored)
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
311
autoc = hw->mac.orig_autoc;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
445
hw->mac.ops.check_link(hw, &link_speed, &link_up, false);
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
664
for (i = 0; i < hw->mac.max_link_up_time; i++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
693
for (i = 0; i < hw->mac.max_link_up_time; i++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
823
status = hw->mac.ops.stop_adapter(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
832
hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_LPBK, &analog_val);
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
835
hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_LPBK,
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
838
hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_LPBK,
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
841
hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_10G,
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
844
hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_10G,
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
847
hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_1G,
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
850
hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_1G,
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
853
hw->mac.ops.read_analog_reg8(hw, IXGBE_ATLAS_PDN_AN,
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
856
hw->mac.ops.write_analog_reg8(hw, IXGBE_ATLAS_PDN_AN,
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
902
if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
903
hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
917
if (hw->mac.orig_link_settings_stored == false) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
918
hw->mac.orig_autoc = autoc;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
919
hw->mac.orig_link_settings_stored = true;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
920
} else if (autoc != hw->mac.orig_autoc) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
921
IXGBE_WRITE_REG(hw, IXGBE_AUTOC, hw->mac.orig_autoc);
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
925
hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr);
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
931
hw->mac.ops.init_rx_addrs(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
949
u32 rar_entries = hw->mac.num_rar_entries;
usr/src/uts/common/io/ixgbe/core/ixgbe_82598.c
975
u32 rar_entries = hw->mac.num_rar_entries;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
101
mac->ops.setup_link = ixgbe_setup_mac_link_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1067
status = hw->mac.ops.stop_adapter(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1084
status = hw->mac.ops.setup_sfp(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1107
hw->mac.ops.check_link(hw, &link_speed, &link_up, false);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1136
if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1137
hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1156
if (hw->mac.orig_link_settings_stored == false) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1157
hw->mac.orig_autoc = autoc;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1158
hw->mac.orig_autoc2 = autoc2;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1159
hw->mac.orig_link_settings_stored = true;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
117
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1170
hw->mac.orig_autoc =
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1171
(hw->mac.orig_autoc & ~IXGBE_AUTOC_LMS_MASK) |
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1174
if (autoc != hw->mac.orig_autoc) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1175
status = hw->mac.ops.prot_autoc_write(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1176
hw->mac.orig_autoc,
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1183
(hw->mac.orig_autoc2 & IXGBE_AUTOC2_UPPER_MASK)) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1185
autoc2 |= (hw->mac.orig_autoc2 &
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1192
hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1199
hw->mac.num_rar_entries = 128;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1200
hw->mac.ops.init_rx_addrs(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1203
hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1206
if (ixgbe_validate_mac_addr(hw->mac.san_addr) == 0) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1208
hw->mac.san_mac_rar_index = hw->mac.num_rar_entries - 1;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1210
hw->mac.ops.set_rar(hw, hw->mac.san_mac_rar_index,
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1211
hw->mac.san_addr, 0, IXGBE_RAH_AV);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1214
hw->mac.ops.clear_vmdq(hw, hw->mac.san_mac_rar_index,
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1218
hw->mac.num_rar_entries--;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1222
hw->mac.ops.get_wwn_prefix(hw, &hw->mac.wwnn_prefix,
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1223
&hw->mac.wwpn_prefix);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1443
if ((hw->mac.type == ixgbe_mac_X550) ||
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1444
(hw->mac.type == ixgbe_mac_X550EM_x) ||
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1445
(hw->mac.type == ixgbe_mac_X550EM_a))
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
152
if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
153
mac->ops.setup_link = ixgbe_setup_copper_link_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
154
mac->ops.get_link_capabilities =
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1857
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
1880
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
191
ret_val = hw->mac.ops.acquire_swfw_sync(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
208
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
215
ret_val = hw->mac.ops.prot_autoc_write(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
216
hw->mac.orig_autoc | IXGBE_AUTOC_LMS_10G_SERIAL,
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
2162
hw->mac.autotry_restart = true;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
2188
if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_copper)
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
2313
hw->mac.ops.disable_sec_rx_path(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
232
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
2320
hw->mac.ops.enable_sec_rx_path(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
257
ret_val = hw->mac.ops.acquire_swfw_sync(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
292
ret_val = hw->mac.ops.acquire_swfw_sync(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
308
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
323
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
339
mac->ops.reset_hw = ixgbe_reset_hw_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
340
mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_gen2;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
341
mac->ops.get_media_type = ixgbe_get_media_type_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
342
mac->ops.get_supported_physical_layer =
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
344
mac->ops.disable_sec_rx_path = ixgbe_disable_sec_rx_path_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
345
mac->ops.enable_sec_rx_path = ixgbe_enable_sec_rx_path_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
346
mac->ops.enable_rx_dma = ixgbe_enable_rx_dma_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
347
mac->ops.read_analog_reg8 = ixgbe_read_analog_reg8_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
348
mac->ops.write_analog_reg8 = ixgbe_write_analog_reg8_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
349
mac->ops.start_hw = ixgbe_start_hw_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
350
mac->ops.get_san_mac_addr = ixgbe_get_san_mac_addr_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
351
mac->ops.set_san_mac_addr = ixgbe_set_san_mac_addr_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
352
mac->ops.get_device_caps = ixgbe_get_device_caps_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
353
mac->ops.get_wwn_prefix = ixgbe_get_wwn_prefix_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
354
mac->ops.get_fcoe_boot_status = ixgbe_get_fcoe_boot_status_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
355
mac->ops.prot_autoc_read = prot_autoc_read_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
356
mac->ops.prot_autoc_write = prot_autoc_write_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
359
mac->ops.set_vmdq = ixgbe_set_vmdq_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
360
mac->ops.set_vmdq_san_mac = ixgbe_set_vmdq_san_mac_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
361
mac->ops.clear_vmdq = ixgbe_clear_vmdq_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
362
mac->ops.insert_mac_addr = ixgbe_insert_mac_addr_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
363
mac->rar_highwater = 1;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
364
mac->ops.set_vfta = ixgbe_set_vfta_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
365
mac->ops.set_vlvf = ixgbe_set_vlvf_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
366
mac->ops.clear_vfta = ixgbe_clear_vfta_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
367
mac->ops.init_uta_tables = ixgbe_init_uta_tables_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
368
mac->ops.setup_sfp = ixgbe_setup_sfp_modules_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
369
mac->ops.set_mac_anti_spoofing = ixgbe_set_mac_anti_spoofing;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
370
mac->ops.set_vlan_anti_spoofing = ixgbe_set_vlan_anti_spoofing;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
373
mac->ops.get_link_capabilities = ixgbe_get_link_capabilities_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
374
mac->ops.check_link = ixgbe_check_mac_link_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
375
mac->ops.setup_rxpba = ixgbe_set_rxpba_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
378
mac->mcft_size = IXGBE_82599_MC_TBL_SIZE;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
379
mac->vft_size = IXGBE_82599_VFT_TBL_SIZE;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
380
mac->num_rar_entries = IXGBE_82599_RAR_ENTRIES;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
381
mac->rx_pb_size = IXGBE_82599_RX_PB_SIZE;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
382
mac->max_rx_queues = IXGBE_82599_MAX_RX_QUEUES;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
383
mac->max_tx_queues = IXGBE_82599_MAX_TX_QUEUES;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
384
mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
386
mac->arc_subsystem_valid = !!(IXGBE_READ_REG(hw, IXGBE_FWSM_BY_MAC(hw))
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
397
mac->ops.set_fw_drv_ver = ixgbe_set_fw_drv_ver_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
399
mac->ops.get_thermal_sensor_data =
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
401
mac->ops.init_thermal_sensor_thresh =
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
404
mac->ops.bypass_rw = ixgbe_bypass_rw_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
405
mac->ops.bypass_valid_rd = ixgbe_bypass_valid_rd_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
406
mac->ops.bypass_set = ixgbe_bypass_set_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
407
mac->ops.bypass_rd_eep = ixgbe_bypass_rd_eep_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
409
mac->ops.get_rtrup2tc = ixgbe_dcb_get_rtrup2tc_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
462
if (hw->mac.orig_link_settings_stored)
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
463
autoc = hw->mac.orig_autoc;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
63
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
650
status = hw->mac.ops.acquire_swfw_sync(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
662
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_MAC_CSR_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
71
if ((mac->ops.get_media_type(hw) == ixgbe_media_type_fiber) &&
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
73
mac->ops.disable_tx_laser =
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
75
mac->ops.enable_tx_laser =
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
756
if (hw->mac.autotry_restart) {
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
759
hw->mac.autotry_restart = false;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
77
mac->ops.flap_tx_laser = ixgbe_flap_tx_laser_multispeed_fiber;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
80
mac->ops.disable_tx_laser = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
81
mac->ops.enable_tx_laser = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
82
mac->ops.flap_tx_laser = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
87
mac->ops.setup_link = ixgbe_setup_mac_link_multispeed_fiber;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
88
mac->ops.setup_mac_link = ixgbe_setup_mac_link_82599;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
89
mac->ops.set_rate_select_speed =
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
92
mac->ops.set_rate_select_speed =
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
943
if (hw->mac.orig_link_settings_stored)
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
944
orig_autoc = hw->mac.orig_autoc;
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
989
status = hw->mac.ops.prot_autoc_write(hw, autoc, false);
usr/src/uts/common/io/ixgbe/core/ixgbe_82599.c
99
mac->ops.setup_link = ixgbe_setup_mac_link_smartspeed;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1010
return ixgbe_call_func(hw, hw->mac.ops.clear_vmdq, (hw, rar, vmdq),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1024
return ixgbe_call_func(hw, hw->mac.ops.init_rx_addrs, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1034
return hw->mac.num_rar_entries;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1051
return ixgbe_call_func(hw, hw->mac.ops.update_uc_addr_list, (hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1073
return ixgbe_call_func(hw, hw->mac.ops.update_mc_addr_list, (hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1086
return ixgbe_call_func(hw, hw->mac.ops.enable_mc, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1098
return ixgbe_call_func(hw, hw->mac.ops.disable_mc, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1110
return ixgbe_call_func(hw, hw->mac.ops.clear_vfta, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1127
return ixgbe_call_func(hw, hw->mac.ops.set_vfta, (hw, vlan, vind,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1147
return ixgbe_call_func(hw, hw->mac.ops.set_vlvf, (hw, vlan, vind,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1161
return ixgbe_call_func(hw, hw->mac.ops.toggle_txdctl, (hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1173
return ixgbe_call_func(hw, hw->mac.ops.fc_enable, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1185
return ixgbe_call_func(hw, hw->mac.ops.setup_fc, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1202
return ixgbe_call_func(hw, hw->mac.ops.set_fw_drv_ver, (hw, maj, min,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1216
return ixgbe_call_func(hw, hw->mac.ops.get_thermal_sensor_data, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1228
return ixgbe_call_func(hw, hw->mac.ops.init_thermal_sensor_thresh, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1241
return ixgbe_call_func(hw, hw->mac.ops.dmac_config, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1253
return ixgbe_call_func(hw, hw->mac.ops.dmac_update_tcs, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1266
return ixgbe_call_func(hw, hw->mac.ops.dmac_config_tcs, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1282
return ixgbe_call_func(hw, hw->mac.ops.setup_eee, (hw, enable_eee),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1295
if (hw->mac.ops.set_source_address_pruning)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1296
hw->mac.ops.set_source_address_pruning(hw, enable, pool);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
130
hw->mac.max_link_up_time = IXGBE_LINK_UP_TIME;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1308
if (hw->mac.ops.set_ethertype_anti_spoofing)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1309
hw->mac.ops.set_ethertype_anti_spoofing(hw, enable, vf);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1324
return ixgbe_call_func(hw, hw->mac.ops.read_iosf_sb_reg, (hw, reg_addr,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1340
return ixgbe_call_func(hw, hw->mac.ops.write_iosf_sb_reg, (hw, reg_addr,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1351
if (hw->mac.ops.disable_mdd)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1352
hw->mac.ops.disable_mdd(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1362
if (hw->mac.ops.enable_mdd)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1363
hw->mac.ops.enable_mdd(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1374
if (hw->mac.ops.mdd_event)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1375
hw->mac.ops.mdd_event(hw, vf_bitmap);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1387
if (hw->mac.ops.restore_mdd_vf)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1388
hw->mac.ops.restore_mdd_vf(hw, vf);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1398
if (hw->mac.ops.fw_recovery_mode)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1399
return hw->mac.ops.fw_recovery_mode(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1443
return ixgbe_call_func(hw, hw->mac.ops.bypass_rw, (hw, cmd, status),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1461
return ixgbe_call_func(hw, hw->mac.ops.bypass_valid_rd,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1479
return ixgbe_call_func(hw, hw->mac.ops.bypass_set,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1492
return ixgbe_call_func(hw, hw->mac.ops.bypass_rd_eep,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1506
return ixgbe_call_func(hw, hw->mac.ops.read_analog_reg8, (hw, reg,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1520
return ixgbe_call_func(hw, hw->mac.ops.write_analog_reg8, (hw, reg,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1533
return ixgbe_call_func(hw, hw->mac.ops.init_uta_tables, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
169
hw->mac.type = ixgbe_mac_82598EB;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1704
return ixgbe_call_func(hw, hw->mac.ops.get_supported_physical_layer,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1717
return ixgbe_call_func(hw, hw->mac.ops.enable_rx_dma,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1729
return ixgbe_call_func(hw, hw->mac.ops.disable_sec_rx_path,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1741
return ixgbe_call_func(hw, hw->mac.ops.enable_sec_rx_path,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1755
return ixgbe_call_func(hw, hw->mac.ops.acquire_swfw_sync,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1769
if (hw->mac.ops.release_swfw_sync)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1770
hw->mac.ops.release_swfw_sync(hw, mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1784
if (hw->mac.ops.init_swfw_sync)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1785
hw->mac.ops.init_swfw_sync(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1791
if (hw->mac.ops.disable_rx)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1792
hw->mac.ops.disable_rx(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1797
if (hw->mac.ops.enable_rx)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1798
hw->mac.ops.enable_rx(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1810
if (hw->mac.ops.set_rate_select_speed)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
1811
hw->mac.ops.set_rate_select_speed(hw, speed);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
187
hw->mac.type = ixgbe_mac_82599EB;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
191
hw->mac.type = ixgbe_mac_82599_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
195
hw->mac.type = ixgbe_mac_X540_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
201
hw->mac.type = ixgbe_mac_X540;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
206
hw->mac.type = ixgbe_mac_X550;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
215
hw->mac.type = ixgbe_mac_X550EM_x;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
229
hw->mac.type = ixgbe_mac_X550EM_a;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
234
hw->mac.type = ixgbe_mac_X550_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
239
hw->mac.type = ixgbe_mac_X550EM_x_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
244
hw->mac.type = ixgbe_mac_X550EM_a_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
252
hw->mac.type = ixgbe_mac_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
256
hw->mac.type = ixgbe_mac_E610_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
268
hw->mac.type, ret_val);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
280
return ixgbe_call_func(hw, hw->mac.ops.init_hw, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
293
return ixgbe_call_func(hw, hw->mac.ops.reset_hw, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
309
return ixgbe_call_func(hw, hw->mac.ops.start_hw, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
323
if (hw->mac.ops.enable_relaxed_ordering)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
324
hw->mac.ops.enable_relaxed_ordering(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
336
return ixgbe_call_func(hw, hw->mac.ops.clear_hw_cntrs, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
348
return ixgbe_call_func(hw, hw->mac.ops.get_media_type, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
364
return ixgbe_call_func(hw, hw->mac.ops.get_mac_addr,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
378
return ixgbe_call_func(hw, hw->mac.ops.get_san_mac_addr,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
391
return ixgbe_call_func(hw, hw->mac.ops.set_san_mac_addr,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
404
return ixgbe_call_func(hw, hw->mac.ops.get_device_caps,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
420
return ixgbe_call_func(hw, hw->mac.ops.get_wwn_prefix,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
434
return ixgbe_call_func(hw, hw->mac.ops.get_fcoe_boot_status,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
447
return ixgbe_call_func(hw, hw->mac.ops.get_bus_info, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
459
return hw->mac.max_tx_queues;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
470
return hw->mac.max_rx_queues;
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
484
return ixgbe_call_func(hw, hw->mac.ops.stop_adapter, (hw),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
685
return ixgbe_call_func(hw, hw->mac.ops.check_link, (hw, speed,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
69
if (hw->mac.ops.get_rtrup2tc)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
698
if (hw->mac.ops.disable_tx_laser)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
699
hw->mac.ops.disable_tx_laser(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
70
hw->mac.ops.get_rtrup2tc(hw, map);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
710
if (hw->mac.ops.enable_tx_laser)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
711
hw->mac.ops.enable_tx_laser(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
724
if (hw->mac.ops.flap_tx_laser)
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
725
hw->mac.ops.flap_tx_laser(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
740
return ixgbe_call_func(hw, hw->mac.ops.setup_link, (hw, speed,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
757
return ixgbe_call_func(hw, hw->mac.ops.setup_mac_link, (hw, speed,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
773
return ixgbe_call_func(hw, hw->mac.ops.get_link_capabilities, (hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
786
return ixgbe_call_func(hw, hw->mac.ops.led_on, (hw, index),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
799
return ixgbe_call_func(hw, hw->mac.ops.led_off, (hw, index),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
812
return ixgbe_call_func(hw, hw->mac.ops.blink_led_start, (hw, index),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
825
return ixgbe_call_func(hw, hw->mac.ops.blink_led_stop, (hw, index),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
943
return ixgbe_call_func(hw, hw->mac.ops.insert_mac_addr,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
96
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
961
return ixgbe_call_func(hw, hw->mac.ops.set_rar, (hw, index, addr, vmdq,
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
974
return ixgbe_call_func(hw, hw->mac.ops.clear_rar, (hw, index),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
986
return ixgbe_call_func(hw, hw->mac.ops.set_vmdq, (hw, rar, vmdq),
usr/src/uts/common/io/ixgbe/core/ixgbe_api.c
998
return ixgbe_call_func(hw, hw->mac.ops.set_vmdq_san_mac,
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
100
mac->ops.get_media_type = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
101
mac->ops.get_supported_physical_layer = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1011
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
102
mac->ops.enable_rx_dma = ixgbe_enable_rx_dma_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
103
mac->ops.get_mac_addr = ixgbe_get_mac_addr_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
104
mac->ops.stop_adapter = ixgbe_stop_adapter_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
105
mac->ops.get_bus_info = ixgbe_get_bus_info_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1052
mac->ops.set_lan_id(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
106
mac->ops.set_lan_id = ixgbe_set_lan_id_multi_port_pcie;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1069
link_status = IXGBE_READ_PCIE_WORD(hw, hw->mac.type == ixgbe_mac_E610 ?
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
107
mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
108
mac->ops.release_swfw_sync = ixgbe_release_swfw_sync;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
109
mac->ops.prot_autoc_read = prot_autoc_read_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
110
mac->ops.prot_autoc_write = prot_autoc_write_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
113
mac->ops.led_on = ixgbe_led_on_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
114
mac->ops.led_off = ixgbe_led_off_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1143
for (i = 0; i < hw->mac.max_tx_queues; i++)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1147
for (i = 0; i < hw->mac.max_rx_queues; i++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
115
mac->ops.blink_led_start = ixgbe_blink_led_start_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
116
mac->ops.blink_led_stop = ixgbe_blink_led_stop_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
117
mac->ops.init_led_link_act = ixgbe_init_led_link_act_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1174
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1186
mac->led_link_act = i;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1195
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1198
mac->led_link_act = 1;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
120
mac->ops.set_rar = ixgbe_set_rar_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1201
mac->led_link_act = 2;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
121
mac->ops.clear_rar = ixgbe_clear_rar_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
122
mac->ops.insert_mac_addr = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
123
mac->ops.set_vmdq = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
124
mac->ops.clear_vmdq = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
125
mac->ops.init_rx_addrs = ixgbe_init_rx_addrs_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
126
mac->ops.update_uc_addr_list = ixgbe_update_uc_addr_list_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
127
mac->ops.update_mc_addr_list = ixgbe_update_mc_addr_list_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
128
mac->ops.enable_mc = ixgbe_enable_mc_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
129
mac->ops.disable_mc = ixgbe_disable_mc_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
130
mac->ops.clear_vfta = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
131
mac->ops.set_vfta = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
132
mac->ops.set_vlvf = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
133
mac->ops.init_uta_tables = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
134
mac->ops.enable_rx = ixgbe_enable_rx_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
135
mac->ops.disable_rx = ixgbe_disable_rx_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
136
mac->ops.toggle_txdctl = ixgbe_toggle_txdctl_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
139
mac->ops.fc_enable = ixgbe_fc_enable_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
140
mac->ops.setup_fc = ixgbe_setup_fc_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
141
mac->ops.fc_autoneg = ixgbe_fc_autoneg;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
144
mac->ops.get_link_capabilities = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
145
mac->ops.setup_link = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
146
mac->ops.check_link = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
147
mac->ops.dmac_config = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
148
mac->ops.dmac_update_tcs = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
149
mac->ops.dmac_config_tcs = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1835
if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
185
hw->mac.ops.check_link(hw, &speed, &link_up, false);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
1859
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2208
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2397
u32 rar_entries = hw->mac.num_rar_entries;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2409
hw->mac.ops.set_vmdq(hw, index, vmdq);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2447
u32 rar_entries = hw->mac.num_rar_entries;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2470
hw->mac.ops.clear_vmdq(hw, index, IXGBE_CLEAR_VMDQ_ALL);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2486
u32 rar_entries = hw->mac.num_rar_entries;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2495
if (ixgbe_validate_mac_addr(hw->mac.addr) ==
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2498
hw->mac.ops.get_mac_addr(hw, hw->mac.addr);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2501
hw->mac.addr[0], hw->mac.addr[1],
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2502
hw->mac.addr[2]);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2503
DEBUGOUT3("%.2X %.2X %.2X\n", hw->mac.addr[3],
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2504
hw->mac.addr[4], hw->mac.addr[5]);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2509
hw->mac.addr[0], hw->mac.addr[1],
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2510
hw->mac.addr[2]);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2511
DEBUGOUT3("%.2X %.2X %.2X\n", hw->mac.addr[3],
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2512
hw->mac.addr[4], hw->mac.addr[5]);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2514
hw->mac.ops.set_rar(hw, 0, hw->mac.addr, 0, IXGBE_RAH_AV);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2518
hw->mac.ops.clear_vmdq(hw, 0, IXGBE_CLEAR_VMDQ_ALL);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2533
IXGBE_WRITE_REG(hw, IXGBE_MCSTCTRL, hw->mac.mc_filter_type);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2536
for (i = 0; i < hw->mac.mcft_size; i++)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2554
u32 rar_entries = hw->mac.num_rar_entries;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2568
hw->mac.ops.set_rar(hw, rar, addr, vmdq, IXGBE_RAH_AV);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2666
switch (hw->mac.mc_filter_type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
271
ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &reg_bp);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2721
hw->mac.mta_shadow[vector_reg] |= (1 << vector_bit);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2754
memset(&hw->mac.mta_shadow, 0, sizeof(hw->mac.mta_shadow));
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2764
for (i = 0; i < hw->mac.mcft_size; i++)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2766
hw->mac.mta_shadow[i]);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2770
IXGBE_MCSTCTRL_MFE | hw->mac.mc_filter_type);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2790
hw->mac.mc_filter_type);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2808
IXGBE_WRITE_REG(hw, IXGBE_MCSTCTRL, hw->mac.mc_filter_type);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
2849
hw->mac.ops.fc_autoneg(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3059
if (hw->mac.type == ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3133
hw->mac.ops.check_link(hw, &speed, &link_up, false);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3260
hw->mac.flags |= IXGBE_FLAGS_DOUBLE_RESET_REQUIRED;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3262
if (hw->mac.type >= ixgbe_mac_X550)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3488
hw->mac.ops.check_link(hw, &speed, &link_up, false);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3491
ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &autoc_reg);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3498
ret_val = hw->mac.ops.prot_autoc_write(hw, autoc_reg, locked);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
353
if (hw->mac.type < ixgbe_mac_X540) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3532
ret_val = hw->mac.ops.prot_autoc_read(hw, &locked, &autoc_reg);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3539
ret_val = hw->mac.ops.prot_autoc_write(hw, autoc_reg, locked);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3611
hw->mac.ops.set_lan_id(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3661
hw->mac.ops.set_lan_id(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3689
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3756
for (rar = 0; rar < hw->mac.rar_highwater; rar++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
376
ret_val = hw->mac.ops.prot_autoc_write(hw, reg_bp, locked);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3769
if (rar < hw->mac.rar_highwater) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3776
} else if (rar == hw->mac.rar_highwater) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3779
hw->mac.rar_highwater++;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3780
} else if (rar >= hw->mac.num_rar_entries) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3803
u32 rar_entries = hw->mac.num_rar_entries;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3842
rar != 0 && rar != hw->mac.san_mac_rar_index)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3843
hw->mac.ops.clear_rar(hw, rar);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3857
u32 rar_entries = hw->mac.num_rar_entries;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
3893
u32 rar = hw->mac.san_mac_rar_index;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
408
hw->phy.media_type = hw->mac.ops.get_media_type(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
413
hw->mac.ops.clear_vfta(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4141
for (offset = 0; offset < hw->mac.vft_size; offset++)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
416
hw->mac.ops.clear_hw_cntrs(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4223
switch (hw->mac.ops.get_media_type(hw)) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4257
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4291
for (i = 0; i < hw->mac.max_link_up_time; i++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
432
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4326
if (hw->mac.type >= ixgbe_mac_X550) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4336
if (hw->mac.type == ixgbe_mac_X550 ||
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4337
hw->mac.type == ixgbe_mac_E610) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
436
hw->mac.ops.get_device_caps(hw, &device_caps);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4475
if (hw->mac.type == ixgbe_mac_82598EB)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4499
if (hw->mac.type == ixgbe_mac_82598EB)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4540
for (i = 0; i < hw->mac.max_tx_queues; i++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4546
for (i = 0; i < hw->mac.max_rx_queues; i++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
469
for (i = 0; i < hw->mac.max_tx_queues; i++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4695
status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_SW_MNG_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4752
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_SW_MNG_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
476
for (i = 0; i < hw->mac.max_tx_queues; i++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
482
for (i = 0; i < hw->mac.max_rx_queues; i++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4827
u32 pbsize = hw->mac.rx_pb_size;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4896
if (!(hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED))
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4969
struct ixgbe_thermal_sensor_data *data = &hw->mac.thermal_sensor_data;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
4974
if ((hw->mac.type != ixgbe_mac_82599EB) ||
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5047
struct ixgbe_thermal_sensor_data *data = &hw->mac.thermal_sensor_data;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5054
if ((hw->mac.type != ixgbe_mac_82599EB) ||
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
507
status = hw->mac.ops.reset_hw(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
511
status = hw->mac.ops.start_hw(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5130
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
515
if (hw->mac.ops.init_led_link_act)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
516
hw->mac.ops.init_led_link_act(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5483
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
549
if (hw->mac.type >= ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5522
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5590
if (hw->mac.type != ixgbe_mac_82598EB) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5595
hw->mac.set_lben = true;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5597
hw->mac.set_lben = false;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
560
if (hw->mac.type >= ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5613
if (hw->mac.type != ixgbe_mac_82598EB) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5614
if (hw->mac.set_lben) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5618
hw->mac.set_lben = false;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5631
if (hw->mac.type < ixgbe_mac_82599EB)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
5657
if (hw->mac.type <= ixgbe_mac_X540) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
568
if (hw->mac.type >= ixgbe_mac_82599EB)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
585
if (hw->mac.type == ixgbe_mac_82598EB)
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
610
if (hw->mac.type >= ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
622
if (hw->mac.type == ixgbe_mac_X540 ||
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
623
hw->mac.type == ixgbe_mac_X550) {
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
72
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
96
mac->ops.init_hw = ixgbe_init_hw_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
97
mac->ops.reset_hw = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
98
mac->ops.start_hw = ixgbe_start_hw_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_common.c
99
mac->ops.clear_hw_cntrs = ixgbe_clear_hw_cntrs_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
184
&& (hw->mac.type == ixgbe_mac_82598EB))
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
402
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
431
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
471
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
510
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
552
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
589
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
616
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
658
hw->mac.ops.setup_rxpba(hw, dcb_config->num_tcs.pg_tcs,
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
661
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
695
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb.c
715
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_dcb_82599.c
313
if (hw->mac.type >= ixgbe_mac_X540)
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3852
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3859
mac->ops.reset_hw = ixgbe_reset_hw_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3860
mac->ops.start_hw = ixgbe_start_hw_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3861
mac->ops.get_media_type = ixgbe_get_media_type_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3862
mac->ops.get_supported_physical_layer =
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3864
mac->ops.get_san_mac_addr = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3865
mac->ops.set_san_mac_addr = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3866
mac->ops.get_wwn_prefix = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3867
mac->ops.setup_link = ixgbe_setup_link_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3868
mac->ops.check_link = ixgbe_check_link_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3869
mac->ops.get_link_capabilities = ixgbe_get_link_capabilities_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3870
mac->ops.setup_fc = ixgbe_setup_fc_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3871
mac->ops.fc_autoneg = ixgbe_fc_autoneg_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3872
mac->ops.set_fw_drv_ver = ixgbe_set_fw_drv_ver_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3873
mac->ops.disable_rx = ixgbe_disable_rx_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3874
mac->ops.setup_eee = ixgbe_setup_eee_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3875
mac->ops.fw_recovery_mode = ixgbe_fw_recovery_mode_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3876
mac->ops.fw_rollback_mode = ixgbe_fw_rollback_mode_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3877
mac->ops.get_fw_tsam_mode = ixgbe_get_fw_tsam_mode_E610;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3878
mac->ops.get_fw_version = ixgbe_aci_get_fw_ver;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3879
mac->ops.get_nvm_version = ixgbe_get_active_nvm_ver;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3880
mac->ops.get_thermal_sensor_data = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3881
mac->ops.init_thermal_sensor_thresh = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3903
hw->mac.ops.set_lan_id(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3926
status = hw->mac.ops.stop_adapter(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3938
status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3948
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3970
if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) {
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3971
hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3979
hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr);
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3986
hw->mac.num_rar_entries = 128;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
3987
hw->mac.ops.init_rx_addrs(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
4006
ret_val = hw->mac.ops.get_fw_version(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
4192
for (i = 0; i < hw->mac.max_link_up_time; i++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
4472
hw->mac.set_lben = true;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
4474
hw->mac.set_lben = false;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
4598
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_e610.c
4616
if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper)
usr/src/uts/common/io/ixgbe/core/ixgbe_mbx.c
1144
if (hw->mac.type != ixgbe_mac_82599EB &&
usr/src/uts/common/io/ixgbe/core/ixgbe_mbx.c
1145
hw->mac.type != ixgbe_mac_X550 &&
usr/src/uts/common/io/ixgbe/core/ixgbe_mbx.c
1146
hw->mac.type != ixgbe_mac_X550EM_x &&
usr/src/uts/common/io/ixgbe/core/ixgbe_mbx.c
1147
hw->mac.type != ixgbe_mac_X550EM_a &&
usr/src/uts/common/io/ixgbe/core/ixgbe_mbx.c
1148
hw->mac.type != ixgbe_mac_X540)
usr/src/uts/common/io/ixgbe/core/ixgbe_mbx.c
1186
if (hw->mac.type != ixgbe_mac_82599EB &&
usr/src/uts/common/io/ixgbe/core/ixgbe_mbx.c
1187
hw->mac.type != ixgbe_mac_X550 &&
usr/src/uts/common/io/ixgbe/core/ixgbe_mbx.c
1188
hw->mac.type != ixgbe_mac_X550EM_x &&
usr/src/uts/common/io/ixgbe/core/ixgbe_mbx.c
1189
hw->mac.type != ixgbe_mac_X550EM_a &&
usr/src/uts/common/io/ixgbe/core/ixgbe_mbx.c
1190
hw->mac.type != ixgbe_mac_X540)
usr/src/uts/common/io/ixgbe/core/ixgbe_mbx.c
827
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
125
if (lock && hw->mac.ops.acquire_swfw_sync(hw, swfw_mask))
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
1267
switch (hw->mac.ops.get_media_type(hw)) {
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
1307
if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_fiber) {
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
1314
hw->mac.ops.set_lan_id(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
1363
if (hw->mac.type == ixgbe_mac_82598EB) {
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
1532
if (hw->mac.type == ixgbe_mac_82598EB) {
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
158
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
165
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
1672
if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_fiber_qsfp) {
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
1679
hw->mac.ops.set_lan_id(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
201
if (lock && hw->mac.ops.acquire_swfw_sync(hw, swfw_mask))
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
2031
if (hw->mac.type >= ixgbe_mac_X550)
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
2037
if (lock && hw->mac.ops.acquire_swfw_sync(hw, swfw_mask))
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
2078
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
2084
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
2152
if (lock && hw->mac.ops.acquire_swfw_sync(hw, swfw_mask) !=
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
2185
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
2198
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
224
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
230
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
381
if (hw->mac.type == ixgbe_mac_82598EB)
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
687
if (hw->mac.ops.acquire_swfw_sync(hw, gssr))
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
692
hw->mac.ops.release_swfw_sync(hw, gssr);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
787
if (hw->mac.ops.acquire_swfw_sync(hw, gssr) == IXGBE_SUCCESS) {
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
790
hw->mac.ops.release_swfw_sync(hw, gssr);
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
833
if (hw->mac.type == ixgbe_mac_X550) {
usr/src/uts/common/io/ixgbe/core/ixgbe_phy.c
946
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_type.h
4275
struct ixgbe_mac_info mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
163
s32 status = hw->mac.ops.start_hw(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
165
hw->mac.ops.get_mac_addr(hw, hw->mac.addr);
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
188
hw->mac.ops.stop_adapter(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
236
memcpy(hw->mac.perm_addr, addr, IXGBE_ETH_LENGTH_OF_ADDRESS);
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
238
hw->mac.mc_filter_type = msgbuf[IXGBE_VF_MC_TYPE_WORD];
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
270
for (i = 0; i < hw->mac.max_tx_queues; i++)
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
274
for (i = 0; i < hw->mac.max_rx_queues; i++) {
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
305
switch (hw->mac.mc_filter_type) {
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
366
ixgbe_get_mac_addr_vf(hw, hw->mac.addr);
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
550
mac_addr[i] = hw->mac.perm_addr[i];
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
56
hw->mac.ops.init_hw = ixgbe_init_hw_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
57
hw->mac.ops.reset_hw = ixgbe_reset_hw_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
58
hw->mac.ops.start_hw = ixgbe_start_hw_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
60
hw->mac.ops.clear_hw_cntrs = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
61
hw->mac.ops.get_media_type = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
613
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
62
hw->mac.ops.get_mac_addr = ixgbe_get_mac_addr_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
622
mac->get_link_status = true;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
624
if (!mac->get_link_status)
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
63
hw->mac.ops.stop_adapter = ixgbe_stop_adapter_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
635
if (mac->type == ixgbe_mac_82599_vf) {
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
64
hw->mac.ops.get_bus_info = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
65
hw->mac.ops.negotiate_api_version = ixgbevf_negotiate_api_version;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
650
if (hw->mac.type >= ixgbe_mac_X550_vf) {
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
660
if (hw->mac.type == ixgbe_mac_X550_vf ||
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
661
hw->mac.type == ixgbe_mac_E610_vf) {
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
669
if (hw->mac.type >= ixgbe_mac_X550_vf)
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
68
hw->mac.ops.setup_link = ixgbe_setup_mac_link_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
681
mac->get_link_status = false;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
69
hw->mac.ops.check_link = ixgbe_check_mac_link_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
70
hw->mac.ops.get_link_capabilities = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
701
mac->get_link_status = false;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
704
*link_up = !mac->get_link_status;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
73
hw->mac.ops.set_rar = ixgbe_set_rar_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
74
hw->mac.ops.set_uc_addr = ixgbevf_set_uc_addr_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
75
hw->mac.ops.init_rx_addrs = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
76
hw->mac.ops.update_mc_addr_list = ixgbe_update_mc_addr_list_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
77
hw->mac.ops.update_xcast_mode = ixgbevf_update_xcast_mode;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
78
hw->mac.ops.get_link_state = ixgbe_get_link_state_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
79
hw->mac.ops.enable_mc = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
796
hw->mac.max_tx_queues = msg[IXGBE_VF_TX_QUEUES];
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
797
if (hw->mac.max_tx_queues == 0 ||
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
798
hw->mac.max_tx_queues > IXGBE_VF_MAX_TX_QUEUES)
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
799
hw->mac.max_tx_queues = IXGBE_VF_MAX_TX_QUEUES;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
80
hw->mac.ops.disable_mc = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
801
hw->mac.max_rx_queues = msg[IXGBE_VF_RX_QUEUES];
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
802
if (hw->mac.max_rx_queues == 0 ||
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
803
hw->mac.max_rx_queues > IXGBE_VF_MAX_RX_QUEUES)
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
804
hw->mac.max_rx_queues = IXGBE_VF_MAX_RX_QUEUES;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
808
if (*num_tcs > hw->mac.max_rx_queues)
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
81
hw->mac.ops.clear_vfta = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
813
if (*default_tc >= hw->mac.max_tx_queues)
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
82
hw->mac.ops.set_vfta = ixgbe_set_vfta_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
83
hw->mac.ops.set_rlpml = ixgbevf_rlpml_set_vf;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
85
hw->mac.max_tx_queues = 1;
usr/src/uts/common/io/ixgbe/core/ixgbe_vf.c
86
hw->mac.max_rx_queues = 1;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
100
mac->ops.get_wwn_prefix = ixgbe_get_wwn_prefix_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
101
mac->ops.get_fcoe_boot_status = ixgbe_get_fcoe_boot_status_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
102
mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X540;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
1022
hw->mac.ops.check_link(hw, &speed, &link_up, false);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
103
mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X540;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
104
mac->ops.init_swfw_sync = ixgbe_init_swfw_sync_X540;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
105
mac->ops.disable_sec_rx_path = ixgbe_disable_sec_rx_path_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
106
mac->ops.enable_sec_rx_path = ixgbe_enable_sec_rx_path_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
109
mac->ops.set_vmdq = ixgbe_set_vmdq_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
110
mac->ops.set_vmdq_san_mac = ixgbe_set_vmdq_san_mac_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
111
mac->ops.clear_vmdq = ixgbe_clear_vmdq_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
112
mac->ops.insert_mac_addr = ixgbe_insert_mac_addr_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
113
mac->rar_highwater = 1;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
114
mac->ops.set_vfta = ixgbe_set_vfta_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
115
mac->ops.set_vlvf = ixgbe_set_vlvf_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
116
mac->ops.clear_vfta = ixgbe_clear_vfta_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
117
mac->ops.init_uta_tables = ixgbe_init_uta_tables_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
118
mac->ops.set_mac_anti_spoofing = ixgbe_set_mac_anti_spoofing;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
119
mac->ops.set_vlan_anti_spoofing = ixgbe_set_vlan_anti_spoofing;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
122
mac->ops.get_link_capabilities =
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
124
mac->ops.setup_link = ixgbe_setup_mac_link_X540;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
125
mac->ops.setup_rxpba = ixgbe_set_rxpba_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
126
mac->ops.check_link = ixgbe_check_mac_link_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
127
mac->ops.bypass_rw = ixgbe_bypass_rw_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
128
mac->ops.bypass_valid_rd = ixgbe_bypass_valid_rd_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
129
mac->ops.bypass_set = ixgbe_bypass_set_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
130
mac->ops.bypass_rd_eep = ixgbe_bypass_rd_eep_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
133
mac->mcft_size = IXGBE_X540_MC_TBL_SIZE;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
134
mac->vft_size = IXGBE_X540_VFT_TBL_SIZE;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
135
mac->num_rar_entries = IXGBE_X540_RAR_ENTRIES;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
136
mac->rx_pb_size = IXGBE_X540_RX_PB_SIZE;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
137
mac->max_rx_queues = IXGBE_X540_MAX_RX_QUEUES;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
138
mac->max_tx_queues = IXGBE_X540_MAX_TX_QUEUES;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
139
mac->max_msix_vectors = ixgbe_get_pcie_msix_count_generic(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
146
mac->arc_subsystem_valid = !!(IXGBE_READ_REG(hw, IXGBE_FWSM_BY_MAC(hw))
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
153
mac->ops.blink_led_start = ixgbe_blink_led_start_X540;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
154
mac->ops.blink_led_stop = ixgbe_blink_led_stop_X540;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
157
mac->ops.set_fw_drv_ver = ixgbe_set_fw_drv_ver_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
159
mac->ops.get_rtrup2tc = ixgbe_dcb_get_rtrup2tc_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
223
status = hw->mac.ops.stop_adapter(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
231
status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
241
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
263
if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
264
hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
272
hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
279
hw->mac.num_rar_entries = 128;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
280
hw->mac.ops.init_rx_addrs(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
283
hw->mac.ops.get_san_mac_addr(hw, hw->mac.san_addr);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
286
if (ixgbe_validate_mac_addr(hw->mac.san_addr) == 0) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
288
hw->mac.san_mac_rar_index = hw->mac.num_rar_entries - 1;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
290
hw->mac.ops.set_rar(hw, hw->mac.san_mac_rar_index,
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
291
hw->mac.san_addr, 0, IXGBE_RAH_AV);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
294
hw->mac.ops.clear_vmdq(hw, hw->mac.san_mac_rar_index,
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
298
hw->mac.num_rar_entries--;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
302
hw->mac.ops.get_wwn_prefix(hw, &hw->mac.wwnn_prefix,
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
303
&hw->mac.wwpn_prefix);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
403
if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) ==
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
406
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
429
if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) ==
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
433
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
454
if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) ==
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
457
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
480
if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) ==
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
484
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
597
if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM))
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
61
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
628
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
658
if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM))
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
677
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
711
if (hw->mac.type == ixgbe_mac_X540 && hw->revision_id == 0) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
789
if (hw->mac.type >= ixgbe_mac_X550)
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
89
mac->ops.reset_hw = ixgbe_reset_hw_X540;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
90
mac->ops.enable_relaxed_ordering = ixgbe_enable_relaxed_ordering_gen2;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
91
mac->ops.get_media_type = ixgbe_get_media_type_X540;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
92
mac->ops.get_supported_physical_layer =
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
94
mac->ops.read_analog_reg8 = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
95
mac->ops.write_analog_reg8 = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
96
mac->ops.start_hw = ixgbe_start_hw_X540;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
97
mac->ops.get_san_mac_addr = ixgbe_get_san_mac_addr_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
98
mac->ops.set_san_mac_addr = ixgbe_set_san_mac_addr_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x540.c
99
mac->ops.get_device_caps = ixgbe_get_device_caps_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1571
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1581
status = hw->mac.ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1585
if (hw->mac.type == ixgbe_mac_X550EM_a) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1589
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1599
status = hw->mac.ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1616
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1620
rc = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1631
rc = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1637
rc = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1645
rc = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1651
rc = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1663
rc = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1685
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1689
rc = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1700
rc = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1706
rc = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1714
rc = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1720
rc = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1726
rc = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1738
rc = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1755
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1759
switch (hw->mac.ops.get_media_type(hw)) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1764
mac->ops.disable_tx_laser = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1765
mac->ops.enable_tx_laser = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1766
mac->ops.flap_tx_laser = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1767
mac->ops.setup_link = ixgbe_setup_mac_link_multispeed_fiber;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1768
mac->ops.set_rate_select_speed =
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1773
mac->ops.setup_mac_link =
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1776
mac->ops.setup_mac_link =
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1782
if (hw->mac.type == ixgbe_mac_X550EM_a) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1785
mac->ops.setup_link = ixgbe_setup_sgmii_fw;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1786
mac->ops.check_link =
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1789
mac->ops.setup_link =
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1793
mac->ops.setup_link = ixgbe_setup_mac_link_t_X550em;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1794
mac->ops.check_link = ixgbe_check_link_t_X550em;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1800
mac->ops.setup_link = ixgbe_setup_sgmii;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
1863
if (hw->mac.type == ixgbe_mac_X550EM_a) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2006
if (hw->mac.type != ixgbe_mac_X550EM_a) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2090
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2108
status = hw->mac.ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2112
if (hw->mac.type == ixgbe_mac_X550EM_a) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2114
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2127
status = hw->mac.ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2196
if (hw->mac.type == ixgbe_mac_X550EM_a &&
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2221
hw->mac.ops.set_lan_id(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2224
if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2306
if ((hw->mac.type == ixgbe_mac_X550EM_x) &&
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2379
status = hw->mac.ops.stop_adapter(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2414
status = hw->mac.ops.setup_sfp(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2435
hw->mac.ops.check_link(hw, &link_speed, &link_up, false);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2440
status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2449
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2470
if (hw->mac.flags & IXGBE_FLAGS_DOUBLE_RESET_REQUIRED) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2471
hw->mac.flags &= ~IXGBE_FLAGS_DOUBLE_RESET_REQUIRED;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2476
hw->mac.ops.get_mac_addr(hw, hw->mac.perm_addr);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2482
hw->mac.num_rar_entries = 128;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2483
hw->mac.ops.init_rx_addrs(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
257
status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2610
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2615
status = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2639
status = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2682
ret_val = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2693
ret_val = hw->mac.ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2762
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2767
status = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
277
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2773
status = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2780
status = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2788
status = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2793
status = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2801
status = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2808
status = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2817
status = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
283
status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2833
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2838
if (mac->type != ixgbe_mac_X550EM_x)
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2842
status = mac->ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2864
status = mac->ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2871
if (hw->mac.type == ixgbe_mac_X550EM_x) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2934
if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_copper)
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2937
if (hw->mac.type == ixgbe_mac_X550EM_x &&
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
2996
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3004
status = hw->mac.ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3011
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3018
status = hw->mac.ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3025
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3031
status = hw->mac.ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3038
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
304
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3044
status = hw->mac.ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
306
status = hw->mac.ops.acquire_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3080
status = hw->mac.ops.acquire_swfw_sync(hw, mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3091
hw->mac.ops.release_swfw_sync(hw, mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3117
status = hw->mac.ops.acquire_swfw_sync(hw, mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3167
hw->mac.ops.release_swfw_sync(hw, mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
318
hw->mac.ops.release_swfw_sync(hw, swfw_mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3230
if (hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM) ==
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3233
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3260
status = hw->mac.ops.acquire_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3276
hw->mac.ops.release_swfw_sync(hw, IXGBE_GSSR_EEP_SM);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
347
hw->mac.ops.set_lan_id(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3584
if (hw->mac.type == ixgbe_mac_X550EM_a) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3635
if (hw->mac.ops.get_media_type(hw) == ixgbe_media_type_fiber)
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3656
hw->mac.ops.set_lan_id(hw);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3681
hw->mac.set_lben = true;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3683
hw->mac.set_lben = false;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3723
if ((hw->mac.type == ixgbe_mac_X550EM_x) &&
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3806
status = hw->mac.ops.setup_link(hw, lcd_speed, false);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3913
ret_val = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3924
ret_val = hw->mac.ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3966
hw->mac.ops.check_link(hw, &speed, &link_up, false);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3973
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3987
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
3996
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
4055
hw->mac.ops.check_link(hw, &speed, &link_up, false);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
4113
status = hw->mac.ops.read_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
4164
status = hw->mac.ops.write_iosf_sb_reg(hw,
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
4326
if (hw->mac.ops.acquire_swfw_sync(hw, mask))
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
4331
hw->mac.ops.release_swfw_sync(hw, mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
4354
if (hw->mac.ops.acquire_swfw_sync(hw, mask) == IXGBE_SUCCESS) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
4357
hw->mac.ops.release_swfw_sync(hw, mask);
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
4424
if (hw->mac.type == ixgbe_mac_X550EM_x &&
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
4463
if (hw->mac.ops.get_media_type(hw) != ixgbe_media_type_copper)
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
55
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
605
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
62
mac->ops.dmac_config = ixgbe_dmac_config_X550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
621
mac->ops.get_thermal_sensor_data = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
622
mac->ops.init_thermal_sensor_thresh = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
623
mac->thermal_sensor_enabled = false;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
626
mac->ops.bypass_rw = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
627
mac->ops.bypass_valid_rd = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
628
mac->ops.bypass_set = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
629
mac->ops.bypass_rd_eep = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
63
mac->ops.dmac_config_tcs = ixgbe_dmac_config_tcs_X550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
632
mac->ops.get_san_mac_addr = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
633
mac->ops.set_san_mac_addr = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
634
mac->ops.get_wwn_prefix = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
635
mac->ops.get_fcoe_boot_status = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
638
mac->ops.disable_sec_rx_path = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
639
mac->ops.enable_sec_rx_path = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
64
mac->ops.dmac_update_tcs = ixgbe_dmac_update_tcs_X550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
642
mac->ops.prot_autoc_read = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
643
mac->ops.prot_autoc_write = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
647
mac->ops.get_bus_info = ixgbe_get_bus_info_X550em;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
65
mac->ops.setup_eee = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
650
mac->ops.get_media_type = ixgbe_get_media_type_X550em;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
651
mac->ops.setup_sfp = ixgbe_setup_sfp_modules_X550em;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
652
mac->ops.get_link_capabilities = ixgbe_get_link_capabilities_X550em;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
653
mac->ops.reset_hw = ixgbe_reset_hw_X550em;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
654
mac->ops.get_supported_physical_layer =
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
657
if (mac->ops.get_media_type(hw) == ixgbe_media_type_copper)
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
658
mac->ops.setup_fc = ixgbe_setup_fc_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
66
mac->ops.set_source_address_pruning =
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
660
mac->ops.setup_fc = ixgbe_setup_fc_X550em;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
667
mac->ops.setup_fc = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
673
mac->ops.setup_fc = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
68
mac->ops.set_ethertype_anti_spoofing =
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
681
if (mac->ops.get_media_type(hw) != ixgbe_media_type_copper)
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
71
mac->ops.get_rtrup2tc = ixgbe_dcb_get_rtrup2tc_generic;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
793
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
801
mac->ops.read_iosf_sb_reg = ixgbe_read_iosf_sb_reg_x550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
802
mac->ops.write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
803
mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X550a;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
804
mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X550a;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
806
switch (mac->ops.get_media_type(hw)) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
808
mac->ops.setup_fc = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
809
mac->ops.fc_autoneg = ixgbe_fc_autoneg_fiber_x550em_a;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
81
mac->ops.disable_mdd = ixgbe_disable_mdd_X550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
812
mac->ops.fc_autoneg = ixgbe_fc_autoneg_backplane_x550em_a;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
813
mac->ops.setup_fc = ixgbe_setup_fc_backplane_x550em_a;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
82
mac->ops.enable_mdd = ixgbe_enable_mdd_X550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
822
mac->ops.fc_autoneg = ixgbe_fc_autoneg_sgmii_x550em_a;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
823
mac->ops.setup_fc = ixgbe_fc_autoneg_fw;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
824
mac->ops.setup_eee = ixgbe_setup_eee_fw;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
83
mac->ops.mdd_event = ixgbe_mdd_event_X550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
84
mac->ops.restore_mdd_vf = ixgbe_restore_mdd_vf_X550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
845
struct ixgbe_mac_info *mac = &hw->mac;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
85
mac->ops.fw_recovery_mode = ixgbe_fw_recovery_mode_X550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
854
mac->ops.read_iosf_sb_reg = ixgbe_read_iosf_sb_reg_x550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
855
mac->ops.write_iosf_sb_reg = ixgbe_write_iosf_sb_reg_x550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
856
mac->ops.acquire_swfw_sync = ixgbe_acquire_swfw_sync_X550em;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
857
mac->ops.release_swfw_sync = ixgbe_release_swfw_sync_X550em;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
86
mac->ops.disable_rx = ixgbe_disable_rx_x550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
866
mac->ops.setup_fc = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
867
mac->ops.setup_eee = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
868
mac->ops.init_led_link_act = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
88
mac->ops.set_fw_drv_ver = ixgbe_set_fw_drv_ver_x550;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
893
if (!hw->mac.dmac_config.watchdog_timer)
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
903
reg |= (hw->mac.dmac_config.watchdog_timer * 100) / 4096;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
907
if (hw->mac.dmac_config.fcoe_en) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
908
high_pri_tc = 1 << hw->mac.dmac_config.fcoe_tc;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
91
hw->mac.ops.led_on = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
92
hw->mac.ops.led_off = NULL;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
936
switch (hw->mac.dmac_config.link_speed) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
957
if (tc < hw->mac.dmac_config.num_tcs) {
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
96
hw->mac.ops.led_on = ixgbe_led_on_t_X550em;
usr/src/uts/common/io/ixgbe/core/ixgbe_x550.c
97
hw->mac.ops.led_off = ixgbe_led_off_t_X550em;
usr/src/uts/common/io/ixgbe/ixgbe_gld.c
1003
if (hw->mac.type == ixgbe_mac_82599EB ||
usr/src/uts/common/io/ixgbe/ixgbe_gld.c
1004
hw->mac.type == ixgbe_mac_X540 ||
usr/src/uts/common/io/ixgbe/ixgbe_gld.c
1005
hw->mac.type == ixgbe_mac_X550 ||
usr/src/uts/common/io/ixgbe/ixgbe_gld.c
1006
hw->mac.type == ixgbe_mac_X550EM_x) {
usr/src/uts/common/io/ixgbe/ixgbe_gld.c
382
if (ixgbe->hw.mac.type != ixgbe_mac_E610) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1000
mac->m_dip = ixgbe->dip;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1001
mac->m_src_addr = hw->mac.addr;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1002
mac->m_callbacks = &ixgbe_m_callbacks;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1003
mac->m_min_sdu = 0;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1004
mac->m_max_sdu = ixgbe->default_mtu;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1005
mac->m_margin = VLAN_TAGSZ;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1006
mac->m_priv_props = ixgbe_priv_props;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1007
mac->m_v12n = MAC_VIRT_LEVEL1;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1009
status = mac_register(mac, &ixgbe->mac_hdl);
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1011
mac_free(mac);
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1049
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1124
hw->mac.type);
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1204
if (hw->mac.type == ixgbe_mac_E610) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1360
if (ixgbe->hw.mac.type == ixgbe_mac_E610) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1378
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1608
if (hw->mac.type == ixgbe_mac_E610) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1682
if (ixgbe->hw.mac.type != ixgbe_mac_E610) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1702
if (ixgbe->hw.mac.type != ixgbe_mac_E610) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
1766
if (!is_valid_mac_addr(hw->mac.addr)) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
2154
if (hw->mac.type == ixgbe_mac_X550 ||
usr/src/uts/common/io/ixgbe/ixgbe_main.c
2155
hw->mac.type == ixgbe_mac_X550EM_a ||
usr/src/uts/common/io/ixgbe/ixgbe_main.c
2156
hw->mac.type == ixgbe_mac_X550EM_x) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
2683
if (hw->mac.type == ixgbe_mac_82598EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
2688
if (hw->mac.type >= ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
2750
if (hw->mac.type == ixgbe_mac_82598EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
2811
if (hw->mac.type == ixgbe_mac_82598EB)
usr/src/uts/common/io/ixgbe/ixgbe_main.c
2961
reg_val = (hw->mac.type == ixgbe_mac_82598EB) ?
usr/src/uts/common/io/ixgbe/ixgbe_main.c
2965
if (hw->mac.type == ixgbe_mac_82598EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3010
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3031
if (hw->mac.type >= ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3101
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3124
for (i = 0; i < hw->mac.num_rar_entries; i++) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3175
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3231
for (i = 0; i < hw->mac.num_rar_entries; i++) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3242
if (hw->mac.type >= ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3293
switch (ixgbe->hw.mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3387
ixgbe->unicst_total = hw->mac.num_rar_entries;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3390
mac_addr = ixgbe->unicst_addr[slot].mac.addr;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3393
ixgbe->unicst_addr[slot].mac.set = 0;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3399
mac_addr = ixgbe->unicst_addr[slot].mac.addr;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3400
if (ixgbe->unicst_addr[slot].mac.set == 1) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3402
ixgbe->unicst_addr[slot].mac.group_index,
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3423
if (bcmp(ixgbe->unicst_addr[slot].mac.addr,
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3585
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3784
if (hw->mac.type >= ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3809
if (hw->mac.type == ixgbe_mac_82598EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3840
if (hw->mac.type >= ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
3873
if (hw->mac.type == ixgbe_mac_82598EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
4014
if (hw->mac.type == ixgbe_mac_82598EB)
usr/src/uts/common/io/ixgbe/ixgbe_main.c
4100
if (servicing_interrupt() != 0 && ixgbe->hw.mac.type < ixgbe_mac_E610) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
4137
(void) hw->mac.ops.setup_sfp(hw);
usr/src/uts/common/io/ixgbe/ixgbe_main.c
4397
hw->mac.addr[nelts] = bytes[nelts];
usr/src/uts/common/io/ixgbe/ixgbe_main.c
4411
bcopy(&sysaddr, hw->mac.addr, ETHERADDRL);
usr/src/uts/common/io/ixgbe/ixgbe_main.c
4429
hw->mac.addr[nelts] = bytes[nelts];
usr/src/uts/common/io/ixgbe/ixgbe_main.c
4436
bcopy(hw->mac.addr, hw->mac.perm_addr, ETHERADDRL);
usr/src/uts/common/io/ixgbe/ixgbe_main.c
4614
if ((hw->mac.type == ixgbe_mac_82598EB) ||
usr/src/uts/common/io/ixgbe/ixgbe_main.c
4621
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
4797
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5216
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5314
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5397
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5506
if (ixgbe->hw.mac.type == ixgbe_mac_X550 ||
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5507
ixgbe->hw.mac.type == ixgbe_mac_X550EM_x ||
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5508
ixgbe->hw.mac.type == ixgbe_mac_X550EM_a ||
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5509
ixgbe->hw.mac.type == ixgbe_mac_X550_vf ||
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5510
ixgbe->hw.mac.type == ixgbe_mac_X550EM_x_vf ||
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5511
ixgbe->hw.mac.type == ixgbe_mac_X550EM_a_vf) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5812
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5871
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5925
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5980
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
5998
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
6107
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
6671
hw->mac.type >= ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7035
if (ixgbe->unicst_addr[rx_group->index].mac.set == 1) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7037
if (ixgbe->unicst_addr[i].mac.set == 0) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7052
bcopy(mac_addr, ixgbe->unicst_addr[slot].mac.addr, ETHERADDRL);
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7053
(void) ixgbe_set_rar(hw, slot, ixgbe->unicst_addr[slot].mac.addr,
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7055
ixgbe->unicst_addr[slot].mac.set = 1;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7056
ixgbe->unicst_addr[slot].mac.group_index = rx_group->index;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7088
if (ixgbe->unicst_addr[slot].mac.set == 0) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7093
bzero(ixgbe->unicst_addr[slot].mac.addr, ETHERADDRL);
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7095
ixgbe->unicst_addr[slot].mac.set = 0;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7213
if (hw->mac.type != ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7238
if (hw->mac.type != ixgbe_mac_82599EB) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7255
if (hw->mac.type < ixgbe_mac_E610 && vers->oem_valid) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7265
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7286
if (hw->mac.type != ixgbe_mac_E610 && vers->phy_vend_maj != 0xff &&
usr/src/uts/common/io/ixgbe/ixgbe_main.c
7296
if (hw->mac.type == ixgbe_mac_E610) {
usr/src/uts/common/io/ixgbe/ixgbe_main.c
992
mac_register_t *mac;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
995
if ((mac = mac_alloc(MAC_VERSION)) == NULL)
usr/src/uts/common/io/ixgbe/ixgbe_main.c
998
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/ixgbe/ixgbe_main.c
999
mac->m_driver = ixgbe;
usr/src/uts/common/io/ixgbe/ixgbe_stat.c
102
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_stat.c
126
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_stat.c
150
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_stat.c
262
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_stat.c
281
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_stat.c
522
if (hw->mac.type == ixgbe_mac_82598EB) {
usr/src/uts/common/io/ixgbe/ixgbe_stat.c
54
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_stat.c
78
switch (hw->mac.type) {
usr/src/uts/common/io/ixgbe/ixgbe_sw.h
395
} mac;
usr/src/uts/common/io/ixgbe/ixgbe_tx.c
994
switch (hw->mac.type) {
usr/src/uts/common/io/llc1.c
1730
llc_mac_info_t *mac;
usr/src/uts/common/io/llc1.c
1750
for (mac = llc1_device_list.llc1_mac_next;
usr/src/uts/common/io/llc1.c
1751
mac != (llc_mac_info_t *)(&llc1_device_list.llc1_mac_next);
usr/src/uts/common/io/llc1.c
1752
mac = mac->llcp_next) {
usr/src/uts/common/io/llc1.c
1753
ASSERT(mac);
usr/src/uts/common/io/llc1.c
1754
if (mac->llcp_ppa == at->dl_ppa && mac->llcp_lqtop == q) {
usr/src/uts/common/io/llc1.c
1762
if (mac->llcp_flags &
usr/src/uts/common/io/llc1.c
1765
} else if (!(mac->llcp_flags & LLC1_AVAILABLE)) {
usr/src/uts/common/io/llc1.c
1770
mac->llcp_nstreams++;
usr/src/uts/common/io/llc1.c
1771
llc->llc_mac_info = mac;
usr/src/uts/common/io/llc1.c
1774
llc->llc_stats = &mac->llcp_stats;
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1605
mac_register_t *mac = mac_alloc(MAC_VERSION);
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1609
if (mac == NULL)
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1617
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1618
mac->m_driver = mlxp;
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1619
mac->m_dip = mlxp->mlx_dip;
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1620
mac->m_src_addr = port->mlp_mac_address;
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1621
mac->m_callbacks = &mlxcx_mac_callbacks;
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1622
mac->m_min_sdu = MLXCX_MTU_OFFSET;
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1623
mac->m_max_sdu = port->mlp_mtu - MLXCX_MTU_OFFSET;
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1624
mac->m_margin = VLAN_TAGSZ;
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1625
mac->m_priv_props = mlxcx_priv_props;
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1626
mac->m_v12n = MAC_VIRT_LEVEL1;
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1628
ret = mac_register(mac, &mlxp->mlx_mac_hdl);
usr/src/uts/common/io/mlxcx/mlxcx_gld.c
1632
mac_free(mac);
usr/src/uts/common/io/mwl/mwl.c
2162
const uint8_t mac[IEEE80211_ADDR_LEN])
usr/src/uts/common/io/mwl/mwl.c
2199
IEEE80211_ADDR_COPY(pCmd->KeyParam.Macaddr, mac);
usr/src/uts/common/io/mwl/mwl.c
2201
IEEE80211_ADDR_COPY(pCmd->Macaddr, mac);
usr/src/uts/common/io/mwl/mwl.c
2210
const uint8_t mac[IEEE80211_ADDR_LEN])
usr/src/uts/common/io/mwl/mwl.c
2223
IEEE80211_ADDR_COPY(pCmd->KeyParam.Macaddr, mac);
usr/src/uts/common/io/mwl/mwl.c
2225
IEEE80211_ADDR_COPY(pCmd->Macaddr, mac);
usr/src/uts/common/io/mwl/mwl.c
2336
const uint8_t mac[IEEE80211_ADDR_LEN])
usr/src/uts/common/io/mwl/mwl.c
2418
mwl_setanywepkey(struct ieee80211com *ic, const uint8_t mac[IEEE80211_ADDR_LEN])
usr/src/uts/common/io/mwl/mwl.c
2424
(void) mwl_key_set(ic, &ic->ic_nw_keys[ic->ic_def_txkey], mac);
usr/src/uts/common/io/mwl/mwl.c
274
const uint8_t mac[IEEE80211_ADDR_LEN]);
usr/src/uts/common/io/mwl/mwl.c
276
const uint8_t mac[IEEE80211_ADDR_LEN]);
usr/src/uts/common/io/mwl/mwl.c
311
const uint8_t mac[IEEE80211_ADDR_LEN]);
usr/src/uts/common/io/net80211/net80211_crypto.c
86
const uint8_t *mac)
usr/src/uts/common/io/nge/nge_chip.c
1005
mac = uaddr1.addr_bits.addr;
usr/src/uts/common/io/nge/nge_chip.c
1006
mac <<= 32;
usr/src/uts/common/io/nge/nge_chip.c
1007
mac |= nge_reg_get32(ngep, NGE_UNI_ADDR0);
usr/src/uts/common/io/nge/nge_chip.c
1008
ngep->chipinfo.hw_mac_addr = mac;
usr/src/uts/common/io/nge/nge_chip.c
1012
(uchar_t)mac;
usr/src/uts/common/io/nge/nge_chip.c
1014
(uchar_t)mac;
usr/src/uts/common/io/nge/nge_chip.c
1015
mac >>= 8;
usr/src/uts/common/io/nge/nge_chip.c
1020
(uchar_t)mac;
usr/src/uts/common/io/nge/nge_chip.c
1022
(uchar_t)mac;
usr/src/uts/common/io/nge/nge_chip.c
1023
mac >>= 8;
usr/src/uts/common/io/nge/nge_chip.c
971
uint64_t mac = 0;
usr/src/uts/common/io/ntxn/nxhal_nic_interface.h
240
char mac[6];
usr/src/uts/common/io/ntxn/nxhal_nic_interface.h
243
char mac[6];
usr/src/uts/common/io/ntxn/nxhal_nic_interface.h
247
char mac[6];
usr/src/uts/common/io/ntxn/nxhal_nic_interface.h
250
char mac[6];
usr/src/uts/common/io/ntxn/unm_gem.c
198
get_flash_mac_addr(struct unm_adapter_s *adapter, u64 mac[])
usr/src/uts/common/io/ntxn/unm_gem.c
200
uint32_t *pmac = (uint32_t *)&mac[0];
usr/src/uts/common/io/ntxn/unm_gem.c
238
if (*mac == ~0ULL) {
usr/src/uts/common/io/ntxn/unm_gem.c
244
if (*mac == ~0ULL)
usr/src/uts/common/io/ntxn/unm_nic_main.c
2417
ntxn_m_unicst(void *arg, const uint8_t *mac)
usr/src/uts/common/io/ntxn/unm_nic_main.c
2423
if (unm_nic_macaddr_set(adapter, (uint8_t *)mac))
usr/src/uts/common/io/ntxn/unm_nic_main.c
2425
bcopy(mac, adapter->mac_addr, ETHERADDRL);
usr/src/uts/common/io/nxge/nxge_espc.c
137
uint8_t port_num = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_espc.c
151
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_espc.c
155
nxgep->mac.portmode = PORT_10G_COPPER;
usr/src/uts/common/io/nxge/nxge_espc.c
159
nxgep->mac.portmode = PORT_1G_FIBER;
usr/src/uts/common/io/nxge/nxge_espc.c
163
nxgep->mac.portmode = PORT_1G_COPPER;
usr/src/uts/common/io/nxge/nxge_espc.c
195
npi_status = npi_espc_max_frame_get(handle, &nxgep->mac.maxframesize);
usr/src/uts/common/io/nxge/nxge_espc.c
37
uint64_t mac[ETHERADDRL];
usr/src/uts/common/io/nxge/nxge_espc.c
42
mac[j] = st_mac[i];
usr/src/uts/common/io/nxge/nxge_espc.c
43
mac_addr |= (mac[j] << (j*8));
usr/src/uts/common/io/nxge/nxge_espc.c
61
uint8_t port_num = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_fflp.c
2144
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_fzc.c
979
if ((nxgep->mac.portmode == PORT_1G_COPPER) ||
usr/src/uts/common/io/nxge/nxge_fzc.c
980
(nxgep->mac.portmode == PORT_1G_FIBER) ||
usr/src/uts/common/io/nxge/nxge_fzc.c
981
(nxgep->mac.portmode == PORT_1G_TN1010) ||
usr/src/uts/common/io/nxge/nxge_fzc.c
982
(nxgep->mac.portmode == PORT_1G_SERDES)) {
usr/src/uts/common/io/nxge/nxge_hio.c
343
nxge->mac.portnum, group->sequence));
usr/src/uts/common/io/nxge/nxge_hio.c
387
nxge->mac.portnum, group->sequence));
usr/src/uts/common/io/nxge/nxge_hio.c
464
nxge->mac.portnum, group->sequence, group->count, channel));
usr/src/uts/common/io/nxge/nxge_hio.c
570
nxge->mac.portnum, group->sequence, group->count,
usr/src/uts/common/io/nxge/nxge_hw.c
1002
(nxgep->mac.portmode == PORT_10G_FIBER ||
usr/src/uts/common/io/nxge/nxge_hw.c
1003
nxgep->mac.portmode == PORT_10G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
1004
nxgep->mac.portmode == PORT_10G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
1005
nxgep->mac.portmode == PORT_10G_SERDES))
usr/src/uts/common/io/nxge/nxge_hw.c
1008
(nxgep->mac.portmode == PORT_1G_FIBER ||
usr/src/uts/common/io/nxge/nxge_hw.c
1009
nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
1010
nxgep->mac.portmode == PORT_1G_SERDES))
usr/src/uts/common/io/nxge/nxge_hw.c
103
nxgep->mac.is_jumbo = B_FALSE;
usr/src/uts/common/io/nxge/nxge_hw.c
109
nxgep->mac.minframesize = NXGE_MIN_MAC_FRAMESIZE; /* 64 */
usr/src/uts/common/io/nxge/nxge_hw.c
110
nxgep->mac.maxframesize = NXGE_MAX_MAC_FRAMESIZE; /* 1522 */
usr/src/uts/common/io/nxge/nxge_hw.c
113
nxgep->mac.maxframesize));
usr/src/uts/common/io/nxge/nxge_hw.c
1231
"port%d Bad register acc handle", nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_hw.c
334
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_hw.c
365
} else if (nxgep->mac.portmode == PORT_10G_FIBER) {
usr/src/uts/common/io/nxge/nxge_hw.c
436
} else if (estat.bits.ldw.mac) {
usr/src/uts/common/io/nxge/nxge_hw.c
494
if (nxgep->mac.portmode == PORT_10G_FIBER ||
usr/src/uts/common/io/nxge/nxge_hw.c
495
nxgep->mac.portmode == PORT_10G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
496
nxgep->mac.portmode == PORT_10G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
497
nxgep->mac.portmode == PORT_1G_TN1010) {
usr/src/uts/common/io/nxge/nxge_hw.c
694
if (nxgep->mac.portmode != PORT_1G_TN1010 &&
usr/src/uts/common/io/nxge/nxge_hw.c
695
nxgep->mac.portmode != PORT_10G_TN1010) {
usr/src/uts/common/io/nxge/nxge_hw.c
700
if (nxgep->mac.portmode == PORT_10G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
701
nxgep->mac.portmode == PORT_10G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
702
nxgep->mac.portmode == PORT_10G_FIBER)
usr/src/uts/common/io/nxge/nxge_hw.c
711
if (nxgep->mac.portmode == PORT_10G_FIBER ||
usr/src/uts/common/io/nxge/nxge_hw.c
712
nxgep->mac.portmode == PORT_10G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
713
nxgep->mac.portmode == PORT_10G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
714
nxgep->mac.portmode == PORT_10G_SERDES)
usr/src/uts/common/io/nxge/nxge_hw.c
719
if (nxgep->mac.portmode != PORT_1G_TN1010 &&
usr/src/uts/common/io/nxge/nxge_hw.c
720
nxgep->mac.portmode != PORT_10G_TN1010) {
usr/src/uts/common/io/nxge/nxge_hw.c
724
if (nxgep->mac.portmode == PORT_1G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
725
nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
726
nxgep->mac.portmode ==
usr/src/uts/common/io/nxge/nxge_hw.c
734
if (nxgep->mac.portmode == PORT_1G_FIBER ||
usr/src/uts/common/io/nxge/nxge_hw.c
735
nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
736
nxgep->mac.portmode == PORT_1G_SERDES)
usr/src/uts/common/io/nxge/nxge_hw.c
754
if (nxgep->mac.portmode != PORT_1G_TN1010 &&
usr/src/uts/common/io/nxge/nxge_hw.c
755
nxgep->mac.portmode != PORT_10G_TN1010) {
usr/src/uts/common/io/nxge/nxge_hw.c
760
if (nxgep->mac.portmode == PORT_10G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
761
nxgep->mac.portmode == PORT_10G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
762
nxgep->mac.portmode == PORT_10G_FIBER)
usr/src/uts/common/io/nxge/nxge_hw.c
765
if (nxgep->mac.portmode == PORT_10G_FIBER ||
usr/src/uts/common/io/nxge/nxge_hw.c
766
nxgep->mac.portmode == PORT_10G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
767
nxgep->mac.portmode == PORT_10G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
768
nxgep->mac.portmode == PORT_10G_SERDES)
usr/src/uts/common/io/nxge/nxge_hw.c
773
if (nxgep->mac.portmode != PORT_1G_TN1010 &&
usr/src/uts/common/io/nxge/nxge_hw.c
774
nxgep->mac.portmode != PORT_10G_TN1010) {
usr/src/uts/common/io/nxge/nxge_hw.c
778
if (nxgep->mac.portmode == PORT_1G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
779
nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
780
nxgep->mac.portmode ==
usr/src/uts/common/io/nxge/nxge_hw.c
790
if (nxgep->mac.portmode == PORT_1G_FIBER ||
usr/src/uts/common/io/nxge/nxge_hw.c
791
nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
792
nxgep->mac.portmode == PORT_1G_SERDES)
usr/src/uts/common/io/nxge/nxge_hw.c
804
if (nxgep->mac.portmode ==
usr/src/uts/common/io/nxge/nxge_hw.c
806
nxgep->mac.portmode ==
usr/src/uts/common/io/nxge/nxge_hw.c
808
nxgep->mac.portmode ==
usr/src/uts/common/io/nxge/nxge_hw.c
813
if (nxgep->mac.portmode !=
usr/src/uts/common/io/nxge/nxge_hw.c
815
nxgep->mac.portmode !=
usr/src/uts/common/io/nxge/nxge_hw.c
821
if (nxgep->mac.portmode == PORT_10G_FIBER ||
usr/src/uts/common/io/nxge/nxge_hw.c
822
nxgep->mac.portmode == PORT_10G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
823
nxgep->mac.portmode == PORT_10G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
824
nxgep->mac.portmode == PORT_10G_SERDES)
usr/src/uts/common/io/nxge/nxge_hw.c
829
if (nxgep->mac.portmode !=
usr/src/uts/common/io/nxge/nxge_hw.c
831
nxgep->mac.portmode !=
usr/src/uts/common/io/nxge/nxge_hw.c
846
if (nxgep->mac.portmode == PORT_1G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
847
nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
848
nxgep->mac.portmode ==
usr/src/uts/common/io/nxge/nxge_hw.c
853
} else if (nxgep->mac.portmode ==
usr/src/uts/common/io/nxge/nxge_hw.c
855
nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
856
nxgep->mac.portmode == PORT_1G_SERDES) {
usr/src/uts/common/io/nxge/nxge_hw.c
989
(nxgep->mac.portmode == PORT_10G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
990
nxgep->mac.portmode == PORT_10G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
991
nxgep->mac.portmode == PORT_10G_FIBER))
usr/src/uts/common/io/nxge/nxge_hw.c
994
(nxgep->mac.portmode == PORT_1G_COPPER ||
usr/src/uts/common/io/nxge/nxge_hw.c
995
nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_hw.c
996
nxgep->mac.portmode == PORT_1G_RGMII_FIBER))
usr/src/uts/common/io/nxge/nxge_hw.c
999
(nxgep->mac.portmode == PORT_1G_COPPER))
usr/src/uts/common/io/nxge/nxge_ipp.c
344
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_ipp.c
508
uint8_t portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_ipp.c
613
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_ipp.c
734
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_kstats.c
1453
if (nxgep->mac.porttype == PORT_TYPE_XMAC)
usr/src/uts/common/io/nxge/nxge_kstats.c
1633
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_kstats.c
1749
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_kstats.c
1890
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_kstats.c
1921
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_kstats.c
1925
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_kstats.c
2033
} else if (nxgep->mac.porttype == PORT_TYPE_BMAC) {
usr/src/uts/common/io/nxge/nxge_kstats.c
2355
if (nxgep->mac.porttype == PORT_TYPE_XMAC)
usr/src/uts/common/io/nxge/nxge_kstats.c
2357
else if (nxgep->mac.porttype == PORT_TYPE_BMAC)
usr/src/uts/common/io/nxge/nxge_kstats.c
2364
if (nxgep->mac.porttype == PORT_TYPE_XMAC)
usr/src/uts/common/io/nxge/nxge_kstats.c
2366
else if (nxgep->mac.porttype == PORT_TYPE_BMAC)
usr/src/uts/common/io/nxge/nxge_kstats.c
2393
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_kstats.c
2405
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_kstats.c
2414
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_mac.c
1046
portmode = nxgep->mac.portmode;
usr/src/uts/common/io/nxge/nxge_mac.c
1047
portt = nxgep->mac.porttype;
usr/src/uts/common/io/nxge/nxge_mac.c
1051
((nxgep->mac.portmode == PORT_1G_SERDES) ||
usr/src/uts/common/io/nxge/nxge_mac.c
1052
(nxgep->mac.portmode == PORT_1G_TN1010) ||
usr/src/uts/common/io/nxge/nxge_mac.c
1053
(nxgep->mac.portmode == PORT_1G_FIBER)) &&
usr/src/uts/common/io/nxge/nxge_mac.c
1103
nxgep->mac.xif_config = xif_cfg;
usr/src/uts/common/io/nxge/nxge_mac.c
1169
nxgep->mac.xif_config = xif_cfg;
usr/src/uts/common/io/nxge/nxge_mac.c
1198
portmode = nxgep->mac.portmode;
usr/src/uts/common/io/nxge/nxge_mac.c
1199
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
1324
portt = nxgep->mac.porttype;
usr/src/uts/common/io/nxge/nxge_mac.c
1437
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
1482
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
1510
if (nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_mac.c
1511
nxgep->mac.portmode == PORT_10G_TN1010) {
usr/src/uts/common/io/nxge/nxge_mac.c
1517
if (nxgep->mac.portmode == PORT_10G_FIBER ||
usr/src/uts/common/io/nxge/nxge_mac.c
1518
nxgep->mac.portmode == PORT_10G_COPPER ||
usr/src/uts/common/io/nxge/nxge_mac.c
1519
nxgep->mac.portmode == PORT_10G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_mac.c
1520
nxgep->mac.portmode == PORT_HSP_MODE ||
usr/src/uts/common/io/nxge/nxge_mac.c
1521
nxgep->mac.portmode == PORT_10G_SERDES) {
usr/src/uts/common/io/nxge/nxge_mac.c
1571
} else if (nxgep->mac.portmode == PORT_1G_FIBER ||
usr/src/uts/common/io/nxge/nxge_mac.c
1572
nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_mac.c
1573
nxgep->mac.portmode == PORT_1G_SERDES) {
usr/src/uts/common/io/nxge/nxge_mac.c
1710
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
1737
if (nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_mac.c
1738
nxgep->mac.portmode == PORT_10G_TN1010) {
usr/src/uts/common/io/nxge/nxge_mac.c
1743
if (nxgep->mac.portmode == PORT_10G_FIBER ||
usr/src/uts/common/io/nxge/nxge_mac.c
1744
nxgep->mac.portmode == PORT_10G_COPPER ||
usr/src/uts/common/io/nxge/nxge_mac.c
1745
nxgep->mac.portmode == PORT_10G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_mac.c
1746
nxgep->mac.portmode == PORT_10G_SERDES) {
usr/src/uts/common/io/nxge/nxge_mac.c
1839
} else if (nxgep->mac.portmode == PORT_1G_FIBER ||
usr/src/uts/common/io/nxge/nxge_mac.c
1840
nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_mac.c
1841
nxgep->mac.portmode == PORT_1G_SERDES) {
usr/src/uts/common/io/nxge/nxge_mac.c
1923
portn, nxgep->mac.portmode));
usr/src/uts/common/io/nxge/nxge_mac.c
2068
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
2323
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
2595
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
2778
"port<%d>", nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
2794
uint8_t portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
2873
"port<%d>", nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
288
if (nxgep->mac.portmode == PORT_10G_SERDES &&
usr/src/uts/common/io/nxge/nxge_mac.c
294
nxgep->mac.portmode = 0;
usr/src/uts/common/io/nxge/nxge_mac.c
302
nxgep->mac.portmode = PORT_HSP_MODE;
usr/src/uts/common/io/nxge/nxge_mac.c
308
nxgep->mac.portmode = PORT_HSP_MODE;
usr/src/uts/common/io/nxge/nxge_mac.c
314
nxgep->mac.portmode = PORT_HSP_MODE;
usr/src/uts/common/io/nxge/nxge_mac.c
321
if (nxgep->mac.portmode == PORT_HSP_MODE) {
usr/src/uts/common/io/nxge/nxge_mac.c
333
rs = npi_xmac_xpcs_read(nxgep->npi_handle, nxgep->mac.portnum,
usr/src/uts/common/io/nxge/nxge_mac.c
338
nxgep->mac.portmode = PORT_10G_SERDES;
usr/src/uts/common/io/nxge/nxge_mac.c
3416
"port<%d>, phyaddr[0x%x]", nxgep->mac.portnum,
usr/src/uts/common/io/nxge/nxge_mac.c
345
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
3583
"port<%d> phyaddr[0x%x]", nxgep->mac.portnum, phy_port_addr));
usr/src/uts/common/io/nxge/nxge_mac.c
3590
"port<%d>", nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
361
nxgep->mac.portmode = PORT_10G_SERDES;
usr/src/uts/common/io/nxge/nxge_mac.c
3634
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
3640
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
3647
nxgep->mac.portmode = PORT_10G_COPPER;
usr/src/uts/common/io/nxge/nxge_mac.c
3655
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
366
nxgep->mac.portmode = PORT_1G_SERDES;
usr/src/uts/common/io/nxge/nxge_mac.c
370
nxgep->mac.portmode = PORT_1G_COPPER;
usr/src/uts/common/io/nxge/nxge_mac.c
374
nxgep->mac.portmode = PORT_1G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
3741
nxgep->mac.portnum, phy));
usr/src/uts/common/io/nxge/nxge_mac.c
3779
uint8_t portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
3791
if (nxgep->mac.portmode == PORT_10G_SERDES || nxgep->phy_absent) {
usr/src/uts/common/io/nxge/nxge_mac.c
3843
"port<%d>", nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
3856
if (nxgep->mac.portmode == PORT_1G_SERDES) {
usr/src/uts/common/io/nxge/nxge_mac.c
3867
if ((nxgep->mac.portmode == PORT_1G_COPPER) ||
usr/src/uts/common/io/nxge/nxge_mac.c
3868
(nxgep->mac.portmode == PORT_1G_FIBER)) {
usr/src/uts/common/io/nxge/nxge_mac.c
393
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
409
nxgep->mac.portmode));
usr/src/uts/common/io/nxge/nxge_mac.c
4100
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
4153
nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
4179
portt = nxgep->mac.porttype;
usr/src/uts/common/io/nxge/nxge_mac.c
4181
portmode = nxgep->mac.portmode;
usr/src/uts/common/io/nxge/nxge_mac.c
4193
nxgep->mac.minframesize,
usr/src/uts/common/io/nxge/nxge_mac.c
4194
nxgep->mac.maxframesize,
usr/src/uts/common/io/nxge/nxge_mac.c
4199
nxgep->mac.minframesize,
usr/src/uts/common/io/nxge/nxge_mac.c
4200
nxgep->mac.maxframesize,
usr/src/uts/common/io/nxge/nxge_mac.c
4209
nxgep->mac.tx_iconfig = NXGE_XMAC_TX_INTRS;
usr/src/uts/common/io/nxge/nxge_mac.c
4219
nxgep->mac.ipg[0] = XGMII_IPG_12_15;
usr/src/uts/common/io/nxge/nxge_mac.c
4225
nxgep->mac.ipg[0] = MII_GMII_IPG_12;
usr/src/uts/common/io/nxge/nxge_mac.c
4230
nxgep->mac.tx_config = CFG_XMAC_TX_CRC | CFG_XMAC_TX;
usr/src/uts/common/io/nxge/nxge_mac.c
4231
nxgep->mac.maxburstsize = 0; /* not programmable */
usr/src/uts/common/io/nxge/nxge_mac.c
4232
nxgep->mac.ctrltype = 0; /* not programmable */
usr/src/uts/common/io/nxge/nxge_mac.c
4233
nxgep->mac.pa_size = 0; /* not programmable */
usr/src/uts/common/io/nxge/nxge_mac.c
4243
nxgep->mac.tx_iconfig = NXGE_BMAC_TX_INTRS;
usr/src/uts/common/io/nxge/nxge_mac.c
4249
nxgep->mac.ctrltype = 0x8808;
usr/src/uts/common/io/nxge/nxge_mac.c
4254
nxgep->mac.pa_size = 0x7;
usr/src/uts/common/io/nxge/nxge_mac.c
4259
nxgep->mac.tx_config = CFG_BMAC_TX_CRC | CFG_BMAC_TX;
usr/src/uts/common/io/nxge/nxge_mac.c
4327
portt = nxgep->mac.porttype;
usr/src/uts/common/io/nxge/nxge_mac.c
4352
nxgep->mac.rx_iconfig = NXGE_XMAC_RX_INTRS;
usr/src/uts/common/io/nxge/nxge_mac.c
4370
nxgep->mac.rx_config = xconfig;
usr/src/uts/common/io/nxge/nxge_mac.c
4384
nxgep->mac.rx_iconfig = NXGE_BMAC_RX_INTRS;
usr/src/uts/common/io/nxge/nxge_mac.c
4400
nxgep->mac.rx_config = bconfig;
usr/src/uts/common/io/nxge/nxge_mac.c
4434
nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
4442
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_mac.c
4443
if ((rs = npi_xmac_tx_config(handle, ENABLE, nxgep->mac.portnum,
usr/src/uts/common/io/nxge/nxge_mac.c
4447
if ((rs = npi_bmac_tx_config(handle, ENABLE, nxgep->mac.portnum,
usr/src/uts/common/io/nxge/nxge_mac.c
4453
nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
4459
nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
446
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
4480
nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
4482
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_mac.c
4484
nxgep->mac.portnum, CFG_XMAC_TX)) != NPI_SUCCESS)
usr/src/uts/common/io/nxge/nxge_mac.c
4488
nxgep->mac.portnum, CFG_BMAC_TX)) != NPI_SUCCESS)
usr/src/uts/common/io/nxge/nxge_mac.c
4493
nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
4498
nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
4517
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
4525
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_mac.c
453
nxgep->mac.portmode = PORT_1G_COPPER;
usr/src/uts/common/io/nxge/nxge_mac.c
4563
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
4568
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_mac.c
458
nxgep->mac.portmode = PORT_1G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
4598
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
4603
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_mac.c
4634
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
4639
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_mac.c
4665
uint8_t portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
468
nxgep->mac.portmode = PORT_10G_SERDES;
usr/src/uts/common/io/nxge/nxge_mac.c
4681
uint8_t portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
4697
uint8_t portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
4712
uint8_t portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
4728
uint8_t portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
473
nxgep->mac.portmode = PORT_1G_SERDES;
usr/src/uts/common/io/nxge/nxge_mac.c
4745
uint8_t portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
4763
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
4822
if (nxgep->mac.portmode == PORT_1G_RGMII_FIBER) {
usr/src/uts/common/io/nxge/nxge_mac.c
489
nxgep->mac.portmode));
usr/src/uts/common/io/nxge/nxge_mac.c
517
nxgep->mac.portmode = PORT_1G_COPPER;
usr/src/uts/common/io/nxge/nxge_mac.c
520
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
523
nxgep->mac.portmode = PORT_1G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
533
nxgep->mac.portmode = PORT_10G_SERDES;
usr/src/uts/common/io/nxge/nxge_mac.c
5347
if ((nxgep->mac.portmode == PORT_1G_COPPER) ||
usr/src/uts/common/io/nxge/nxge_mac.c
5348
(nxgep->mac.portmode == PORT_1G_RGMII_FIBER)) {
usr/src/uts/common/io/nxge/nxge_mac.c
5352
} else if ((nxgep->mac.portmode == PORT_1G_FIBER) ||
usr/src/uts/common/io/nxge/nxge_mac.c
5353
(nxgep->mac.portmode == PORT_1G_SERDES)) {
usr/src/uts/common/io/nxge/nxge_mac.c
536
nxgep->mac.portmode = PORT_1G_SERDES;
usr/src/uts/common/io/nxge/nxge_mac.c
5386
if ((nxgep->mac.portmode == PORT_1G_COPPER) ||
usr/src/uts/common/io/nxge/nxge_mac.c
5387
(nxgep->mac.portmode == PORT_1G_RGMII_FIBER)) {
usr/src/uts/common/io/nxge/nxge_mac.c
5391
} else if ((nxgep->mac.portmode == PORT_1G_FIBER) ||
usr/src/uts/common/io/nxge/nxge_mac.c
5392
(nxgep->mac.portmode == PORT_1G_SERDES)) {
usr/src/uts/common/io/nxge/nxge_mac.c
546
"Got phy type [0x%x] from VPD", nxgep->mac.portmode));
usr/src/uts/common/io/nxge/nxge_mac.c
5540
if (nxgep->mac.portmode == PORT_1G_COPPER &&
usr/src/uts/common/io/nxge/nxge_mac.c
5586
if (nxgep->mac.portmode == PORT_1G_COPPER &&
usr/src/uts/common/io/nxge/nxge_mac.c
5678
} else if (nxgep->mac.portmode == PORT_1G_RGMII_FIBER) {
usr/src/uts/common/io/nxge/nxge_mac.c
585
switch (nxgep->mac.portmode) {
usr/src/uts/common/io/nxge/nxge_mac.c
5899
nxge->mac.portmode == PORT_10G_FIBER ? "10g" : "mii",
usr/src/uts/common/io/nxge/nxge_mac.c
5900
nxge->mac.portnum));
usr/src/uts/common/io/nxge/nxge_mac.c
591
(nxgep->mac.portmode == PORT_1G_FIBER) ? "Fiber" :
usr/src/uts/common/io/nxge/nxge_mac.c
5931
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
5943
switch (nxgep->mac.portmode) {
usr/src/uts/common/io/nxge/nxge_mac.c
5969
if (nxgep->mac.portmode != PORT_1G_RGMII_FIBER) {
usr/src/uts/common/io/nxge/nxge_mac.c
603
(nxgep->mac.portmode == PORT_10G_FIBER) ? "Fiber" :
usr/src/uts/common/io/nxge/nxge_mac.c
604
((nxgep->mac.portmode == PORT_10G_COPPER) ?
usr/src/uts/common/io/nxge/nxge_mac.c
6067
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
6074
switch (nxgep->mac.portmode) {
usr/src/uts/common/io/nxge/nxge_mac.c
6087
nxgep->mac.portnum, XPCS_REG_STATUS, &val);
usr/src/uts/common/io/nxge/nxge_mac.c
6127
nxgep->mac.portmode = PORT_10G_SERDES;
usr/src/uts/common/io/nxge/nxge_mac.c
6184
rs = npi_xmac_xpcs_read(nxgep->npi_handle, nxgep->mac.portnum,
usr/src/uts/common/io/nxge/nxge_mac.c
6230
if (nxgep->mac.portmode == PORT_10G_SERDES) {
usr/src/uts/common/io/nxge/nxge_mac.c
6304
if ((nxgep->mac.portmode == PORT_10G_FIBER) ||
usr/src/uts/common/io/nxge/nxge_mac.c
6305
(nxgep->mac.portmode == PORT_10G_COPPER) ||
usr/src/uts/common/io/nxge/nxge_mac.c
6306
(nxgep->mac.portmode == PORT_10G_SERDES)) {
usr/src/uts/common/io/nxge/nxge_mac.c
6307
(void) npi_xmac_xpcs_read(nxgep->npi_handle, nxgep->mac.portnum,
usr/src/uts/common/io/nxge/nxge_mac.c
6309
(void) npi_xmac_xpcs_read(nxgep->npi_handle, nxgep->mac.portnum,
usr/src/uts/common/io/nxge/nxge_mac.c
6323
if (nxgep->mac.portmode == PORT_1G_TN1010 ||
usr/src/uts/common/io/nxge/nxge_mac.c
6324
nxgep->mac.portmode == PORT_10G_TN1010) {
usr/src/uts/common/io/nxge/nxge_mac.c
633
if (nxgep->mac.portmode == 0) {
usr/src/uts/common/io/nxge/nxge_mac.c
6508
if ((nxgep->mac.portmode == PORT_10G_FIBER ||
usr/src/uts/common/io/nxge/nxge_mac.c
6509
nxgep->mac.portmode == PORT_10G_COPPER ||
usr/src/uts/common/io/nxge/nxge_mac.c
6510
nxgep->mac.portmode == PORT_10G_SERDES) &&
usr/src/uts/common/io/nxge/nxge_mac.c
6511
(nxgep->mac.portnum > 1))
usr/src/uts/common/io/nxge/nxge_mac.c
6524
nxgep->mac.portnum, enable));
usr/src/uts/common/io/nxge/nxge_mac.c
6526
if (nxgep->mac.linkchkmode == LINKCHK_INTR) {
usr/src/uts/common/io/nxge/nxge_mac.c
654
nxgep->mac.portmode = PORT_1G_COPPER;
usr/src/uts/common/io/nxge/nxge_mac.c
6559
if (nxgep->mac.linkchkmode == LINKCHK_INTR) {
usr/src/uts/common/io/nxge/nxge_mac.c
657
nxgep->mac.portmode = PORT_10G_COPPER;
usr/src/uts/common/io/nxge/nxge_mac.c
6583
nxgep->mac.portnum, nxgep->poll_state));
usr/src/uts/common/io/nxge/nxge_mac.c
6593
nxgep->mac.portnum, enable));
usr/src/uts/common/io/nxge/nxge_mac.c
660
nxgep->mac.portmode = PORT_1G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
663
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
666
nxgep->mac.portmode = PORT_1G_SERDES;
usr/src/uts/common/io/nxge/nxge_mac.c
669
nxgep->mac.portmode = PORT_10G_SERDES;
usr/src/uts/common/io/nxge/nxge_mac.c
673
nxgep->mac.portmode = PORT_1G_RGMII_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
6792
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
6797
if (nxgep->mac.porttype == PORT_TYPE_XMAC) {
usr/src/uts/common/io/nxge/nxge_mac.c
6935
} else if (nxgep->mac.porttype == PORT_TYPE_BMAC) {
usr/src/uts/common/io/nxge/nxge_mac.c
705
switch (nxgep->mac.portmode) {
usr/src/uts/common/io/nxge/nxge_mac.c
7052
nxgep->mac.portnum, val_debug);
usr/src/uts/common/io/nxge/nxge_mac.c
7056
nxgep->mac.portnum, val_debug);
usr/src/uts/common/io/nxge/nxge_mac.c
7059
(void) npi_xmac_xpcs_read(nxgep->npi_handle, nxgep->mac.portnum,
usr/src/uts/common/io/nxge/nxge_mac.c
7064
(void) npi_xmac_xpcs_read(nxgep->npi_handle, nxgep->mac.portnum,
usr/src/uts/common/io/nxge/nxge_mac.c
7069
(void) npi_xmac_xpcs_read(nxgep->npi_handle, nxgep->mac.portnum,
usr/src/uts/common/io/nxge/nxge_mac.c
7120
"Reg 0x20 = 0x%x\n", nxgep->mac.portnum, val2);
usr/src/uts/common/io/nxge/nxge_mac.c
7128
"Reg 0x18 = 0x%x\n", nxgep->mac.portnum, val3);
usr/src/uts/common/io/nxge/nxge_mac.c
7137
nxgep->mac.portnum);
usr/src/uts/common/io/nxge/nxge_mac.c
7264
if (nxgep->mac.portmode != PORT_10G_FIBER) {
usr/src/uts/common/io/nxge/nxge_mac.c
7265
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
7272
if (nxgep->mac.portmode != PORT_10G_FIBER) {
usr/src/uts/common/io/nxge/nxge_mac.c
7273
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
7282
if (nxgep->mac.portmode != PORT_10G_COPPER) {
usr/src/uts/common/io/nxge/nxge_mac.c
7283
nxgep->mac.portmode = PORT_10G_COPPER;
usr/src/uts/common/io/nxge/nxge_mac.c
7305
if (nxgep->mac.portmode != PORT_10G_FIBER) {
usr/src/uts/common/io/nxge/nxge_mac.c
7306
nxgep->mac.portmode = PORT_10G_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
7339
if (npi_xmac_xif_led(nxgep->npi_handle, nxgep->mac.portnum, B_TRUE)
usr/src/uts/common/io/nxge/nxge_mac.c
7349
if (npi_xmac_xif_led(nxgep->npi_handle, nxgep->mac.portnum, B_FALSE)
usr/src/uts/common/io/nxge/nxge_mac.c
744
(nxgep->mac.portmode == PORT_1G_COPPER) ?
usr/src/uts/common/io/nxge/nxge_mac.c
772
(nxgep->mac.portmode == PORT_1G_FIBER) ?
usr/src/uts/common/io/nxge/nxge_mac.c
800
(nxgep->mac.portmode == PORT_10G_FIBER) ?
usr/src/uts/common/io/nxge/nxge_mac.c
817
if (nxgep->mac.portmode == PORT_10G_FIBER ||
usr/src/uts/common/io/nxge/nxge_mac.c
818
nxgep->mac.portmode == PORT_10G_COPPER) {
usr/src/uts/common/io/nxge/nxge_mac.c
8415
nxgep->mac.portmode = PORT_1G_RGMII_FIBER;
usr/src/uts/common/io/nxge/nxge_mac.c
8424
mode.value, nxgep->mac.portmode));
usr/src/uts/common/io/nxge/nxge_mac.c
8452
nxgep->mac.minframesize,
usr/src/uts/common/io/nxge/nxge_mac.c
8453
nxgep->mac.maxframesize));
usr/src/uts/common/io/nxge/nxge_mac.c
8457
nxgep->mac.minframesize,
usr/src/uts/common/io/nxge/nxge_mac.c
8458
nxgep->mac.maxframesize,
usr/src/uts/common/io/nxge/nxge_mac.c
8616
nxgep->mac.portmode = PORT_1G_TN1010;
usr/src/uts/common/io/nxge/nxge_mac.c
8620
nxgep->mac.portmode = PORT_10G_TN1010;
usr/src/uts/common/io/nxge/nxge_mac.c
885
nxgep->mac.linkchkmode = LINKCHK_TIMER;
usr/src/uts/common/io/nxge/nxge_mac.c
905
nxgep->mac.portnum = portn;
usr/src/uts/common/io/nxge/nxge_mac.c
906
nxgep->mac.porttype = PORT_TYPE_XMAC;
usr/src/uts/common/io/nxge/nxge_mac.c
909
nxgep->mac.porttype = PORT_TYPE_BMAC;
usr/src/uts/common/io/nxge/nxge_mac.c
950
nxgep->statsp->mac_stats.mac_mtu = nxgep->mac.maxframesize;
usr/src/uts/common/io/nxge/nxge_mac.c
954
((nxgep->mac.portmode == PORT_1G_SERDES) ||
usr/src/uts/common/io/nxge/nxge_mac.c
955
(nxgep->mac.portmode == PORT_1G_TN1010) ||
usr/src/uts/common/io/nxge/nxge_mac.c
956
(nxgep->mac.portmode == PORT_1G_FIBER)) &&
usr/src/uts/common/io/nxge/nxge_mac.c
985
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_mac.c
991
portmode = nxgep->mac.portmode;
usr/src/uts/common/io/nxge/nxge_main.c
2057
nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_main.c
2063
"port%d Bad register acc handle", nxgep->mac.portnum));
usr/src/uts/common/io/nxge/nxge_main.c
2077
nxgep->mac.portnum, status));
usr/src/uts/common/io/nxge/nxge_main.c
4132
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_main.c
4281
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_main.c
4581
cur_mtu = nxgep->mac.default_mtu;
usr/src/uts/common/io/nxge/nxge_main.c
4587
new_mtu, nxgep->mac.is_jumbo));
usr/src/uts/common/io/nxge/nxge_main.c
4605
old_framesize = (uint32_t)nxgep->mac.maxframesize;
usr/src/uts/common/io/nxge/nxge_main.c
4606
nxgep->mac.maxframesize = (uint16_t)
usr/src/uts/common/io/nxge/nxge_main.c
4609
nxgep->mac.maxframesize =
usr/src/uts/common/io/nxge/nxge_main.c
4615
nxgep->mac.default_mtu = new_mtu;
usr/src/uts/common/io/nxge/nxge_main.c
4616
nxgep->mac.is_jumbo = (new_mtu > NXGE_DEFAULT_MTU);
usr/src/uts/common/io/nxge/nxge_main.c
4620
new_mtu, nxgep->mac.maxframesize));
usr/src/uts/common/io/nxge/nxge_main.c
5163
switch (nxgep->mac.portmode) {
usr/src/uts/common/io/nxge/nxge_main.c
6540
nxgep->mac.default_mtu = nxgep->mac.maxframesize -
usr/src/uts/common/io/nxge/nxge_main.c
6542
macp->m_max_sdu = nxgep->mac.default_mtu;
usr/src/uts/common/io/nxge/nxge_main.c
6555
nxgep->mac.maxframesize,
usr/src/uts/common/io/nxge/nxge_main.c
661
nxgep->mac.portnum = nxgep->function_num;
usr/src/uts/common/io/nxge/nxge_main.c
662
nxgep->mac.porttype = PORT_TYPE_LOGICAL;
usr/src/uts/common/io/nxge/nxge_main.c
670
nxgep->mac.portnum = portn;
usr/src/uts/common/io/nxge/nxge_main.c
672
nxgep->mac.porttype = PORT_TYPE_XMAC;
usr/src/uts/common/io/nxge/nxge_main.c
674
nxgep->mac.porttype = PORT_TYPE_BMAC;
usr/src/uts/common/io/nxge/nxge_main.c
6936
switch (nxgep->mac.portmode) {
usr/src/uts/common/io/nxge/nxge_main.c
7186
if (nxgep->mac.linkchkmode == LINKCHK_INTR) {
usr/src/uts/common/io/nxge/nxge_main.c
743
nxgep->mac.portmode = PORT_LOGICAL;
usr/src/uts/common/io/nxge/nxge_main.c
777
nxgep->mac.is_jumbo = B_TRUE;
usr/src/uts/common/io/nxge/nxge_main.c
778
nxgep->mac.maxframesize = (uint16_t)max_frame_size;
usr/src/uts/common/io/nxge/nxge_main.c
779
nxgep->mac.default_mtu = nxgep->mac.maxframesize -
usr/src/uts/common/io/nxge/nxge_ndd.c
867
switch (nxgep->mac.portmode) {
usr/src/uts/common/io/nxge/nxge_rxdma.c
2252
if (l2_len > nxgep->mac.maxframesize) {
usr/src/uts/common/io/nxge/nxge_rxdma.c
2457
NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, 0,
usr/src/uts/common/io/nxge/nxge_rxdma.c
2464
nxgep->mac.maxframesize));
usr/src/uts/common/io/nxge/nxge_rxdma.c
2905
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_rxdma.c
3788
if (!nxgep->mac.is_jumbo) {
usr/src/uts/common/io/nxge/nxge_rxdma.c
4448
NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, 0,
usr/src/uts/common/io/nxge/nxge_rxdma.c
4454
switch (nxgep->mac.portnum) {
usr/src/uts/common/io/nxge/nxge_rxdma.c
4511
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_rxdma.c
4833
cdfs.bits.ldw.id_mismatch = (1 << nxgep->mac.portnum);
usr/src/uts/common/io/nxge/nxge_rxdma.c
4835
cdfs.bits.ldw.zcp_eop_err = (1 << nxgep->mac.portnum);
usr/src/uts/common/io/nxge/nxge_rxdma.c
4837
cdfs.bits.ldw.ipp_eop_err = (1 << nxgep->mac.portnum);
usr/src/uts/common/io/nxge/nxge_send.c
212
switch (nxgep->mac.portmode) {
usr/src/uts/common/io/nxge/nxge_txc.c
339
switch (nxgep->mac.portnum) {
usr/src/uts/common/io/nxge/nxge_txc.c
394
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_txc.c
520
uint8_t portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_txdma.c
3175
NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, channel,
usr/src/uts/common/io/nxge/nxge_txdma.c
3184
NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, channel,
usr/src/uts/common/io/nxge/nxge_txdma.c
3193
NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, channel,
usr/src/uts/common/io/nxge/nxge_txdma.c
3202
NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, channel,
usr/src/uts/common/io/nxge/nxge_txdma.c
3216
NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, channel,
usr/src/uts/common/io/nxge/nxge_txdma.c
3225
NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, channel,
usr/src/uts/common/io/nxge/nxge_txdma.c
3234
NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, channel,
usr/src/uts/common/io/nxge/nxge_txdma.c
3243
NXGE_FM_REPORT_ERROR(nxgep, nxgep->mac.portnum, channel,
usr/src/uts/common/io/nxge/nxge_zcp.c
123
portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_zcp.c
275
uint8_t portn = nxgep->mac.portnum;
usr/src/uts/common/io/nxge/nxge_zcp.c
399
portn = nxgep->mac.portnum;
usr/src/uts/common/io/overlay/overlay.c
1226
mac_register_t *mac;
usr/src/uts/common/io/overlay/overlay.c
1264
mac = mac_alloc(MAC_VERSION);
usr/src/uts/common/io/overlay/overlay.c
1265
if (mac == NULL) {
usr/src/uts/common/io/overlay/overlay.c
1273
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/overlay/overlay.c
1274
mac->m_driver = odd;
usr/src/uts/common/io/overlay/overlay.c
1275
mac->m_dip = overlay_dip;
usr/src/uts/common/io/overlay/overlay.c
1276
mac->m_dst_addr = NULL;
usr/src/uts/common/io/overlay/overlay.c
1277
mac->m_callbacks = &overlay_m_callbacks;
usr/src/uts/common/io/overlay/overlay.c
1278
mac->m_pdata = NULL;
usr/src/uts/common/io/overlay/overlay.c
1279
mac->m_pdata_size = 0;
usr/src/uts/common/io/overlay/overlay.c
1281
mac->m_priv_props = NULL;
usr/src/uts/common/io/overlay/overlay.c
1284
mac->m_instance = (uint_t)-1;
usr/src/uts/common/io/overlay/overlay.c
1291
mac->m_src_addr = overlay_macaddr;
usr/src/uts/common/io/overlay/overlay.c
1297
mac->m_min_sdu = 1;
usr/src/uts/common/io/overlay/overlay.c
1298
mac->m_max_sdu = OVERLAY_MTU_DEF;
usr/src/uts/common/io/overlay/overlay.c
1299
mac->m_multicast_sdu = 0;
usr/src/uts/common/io/overlay/overlay.c
1306
mac->m_margin = VLAN_TAGSZ;
usr/src/uts/common/io/overlay/overlay.c
1308
mac->m_margin = 0;
usr/src/uts/common/io/overlay/overlay.c
1315
mac->m_v12n = MAC_VIRT_NONE;
usr/src/uts/common/io/overlay/overlay.c
1338
err = mac_register(mac, &odd->odd_mh);
usr/src/uts/common/io/overlay/overlay.c
1339
mac_free(mac);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore.h
895
u8 *mac);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
3739
p_hwfn->mcp_info->func_info.mac, ETH_ALEN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5569
u8 *mac)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5571
((u8 *)fw_msb)[0] = mac[1];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5572
((u8 *)fw_msb)[1] = mac[0];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5573
((u8 *)fw_mid)[0] = mac[3];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5574
((u8 *)fw_mid)[1] = mac[2];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5575
((u8 *)fw_lsb)[0] = mac[5];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_dev.c
5576
((u8 *)fw_lsb)[1] = mac[4];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
394
u8 *mac, int vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
405
u8 *mac, int vfid);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
768
static OSAL_INLINE void ecore_iov_bulletin_set_forced_mac(struct ecore_hwfn *p_hwfn, u8 *mac, int vfid) {}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_iov_api.h
769
static OSAL_INLINE enum _ecore_status_t ecore_iov_bulletin_set_mac(struct ecore_hwfn *p_hwfn, u8 *mac, int vfid) {return ECORE_INVAL;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1403
(u8 *)p_filter_cmd->mac);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1501
p_filter_cmd->mac[0], p_filter_cmd->mac[1],
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1502
p_filter_cmd->mac[2], p_filter_cmd->mac[3],
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1503
p_filter_cmd->mac[4], p_filter_cmd->mac[5],
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1544
static u32 ecore_crc32c_le(u32 seed, u8 *mac, u32 len)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1548
OSAL_MEMCPY((u8 *)(&packet_buf[0]), &mac[0], 6);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1552
u8 ecore_mcast_bin_from_mac(u8 *mac)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1555
mac, ETH_ALEN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.c
1614
bit = ecore_mcast_bin_from_mac(p_filter_cmd->mac[i]);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2.h
169
u8 ecore_mcast_bin_from_mac(u8 *mac);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
153
unsigned char mac[ETH_ALEN];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_l2_api.h
166
unsigned char mac[ECORE_MAX_MC_ADDRS][ETH_ALEN];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2197
info->mac[0] = (u8)(shmem_info.mac_upper >> 8);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2198
info->mac[1] = (u8)(shmem_info.mac_upper);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2199
info->mac[2] = (u8)(shmem_info.mac_lower >> 24);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2200
info->mac[3] = (u8)(shmem_info.mac_lower >> 16);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2201
info->mac[4] = (u8)(shmem_info.mac_lower >> 8);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2202
info->mac[5] = (u8)(shmem_info.mac_lower);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2205
OSAL_MEMCPY(&p_hwfn->p_dev->wol_mac, info->mac, ETH_ALEN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2240
info->mac[0], info->mac[1], info->mac[2],
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2241
info->mac[3], info->mac[4], info->mac[5],
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2716
u8 *mac)
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2733
mfw_mac[0] = mac[0] << 24 | mac[1] << 16 | mac[2] << 8 | mac[3];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2734
mfw_mac[1] = mac[4] << 24 | mac[5] << 16;
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp.c
2743
OSAL_MEMCPY(p_hwfn->p_dev->wol_mac, mac, ETH_ALEN);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
133
u8 mac[ETH_ALEN];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
313
u8 mac[ECORE_MFW_TLV_MAC_COUNT][6];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_mcp_api.h
895
u8 *mac);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
134
bool ecore_vf_check_mac(struct ecore_hwfn *p_hwfn, u8 *mac);
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vf_api.h
199
static OSAL_INLINE bool ecore_vf_check_mac(struct ecore_hwfn *p_hwfn, u8 *mac) {return false;}
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vfpf_if.h
370
u8 mac[ETH_ALEN];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vfpf_if.h
479
u8 mac[ETH_ALEN];
usr/src/uts/common/io/qede/579xx/drivers/ecore/ecore_vfpf_if.h
593
u8 mac[ETH_ALEN];
usr/src/uts/common/io/qede/qede.h
1025
uint8_t *mac, int mc_cnt);
usr/src/uts/common/io/qede/qede_gld.c
1005
for (i = 0; i < mc_cnt; i++, mac += ETH_ALLEN) {
usr/src/uts/common/io/qede/qede_gld.c
1006
COPY_ETH_ADDRESS(mac, cmd.mac[i]);
usr/src/uts/common/io/qede/qede_gld.c
1108
IS_ETH_ADDRESS_EQUAL(ptr_mcaddr, ptr_entry->mac)) {
usr/src/uts/common/io/qede/qede_gld.c
1124
ptr_entry->mac = (uint8_t *)ptr_entry +
usr/src/uts/common/io/qede/qede_gld.c
1126
COPY_ETH_ADDRESS(ptr_mcaddr, ptr_entry->mac);
usr/src/uts/common/io/qede/qede_gld.c
1137
COPY_ETH_ADDRESS(ptr_entry->mac, tmpmc);
usr/src/uts/common/io/qede/qede_gld.c
61
COPY_ETH_ADDRESS(mac_addr, params.mac);
usr/src/uts/common/io/qede/qede_gld.c
997
uint8_t *mac, int mc_cnt)
usr/src/uts/common/io/qede/qede_list.h
71
u8 *mac;
usr/src/uts/common/io/rtw/rtw.c
692
uint8_t mac[IEEE80211_ADDR_LEN];
usr/src/uts/common/io/rtw/rtw.c
709
mac[i] = RTW_SR_GET(sr, RTW_SR_MAC + i);
usr/src/uts/common/io/rtw/rtw.c
712
"%s: EEPROM MAC %s\n", dvname, mac);
usr/src/uts/common/io/sfe/sfe.c
318
uint8_t *mac;
usr/src/uts/common/io/sfe/sfe.c
326
mac = dp->dev_addr.ether_addr_octet;
usr/src/uts/common/io/sfe/sfe.c
329
bzero(mac, ETHERADDRL);
usr/src/uts/common/io/sfe/sfe.c
333
BITSET(mac, 0, val & 1);
usr/src/uts/common/io/sfe/sfe.c
338
BITSET(mac, 1 + i, val & (1 << (15 - i)));
usr/src/uts/common/io/sfe/sfe.c
344
BITSET(mac, 17 + i, val & (1 << (15 - i)));
usr/src/uts/common/io/sfe/sfe.c
350
BITSET(mac, 33 + i, val & (1 << (15 - i)));
usr/src/uts/common/io/sfe/sfe.c
362
uint8_t *mac;
usr/src/uts/common/io/sfe/sfe.c
364
mac = dp->dev_addr.ether_addr_octet;
usr/src/uts/common/io/sfe/sfe.c
368
*mac++ = (uint8_t)val;
usr/src/uts/common/io/sfe/sfe.c
369
*mac++ = (uint8_t)(val >> 8);
usr/src/uts/common/io/sfe/sfe.c
612
uint8_t *mac = dp->cur_addr.ether_addr_octet;
usr/src/uts/common/io/sfe/sfe.c
673
dp->name, mac[0], mac[1], mac[2], mac[3], mac[4], mac[5],
usr/src/uts/common/io/sfe/sfe.c
678
if (bcmp(mac, lp->mac_addr, ETHERADDRL) != 0) {
usr/src/uts/common/io/sfe/sfe.c
686
OUTL(dp, RFDR, (mac[i+1] << 8) | mac[i]);
usr/src/uts/common/io/sfe/sfe.c
689
bcopy(mac, lp->mac_addr, ETHERADDRL);
usr/src/uts/common/io/sfe/sfe.c
702
mac = &dp->mc_list[j].addr.ether_addr_octet[0];
usr/src/uts/common/io/sfe/sfe.c
706
OUTL(dp, RFDR, (mac[i+1] << 8) | mac[i]);
usr/src/uts/common/io/sfe/sfe.c
741
uint8_t *mac = dp->cur_addr.ether_addr_octet;
usr/src/uts/common/io/sfe/sfe.c
785
if (bcmp(mac, lp->mac_addr, ETHERADDRL) != 0) {
usr/src/uts/common/io/sfe/sfe.c
791
OUTLINL(dp, RFDR, (mac[i*2+1] << 8) | mac[i*2]);
usr/src/uts/common/io/sfe/sfe.c
794
bcopy(mac, lp->mac_addr, ETHERADDRL);
usr/src/uts/common/io/sfe/sfe_util.c
2990
uint8_t mac[ETHERADDRL];
usr/src/uts/common/io/sfe/sfe_util.c
3034
mac[j++] = v;
usr/src/uts/common/io/sfe/sfe_util.c
3051
dp->dev_addr.ether_addr_octet[i] = mac[i];
usr/src/uts/common/io/sfe/sfe_util.c
4538
gem_m_unicst(void *arg, const uint8_t *mac)
usr/src/uts/common/io/sfe/sfe_util.c
4550
bcopy(mac, dp->cur_addr.ether_addr_octet, ETHERADDRL);
usr/src/uts/common/io/simnet/simnet.c
325
simnet_init_wifi(simnet_dev_t *sdev, mac_register_t *mac)
usr/src/uts/common/io/simnet/simnet.c
338
mac->m_type_ident = MAC_PLUGIN_IDENT_WIFI;
usr/src/uts/common/io/simnet/simnet.c
339
mac->m_max_sdu = IEEE80211_MTU;
usr/src/uts/common/io/simnet/simnet.c
340
mac->m_pdata = &wd;
usr/src/uts/common/io/simnet/simnet.c
341
mac->m_pdata_size = sizeof (wd);
usr/src/uts/common/io/simnet/simnet.c
342
err = mac_register(mac, &sdev->sd_mh);
usr/src/uts/common/io/simnet/simnet.c
347
simnet_init_ether(simnet_dev_t *sdev, mac_register_t *mac)
usr/src/uts/common/io/simnet/simnet.c
351
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/simnet/simnet.c
352
mac->m_max_sdu = SIMNET_MAX_MTU;
usr/src/uts/common/io/simnet/simnet.c
353
mac->m_margin = VLAN_TAGSZ;
usr/src/uts/common/io/simnet/simnet.c
354
err = mac_register(mac, &sdev->sd_mh);
usr/src/uts/common/io/simnet/simnet.c
361
mac_register_t *mac;
usr/src/uts/common/io/simnet/simnet.c
364
if ((mac = mac_alloc(MAC_VERSION)) == NULL)
usr/src/uts/common/io/simnet/simnet.c
367
mac->m_driver = sdev;
usr/src/uts/common/io/simnet/simnet.c
368
mac->m_dip = simnet_dip;
usr/src/uts/common/io/simnet/simnet.c
369
mac->m_instance = (uint_t)-1;
usr/src/uts/common/io/simnet/simnet.c
370
mac->m_src_addr = sdev->sd_mac_addr;
usr/src/uts/common/io/simnet/simnet.c
371
mac->m_callbacks = &simnet_m_callbacks;
usr/src/uts/common/io/simnet/simnet.c
372
mac->m_min_sdu = 0;
usr/src/uts/common/io/simnet/simnet.c
375
err = simnet_init_ether(sdev, mac);
usr/src/uts/common/io/simnet/simnet.c
377
err = simnet_init_wifi(sdev, mac);
usr/src/uts/common/io/simnet/simnet.c
381
mac_free(mac);
usr/src/uts/common/io/softmac/softmac_main.c
1632
char mac[MAXNAMELEN];
usr/src/uts/common/io/softmac/softmac_main.c
1638
(void) snprintf(mac, MAXNAMELEN, "%s%d", drv, getminor(dev) - 1);
usr/src/uts/common/io/softmac/softmac_main.c
1639
if ((err = mac_open(mac, &mh)) != 0)
usr/src/uts/common/io/udmf/udmf_usbgem.c
299
uint8_t *mac;
usr/src/uts/common/io/udmf/udmf_usbgem.c
316
mac = dp->cur_addr.ether_addr_octet;
usr/src/uts/common/io/udmf/udmf_usbgem.c
319
mac = invalid_mac;
usr/src/uts/common/io/udmf/udmf_usbgem.c
339
if (bcmp(mac, lp->mac_addr, ETHERADDRL) != 0) {
usr/src/uts/common/io/udmf/udmf_usbgem.c
342
bcopy(mac, lp->mac_addr, ETHERADDRL);
usr/src/uts/common/io/upf/upf_usbgem.c
903
uint8_t *mac;
usr/src/uts/common/io/upf/upf_usbgem.c
909
mac = dp->dev_addr.ether_addr_octet;
usr/src/uts/common/io/upf/upf_usbgem.c
915
mac[i*2+0] = (uint8_t)val;
usr/src/uts/common/io/upf/upf_usbgem.c
916
mac[i*2+1] = (uint8_t)(val >> 8);
usr/src/uts/common/io/upf/upf_usbgem.c
922
mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]));
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2395
label_to_mac(char *hex, unsigned char *mac)
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2408
mac[i] = c * 16;
usr/src/uts/common/io/usb/clients/usbecm/usbecm.c
2416
mac[i] += c;
usr/src/uts/common/io/usbgem/usbgem.c
3507
usbgem_m_unicst(void *arg, const uint8_t *mac)
usr/src/uts/common/io/usbgem/usbgem.c
3517
bcopy(mac, dp->cur_addr.ether_addr_octet, ETHERADDRL);
usr/src/uts/common/io/usbgem/usbgem.c
3621
usbgem_generate_macaddr(struct usbgem_dev *dp, uint8_t *mac)
usr/src/uts/common/io/usbgem/usbgem.c
3649
mac[0] = 0x02;
usr/src/uts/common/io/usbgem/usbgem.c
3650
mac[1] = (uint8_t)(val >> 32);
usr/src/uts/common/io/usbgem/usbgem.c
3651
mac[2] = (uint8_t)(val >> 24);
usr/src/uts/common/io/usbgem/usbgem.c
3652
mac[3] = (uint8_t)(val >> 16);
usr/src/uts/common/io/usbgem/usbgem.c
3653
mac[4] = (uint8_t)(val >> 8);
usr/src/uts/common/io/usbgem/usbgem.c
3654
mac[5] = (uint8_t)val;
usr/src/uts/common/io/usbgem/usbgem.c
3662
uint8_t mac[ETHERADDRL];
usr/src/uts/common/io/usbgem/usbgem.c
3705
mac[j++] = v;
usr/src/uts/common/io/usbgem/usbgem.c
3719
usbgem_generate_macaddr(dp, mac);
usr/src/uts/common/io/usbgem/usbgem.c
3722
dp->dev_addr.ether_addr_octet[i] = mac[i];
usr/src/uts/common/io/vioif/vioif.c
789
vioif_m_unicst(void *arg, const uint8_t *mac)
usr/src/uts/common/io/vnic/vnic_dev.c
348
mac_register_t *mac;
usr/src/uts/common/io/vnic/vnic_dev.c
478
if ((mac = mac_alloc(MAC_VERSION)) == NULL)
usr/src/uts/common/io/vnic/vnic_dev.c
481
mac->m_type_ident = MAC_PLUGIN_IDENT_ETHER;
usr/src/uts/common/io/vnic/vnic_dev.c
482
mac->m_driver = vnic;
usr/src/uts/common/io/vnic/vnic_dev.c
483
mac->m_dip = vnic_get_dip();
usr/src/uts/common/io/vnic/vnic_dev.c
484
mac->m_instance = (uint_t)-1;
usr/src/uts/common/io/vnic/vnic_dev.c
485
mac->m_src_addr = vnic->vn_addr;
usr/src/uts/common/io/vnic/vnic_dev.c
486
mac->m_callbacks = &vnic_m_callbacks;
usr/src/uts/common/io/vnic/vnic_dev.c
512
mac_free(mac);
usr/src/uts/common/io/vnic/vnic_dev.c
519
mac_sdu_get(vnic->vn_lower_mh, &mac->m_min_sdu,
usr/src/uts/common/io/vnic/vnic_dev.c
520
&mac->m_max_sdu);
usr/src/uts/common/io/vnic/vnic_dev.c
521
err = mac_mtu_add(vnic->vn_lower_mh, &mac->m_max_sdu, B_FALSE);
usr/src/uts/common/io/vnic/vnic_dev.c
525
mac_free(mac);
usr/src/uts/common/io/vnic/vnic_dev.c
530
vnic->vn_mtu = mac->m_max_sdu;
usr/src/uts/common/io/vnic/vnic_dev.c
533
mac->m_min_sdu = 1;
usr/src/uts/common/io/vnic/vnic_dev.c
534
mac->m_max_sdu = ANCHOR_VNIC_MAX_MTU;
usr/src/uts/common/io/vnic/vnic_dev.c
538
mac->m_margin = vnic->vn_margin;
usr/src/uts/common/io/vnic/vnic_dev.c
540
err = mac_register(mac, &vnic->vn_mh);
usr/src/uts/common/io/vnic/vnic_dev.c
541
mac_free(mac);
usr/src/uts/common/io/wpi/wpi.c
1408
const uint8_t mac[IEEE80211_ADDR_LEN])
usr/src/uts/common/io/wpi/wpi.c
1430
if (IEEE80211_IS_MULTICAST(mac)) {
usr/src/uts/common/io/wpi/wpi.c
223
const uint8_t mac[IEEE80211_ADDR_LEN]);
usr/src/uts/common/io/xge/drv/xge.c
659
device_config->mac.tmac_util_period = ddi_prop_get_int(DDI_DEV_T_ANY,
usr/src/uts/common/io/xge/drv/xge.c
662
device_config->mac.rmac_util_period = ddi_prop_get_int(DDI_DEV_T_ANY,
usr/src/uts/common/io/xge/drv/xge.c
665
device_config->mac.rmac_bcast_en = ddi_prop_get_int(DDI_DEV_T_ANY,
usr/src/uts/common/io/xge/drv/xge.c
668
device_config->mac.rmac_pause_gen_en = ddi_prop_get_int(DDI_DEV_T_ANY,
usr/src/uts/common/io/xge/drv/xge.c
671
device_config->mac.rmac_pause_rcv_en = ddi_prop_get_int(DDI_DEV_T_ANY,
usr/src/uts/common/io/xge/drv/xge.c
674
device_config->mac.rmac_pause_time = ddi_prop_get_int(DDI_DEV_T_ANY,
usr/src/uts/common/io/xge/drv/xge.c
677
device_config->mac.mc_pause_threshold_q0q3 =
usr/src/uts/common/io/xge/drv/xge.c
681
device_config->mac.mc_pause_threshold_q4q7 =
usr/src/uts/common/io/xge/hal/include/xgehal-config.h
742
xge_hal_mac_config_t mac;
usr/src/uts/common/io/xge/hal/xgehal/xgehal-config.c
657
if ((status = __hal_mac_config_check(&new_config->mac)) !=
usr/src/uts/common/io/xge/hal/xgehal/xgehal-device.c
1363
hldev->config.mac.tmac_util_period) |
usr/src/uts/common/io/xge/hal/xgehal/xgehal-device.c
1365
hldev->config.mac.rmac_util_period);
usr/src/uts/common/io/xge/hal/xgehal/xgehal-device.c
2863
if (hldev->config.mac.rmac_bcast_en) {
usr/src/uts/common/io/xge/hal/xgehal/xgehal-device.c
364
hldev->config.mac.rmac_bcast_en ? "enabled" : "disabled");
usr/src/uts/common/io/xge/hal/xgehal/xgehal-device.c
394
hldev->config.mac.rmac_bcast_en ? "enabled" : "disabled");
usr/src/uts/common/io/xge/hal/xgehal/xgehal-device.c
478
switch (hldev->config.mac.media) {
usr/src/uts/common/io/xge/hal/xgehal/xgehal-device.c
503
if (hldev->config.mac.rmac_pause_gen_en)
usr/src/uts/common/io/xge/hal/xgehal/xgehal-device.c
507
if (hldev->config.mac.rmac_pause_rcv_en)
usr/src/uts/common/io/xge/hal/xgehal/xgehal-device.c
512
val64 |= XGE_HAL_RMAC_PAUSE_HG_PTIME(hldev->config.mac.rmac_pause_time);
usr/src/uts/common/io/xge/hal/xgehal/xgehal-device.c
519
(((u64)0xFF00|hldev->config.mac.mc_pause_threshold_q0q3)
usr/src/uts/common/io/xge/hal/xgehal/xgehal-device.c
528
(((u64)0xFF00|hldev->config.mac.mc_pause_threshold_q4q7)
usr/src/uts/common/io/xge/hal/xgehal/xgehal-mgmtaux.c
1565
xge_hal_mac_config_t *mac;
usr/src/uts/common/io/xge/hal/xgehal/xgehal-mgmtaux.c
1680
mac= &dev_config->mac;
usr/src/uts/common/io/xge/hal/xgehal/xgehal-mgmtaux.c
1683
mac->tmac_util_period, "%u");
usr/src/uts/common/io/xge/hal/xgehal/xgehal-mgmtaux.c
1685
mac->rmac_util_period, "%u");
usr/src/uts/common/io/xge/hal/xgehal/xgehal-mgmtaux.c
1687
mac->rmac_bcast_en, "%u");
usr/src/uts/common/io/xge/hal/xgehal/xgehal-mgmtaux.c
1689
mac->rmac_pause_gen_en, "%d");
usr/src/uts/common/io/xge/hal/xgehal/xgehal-mgmtaux.c
1691
mac->rmac_pause_rcv_en, "%d");
usr/src/uts/common/io/xge/hal/xgehal/xgehal-mgmtaux.c
1693
mac->rmac_pause_time, "%u");
usr/src/uts/common/io/xge/hal/xgehal/xgehal-mgmtaux.c
1695
mac->mc_pause_threshold_q0q3, "%u");
usr/src/uts/common/io/xge/hal/xgehal/xgehal-mgmtaux.c
1697
mac->mc_pause_threshold_q4q7, "%u");
usr/src/uts/common/sys/crypto/api.h
214
crypto_dual_data_t *ct, crypto_data_t *mac, crypto_call_req_t *cr);
usr/src/uts/common/sys/crypto/api.h
232
crypto_dual_data_t *ct, crypto_data_t *mac, crypto_call_req_t *cr);
usr/src/uts/common/sys/crypto/api.h
241
crypto_data_t *mac, crypto_data_t *pt, crypto_call_req_t *cr);
usr/src/uts/common/sys/crypto/api.h
246
crypto_data_t *mac, crypto_data_t *pt, crypto_call_req_t *cr);
usr/src/uts/common/sys/crypto/api.h
251
crypto_data_t *mac, crypto_data_t *pt, crypto_call_req_t *cr);
usr/src/uts/common/sys/crypto/api.h
257
crypto_data_t *mac, crypto_data_t *pt, crypto_call_req_t *cr);
usr/src/uts/common/sys/crypto/api.h
271
extern int crypto_mac_decrypt_final(crypto_context_t ctx, crypto_data_t *mac,
usr/src/uts/common/sys/crypto/api.h
89
crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac,
usr/src/uts/common/sys/crypto/api.h
95
crypto_key_t *key, crypto_ctx_template_t tmpl, crypto_data_t *mac,
usr/src/uts/common/sys/crypto/impl.h
1000
ctx, mac, plaintext, req) : \
usr/src/uts/common/sys/crypto/impl.h
1004
decr_mech, decr_key, ciphertext, mac, plaintext, \
usr/src/uts/common/sys/crypto/impl.h
1010
decr_mech, decr_key, ciphertext, mac, plaintext, \
usr/src/uts/common/sys/crypto/impl.h
1015
decr_mech, decr_key, ciphertext, mac, plaintext, \
usr/src/uts/common/sys/crypto/impl.h
1022
decr_mech, decr_key, ciphertext, mac, plaintext, \
usr/src/uts/common/sys/crypto/impl.h
756
(KCF_PROV_MAC_OPS(pd) && KCF_PROV_MAC_OPS(pd)->mac) ? \
usr/src/uts/common/sys/crypto/impl.h
757
KCF_PROV_MAC_OPS(pd)->mac(ctx, data, _mac, req) : \
usr/src/uts/common/sys/crypto/impl.h
765
#define KCF_PROV_MAC_FINAL(pd, ctx, mac, req) ( \
usr/src/uts/common/sys/crypto/impl.h
767
KCF_PROV_MAC_OPS(pd)->mac_final(ctx, mac, req) : \
usr/src/uts/common/sys/crypto/impl.h
770
#define KCF_PROV_MAC_ATOMIC(pd, session, mech, key, data, mac, template, \
usr/src/uts/common/sys/crypto/impl.h
774
(pd)->pd_prov_handle, session, mech, key, data, mac, template, \
usr/src/uts/common/sys/crypto/impl.h
778
#define KCF_PROV_MAC_VERIFY_ATOMIC(pd, session, mech, key, data, mac, \
usr/src/uts/common/sys/crypto/impl.h
782
(pd)->pd_prov_handle, session, mech, key, data, mac, template, \
usr/src/uts/common/sys/crypto/impl.h
941
#define KCF_PROV_ENCRYPT_MAC(pd, ctx, plaintext, ciphertext, mac, req) ( \
usr/src/uts/common/sys/crypto/impl.h
945
ctx, plaintext, ciphertext, mac, req) : \
usr/src/uts/common/sys/crypto/impl.h
955
#define KCF_PROV_ENCRYPT_MAC_FINAL(pd, ctx, ciphertext, mac, req) ( \
usr/src/uts/common/sys/crypto/impl.h
959
ctx, ciphertext, mac, req) : \
usr/src/uts/common/sys/crypto/impl.h
963
mac_mech, mac_key, plaintext, ciphertext, mac, \
usr/src/uts/common/sys/crypto/impl.h
969
mac_mech, mac_key, plaintext, ciphertext, mac, \
usr/src/uts/common/sys/crypto/impl.h
982
#define KCF_PROV_MAC_DECRYPT(pd, ctx, ciphertext, mac, plaintext, req) ( \
usr/src/uts/common/sys/crypto/impl.h
986
ctx, ciphertext, mac, plaintext, req) : \
usr/src/uts/common/sys/crypto/impl.h
996
#define KCF_PROV_MAC_DECRYPT_FINAL(pd, ctx, mac, plaintext, req) ( \
usr/src/uts/common/sys/crypto/spi.h
210
int (*mac)(crypto_ctx_t *,
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_extern.h
339
uint8_t *mac);
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_menlo.h
1049
uint8_t mac[6]; /* FCF MAC */
usr/src/uts/common/sys/fibre-channel/fca/oce/oce_hw.h
1360
}mac[32];
usr/src/uts/common/sys/fibre-channel/fca/oce/oce_hw.h
786
struct mac_address_format mac;
usr/src/uts/common/sys/fibre-channel/fca/oce/oce_hw.h
808
struct mac_address_format mac;
usr/src/uts/common/sys/fibre-channel/fca/oce/oce_hw.h
831
} mac[32];
usr/src/uts/common/sys/fibre-channel/fca/oce/oce_io.h
366
uint8_t type, struct mac_address_format *mac);
usr/src/uts/common/sys/fibre-channel/fca/oce/oce_io.h
383
const uint8_t *mac, uint32_t *pmac_id);
usr/src/uts/common/sys/fibre-channel/fca/qlc/ql_iocb.h
1356
uint16_t mac[3];
usr/src/uts/common/sys/ib/clients/eoib/eib_impl.h
531
#define EIB_UNICAST_MAC(mac) (((mac)[0] & 0x01) == 0)
usr/src/uts/common/sys/net80211_crypto.h
200
const uint8_t mac[IEEE80211_ADDR_LEN]);
usr/src/uts/common/sys/nxge/nxge.h
655
nxge_mac_t mac;
usr/src/uts/common/sys/nxge/nxge_hw.h
547
uint32_t mac:1;
usr/src/uts/common/sys/nxge/nxge_hw.h
551
uint32_t mac:1;
usr/src/uts/common/xen/io/xnb.c
1629
char mac[ETHERADDRL * 3];
usr/src/uts/common/xen/io/xnb.c
1634
"mac", "%s", mac) != 0) {
usr/src/uts/common/xen/io/xnb.c
1641
if (ether_aton(mac, xnbp->xnb_mac_addr) != ETHERADDRL) {
usr/src/uts/common/xen/io/xnb.c
1644
mac);
usr/src/uts/common/xen/io/xnbo.c
264
xnbo_open_mac(xnb_t *xnbp, char *mac)
usr/src/uts/common/xen/io/xnbo.c
274
if ((err = mac_open_by_linkname(mac, &xnbop->o_mh)) != 0) {
usr/src/uts/common/xen/io/xnbo.c
276
"cannot open mac for link %s (%d)", mac, err);
usr/src/uts/common/xen/io/xnbo.c
334
"MAC address of %s: %d", mac, err);
usr/src/uts/common/xen/io/xnbo.c
345
mac, err);
usr/src/uts/common/xen/io/xnbo.c
360
"%s: %d", mac, ether_sprintf(&ea), err);
usr/src/uts/common/xen/io/xnf.c
891
char mac[ETHERADDRL * 3];
usr/src/uts/common/xen/io/xnf.c
895
"%s", (char *)&mac[0]);
usr/src/uts/common/xen/io/xnf.c
906
if (ether_aton(mac, xnfp->xnf_mac_addr) != ETHERADDRL) {
usr/src/uts/i86pc/os/ibft.c
115
char mac[6];
usr/src/uts/i86pc/os/ibft.c
500
bcopy(nicp->mac, boot_property.boot_nic.nic_mac, 6);
usr/src/uts/intel/io/dnet/dnet.c
4052
uchar_t *mac = vi + ddi_getprop(DDI_DEV_T_ANY, dnetp->devinfo,
usr/src/uts/intel/io/dnet/dnet.c
4056
sr->netaddr[i] = mac[i];
usr/src/uts/intel/io/dnet/dnet.c
4060
ether_mfg = (ether_mfg << 8) | mac[i];
usr/src/uts/intel/io/dnet/dnet_mii.c
109
mii_probe_phy(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
114
if (!mac || phy < 0 || phy > 31)
usr/src/uts/intel/io/dnet/dnet_mii.c
117
dip = mac->mii_dip;
usr/src/uts/intel/io/dnet/dnet_mii.c
120
mac->mii_read(dip, phy, MII_STATUS);
usr/src/uts/intel/io/dnet/dnet_mii.c
121
status = mac->mii_read(dip, phy, MII_STATUS);
usr/src/uts/intel/io/dnet/dnet_mii.c
124
mac->mii_read(dip, phy, MII_CONTROL);
usr/src/uts/intel/io/dnet/dnet_mii.c
127
mac->mii_read(dip, phy, MII_CONTROL), status);
usr/src/uts/intel/io/dnet/dnet_mii.c
148
mii_init_phy(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
154
if ((mac == (mii_handle_t)NULL) || phy < 0 || phy > 31)
usr/src/uts/intel/io/dnet/dnet_mii.c
157
dip = mac->mii_dip;
usr/src/uts/intel/io/dnet/dnet_mii.c
160
if (mac->phys[phy])
usr/src/uts/intel/io/dnet/dnet_mii.c
163
mac->phys[phy] = phydata = (struct phydata *)
usr/src/uts/intel/io/dnet/dnet_mii.c
169
phydata->id = (ulong_t)mac->mii_read(dip, phy, MII_PHYIDH) << 16;
usr/src/uts/intel/io/dnet/dnet_mii.c
170
phydata->id |= (ulong_t)mac->mii_read(dip, phy, MII_PHYIDL);
usr/src/uts/intel/io/dnet/dnet_mii.c
176
mac->mii_dip, DDI_PROP_DONTPASS, "full-duplex", 0);
usr/src/uts/intel/io/dnet/dnet_mii.c
180
mac->mii_dip, DDI_PROP_DONTPASS, "speed", 0);
usr/src/uts/intel/io/dnet/dnet_mii.c
182
status = mac->mii_read(dip, phy, MII_STATUS);
usr/src/uts/intel/io/dnet/dnet_mii.c
203
kmem_free(mac->phys[phy], sizeof (struct phydata));
usr/src/uts/intel/io/dnet/dnet_mii.c
204
mac->phys[phy] = NULL;
usr/src/uts/intel/io/dnet/dnet_mii.c
278
(void) mii_sync(mac, phy);
usr/src/uts/intel/io/dnet/dnet_mii.c
280
if (ddi_getprop(DDI_DEV_T_NONE, mac->mii_dip, DDI_PROP_DONTPASS,
usr/src/uts/intel/io/dnet/dnet_mii.c
282
(void) mii_dump_phy(mac, phy);
usr/src/uts/intel/io/dnet/dnet_mii.c
292
mii_reset_phy(mii_handle_t mac, int phy, enum mii_wait_type wait)
usr/src/uts/intel/io/dnet/dnet_mii.c
297
if (!(phyd = mii_get_valid_phydata(mac, phy)))
usr/src/uts/intel/io/dnet/dnet_mii.c
301
mac->mii_write(mac->mii_dip, phy, MII_CONTROL,
usr/src/uts/intel/io/dnet/dnet_mii.c
313
control = mac->mii_read(mac->mii_dip, phy, MII_CONTROL);
usr/src/uts/intel/io/dnet/dnet_mii.c
324
control = mac->mii_read(mac->mii_dip, phy, MII_CONTROL);
usr/src/uts/intel/io/dnet/dnet_mii.c
337
(void) mii_sync(mac, phy);
usr/src/uts/intel/io/dnet/dnet_mii.c
352
mii_sync(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
354
struct phydata *phyd = mac->phys[phy];
usr/src/uts/intel/io/dnet/dnet_mii.c
371
if (ddi_getlongprop(DDI_DEV_T_ANY, mac->mii_dip,
usr/src/uts/intel/io/dnet/dnet_mii.c
376
mac->mii_write(mac->mii_dip, phy,
usr/src/uts/intel/io/dnet/dnet_mii.c
386
mac->mii_write(mac->mii_dip, phy, MII_CONTROL, phyd->control);
usr/src/uts/intel/io/dnet/dnet_mii.c
388
phyd->phy_postreset(mac, phy);
usr/src/uts/intel/io/dnet/dnet_mii.c
391
(void) mii_fixspeed(mac, phy, phyd->fix_speed,
usr/src/uts/intel/io/dnet/dnet_mii.c
405
mii_disable_fullduplex(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
407
void *dip = mac->mii_dip;
usr/src/uts/intel/io/dnet/dnet_mii.c
413
if (!(mac->mii_read(dip, phy, MII_STATUS) & MII_STATUS_CANAUTONEG)) {
usr/src/uts/intel/io/dnet/dnet_mii.c
423
miiadvert = mac->mii_read(dip, phy, MII_AN_ADVERT);
usr/src/uts/intel/io/dnet/dnet_mii.c
425
mac->mii_write(dip, phy, MII_AN_ADVERT,
usr/src/uts/intel/io/dnet/dnet_mii.c
430
expansion = mac->mii_read(dip, phy, MII_AN_EXPANSION);
usr/src/uts/intel/io/dnet/dnet_mii.c
439
return (mii_rsan(mac, phy, mii_wait_none));
usr/src/uts/intel/io/dnet/dnet_mii.c
449
mii_autoneg_enab(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
452
if (!(phyd = mii_get_valid_phydata(mac, phy)))
usr/src/uts/intel/io/dnet/dnet_mii.c
455
mac->mii_write(mac->mii_dip, phy, MII_CONTROL, phyd->control);
usr/src/uts/intel/io/dnet/dnet_mii.c
463
mii_linkup(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
471
mac->mii_read(mac->mii_dip, phy, MII_STATUS);
usr/src/uts/intel/io/dnet/dnet_mii.c
472
status = mac->mii_read(mac->mii_dip, phy, MII_STATUS);
usr/src/uts/intel/io/dnet/dnet_mii.c
486
mii_getspeed(mii_handle_t mac, int phy, int *speed, int *fulld)
usr/src/uts/intel/io/dnet/dnet_mii.c
490
if (!(phyd = mii_get_valid_phydata(mac, phy)))
usr/src/uts/intel/io/dnet/dnet_mii.c
506
return (phyd->phy_getspeed(mac, phy, speed, fulld));
usr/src/uts/intel/io/dnet/dnet_mii.c
514
mii_fixspeed(mii_handle_t mac, int phy, int speed, int fullduplex)
usr/src/uts/intel/io/dnet/dnet_mii.c
520
ddi_get_name(mac->mii_dip), speed,
usr/src/uts/intel/io/dnet/dnet_mii.c
524
if (!(phyd = mii_get_valid_phydata(mac, phy)))
usr/src/uts/intel/io/dnet/dnet_mii.c
534
ddi_get_name(mac->mii_dip), speed);
usr/src/uts/intel/io/dnet/dnet_mii.c
541
mac->mii_write(mac->mii_dip, phy, MII_CONTROL, phyd->control);
usr/src/uts/intel/io/dnet/dnet_mii.c
551
mii_isolate(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
555
if (!(phyd = mii_get_valid_phydata(mac, phy)))
usr/src/uts/intel/io/dnet/dnet_mii.c
559
mac->mii_write(mac->mii_dip, phy, MII_CONTROL, phyd->control);
usr/src/uts/intel/io/dnet/dnet_mii.c
567
mii_unisolate(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
571
if (!(phyd = mii_get_valid_phydata(mac, phy)))
usr/src/uts/intel/io/dnet/dnet_mii.c
575
mac->mii_write(mac->mii_dip, phy, MII_CONTROL, phyd->control);
usr/src/uts/intel/io/dnet/dnet_mii.c
584
mii_rsan(mii_handle_t mac, int phy, enum mii_wait_type wait)
usr/src/uts/intel/io/dnet/dnet_mii.c
591
!(phyd = mii_get_valid_phydata(mac, phy)))
usr/src/uts/intel/io/dnet/dnet_mii.c
597
dip = mac->mii_dip;
usr/src/uts/intel/io/dnet/dnet_mii.c
600
mac->mii_write(dip, phy, MII_CONTROL, phyd->control|MII_CONTROL_RSAN);
usr/src/uts/intel/io/dnet/dnet_mii.c
61
static struct phydata *mii_get_valid_phydata(mii_handle_t mac, int phy);
usr/src/uts/intel/io/dnet/dnet_mii.c
611
if (mac->mii_read(dip, phy, MII_STATUS) &
usr/src/uts/intel/io/dnet/dnet_mii.c
617
ddi_get_name(mac->mii_dip));
usr/src/uts/intel/io/dnet/dnet_mii.c
62
static void mii_portmon(mii_handle_t mac);
usr/src/uts/intel/io/dnet/dnet_mii.c
627
mii_dump_phy(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
644
if (!(phydat = mii_get_valid_phydata(mac, phy)))
usr/src/uts/intel/io/dnet/dnet_mii.c
647
cmn_err(CE_NOTE, "%s: PHY %d, type %s", ddi_get_name(mac->mii_dip), phy,
usr/src/uts/intel/io/dnet/dnet_mii.c
652
miiregs[i], mac->mii_read(mac->mii_dip, phy, i));
usr/src/uts/intel/io/dnet/dnet_mii.c
655
phydat->phy_dump((struct mii_info *)mac, phy);
usr/src/uts/intel/io/dnet/dnet_mii.c
666
mii_start_portmon(mii_handle_t mac, mii_linkfunc_t notify, kmutex_t *lock)
usr/src/uts/intel/io/dnet/dnet_mii.c
668
if (mac->mii_linknotify || mac->portmon_timer)
usr/src/uts/intel/io/dnet/dnet_mii.c
670
mac->mii_linknotify = notify;
usr/src/uts/intel/io/dnet/dnet_mii.c
675
mac->lock = NULL; /* portmon wont try to aquire any lock this time */
usr/src/uts/intel/io/dnet/dnet_mii.c
676
mii_portmon(mac);
usr/src/uts/intel/io/dnet/dnet_mii.c
677
mac->lock = lock;
usr/src/uts/intel/io/dnet/dnet_mii.c
682
mii_stop_portmon(mii_handle_t mac)
usr/src/uts/intel/io/dnet/dnet_mii.c
684
if (!mac->mii_linknotify || !mac->portmon_timer)
usr/src/uts/intel/io/dnet/dnet_mii.c
687
mac->mii_linknotify = NULL;
usr/src/uts/intel/io/dnet/dnet_mii.c
688
mac->lock = NULL;
usr/src/uts/intel/io/dnet/dnet_mii.c
689
(void) untimeout(mac->portmon_timer);
usr/src/uts/intel/io/dnet/dnet_mii.c
690
mac->portmon_timer = 0;
usr/src/uts/intel/io/dnet/dnet_mii.c
695
mii_portmon(mii_handle_t mac)
usr/src/uts/intel/io/dnet/dnet_mii.c
705
if (!mac->mii_linknotify) /* Exiting */
usr/src/uts/intel/io/dnet/dnet_mii.c
708
if (mac->lock)
usr/src/uts/intel/io/dnet/dnet_mii.c
709
mutex_enter(mac->lock);
usr/src/uts/intel/io/dnet/dnet_mii.c
71
static void postreset_ICS1890(mii_handle_t mac, int phy);
usr/src/uts/intel/io/dnet/dnet_mii.c
716
if ((phydata = mac->phys[i]) != 0) {
usr/src/uts/intel/io/dnet/dnet_mii.c
717
state = mii_linkup(mac, i) ?
usr/src/uts/intel/io/dnet/dnet_mii.c
72
static void postreset_NS83840(mii_handle_t mac, int phy);
usr/src/uts/intel/io/dnet/dnet_mii.c
723
ddi_get_name(mac->mii_dip), i,
usr/src/uts/intel/io/dnet/dnet_mii.c
728
mac->mii_linknotify(mac->mii_dip, i, state);
usr/src/uts/intel/io/dnet/dnet_mii.c
733
mac->portmon_timer = timeout((void (*)(void*))mii_portmon, (void *)mac,
usr/src/uts/intel/io/dnet/dnet_mii.c
735
if (mac->lock)
usr/src/uts/intel/io/dnet/dnet_mii.c
736
mutex_exit(mac->lock);
usr/src/uts/intel/io/dnet/dnet_mii.c
744
mii_destroy(mii_handle_t mac)
usr/src/uts/intel/io/dnet/dnet_mii.c
749
(void) mii_stop_portmon(mac);
usr/src/uts/intel/io/dnet/dnet_mii.c
752
if (mac->phys[i])
usr/src/uts/intel/io/dnet/dnet_mii.c
753
kmem_free(mac->phys[i], sizeof (struct phydata));
usr/src/uts/intel/io/dnet/dnet_mii.c
755
kmem_free(mac, sizeof (*mac));
usr/src/uts/intel/io/dnet/dnet_mii.c
764
mii_get_valid_phydata(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
766
if (!mac || phy > 31 || phy < 0 || !mac->phys[phy]) {
usr/src/uts/intel/io/dnet/dnet_mii.c
770
return (mac->phys[phy]);
usr/src/uts/intel/io/dnet/dnet_mii.c
778
dump_NS83840(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
783
dip = mac->mii_dip;
usr/src/uts/intel/io/dnet/dnet_mii.c
785
mac->mii_read(dip, phy, 0x12));
usr/src/uts/intel/io/dnet/dnet_mii.c
787
mac->mii_read(dip, phy, 0x13));
usr/src/uts/intel/io/dnet/dnet_mii.c
789
mac->mii_read(dip, phy, 0x15));
usr/src/uts/intel/io/dnet/dnet_mii.c
791
mac->mii_read(dip, phy, 0x16));
usr/src/uts/intel/io/dnet/dnet_mii.c
793
mac->mii_read(dip, phy, 0x17));
usr/src/uts/intel/io/dnet/dnet_mii.c
796
mac->mii_read(dip, phy, 0x18));
usr/src/uts/intel/io/dnet/dnet_mii.c
798
mac->mii_read(dip, phy, 0x19)&0xf);
usr/src/uts/intel/io/dnet/dnet_mii.c
800
reg = mac->mii_read(dip, phy, 0x1b);
usr/src/uts/intel/io/dnet/dnet_mii.c
813
getspeed_NS83840(mii_handle_t mac, int phy, int *speed, int *fulld)
usr/src/uts/intel/io/dnet/dnet_mii.c
815
int exten = mac->mii_read(mac->mii_dip, phy, MII_AN_EXPANSION);
usr/src/uts/intel/io/dnet/dnet_mii.c
823
lpable = mac->mii_read(mac->mii_dip, phy, MII_AN_LPABLE);
usr/src/uts/intel/io/dnet/dnet_mii.c
824
anadv = mac->mii_read(mac->mii_dip, phy, MII_AN_ADVERT);
usr/src/uts/intel/io/dnet/dnet_mii.c
844
int addr = mac->mii_read(mac->mii_dip, phy, MII_83840_ADDR);
usr/src/uts/intel/io/dnet/dnet_mii.c
857
getspeed_82553(mii_handle_t mac, int phy, int *speed, int *fulld)
usr/src/uts/intel/io/dnet/dnet_mii.c
859
int ex0 = mac->mii_read(mac->mii_dip, phy, MII_82553_EX0);
usr/src/uts/intel/io/dnet/dnet_mii.c
870
getspeed_ICS1890(mii_handle_t mac, int phy, int *speed, int *fulld)
usr/src/uts/intel/io/dnet/dnet_mii.c
872
ushort_t quickpoll = mac->mii_read(mac->mii_dip, phy, ICS_QUICKPOLL);
usr/src/uts/intel/io/dnet/dnet_mii.c
879
dump_ICS1890(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
88
mii_handle_t mac;
usr/src/uts/intel/io/dnet/dnet_mii.c
881
ushort_t quickpoll = mac->mii_read(mac->mii_dip, phy, ICS_QUICKPOLL);
usr/src/uts/intel/io/dnet/dnet_mii.c
889
postreset_NS83840(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
892
struct phydata *phyd = mac->phys[phy];
usr/src/uts/intel/io/dnet/dnet_mii.c
902
reg = mac->mii_read(mac->mii_dip, phy, 23) | (1<<10) | (1<<5);
usr/src/uts/intel/io/dnet/dnet_mii.c
903
mac->mii_write(mac->mii_dip, phy, 23, reg);
usr/src/uts/intel/io/dnet/dnet_mii.c
91
if ((mac = (mii_handle_t)
usr/src/uts/intel/io/dnet/dnet_mii.c
922
mac->mii_read(mac->mii_dip, phy, MII_AN_ADVERT));
usr/src/uts/intel/io/dnet/dnet_mii.c
924
mac->mii_write(mac->mii_dip, phy, MII_AN_ADVERT, 0x1e1);
usr/src/uts/intel/io/dnet/dnet_mii.c
929
postreset_ICS1890(mii_handle_t mac, int phy)
usr/src/uts/intel/io/dnet/dnet_mii.c
932
(void) mii_unisolate(mac, phy);
usr/src/uts/intel/io/dnet/dnet_mii.c
939
getspeed_generic(mii_handle_t mac, int phy, int *speed, int *fulld)
usr/src/uts/intel/io/dnet/dnet_mii.c
941
int exten = mac->mii_read(mac->mii_dip, phy, MII_AN_EXPANSION);
usr/src/uts/intel/io/dnet/dnet_mii.c
949
lpable = mac->mii_read(mac->mii_dip, phy, MII_AN_LPABLE);
usr/src/uts/intel/io/dnet/dnet_mii.c
95
mac->mii_write = writefunc;
usr/src/uts/intel/io/dnet/dnet_mii.c
950
anadv = mac->mii_read(mac->mii_dip, phy, MII_AN_ADVERT);
usr/src/uts/intel/io/dnet/dnet_mii.c
96
mac->mii_read = readfunc;
usr/src/uts/intel/io/dnet/dnet_mii.c
97
mac->mii_dip = dip;
usr/src/uts/intel/io/dnet/dnet_mii.c
98
*macp = mac;
usr/src/uts/intel/io/dnet/dnet_mii.h
112
int mii_start_portmon(mii_handle_t mac, mii_linkfunc_t func, kmutex_t *lock);
usr/src/uts/intel/io/dnet/dnet_mii.h
115
int mii_stop_portmon(mii_handle_t mac);
usr/src/uts/intel/io/dnet/dnet_mii.h
118
void mii_destroy(mii_handle_t mac);
usr/src/uts/intel/io/dnet/dnet_mii.h
82
int mii_rsan(mii_handle_t mac, int phy, enum mii_wait_type wait_type);
usr/src/uts/intel/io/dnet/dnet_mii.h
88
int mii_autoneg_enab(mii_handle_t mac, int phy);
usr/src/uts/intel/io/vmxnet3s/vmxnet3.h
121
mac_handle_t mac;
usr/src/uts/intel/io/vmxnet3s/vmxnet3.h
219
#define MACADDR_FMT_ARGS(mac) mac[0], mac[1], mac[2], mac[3], mac[4], mac[5]
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
1163
mac_link_update(dp->mac, dp->linkState);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
1166
mac_tx_update(dp->mac);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
1169
mac_rx(dp->mac, NULL, mps);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
1361
ret = mac_register(macr, &dp->mac);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
1476
(void) mac_unregister(dp->mac);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
1536
VERIFY(mac_unregister(dp->mac) == 0);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
601
mac_link_update(dp->mac, dp->linkState);
usr/src/uts/intel/io/vmxnet3s/vmxnet3_main.c
838
if ((ret = mac_maxsdu_update(dp->mac, new_mtu)) != 0)