| /openbsd/src/sys/dev/isa/ |
| D | if_le_isa.c | 102 if (bcmp(lesc->sc_am7990.lsc.sc_arpcom.ac_enaddr, bogusether, in le_isa_probe() 178 for (i = 0; i < sizeof(sc->sc_arpcom.ac_enaddr); i++) in depca_isa_probe() 179 sc->sc_arpcom.ac_enaddr[i] = bus_space_read_1(iot, ioh, port); in depca_isa_probe() 183 (sc->sc_arpcom.ac_enaddr[0] << 2) + in depca_isa_probe() 184 (sc->sc_arpcom.ac_enaddr[1] << 10) + in depca_isa_probe() 185 (sc->sc_arpcom.ac_enaddr[2] << 1) + in depca_isa_probe() 186 (sc->sc_arpcom.ac_enaddr[3] << 9) + in depca_isa_probe() 187 (sc->sc_arpcom.ac_enaddr[4] << 0) + in depca_isa_probe() 188 (sc->sc_arpcom.ac_enaddr[5] << 8); in depca_isa_probe() 236 for (i = 0; i < sizeof(sc->sc_arpcom.ac_enaddr); i++) in ne2100_isa_probe() [all …]
|
| D | if_ef_isapnp.c | 69 struct arpcom sc_arpcom; member 146 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in ef_isapnp_attach() 171 sc->sc_arpcom.ac_enaddr[(i << 1)] = x >> 8; in ef_isapnp_attach() 172 sc->sc_arpcom.ac_enaddr[(i << 1) + 1] = x; in ef_isapnp_attach() 175 printf(": address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr)); in ef_isapnp_attach() 351 error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data); in efioctl() 369 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in efinit() 384 sc->sc_arpcom.ac_enaddr[i]); in efinit() 451 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in efstop() 493 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in efintr() [all …]
|
| D | if_el.c | 63 struct arpcom sc_arpcom; /* ethernet common */ member 147 bcopy(station_addr, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); in elprobe() 164 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in elattach() 185 printf(": address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr)); in elattach() 233 outb(iobase+i, sc->sc_arpcom.ac_enaddr[i]); in el_hardreset() 242 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in elinit() 439 if (sc->sc_arpcom.ac_if.if_flags & IFF_PROMISC) in elintr() 475 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in elread() 591 error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data); in elioctl() 607 sc->sc_arpcom.ac_if.if_oerrors++; in elwatchdog()
|
| D | if_ie.c | 214 struct arpcom sc_arpcom; member 717 sc->sc_arpcom.ac_enaddr[1] = eaddrtemp & 0xFF; in ee16_probe() 718 sc->sc_arpcom.ac_enaddr[0] = eaddrtemp >> 8; in ee16_probe() 720 sc->sc_arpcom.ac_enaddr[3] = eaddrtemp & 0xFF; in ee16_probe() 721 sc->sc_arpcom.ac_enaddr[2] = eaddrtemp >> 8; in ee16_probe() 723 sc->sc_arpcom.ac_enaddr[5] = eaddrtemp & 0xFF; in ee16_probe() 724 sc->sc_arpcom.ac_enaddr[4] = eaddrtemp >> 8; in ee16_probe() 755 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in ieattach() 770 ether_sprintf(sc->sc_arpcom.ac_enaddr), in ieattach() 787 ++sc->sc_arpcom.ac_if.if_oerrors; in iewatchdog() [all …]
|
| D | if_eg.c | 86 struct arpcom sc_arpcom; /* Ethernet common part */ member 349 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in egattach() 377 bcopy(&sc->eg_pcb[2], sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); in egattach() 381 ether_sprintf(sc->sc_arpcom.ac_enaddr)); in egattach() 421 register struct ifnet *ifp = &sc->sc_arpcom.ac_if; in eginit() 611 sc->sc_arpcom.ac_if.if_oerrors++; in egintr() 613 sc->sc_arpcom.ac_if.if_collisions += in egintr() 615 ifq_clr_oactive(&sc->sc_arpcom.ac_if.if_snd); in egintr() 616 egstart(&sc->sc_arpcom.ac_if); in egintr() 651 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in egread() [all …]
|
| /openbsd/src/sys/dev/pci/ |
| D | if_stge.c | 154 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in stge_attach() 301 sc->sc_arpcom.ac_enaddr[0] = CSR_READ_2(sc, in stge_attach() 303 sc->sc_arpcom.ac_enaddr[1] = CSR_READ_2(sc, in stge_attach() 305 sc->sc_arpcom.ac_enaddr[2] = CSR_READ_2(sc, in stge_attach() 307 sc->sc_arpcom.ac_enaddr[3] = CSR_READ_2(sc, in stge_attach() 309 sc->sc_arpcom.ac_enaddr[4] = CSR_READ_2(sc, in stge_attach() 311 sc->sc_arpcom.ac_enaddr[5] = CSR_READ_2(sc, in stge_attach() 321 (void)memcpy(sc->sc_arpcom.ac_enaddr, myaddr, in stge_attach() 322 sizeof(sc->sc_arpcom.ac_enaddr)); in stge_attach() 326 printf(", address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr)); in stge_attach() [all …]
|
| D | if_hme_pci.c | 178 bcopy(buf + 6, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); in hme_pci_enaddr() 179 sc->sc_arpcom.ac_enaddr[5] += hpa->pa_device; in hme_pci_enaddr() 261 sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN) <= 0) in hmeattach_pci() 262 myetheraddr(sc->sc_arpcom.ac_enaddr); in hmeattach_pci() 268 pci_ether_hw_addr(pa->pa_pc, sc->sc_arpcom.ac_enaddr); in hmeattach_pci()
|
| D | if_cas.c | 139 #define DPRINTF(sc, x) if ((sc)->sc_arpcom.ac_if.if_flags & IFF_DEBUG) \ 274 bcopy(desc, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); in cas_pci_enaddr() 275 sc->sc_arpcom.ac_enaddr[5] += pa->pa_device; in cas_pci_enaddr() 325 sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN) <= 0) in cas_attach() 326 myetheraddr(sc->sc_arpcom.ac_enaddr); in cas_attach() 332 pci_ether_hw_addr(pa->pa_pc, sc->sc_arpcom.ac_enaddr); in cas_attach() 372 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in cas_config() 479 printf(", address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr)); in cas_config() 615 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in cas_tick() 1102 ((sc->sc_arpcom.ac_enaddr[5]<<8)|sc->sc_arpcom.ac_enaddr[4])&0x3ff); in cas_init_regs() [all …]
|
| D | if_gem_pci.c | 172 bcopy(buf + 6, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); in gem_pci_enaddr() 251 sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN) <= 0) in gem_attach_pci() 252 myetheraddr(sc->sc_arpcom.ac_enaddr); in gem_attach_pci() 258 pci_ether_hw_addr(pa->pa_pc, sc->sc_arpcom.ac_enaddr); in gem_attach_pci()
|
| /openbsd/src/sys/dev/ic/ |
| D | dc.c | 892 struct arpcom *ac = &sc->sc_arpcom; in dc_setfilt_21143() 893 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in dc_setfilt_21143() 942 sp[39] = DC_SP_FIELD(sc->sc_arpcom.ac_enaddr, 0); in dc_setfilt_21143() 943 sp[40] = DC_SP_FIELD(sc->sc_arpcom.ac_enaddr, 1); in dc_setfilt_21143() 944 sp[41] = DC_SP_FIELD(sc->sc_arpcom.ac_enaddr, 2); in dc_setfilt_21143() 974 struct arpcom *ac = &sc->sc_arpcom; in dc_setfilt_admtek() 975 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in dc_setfilt_admtek() 1021 struct arpcom *ac = &sc->sc_arpcom; in dc_setfilt_asix() 1022 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in dc_setfilt_asix() 1062 *(u_int32_t *)(&sc->sc_arpcom.ac_enaddr[0])); in dc_setfilt_asix() [all …]
|
| D | elink3.c | 251 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in epconfig() 272 sc->sc_arpcom.ac_enaddr[(i << 1)] = x >> 8; in epconfig() 273 sc->sc_arpcom.ac_enaddr[(i << 1) + 1] = x; in epconfig() 276 bcopy(enaddr, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); in epconfig() 279 printf(" address %s", ether_sprintf(sc->sc_arpcom.ac_enaddr)); in epconfig() 427 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in ep_detach() 570 register struct ifnet *ifp = &sc->sc_arpcom.ac_if; in epinit() 594 sc->sc_arpcom.ac_enaddr[i]); in epinit() 675 register struct ifnet *ifp = &sc->sc_arpcom.ac_if; in epsetfilter() 1104 if (sc->sc_arpcom.ac_if.if_flags & IFF_DEBUG) in epstatus() [all …]
|
| D | smc91cxx.c | 186 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in smc91cxx_attach() 221 sc->sc_arpcom.ac_enaddr[i + 1] = (tmp >>8) & 0xff; in smc91cxx_attach() 222 sc->sc_arpcom.ac_enaddr[i] = tmp & 0xff; in smc91cxx_attach() 225 bcopy(myea, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); in smc91cxx_attach() 228 printf(": address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr)); in smc91cxx_attach() 393 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in smc91cxx_init() 420 sc->sc_arpcom.ac_enaddr[i]); in smc91cxx_init() 697 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in smc91cxx_intr() 887 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in smc91cxx_read() 1043 error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data); in smc91cxx_ioctl() [all …]
|
| D | rtl81x9.c | 441 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in rl_iff() 444 struct arpcom *ac = &sc->sc_arpcom; in rl_iff() 558 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in rl_rxeof() 690 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in rl_txeof() 749 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in rl_intr() 904 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in rl_init() 924 (u_int8_t *)(&sc->sc_arpcom.ac_enaddr[0])); in rl_init() 926 (u_int8_t *)(&sc->sc_arpcom.ac_enaddr[4])); in rl_init() 1036 error = ether_ioctl(ifp, &sc->sc_arpcom, command, data); in rl_ioctl() 1068 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in rl_stop() [all …]
|
| D | dp8390.c | 79 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in dp8390_config() 123 printf(", address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr)); in dp8390_config() 223 ++sc->sc_arpcom.ac_if.if_oerrors; in dp8390_watchdog() 236 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in dp8390_init() 313 sc->sc_arpcom.ac_enaddr[i]); in dp8390_init() 316 dp8390_getmcaf(&sc->sc_arpcom, mcaf); in dp8390_init() 372 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in dp8390_xmit() 486 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in dp8390_rint() 616 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in dp8390_intr() 847 error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data); in dp8390_ioctl() [all …]
|
| D | gem.c | 119 #define DPRINTF(sc, x) if ((sc)->sc_arpcom.ac_if.if_flags & IFF_DEBUG) \ 131 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in gem_config() 211 printf(", address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr)); in gem_config() 386 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in gem_unconfig() 422 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in gem_tick() 889 ((sc->sc_arpcom.ac_enaddr[5]<<8)|sc->sc_arpcom.ac_enaddr[4])&0x3ff); in gem_init_regs() 948 (sc->sc_arpcom.ac_enaddr[4]<<8) | sc->sc_arpcom.ac_enaddr[5]); in gem_init_regs() 950 (sc->sc_arpcom.ac_enaddr[2]<<8) | sc->sc_arpcom.ac_enaddr[3]); in gem_init_regs() 952 (sc->sc_arpcom.ac_enaddr[0]<<8) | sc->sc_arpcom.ac_enaddr[1]); in gem_init_regs() 961 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in gem_rint() [all …]
|
| D | hme.c | 104 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in hme_config() 209 printf(", address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr)); in hme_config() 298 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in hme_unconfig() 325 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in hme_tick() 374 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in hme_stop() 495 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in hme_init() 528 ea = sc->sc_arpcom.ac_enaddr; in hme_init() 746 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in hme_tint() 800 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in hme_rint() 858 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in hme_eint() [all …]
|
| D | i82596.c | 273 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in i82596_attach() 463 sc->sc_arpcom.ac_if.if_ierrors += in i82596_count_errors() 649 sc->sc_arpcom.ac_if.if_ierrors++; 699 sc->sc_arpcom.ac_if.if_ierrors++; 705 sc->sc_arpcom.ac_if.if_ierrors++; 722 register struct ifnet *ifp = &sc->sc_arpcom.ac_if; 779 sc->sc_arpcom.ac_if.if_collisions += 16; 1081 struct ifnet *ifp = &sc->sc_arpcom.ac_if; 1096 sc->sc_arpcom.ac_if.if_ierrors++; 1194 sc->sc_arpcom.ac_if.if_timer = 5; [all …]
|
| D | lance.c | 169 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in lance_config() 231 printf(": address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr)); in lance_config() 276 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in lance_init() 407 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in lance_read() 439 if (ETHER_CMP(eh->ether_dhost, sc->sc_arpcom.ac_enaddr) && in lance_read() 450 if (!ETHER_CMP(eh->ether_shost, sc->sc_arpcom.ac_enaddr)) { in lance_read() 541 error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data); in lance_ioctl()
|
| D | am79900.c | 176 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in am79900_meminit() 198 memcpy(sc->sc_enaddr, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); in am79900_meminit() 204 lance_setladrf(&sc->sc_arpcom, init.init_ladrf); in am79900_meminit() 247 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in am79900_rint() 326 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in am79900_tint() 408 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in am79900_intr()
|
| D | am7990.c | 143 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in am7990_meminit() 162 memcpy(sc->sc_enaddr, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); in am7990_meminit() 168 lance_setladrf(&sc->sc_arpcom, init.init_ladrf); in am7990_meminit() 215 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in am7990_rint() 296 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in am7990_tint() 381 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in am7990_intr()
|
| /openbsd/src/sys/arch/macppc/dev/ |
| D | if_mc.c | 265 struct arpcom sc_arpcom; /* Ethernet common part */ member 352 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in mc_attach() 449 bcopy(sc->sc_enaddr, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); in mc_attach() 524 err = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data); in mc_ioctl() 588 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in mc_init() 658 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in mc_stop() 692 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in mc_intr() 736 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in mc_tint() 782 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in mc_rint() 831 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in maceput() [all …]
|
| /openbsd/src/sys/dev/usb/ |
| D | if_urndisreg.h | 40 #define GET_IFP(sc) (&(sc)->sc_arpcom.ac_if) 45 struct arpcom sc_arpcom; member
|
| /openbsd/src/sys/dev/sbus/ |
| D | qe.c | 106 struct arpcom sc_arpcom; member 174 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in qeattach() 224 myetheraddr(sc->sc_arpcom.ac_enaddr); in qeattach() 298 printf(" address %s\n", ether_sprintf(sc->sc_arpcom.ac_enaddr)); in qeattach() 385 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in qe_read() 597 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in qe_tint() 688 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in qe_eint() 903 error = ether_ioctl(ifp, &sc->sc_arpcom, cmd, data); in qeioctl() 920 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in qeinit() 986 ea = sc->sc_arpcom.ac_enaddr; in qeinit() [all …]
|
| /openbsd/src/sys/dev/pcmcia/ |
| D | if_xe.c | 119 struct arpcom sc_arpcom; /* Ethernet common part */ member 344 ifp = &sc->sc_arpcom.ac_if; in xe_pcmcia_attach() 346 bcopy(enaddr, sc->sc_arpcom.ac_enaddr, ETHER_ADDR_LEN); in xe_pcmcia_attach() 369 ether_sprintf(sc->sc_arpcom.ac_enaddr)); in xe_pcmcia_attach() 426 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in xe_pcmcia_detach() 445 struct ifnet *ifp = &sc->sc_xe.sc_arpcom.ac_if; in xe_pcmcia_activate() 614 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in xe_intr() 733 struct ifnet *ifp = &sc->sc_arpcom.ac_if; in xe_get() 985 ++sc->sc_arpcom.ac_if.if_oerrors; in xe_watchdog() 1006 sc->sc_arpcom.ac_if.if_timer = 0; in xe_stop() [all …]
|
| /openbsd/src/sys/dev/dec/ |
| D | if_le_dec.c | 88 for (i = 0; i < sizeof(lsc->sc_arpcom.ac_enaddr); i++) { in dec_le_common_attach() 89 lsc->sc_arpcom.ac_enaddr[i] = *eap; in dec_le_common_attach()
|