Home
last modified time | relevance | path

Searched refs:arpcom (Results 1 – 25 of 202) sorted by relevance

123456789

/openbsd-src/sys/net/
H A Dif_ethersubr.c172 ether_ioctl(struct ifnet *ifp, struct arpcom *arp, u_long cmd, caddr_t data) in ether_ioctl()
230 struct arpcom *ac = (struct arpcom *)ifp; in ether_resolve()
407 struct arpcom *ac; in ether_input()
450 ac = (struct arpcom *)ifp; in ether_input()
607 struct arpcom *ac = (struct arpcom *)ifp; in ether_brport_set()
619 struct arpcom *ac = (struct arpcom *)ifp; in ether_brport_clr()
631 struct arpcom *a in ether_brport_get()
[all...]
H A Dif_trunk.c60 void trunk_lladdr(struct arpcom *, u_int8_t *);
237 trunk_lladdr(struct arpcom *ac, u_int8_t *lladdr) in trunk_lladdr()
276 trunk_lladdr((struct arpcom *)ifp, lladdr); in trunk_port_lladdr()
287 struct arpcom *ac0; in trunk_port_create()
302 ac0 = (struct arpcom *)ifp; in trunk_port_create()
351 bcopy(((struct arpcom *)ifp)->ac_enaddr, tp->tp_lladdr, ETHER_ADDR_LEN); in trunk_port_create()
365 ((struct arpcom *)(tr->tr_primary->tp_if))->ac_enaddr); in trunk_port_create()
416 struct arpcom *ac0 = (struct arpcom *)ifp; in trunk_port_destroy()
451 bcopy(((struct arpcom *)tp_ptr->tp_if)->ac_enaddr, in trunk_port_destroy()
1147 struct arpcom *ac0 = (struct arpcom *)ifp; in trunk_input()
/openbsd-src/sys/dev/isa/
H A Dif_ex.c77 struct arpcom arpcom; /* Ethernet common data */ member
208 sc->arpcom.ac_enaddr[5] = eaddr_tmp & 0xff; in ex_probe()
209 sc->arpcom.ac_enaddr[4] = eaddr_tmp >> 8; in ex_probe()
211 sc->arpcom.ac_enaddr[3] = eaddr_tmp & 0xff; in ex_probe()
212 sc->arpcom.ac_enaddr[2] = eaddr_tmp >> 8; in ex_probe()
214 sc->arpcom.ac_enaddr[1] = eaddr_tmp & 0xff; in ex_probe()
215 sc->arpcom.ac_enaddr[0] = eaddr_tmp >> 8; in ex_probe()
243 struct ifnet *ifp = &sc->arpcom.ac_if; in ex_attach()
277 ether_sprintf(sc->arpcom.ac_enaddr)); in ex_attach()
289 struct ifnet *ifp = &sc->arpcom.ac_if; in ex_init()
[all …]
/openbsd-src/sys/dev/pci/
H A Dif_sis.c329 u_int16_t *enaddr = (u_int16_t *) &sc->arpcom.ac_enaddr; in sis_read_mac()
359 sis_read_eeprom(sc, (caddr_t)&sc->arpcom.ac_enaddr, in sis_read96x_mac()
664 struct ifnet *ifp = &sc->arpcom.ac_if; in sis_miibus_statchg()
781 struct ifnet *ifp = &sc->arpcom.ac_if; in sis_iff_ns()
782 struct arpcom *ac = &sc->arpcom; in sis_iff_ns()
854 struct ifnet *ifp = &sc->arpcom.ac_if; in sis_iff_sis()
855 struct arpcom *ac = &sc->arpcom; in sis_iff_sis()
1084 bcopy(&tmp[1], sc->arpcom in sis_attach()
[all...]
H A Dif_ste.c493 struct ifnet *ifp = &sc->arpcom.ac_if; in ste_iff()
494 struct arpcom *ac = &sc->arpcom; in ste_iff()
552 ifp = &sc->arpcom.ac_if; in ste_intr()
632 ifp = &sc->arpcom.ac_if; in ste_rxeof()
701 ifp = &sc->arpcom.ac_if; in ste_txeoc()
737 ifp = &sc->arpcom.ac_if; in ste_txeof()
769 ifp = &sc->arpcom.ac_if; in ste_stats_update()
876 if (ste_read_eeprom(sc, (caddr_t)&sc->arpcom.ac_enaddr, in ste_attach()
882 printf(", address %s\n", ether_sprintf(sc->arpcom.ac_enaddr)); in ste_attach()
894 ifp = &sc->arpcom.ac_if; in ste_attach()
[all …]
H A Dif_lge.c306 struct arpcom *ac = &sc->arpcom; in lge_setmulti()
457 bcopy(eaddr, &sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); in lge_attach()
491 ifp = &sc->arpcom.ac_if; in lge_attach()
684 ifp = &sc->arpcom.ac_if; in lge_rxeof()
761 ifp = &sc->arpcom.ac_if; in lge_txeof()
798 struct ifnet *ifp = &sc->arpcom.ac_if; in lge_tick()
832 ifp = &sc->arpcom.ac_if; in lge_intr()
990 struct ifnet *ifp = &sc->arpcom.ac_if; in lge_init()
1002 CSR_WRITE_4(sc, LGE_PAR0, *(u_int32_t *)(&sc->arpcom in lge_init()
[all...]
H A Dif_wb.c500 struct arpcom *ac = &sc->arpcom; in wb_setmulti()
506 ifp = &sc->arpcom.ac_if; in wb_setmulti()
673 struct ifnet *ifp = &sc->arpcom.ac_if; in wb_attach()
725 wb_read_eeprom(sc, (caddr_t)&sc->arpcom.ac_enaddr, 0, 3, 0); in wb_attach()
726 printf(", address %s\n", ether_sprintf(sc->arpcom.ac_enaddr)); in wb_attach()
894 ifp = &sc->arpcom.ac_if; in wb_rxeof()
973 ifp = &sc->arpcom.ac_if; in wb_txeof()
1027 ifp = &sc->arpcom.ac_if; in wb_txeoc()
1054 ifp = &sc->arpcom in wb_intr()
[all...]
H A Dif_tl.c794 struct ifnet *ifp = &sc->arpcom.ac_if; in tl_iff()
795 struct arpcom *ac = &sc->arpcom; in tl_iff()
1035 ifp = &sc->arpcom.ac_if; in tl_intvec_rxeof()
1068 if (!bcmp(eh->ether_shost, sc->arpcom.ac_enaddr, in tl_intvec_rxeof()
1170 ifp = &sc->arpcom.ac_if; in tl_intvec_txeoc()
1251 ifp = &sc->arpcom.ac_if; in tl_intr()
1315 ifp = &sc->arpcom.ac_if; in tl_stats_update()
1536 struct ifnet *ifp = &sc->arpcom.ac_if; in tl_init()
1556 tl_setfilt(sc, (caddr_t)&sc->arpcom.ac_enaddr, 0); in tl_init()
1681 error = ether_ioctl(ifp, &sc->arpcom, command, data); in tl_ioctl()
[all …]
H A Dif_sk.c416 struct ifnet *ifp = &sc_if->arpcom.ac_if; in sk_iff_xmac()
417 struct arpcom *ac = &sc_if->arpcom; in sk_iff_xmac()
472 struct ifnet *ifp = &sc_if->arpcom.ac_if; in sk_iff_yukon()
473 struct arpcom *ac = &sc_if->arpcom; in sk_iff_yukon()
727 error = ether_ioctl(ifp, &sc_if->arpcom, command, data); in sk_ioctl()
877 sc_if->arpcom.ac_enaddr[i] = in sk_attach()
881 ether_sprintf(sc_if->arpcom.ac_enaddr)); in sk_attach()
992 ifp = &sc_if->arpcom in sk_attach()
[all...]
H A Dif_vr.c330 struct arpcom *ac = &sc->arpcom; in vr_iff()
331 struct ifnet *ifp = &sc->arpcom.ac_if; in vr_iff()
535 struct ifnet *ifp = &sc->arpcom.ac_if; in vr_attach()
591 sc->arpcom.ac_enaddr[i] = CSR_READ_1(sc, VR_PAR0 + i); in vr_attach()
596 printf(", address %s\n", ether_sprintf(sc->arpcom.ac_enaddr)); in vr_attach()
615 ifp = &sc->arpcom.ac_if; in vr_attach()
683 struct ifnet *ifp = &sc->arpcom.ac_if; in vr_activate()
820 ifp = &sc->arpcom.ac_if; in vr_rxeof()
945 ifp = &sc->arpcom
[all...]
H A Dif_nge.c564 struct arpcom *ac = &sc->arpcom; in nge_setmulti()
749 bcopy(eaddr, &sc->arpcom.ac_enaddr, ETHER_ADDR_LEN); in nge_attach()
784 ifp = &sc->arpcom.ac_if; in nge_attach()
1001 ifp = &sc->arpcom.ac_if; in nge_rxeof()
1112 ifp = &sc->arpcom.ac_if; in nge_txeof()
1163 struct ifnet *ifp = &sc->arpcom.ac_if; in nge_tick()
1245 ifp = &sc->arpcom.ac_if; in nge_intr()
1444 struct ifnet *ifp = &sc->arpcom.ac_if; in nge_init()
1465 ((u_int16_t *)sc->arpcom.ac_enaddr)[0]); in nge_init()
1468 ((u_int16_t *)sc->arpcom.ac_enaddr)[1]); in nge_init()
[all …]
H A Dif_skvar.h196 struct arpcom arpcom; /* interface info */ member
/openbsd-src/sys/arch/macppc/dev/
H A Dif_bm.c71 struct arpcom arpcom; /* per-instance network data */ member
185 struct ifnet *ifp = &sc->arpcom.ac_if; in bmac_attach()
210 bcopy(laddr, sc->arpcom.ac_enaddr, 6); in bmac_attach()
336 struct ifnet *ifp = &sc->arpcom.ac_if; in bmac_init()
400 p = (u_short *)sc->arpcom.ac_enaddr; in bmac_init()
430 bcopy(sc->arpcom.ac_enaddr, eh->ether_dhost, ETHER_ADDR_LEN); in bmac_init()
431 bcopy(sc->arpcom.ac_enaddr, eh->ether_shost, ETHER_ADDR_LEN); in bmac_init()
470 struct ifnet *ifp = &sc->arpcom.ac_if; in bmac_intr()
499 struct ifnet *ifp = &sc->arpcom.ac_if; in bmac_rint()
579 struct ifnet *ifp = &sc->arpcom.ac_if; in bmac_stop()
[all …]
/openbsd-src/sys/dev/usb/
H A Dif_cuereg.h170 struct arpcom arpcom; member
171 #define GET_IFP(sc) (&(sc)->arpcom.ac_if)
H A Dif_mosreg.h171 struct arpcom arpcom; member
172 #define GET_IFP(sc) (&(sc)->arpcom.ac_if)
H A Dif_kuereg.h169 struct arpcom arpcom; member
170 #define GET_IFP(sc) (&(sc)->arpcom.ac_if)
H A Dif_muereg.h224 struct arpcom arpcom; member
227 #define GET_IFP(sc) (&(sc)->arpcom.ac_if)
H A Dif_auereg.h227 struct arpcom arpcom; member
229 #define GET_IFP(sc) (&(sc)->arpcom.ac_if)
H A Dif_axereg.h235 struct arpcom arpcom; member
236 #define GET_IFP(sc) (&(sc)->arpcom.ac_if)
H A Dif_axenreg.h270 struct arpcom arpcom;
271 #define GET_IFP(sc) (&(sc)->arpcom.ac_if)
269 struct arpcom arpcom; global() member
H A Dif_mue.c163 if (OF_getprop(node, "local-mac-address", sc->arpcom.ac_enaddr, in mue_enaddr_OF()
164 sizeof(sc->arpcom.ac_enaddr)) != sizeof(sc->arpcom.ac_enaddr)) { in mue_enaddr_OF()
165 OF_getprop(node, "mac-address", sc->arpcom.ac_enaddr, in mue_enaddr_OF()
166 sizeof(sc->arpcom.ac_enaddr)); in mue_enaddr_OF()
670 struct ifnet *ifp = &sc->arpcom.ac_if; in mue_set_macaddr()
766 if (mue_read_eeprom(sc, (caddr_t)&sc->arpcom.ac_enaddr, in mue_attach()
782 printf(", address %s\n", ether_sprintf(sc->arpcom.ac_enaddr)); in mue_attach()
1009 struct arpcom *ac = &sc->arpcom; in mue_iff()
1260 error = ether_ioctl(ifp, &sc->arpcom, cmd, data); in mue_ioctl()
/openbsd-src/sys/netinet/
H A Dif_ether.h236 struct arpcom { struct
268 void arpwhohas(struct arpcom *, struct in_addr *); argument
275 int ether_addmulti(struct ifreq *, struct arpcom *);
276 int ether_delmulti(struct ifreq *, struct arpcom *);
280 int ether_ioctl(struct ifnet *, struct arpcom *, u_long, caddr_t);
322 * rooted in the interface's arpcom structure. (This really has nothing to
343 * multicast addresses connected to a given arpcom structure. If no matching
349 /* struct arpcom *ac; */ \
376 /* struct arpcom *ac; */ \
237 ac_ifarpcom global() argument
238 ac_enaddrarpcom global() argument
239 ac__padarpcom global() argument
241 ac_multicntarpcom global() argument
242 ac_multirangecntarpcom global() argument
244 ac_trunkportarpcom global() argument
/openbsd-src/sys/dev/ic/
H A Dlancevar.h36 struct arpcom sc_arpcom; /* Ethernet common part */
117 void lance_setladrf(struct arpcom *, uint16_t *);
H A Ddp8390var.h33 struct arpcom sc_arpcom; /* ethernet common */
174 void dp8390_getmcaf(struct arpcom *, u_int8_t *);
H A Dti.c485 struct ifnet *ifp = &sc->arpcom.ac_if; in ti_handle_events()
970 struct ifnet *ifp = &sc->arpcom.ac_if; in ti_iff()
971 struct arpcom *ac = &sc->arpcom; in ti_iff()
1210 ifp = &sc->arpcom.ac_if; in ti_gibinit()
1393 if (ti_read_eeprom(sc, (caddr_t)&sc->arpcom.ac_enaddr, in ti_attach()
1403 printf(", address %s\n", ether_sprintf(sc->arpcom.ac_enaddr)); in ti_attach()
1439 ifp = &sc->arpcom.ac_if; in ti_attach()
1523 ifp = &sc->arpcom.ac_if; in ti_rxeof()
1626 ifp = &sc->arpcom in ti_txeof_tigon1()
[all...]

123456789