Home
last modified time | relevance | path

Searched refs:sc_arpcom (Results 1 – 25 of 95) sorted by relevance

1234

/openbsd/src/sys/dev/isa/
Dif_le_isa.c102 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 …]
Dif_ef_isapnp.c69 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 …]
Dif_el.c63 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()
Dif_ie.c214 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 …]
Dif_eg.c86 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/
Dif_stge.c154 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 …]
Dif_hme_pci.c178 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()
Dif_cas.c139 #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 …]
Dif_gem_pci.c172 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/
Ddc.c892 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 …]
Delink3.c251 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 …]
Dsmc91cxx.c186 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 …]
Drtl81x9.c441 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 …]
Ddp8390.c79 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 …]
Dgem.c119 #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 …]
Dhme.c104 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 …]
Di82596.c273 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 …]
Dlance.c169 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()
Dam79900.c176 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()
Dam7990.c143 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/
Dif_mc.c265 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/
Dif_urndisreg.h40 #define GET_IFP(sc) (&(sc)->sc_arpcom.ac_if)
45 struct arpcom sc_arpcom; member
/openbsd/src/sys/dev/sbus/
Dqe.c106 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/
Dif_xe.c119 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/
Dif_le_dec.c88 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()

1234