Home
last modified time | relevance | path

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

/illumos-gate/usr/src/uts/common/io/hxge/
H A Dhxge_pfc.c332 uint32_t mchash; in hxge_add_mcast_addr() local
342 mchash = crc32_mchash(addrp); in hxge_add_mcast_addr()
356 j = mchash / HASH_REG_WIDTH; in hxge_add_mcast_addr()
357 hash_bit = (1 << (mchash % HASH_REG_WIDTH)); in hxge_add_mcast_addr()
360 hash_filter->hash_bit_ref_cnt[mchash]++; in hxge_add_mcast_addr()
361 if (hash_filter->hash_bit_ref_cnt[mchash] == 1) { in hxge_add_mcast_addr()
391 uint32_t mchash; in hxge_del_mcast_addr() local
400 mchash = crc32_mchash(addrp); in hxge_del_mcast_addr()
410 hash_filter->hash_bit_ref_cnt[mchash]--; in hxge_del_mcast_addr()
412 j = mchash / HASH_REG_WIDTH; in hxge_del_mcast_addr()
[all …]
/illumos-gate/usr/src/uts/common/io/efe/
H A Defe.c1569 efe_setmchash(efe_t *efep, uint16_t *mchash) in efe_setmchash() argument
1571 PUTCSR(efep, CSR_MC0, mchash[0]); in efe_setmchash()
1572 PUTCSR(efep, CSR_MC1, mchash[1]); in efe_setmchash()
1573 PUTCSR(efep, CSR_MC2, mchash[2]); in efe_setmchash()
1574 PUTCSR(efep, CSR_MC3, mchash[3]); in efe_setmchash()
/illumos-gate/usr/src/uts/common/io/atge/
H A Datge_main.c2546 uint64_t mchash; in atge_rxfilter() local
2562 mchash = ~0ULL; in atge_rxfilter()
2570 mchash = atgep->atge_mchash; in atge_rxfilter()
2575 OUTL(atgep, ATGE_MAR0, (uint32_t)mchash); in atge_rxfilter()
2576 OUTL(atgep, ATGE_MAR1, (uint32_t)(mchash >> 32)); in atge_rxfilter()
2580 atgep->atge_name, __func__, rxcfg, mchash)); in atge_rxfilter()
/illumos-gate/usr/src/uts/common/io/yge/
H A Dyge.c451 uint32_t *mchash; in yge_setrxfilt() local
457 mchash = port->p_mchash; in yge_setrxfilt()
480 GMAC_WRITE_2(dev, pnum, GM_MC_ADDR_H1, mchash[0] & 0xffff); in yge_setrxfilt()
481 GMAC_WRITE_2(dev, pnum, GM_MC_ADDR_H2, (mchash[0] >> 16) & 0xffff); in yge_setrxfilt()
482 GMAC_WRITE_2(dev, pnum, GM_MC_ADDR_H3, mchash[1] & 0xffff); in yge_setrxfilt()
483 GMAC_WRITE_2(dev, pnum, GM_MC_ADDR_H4, (mchash[1] >> 16) & 0xffff); in yge_setrxfilt()
/illumos-gate/usr/src/uts/common/io/nxge/
H A Dnxge_mac.c5744 uint32_t mchash; in nxge_add_mcast_addr() local
5754 mchash = crc32_mchash(addrp); in nxge_add_mcast_addr()
5763 j = mchash / HASH_REG_WIDTH; in nxge_add_mcast_addr()
5764 hash_bit = (1 << (mchash % HASH_REG_WIDTH)); in nxge_add_mcast_addr()
5766 hash_filter->hash_bit_ref_cnt[mchash]++; in nxge_add_mcast_addr()
5767 if (hash_filter->hash_bit_ref_cnt[mchash] == 1) { in nxge_add_mcast_addr()
5790 uint32_t mchash; in nxge_del_mcast_addr() local
5799 mchash = crc32_mchash(addrp); in nxge_del_mcast_addr()
5808 hash_filter->hash_bit_ref_cnt[mchash]--; in nxge_del_mcast_addr()
5810 j = mchash / HASH_REG_WIDTH; in nxge_del_mcast_addr()
[all …]