Home
last modified time | relevance | path

Searched refs:mcast_idx (Results 1 – 7 of 7) sorted by relevance

/openbmc/qemu/hw/net/
H A Di82596.c196 unsigned mcast_idx = (net_crc32(multicast_addr, ETH_ALEN) & in set_multicast_list() local
198 assert(mcast_idx < 8 * sizeof(s->mult)); in set_multicast_list()
199 s->mult[mcast_idx >> 3] |= (1 << (mcast_idx & 7)); in set_multicast_list()
554 int mcast_idx = (net_crc32(buf, ETH_ALEN) & BITS(7, 2)) >> 2; in i82596_receive() local
555 assert(mcast_idx < 8 * sizeof(s->mult)); in i82596_receive()
557 if (!(s->mult[mcast_idx >> 3] & (1 << (mcast_idx & 7)))) { in i82596_receive()
H A Deepro100.c835 unsigned mcast_idx = (net_crc32(multicast_addr, ETH_ALEN) & in set_multicast_list() local
837 assert(mcast_idx < 64); in set_multicast_list()
838 s->mult[mcast_idx >> 3] |= (1 << (mcast_idx & 7)); in set_multicast_list()
1675 unsigned mcast_idx = (net_crc32(buf, ETH_ALEN) & BITS(7, 2)) >> 2; in nic_receive() local
1676 assert(mcast_idx < 64); in nic_receive()
1677 if (s->mult[mcast_idx >> 3] & (1 << (mcast_idx & 7))) { in nic_receive()
1695 unsigned mcast_idx = net_crc32(buf, ETH_ALEN) >> 26; in nic_receive() local
1696 assert(mcast_idx < 64); in nic_receive()
1697 if (s->mult[mcast_idx >> 3] & (1 << (mcast_idx & 7))) { in nic_receive()
H A Dne2000.c175 unsigned int total_len, next, avail, len, index, mcast_idx; in ne2000_receive() local
198 mcast_idx = net_crc32(buf, ETH_ALEN) >> 26; in ne2000_receive()
199 if (!(s->mult[mcast_idx >> 3] & (1 << (mcast_idx & 7)))) in ne2000_receive()
H A Dopencores_eth.c378 unsigned mcast_idx = net_crc32(buf, ETH_ALEN) >> 26; local
379 miss = !(s->regs[HASH0 + mcast_idx / 32] &
380 (1 << (mcast_idx % 32)));
382 mcast_idx, s->regs[HASH0], s->regs[HASH1]);
H A Dftgmac100.c991 unsigned mcast_idx; in ftgmac100_filter() local
1009 mcast_idx = net_crc32_le(buf, ETH_ALEN); in ftgmac100_filter()
1010 mcast_idx = (~(mcast_idx >> 2)) & 0x3f; in ftgmac100_filter()
1011 if (!(s->math[mcast_idx / 32] & (1 << (mcast_idx % 32)))) { in ftgmac100_filter()
H A Dsunhme.c754 int mcast_idx = net_crc32_le(buf, ETH_ALEN) >> 26; in sunhme_receive() local
755 if (!(s->macregs[(HME_MACI_HASHTAB0 >> 2) - (mcast_idx >> 4)] & in sunhme_receive()
756 (1 << (mcast_idx & 0xf)))) { in sunhme_receive()
H A Drtl8139.c884 int mcast_idx = net_crc32(buf, ETH_ALEN) >> 26; in rtl8139_do_receive() local
886 if (!(s->mult[mcast_idx >> 3] & (1 << (mcast_idx & 7)))) in rtl8139_do_receive()