Home
last modified time | relevance | path

Searched refs:mchash (Results 1 – 19 of 19) sorted by relevance

/netbsd-src/sys/dev/pci/
H A Dif_vte.c1585 uint16_t mchash[4], mcr; in vte_rxfilter() local
1591 memset(mchash, 0, sizeof(mchash)); in vte_rxfilter()
1608 mchash[0] = 0xFFFF; in vte_rxfilter()
1609 mchash[1] = 0xFFFF; in vte_rxfilter()
1610 mchash[2] = 0xFFFF; in vte_rxfilter()
1611 mchash[3] = 0xFFFF; in vte_rxfilter()
1623 mchash[0] = 0xFFFF; in vte_rxfilter()
1624 mchash[1] = 0xFFFF; in vte_rxfilter()
1625 mchash[ in vte_rxfilter()
[all...]
H A Dif_sip.c3074 uint32_t crc, mchash[16]; in sipcom_sis900_set_filter() local
3096 memset(mchash, 0, sizeof(mchash)); in sipcom_sis900_set_filter()
3115 mchash[crc >> 4] |= 1 << (crc & 0xf); in sipcom_sis900_set_filter()
3146 mchash[crc >> 4] |= 1 << (crc & 0xf); in sipcom_sis900_set_filter()
3178 FILTER_EMIT(RFCR_RFADDR_MC0, mchash[0]); in sipcom_sis900_set_filter()
3179 FILTER_EMIT(RFCR_RFADDR_MC1, mchash[1]); in sipcom_sis900_set_filter()
3180 FILTER_EMIT(RFCR_RFADDR_MC2, mchash[2]); in sipcom_sis900_set_filter()
3181 FILTER_EMIT(RFCR_RFADDR_MC3, mchash[3]); in sipcom_sis900_set_filter()
3182 FILTER_EMIT(RFCR_RFADDR_MC4, mchash[4]); in sipcom_sis900_set_filter()
3183 FILTER_EMIT(RFCR_RFADDR_MC5, mchash[5]); in sipcom_sis900_set_filter()
[all …]
H A Dif_ste.c1579 uint16_t mchash[4]; in ste_set_filter() local
1598 memset(mchash, 0, sizeof(mchash)); in ste_set_filter()
1627 mchash[crc >> 4] |= 1 << (crc & 0xf); in ste_set_filter()
1648 mchash[0]); in ste_set_filter()
1650 mchash[1]); in ste_set_filter()
1652 mchash[2]); in ste_set_filter()
1654 mchash[3]); in ste_set_filter()
H A Dif_ale.c1988 uint32_t mchash[2]; in ale_rxfilter() local
2004 memset(mchash, 0, sizeof(mchash)); in ale_rxfilter()
2016 mchash[crc >> 31] |= 1U << ((crc >> 26) & 0x1f); in ale_rxfilter()
2029 mchash[0] = mchash[1] = 0xFFFFFFFF; in ale_rxfilter()
2031 CSR_WRITE_4(sc, ALE_MAR0, mchash[0]); in ale_rxfilter()
2032 CSR_WRITE_4(sc, ALE_MAR1, mchash[1]); in ale_rxfilter()
H A Dif_stge.c1891 uint32_t mchash[2]; in stge_set_filter() local
1914 memset(mchash, 0, sizeof(mchash)); in stge_set_filter()
1943 mchash[crc >> 5] |= 1 << (crc & 0x1f); in stge_set_filter()
1963 CSR_WRITE_4(sc, STGE_HashTable0, mchash[0]); in stge_set_filter()
1964 CSR_WRITE_4(sc, STGE_HashTable1, mchash[1]); in stge_set_filter()
H A Dif_kse.c1061 uint32_t crc, mchash[2]; in kse_set_rcvfilt() local
1069 crc = mchash[0] = mchash[1] = 0; in kse_set_rcvfilt()
1113 mchash[crc >> 31] |= 1 << ((crc >> 26) & 0x1f); in kse_set_rcvfilt()
1122 CSR_WRITE_4(sc, MTR0, mchash[0]); in kse_set_rcvfilt()
1123 CSR_WRITE_4(sc, MTR1, mchash[1]); in kse_set_rcvfilt()
H A Dif_age.c2293 uint32_t mchash[2]; in age_rxfilter() local
2309 memset(mchash, 0, sizeof(mchash)); in age_rxfilter()
2321 mchash[crc >> 31] |= 1U << ((crc >> 26) & 0x1f); in age_rxfilter()
2334 mchash[0] = mchash[1] = 0xFFFFFFFF; in age_rxfilter()
2336 CSR_WRITE_4(sc, AGE_MAR0, mchash[0]); in age_rxfilter()
2337 CSR_WRITE_4(sc, AGE_MAR1, mchash[1]); in age_rxfilter()
H A Dif_alc.c3458 uint32_t mchash[2]; in alc_iff() local
3474 memset(mchash, 0, sizeof(mchash)); in alc_iff()
3486 mchash[crc >> 31] |= 1U << ((crc >> 26) & 0x1f); in alc_iff()
3499 mchash[0] = mchash[1] = 0xFFFFFFFF; in alc_iff()
3501 CSR_WRITE_4(sc, ALC_MAR0, mchash[0]); in alc_iff()
3502 CSR_WRITE_4(sc, ALC_MAR1, mchash[1]); in alc_iff()
/netbsd-src/sys/dev/ic/
H A Dsmc83c170.c1259 uint32_t hash, mchash[4]; in epic_set_mchash() local
1278 mchash[0] = mchash[1] = mchash[2] = mchash[3] = 0; in epic_set_mchash()
1300 mchash[hash >> 4] |= 1 << (hash & 0xf); in epic_set_mchash()
1311 mchash[0] = mchash[1] = mchash[2] = mchash[ in epic_set_mchash()
[all...]
H A Ddm9000.c416 uint8_t mchash[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; /* 64bit mchash */ in dme_set_rcvfilt() local
446 memset(mchash, 0xff, sizeof(mchash)); /* necessary? */ in dme_set_rcvfilt()
453 mchash[h / 8] |= 1 << (h % 8); in dme_set_rcvfilt()
458 mchash[7] |= 0x80; /* to catch bcast frame */ in dme_set_rcvfilt()
460 dme_write_c(sc, DM9000_MAB0, mchash, sizeof(mchash)); in dme_set_rcvfilt()
H A Dtulip.c2824 uint32_t hash, mchash[2]; in tlp_winb_filter_setup() local
2842 mchash[0] = mchash[1] = 0; in tlp_winb_filter_setup()
2865 mchash[hash >> 5] |= 1 << (hash & 0x1f); in tlp_winb_filter_setup()
2873 mchash[0] = mchash[1] = 0xffffffff; in tlp_winb_filter_setup()
2876 TULIP_WRITE(sc, CSR_WINB_CMA0, mchash[0]); in tlp_winb_filter_setup()
2877 TULIP_WRITE(sc, CSR_WINB_CMA1, mchash[1]); in tlp_winb_filter_setup()
2895 uint32_t hash, mchash[2]; in tlp_al981_filter_setup() local
2918 mchash[0] = mchash[1] = 0; in tlp_al981_filter_setup()
2937 mchash[hash >> 5] |= __BIT(hash & 0x1f); in tlp_al981_filter_setup()
2946 mchash[0] = mchash[1] = 0xffffffff; in tlp_al981_filter_setup()
[all …]
/netbsd-src/sys/dev/usb/
H A Dif_ure.c345 uint32_t mchash[2] = { 0, 0 }; in ure_uno_mcast() local
362 mchash[0] = mchash[1] = 0xffffffff; in ure_uno_mcast()
373 mchash[0] = mchash[1] = ~0U; /* necessary ?? */ in ure_uno_mcast()
377 mchash[h >> 31] |= 1U << ((h >> 26) & 0x1f); in ure_uno_mcast()
383 h = bswap32(mchash[0]); in ure_uno_mcast()
384 mchash[0] = bswap32(mchash[1]); in ure_uno_mcast()
385 mchash[1] = h; in ure_uno_mcast()
388 ure_write_4(un, URE_PLA_MAR0, URE_MCU_TYPE_PLA, mchash[0]); in ure_uno_mcast()
389 ure_write_4(un, URE_PLA_MAR4, URE_MCU_TYPE_PLA, mchash[1]); in ure_uno_mcast()
H A Dif_mos.c471 u_int8_t rxmode, mchash[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; in mos_uno_mcast() local
494 memset(mchash, 0, sizeof(mchash)); /* correct ??? */ in mos_uno_mcast()
501 mchash[h >> 29] |= 1 << ((h >> 26) % 8); in mos_uno_mcast()
512 mchash[7] |= 0x80; in mos_uno_mcast()
513 mos_write_mcast(un, mchash); in mos_uno_mcast()
H A Dif_url.c424 uint32_t mchash[2] = { 0, 0 }; in url_uno_mcast() local
456 mchash[h >> 31] |= 1 << ((h >> 26) & 0x1f); in url_uno_mcast()
462 url_csr_write_4(un, URL_MAR0, mchash[0]); in url_uno_mcast()
463 url_csr_write_4(un, URL_MAR4, mchash[1]); in url_uno_mcast()
H A Dif_axe.c440 uint8_t mchash[8] = { 0, 0, 0, 0, 0, 0, 0, 0 }; in axe_uno_mcast() local
474 mchash[h >> 29] |= 1U << ((h >> 26) & 7); in axe_uno_mcast()
480 axe_cmd(sc, AXE_CMD_WRITE_MCAST, 0, 0, mchash); in axe_uno_mcast()
/netbsd-src/sys/arch/mips/alchemy/dev/
H A Dif_aumac.c897 uint32_t mchash[2], crc; in aumac_set_filter() local
919 mchash[0] = mchash[1] = 0; in aumac_set_filter()
950 mchash[crc >> 5] |= 1U << (crc & 0x1f); in aumac_set_filter()
959 mchash[1]); in aumac_set_filter()
961 mchash[0]); in aumac_set_filter()
/netbsd-src/sys/arch/mips/atheros/dev/
H A Dif_ae.c1662 uint32_t hash, mchash[2]; in ae_filter_setup() local
1690 mchash[0] = mchash[1] = 0; in ae_filter_setup()
1710 mchash[hash >> 5] |= 1 << (hash & 0x1f); in ae_filter_setup()
1719 mchash[0] = mchash[1] = 0xffffffff; in ae_filter_setup()
1723 AE_WRITE(sc, CSR_HTHI, mchash[0]); in ae_filter_setup()
1724 AE_WRITE(sc, CSR_HTHI, mchash[1]); in ae_filter_setup()
/netbsd-src/sys/arch/arm/sociox/
H A Dif_scx.c1288 uint32_t mchash[2]; /* 2x 32 = 64 bit */ in scx_set_rcvfilt() local
1300 crc = mchash[1] = mchash[0] = 0; in scx_set_rcvfilt()
1346 mchash[crc >> 31] |= 1 << ((crc >> 26) & 0x1f); in scx_set_rcvfilt()
1356 mac_write(sc, GMACMHTH, mchash[1]); in scx_set_rcvfilt()
1357 mac_write(sc, GMACMHTL, mchash[0]); in scx_set_rcvfilt()
/netbsd-src/sys/arch/sgimips/mace/
H A Dif_mec.c1497 uint64_t mchash; in mec_setfilter() local
1512 mchash = 0; in mec_setfilter()
1529 mchash |= 1 << hash; in mec_setfilter()
1540 bus_space_write_8(st, sh, MEC_MULTICAST, mchash); in mec_setfilter()