Home
last modified time | relevance | path

Searched refs:enm (Results 1 – 25 of 130) sorted by relevance

123456

/netbsd/sys/net/
H A Dif_ether.h291 struct ether_multi *enm; in ether_lookup_multi() local
302 return enm; in ether_lookup_multi()
315 struct ether_multi *enm; in ether_next_multi() local
317 enm = step->e_enm; in ether_next_multi()
318 if (enm != NULL) in ether_next_multi()
319 step->e_enm = LIST_NEXT(enm, enm_list); in ether_next_multi()
321 return enm; in ether_next_multi()
323 #define ETHER_NEXT_MULTI(step, enm) \ argument
326 (enm) = ether_next_multi(&(step))
337 #define ETHER_FIRST_MULTI(step, ec, enm) \ argument
[all …]
H A Dif_ethersubr.c1079 struct ether_multi *enm; in ether_ifdetach() local
1102 kmem_free(enm, sizeof(*enm)); in ether_ifdetach()
1352 enm = kmem_alloc(sizeof(*enm), KM_SLEEP); in ether_addmulti()
1385 enm->enm_refcount = 1; in ether_addmulti()
1394 enm = NULL; in ether_addmulti()
1398 if (enm != NULL) in ether_addmulti()
1399 kmem_free(enm, sizeof(*enm)); in ether_addmulti()
1409 struct ether_multi *enm; in ether_delmulti() local
1423 if (enm == NULL) { in ether_delmulti()
1441 kmem_free(enm, sizeof(*enm)); in ether_delmulti()
[all …]
/netbsd/sys/arch/mips/cavium/dev/
H A Docteon_gmx.c575 struct ether_multi *enm; in octgmx_set_filter() local
602 while (enm != NULL) { in octgmx_set_filter()
608 enm->enm_addrlo[0], enm->enm_addrlo[1], in octgmx_set_filter()
609 enm->enm_addrlo[2], enm->enm_addrlo[3], in octgmx_set_filter()
610 enm->enm_addrlo[4], enm->enm_addrlo[5], in octgmx_set_filter()
611 enm->enm_addrhi[0], enm->enm_addrhi[1], in octgmx_set_filter()
612 enm->enm_addrhi[2], enm->enm_addrhi[3], in octgmx_set_filter()
613 enm->enm_addrhi[4], enm->enm_addrhi[5]); in octgmx_set_filter()
614 if (bcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) { in octgmx_set_filter()
648 ETHER_NEXT_MULTI(step, enm); in octgmx_set_filter()
[all …]
/netbsd/sys/arch/playstation2/dev/
H A Demac3.c228 struct ether_multi *enm; in emac3_setmulti() local
246 ETHER_FIRST_MULTI(step, ec, enm); in emac3_setmulti()
247 while (enm != NULL) { in emac3_setmulti()
248 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, in emac3_setmulti()
254 ETHER_NEXT_MULTI(step, enm); in emac3_setmulti()
/netbsd/sys/dev/ic/
H A Dseeq8005.c1374 struct ether_multi *enm; in ea_mc_reset_8004() local
1398 ETHER_FIRST_MULTI(step, ec, enm); in ea_mc_reset_8004()
1399 while (enm != NULL) { in ea_mc_reset_8004()
1400 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, in ea_mc_reset_8004()
1416 crc = ether_crc32_be(enm->enm_addrlo, sizeof(enm->enm_addrlo)); in ea_mc_reset_8004()
1424 ETHER_NEXT_MULTI(step, enm); in ea_mc_reset_8004()
1439 struct ether_multi *enm; in ea_mc_reset_8005() local
1446 ETHER_FIRST_MULTI(step, ec, enm); in ea_mc_reset_8005()
1447 while (enm != NULL) { in ea_mc_reset_8005()
1450 memcmp(enm->enm_addrlo, enm->enm_addrhi, 6) != 0) { in ea_mc_reset_8005()
[all …]
H A Dlance.c564 struct ether_multi *enm; in lance_setladrf() local
582 ETHER_FIRST_MULTI(step, ec, enm); in lance_setladrf()
583 while (enm != NULL) { in lance_setladrf()
584 if (ETHER_CMP(enm->enm_addrlo, enm->enm_addrhi)) { in lance_setladrf()
597 crc = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN); in lance_setladrf()
605 ETHER_NEXT_MULTI(step, enm); in lance_setladrf()
H A Dsgec.c649 struct ether_multi *enm; in ze_setup() local
674 ETHER_FIRST_MULTI(step, ec, enm); in ze_setup()
675 while (enm != NULL) { in ze_setup()
676 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, 6)) { in ze_setup()
680 memcpy(&zc->zc_setup[j], enm->enm_addrlo, ETHER_ADDR_LEN); in ze_setup()
682 ETHER_NEXT_MULTI(step, enm); in ze_setup()
683 if ((enm != NULL)&& (j == 128)) { in ze_setup()
H A Dtulip.c2545 struct ether_multi *enm; in tlp_filter_setup() local
2607 while (enm != NULL) { in tlp_filter_setup()
2608 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) { in tlp_filter_setup()
2672 while (enm != NULL) { in tlp_filter_setup()
2673 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) { in tlp_filter_setup()
2843 while (enm != NULL) { in tlp_winb_filter_setup()
2844 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) { in tlp_winb_filter_setup()
2920 while (enm != NULL) { in tlp_al981_filter_setup()
2921 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) { in tlp_al981_filter_setup()
2988 while (enm != NULL) { in tlp_asix_filter_setup()
[all …]
/netbsd/sys/arch/mac68k/dev/
H A Dif_mc.c656 struct ether_multi *enm; in mace_calcladrf() local
678 ETHER_FIRST_MULTI(step, ec, enm); in mace_calcladrf()
679 while (enm != NULL) { in mace_calcladrf()
680 if (ETHER_CMP(enm->enm_addrlo, enm->enm_addrhi)) { in mace_calcladrf()
693 cp = enm->enm_addrlo; in mace_calcladrf()
695 for (len = sizeof(enm->enm_addrlo); --len >= 0;) { in mace_calcladrf()
706 ETHER_NEXT_MULTI(step, enm); in mace_calcladrf()
/netbsd/sys/arch/macppc/dev/
H A Dam79c950.c650 struct ether_multi *enm; in mace_calcladrf() local
667 ETHER_FIRST_MULTI(step, ec, enm); in mace_calcladrf()
668 while (enm != NULL) { in mace_calcladrf()
669 if (ETHER_CMP(enm->enm_addrlo, enm->enm_addrhi)) { in mace_calcladrf()
682 cp = enm->enm_addrlo; in mace_calcladrf()
684 for (len = sizeof(enm->enm_addrlo); --len >= 0;) { in mace_calcladrf()
701 ETHER_NEXT_MULTI(step, enm); in mace_calcladrf()
H A Dif_gm.c640 struct ether_multi *enm; in gmac_setladrf() local
676 ETHER_FIRST_MULTI(step, ec, enm); in gmac_setladrf()
677 while (enm != NULL) { in gmac_setladrf()
678 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, 6)) { in gmac_setladrf()
694 crc = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN); in gmac_setladrf()
702 ETHER_NEXT_MULTI(step, enm); in gmac_setladrf()
/netbsd/lib/libossaudio/
H A Doss3_mixer.c372 enum_to_ord(struct audiodevinfo *di, int enm) in enum_to_ord() argument
374 if (enm >= NETBSD_MAXDEVS) in enum_to_ord()
378 return (di->enum2opaque[enm]); in enum_to_ord()
382 enum_to_mask(struct audiodevinfo *di, int enm) in enum_to_mask() argument
385 if (enm >= NETBSD_MAXDEVS) in enum_to_mask()
388 m = di->enum2opaque[enm]; in enum_to_mask()
/netbsd/sys/dev/usb/
H A Dif_kue.c326 struct ether_multi *enm; in kue_uno_mcast() local
353 ETHER_FIRST_MULTI(step, ec, enm); in kue_uno_mcast()
354 while (enm != NULL) { in kue_uno_mcast()
356 memcmp(enm->enm_addrlo, enm->enm_addrhi, in kue_uno_mcast()
361 memcpy(KUE_MCFILT(sc, i), enm->enm_addrlo, ETHER_ADDR_LEN); in kue_uno_mcast()
362 ETHER_NEXT_MULTI(step, enm); in kue_uno_mcast()
H A Dif_cue.c365 struct ether_multi *enm; in cue_uno_mcast() local
390 ETHER_FIRST_MULTI(step, ec, enm); in cue_uno_mcast()
391 while (enm != NULL) { in cue_uno_mcast()
392 if (memcmp(enm->enm_addrlo, in cue_uno_mcast()
393 enm->enm_addrhi, ETHER_ADDR_LEN) != 0) { in cue_uno_mcast()
397 h = cue_crc(enm->enm_addrlo); in cue_uno_mcast()
399 ETHER_NEXT_MULTI(step, enm); in cue_uno_mcast()
H A Dif_url.c422 struct ether_multi *enm; in url_uno_mcast() local
445 ETHER_FIRST_MULTI(step, ec, enm); in url_uno_mcast()
446 while (enm != NULL) { in url_uno_mcast()
447 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) { in url_uno_mcast()
454 h = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN); in url_uno_mcast()
457 ETHER_NEXT_MULTI(step, enm); in url_uno_mcast()
H A Dif_mos.c468 struct ether_multi *enm; in mos_uno_mcast() local
489 ETHER_FIRST_MULTI(step, ec, enm); in mos_uno_mcast()
490 while (enm != NULL) { in mos_uno_mcast()
491 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) { in mos_uno_mcast()
499 h = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN); in mos_uno_mcast()
502 ETHER_NEXT_MULTI(step, enm); in mos_uno_mcast()
H A Dif_udav.c563 struct ether_multi *enm; in udav_uno_mcast() local
594 ETHER_FIRST_MULTI(step, ec, enm); in udav_uno_mcast()
595 while (enm != NULL) { in udav_uno_mcast()
596 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, in udav_uno_mcast()
605 h = UDAV_CALCHASH(enm->enm_addrlo); in udav_uno_mcast()
607 ETHER_NEXT_MULTI(step, enm); in udav_uno_mcast()
H A Dif_axen.c234 struct ether_multi *enm; in axen_uno_mcast() local
268 ETHER_FIRST_MULTI(step, ec, enm); in axen_uno_mcast()
269 while (enm != NULL) { in axen_uno_mcast()
270 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, in axen_uno_mcast()
278 h = ether_crc32_be(enm->enm_addrlo, in axen_uno_mcast()
283 ether_sprintf(enm->enm_addrlo))); in axen_uno_mcast()
284 ETHER_NEXT_MULTI(step, enm); in axen_uno_mcast()
/netbsd/sys/dev/qbus/
H A Dif_qt.c344 struct ether_multi *enm; in lance_setladrf() local
362 ETHER_FIRST_MULTI(step, ec, enm); in lance_setladrf()
363 while (enm != NULL) { in lance_setladrf()
364 if (ETHER_CMP(enm->enm_addrlo, enm->enm_addrhi)) { in lance_setladrf()
377 crc = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN); in lance_setladrf()
385 ETHER_NEXT_MULTI(step, enm); in lance_setladrf()
/netbsd/sys/arch/mips/adm5120/dev/
H A Dif_admsw.c1110 struct ether_multi *enm; in admsw_set_filter() local
1126 ETHER_FIRST_MULTI(step, ec, enm); in admsw_set_filter()
1127 while (enm != NULL) { in admsw_set_filter()
1128 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, in admsw_set_filter()
1142 enm->enm_addrlo[2] | in admsw_set_filter()
1143 (enm->enm_addrlo[3] << 8) | in admsw_set_filter()
1144 (enm->enm_addrlo[4] << 16) | in admsw_set_filter()
1145 (enm->enm_addrlo[5] << 24)); in admsw_set_filter()
1148 (enm->enm_addrlo[0] << 16) | in admsw_set_filter()
1149 (enm->enm_addrlo[1] << 24) | in admsw_set_filter()
[all …]
/netbsd/sys/arch/arm/xscale/
H A Dixp425_if_npe.c366 struct ether_multi *enm; in npe_setmcast() local
372 ETHER_FIRST_MULTI(step, ec, enm); in npe_setmcast()
373 while (enm != NULL) { in npe_setmcast()
374 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, in npe_setmcast()
382 clr[i] |= enm->enm_addrlo[i]; in npe_setmcast()
383 set[i] &= enm->enm_addrlo[i]; in npe_setmcast()
386 ETHER_NEXT_MULTI(step, enm); in npe_setmcast()
975 struct ether_multi *enm; in npe_rxdone() local
982 ETHER_FIRST_MULTI(step, ec, enm); in npe_rxdone()
983 while (enm != NULL) { in npe_rxdone()
[all …]
/netbsd/sys/arch/arm/ep93xx/
H A Depe.c699 struct ether_multi *enm; in epe_setaddr() local
716 ETHER_FIRST_MULTI(step, ec, enm); in epe_setaddr()
717 while (enm != NULL) { in epe_setaddr()
718 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) { in epe_setaddr()
737 memcpy(ias[nma], enm->enm_addrlo, ETHER_ADDR_LEN); in epe_setaddr()
744 h = ether_crc32_le(enm->enm_addrlo, ETHER_ADDR_LEN); in epe_setaddr()
752 ETHER_NEXT_MULTI(step, enm); in epe_setaddr()
/netbsd/sys/dev/pcmcia/
H A Dif_xi.c948 struct ether_multi *enm; in xi_set_address() local
972 ETHER_FIRST_MULTI(step, ec, enm); in xi_set_address()
973 for (; enm; num++) { in xi_set_address()
974 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, in xi_set_address()
975 sizeof(enm->enm_addrlo)) != 0) { in xi_set_address()
986 indaddr[num * 6 + i] = enm->enm_addrlo[5 - i]; in xi_set_address()
989 indaddr[num * 6 + i] = enm->enm_addrlo[i]; in xi_set_address()
990 ETHER_NEXT_MULTI(step, enm); in xi_set_address()
/netbsd/sys/arch/arm/sunxi/
H A Dsun4i_emac.c838 struct ether_multi *enm; in sun4i_emac_rx_hash() local
862 ETHER_FIRST_MULTI(step, ec, enm); in sun4i_emac_rx_hash()
863 while (enm != NULL) { in sun4i_emac_rx_hash()
864 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, in sun4i_emac_rx_hash()
882 u_int crc = ether_crc32_be(enm->enm_addrlo, in sun4i_emac_rx_hash()
890 ETHER_NEXT_MULTI(step, enm); in sun4i_emac_rx_hash()
/netbsd/sys/arch/mips/alchemy/dev/
H A Dif_aumac.c891 struct ether_multi *enm; in aumac_set_filter() local
926 ETHER_FIRST_MULTI(step, ec, enm); in aumac_set_filter()
927 while (enm != NULL) { in aumac_set_filter()
928 if (memcmp(enm->enm_addrlo, enm->enm_addrhi, ETHER_ADDR_LEN)) { in aumac_set_filter()
941 crc = ether_crc32_be(enm->enm_addrlo, ETHER_ADDR_LEN); in aumac_set_filter()
949 ETHER_NEXT_MULTI(step, enm); in aumac_set_filter()

123456