/Linux-v5.4/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac100_core.c | 106 u32 mc_filter[2]; in dwmac100_set_filter() local 116 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac100_set_filter() 126 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac100_set_filter() 128 writel(mc_filter[0], ioaddr + MAC_HASH_LOW); in dwmac100_set_filter() 129 writel(mc_filter[1], ioaddr + MAC_HASH_HIGH); in dwmac100_set_filter()
|
D | dwmac1000_core.c | 156 u32 mc_filter[8]; in dwmac1000_set_filter() local 162 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac1000_set_filter() 187 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac1000_set_filter() 192 dwmac1000_set_mchash(ioaddr, mc_filter, mcbitslog2); in dwmac1000_set_filter()
|
D | dwmac4_core.c | 404 u32 mc_filter[8]; in dwmac4_set_filter() local 407 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac4_set_filter() 422 memset(mc_filter, 0xff, sizeof(mc_filter)); in dwmac4_set_filter() 441 mc_filter[bit_nr >> 5] |= (1 << (bit_nr & 0x1f)); in dwmac4_set_filter() 446 writel(mc_filter[i], ioaddr + GMAC_HASH_TAB(i)); in dwmac4_set_filter()
|
/Linux-v5.4/drivers/net/wireless/ath/ath6kl/ |
D | main.c | 1158 struct ath6kl_mc_filter *mc_filter, *tmp; in ath6kl_set_multicast_list() local 1204 list_for_each_entry_safe(mc_filter, tmp, &vif->mc_filter, list) { in ath6kl_set_multicast_list() 1207 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list() 1221 mc_filter->hw_addr); in ath6kl_set_multicast_list() 1223 vif->fw_vif_idx, mc_filter->hw_addr, in ath6kl_set_multicast_list() 1227 mc_filter->hw_addr); in ath6kl_set_multicast_list() 1231 list_del(&mc_filter->list); in ath6kl_set_multicast_list() 1232 kfree(mc_filter); in ath6kl_set_multicast_list() 1240 list_for_each_entry(mc_filter, &vif->mc_filter, list) { in ath6kl_set_multicast_list() 1241 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list() [all …]
|
/Linux-v5.4/drivers/net/ethernet/fujitsu/ |
D | fmvj18x_cs.c | 1128 u_char mc_filter[8]; /* Multicast hash filter */ in set_rx_mode() local 1144 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1149 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1152 memset(mc_filter, 0x00, sizeof(mc_filter)); in set_rx_mode() 1157 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode() 1160 mc_filter[bit >> 3] |= (1 << (bit & 7)); in set_rx_mode() 1170 outb(mc_filter[i], ioaddr + MAR_ADR + i); in set_rx_mode()
|
/Linux-v5.4/drivers/net/ethernet/smsc/ |
D | epic100.c | 279 unsigned char mc_filter[8]; member 1343 unsigned char mc_filter[8]; /* Multicast hash filter */ in set_rx_mode() local 1349 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1354 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1362 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode() 1366 mc_filter[bit_nr >> 3] |= (1 << bit_nr); in set_rx_mode() 1370 if (memcmp(mc_filter, ep->mc_filter, sizeof(mc_filter))) { in set_rx_mode() 1372 ew16(MC0 + i*4, ((u16 *)mc_filter)[i]); in set_rx_mode() 1373 memcpy(ep->mc_filter, mc_filter, sizeof(mc_filter)); in set_rx_mode()
|
/Linux-v5.4/net/bluetooth/bnep/ |
D | core.c | 171 s->mc_filter = 0; in bnep_ctrl_set_mcfilter() 174 set_bit(bnep_mc_hash(s->dev->broadcast), (ulong *) &s->mc_filter); in bnep_ctrl_set_mcfilter() 188 set_bit(bnep_mc_hash(a1), (ulong *) &s->mc_filter); in bnep_ctrl_set_mcfilter() 189 while (memcmp(a1, a2, 6) < 0 && s->mc_filter != ~0LL) { in bnep_ctrl_set_mcfilter() 195 set_bit(bnep_mc_hash(a1), (ulong *) &s->mc_filter); in bnep_ctrl_set_mcfilter() 200 BT_DBG("mc filter hash 0x%llx", s->mc_filter); in bnep_ctrl_set_mcfilter() 612 s->mc_filter = ~0LL; in bnep_add_connection()
|
D | bnep.h | 158 unsigned long long mc_filter; member
|
D | netdev.c | 126 if ((eh->h_dest[0] & 1) && !test_bit(bnep_mc_hash(eh->h_dest), (ulong *) &s->mc_filter)) in bnep_net_mc_filter()
|
/Linux-v5.4/drivers/net/ethernet/chelsio/cxgb/ |
D | pm3393.c | 375 u16 mc_filter[4] = { 0, }; in pm3393_set_rx_mode() local 380 mc_filter[bit >> 4] |= 1 << (bit & 0xf); in pm3393_set_rx_mode() 382 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW, mc_filter[0]); in pm3393_set_rx_mode() 383 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW, mc_filter[1]); in pm3393_set_rx_mode() 384 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH, mc_filter[2]); in pm3393_set_rx_mode() 385 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH, mc_filter[3]); in pm3393_set_rx_mode()
|
/Linux-v5.4/drivers/staging/vt6656/ |
D | mac.c | 38 void vnt_mac_set_filter(struct vnt_private *priv, u64 mc_filter) in vnt_mac_set_filter() argument 40 __le64 le_mc = cpu_to_le64(mc_filter); in vnt_mac_set_filter()
|
/Linux-v5.4/drivers/net/wireless/admtek/ |
D | adm8211.c | 1333 u32 mc_filter[2]; in adm8211_prepare_multicast() local 1336 mc_filter[1] = mc_filter[0] = 0; in adm8211_prepare_multicast() 1342 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in adm8211_prepare_multicast() 1345 return mc_filter[0] | ((u64)(mc_filter[1]) << 32); in adm8211_prepare_multicast() 1356 u32 mc_filter[2]; in adm8211_configure_filter() local 1358 mc_filter[0] = multicast; in adm8211_configure_filter() 1359 mc_filter[1] = multicast >> 32; in adm8211_configure_filter() 1367 mc_filter[1] = mc_filter[0] = ~0; in adm8211_configure_filter() 1374 ADM8211_CSR_WRITE(MAR0, mc_filter[0]); in adm8211_configure_filter() 1375 ADM8211_CSR_WRITE(MAR1, mc_filter[1]); in adm8211_configure_filter()
|
/Linux-v5.4/drivers/net/ethernet/dec/tulip/ |
D | tulip_core.c | 1090 u32 mc_filter[2] = {0, 0}; /* Multicast hash filter */ in set_rx_mode() local 1100 mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); in set_rx_mode() 1108 if (mc_filter[0] == tp->mc_filter[0] && in set_rx_mode() 1109 mc_filter[1] == tp->mc_filter[1]) in set_rx_mode() 1113 iowrite32(mc_filter[0], ioaddr + CSR14); in set_rx_mode() 1115 iowrite32(mc_filter[1], ioaddr + CSR14); in set_rx_mode() 1117 iowrite32(mc_filter[0], ioaddr + CSR27); in set_rx_mode() 1118 iowrite32(mc_filter[1], ioaddr + CSR28); in set_rx_mode() 1120 tp->mc_filter[0] = mc_filter[0]; in set_rx_mode() 1121 tp->mc_filter[1] = mc_filter[1]; in set_rx_mode()
|
D | winbond-840.c | 1344 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local 1348 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1354 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1359 memset(mc_filter, 0, sizeof(mc_filter)); in __set_rx_mode() 1365 mc_filter[filbit >> 5] |= 1 << (filbit & 31); in __set_rx_mode() 1369 iowrite32(mc_filter[0], ioaddr + MulticastFilter0); in __set_rx_mode() 1370 iowrite32(mc_filter[1], ioaddr + MulticastFilter1); in __set_rx_mode()
|
/Linux-v5.4/drivers/net/ethernet/amd/ |
D | amd8111e.c | 1323 u32 mc_filter[2] ; in amd8111e_set_multicast_list() local 1335 mc_filter[1] = mc_filter[0] = 0xffffffff; in amd8111e_set_multicast_list() 1337 amd8111e_writeq(*(u64 *)mc_filter, lp->mmio + LADRF); in amd8111e_set_multicast_list() 1342 mc_filter[1] = mc_filter[0] = 0; in amd8111e_set_multicast_list() 1344 amd8111e_writeq(*(u64 *)mc_filter, lp->mmio + LADRF); in amd8111e_set_multicast_list() 1351 mc_filter[1] = mc_filter[0] = 0; in amd8111e_set_multicast_list() 1354 mc_filter[bit_num >> 5] |= 1 << (bit_num & 31); in amd8111e_set_multicast_list() 1356 amd8111e_writeq(*(u64 *)mc_filter, lp->mmio + LADRF); in amd8111e_set_multicast_list()
|
D | au1000_eth.c | 1042 u32 mc_filter[2]; /* Multicast hash filter */ in au1000_multicast_list() local 1044 mc_filter[1] = mc_filter[0] = 0; in au1000_multicast_list() 1047 (long *)mc_filter); in au1000_multicast_list() 1048 writel(mc_filter[1], &aup->mac->multi_hash_high); in au1000_multicast_list() 1049 writel(mc_filter[0], &aup->mac->multi_hash_low); in au1000_multicast_list()
|
/Linux-v5.4/drivers/net/ethernet/sis/ |
D | sis190.c | 837 u32 mc_filter[2]; /* Multicast hash filter */ in sis190_set_rx_mode() local 844 mc_filter[1] = mc_filter[0] = 0xffffffff; in sis190_set_rx_mode() 849 mc_filter[1] = mc_filter[0] = 0xffffffff; in sis190_set_rx_mode() 854 mc_filter[1] = mc_filter[0] = 0; in sis190_set_rx_mode() 858 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in sis190_set_rx_mode() 866 SIS_W32(RxHashTable, mc_filter[0]); in sis190_set_rx_mode() 867 SIS_W32(RxHashTable + 4, mc_filter[1]); in sis190_set_rx_mode()
|
/Linux-v5.4/drivers/net/ethernet/ |
D | fealnx.c | 1775 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local 1779 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1784 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1789 memset(mc_filter, 0, sizeof(mc_filter)); in __set_rx_mode() 1793 mc_filter[bit >> 5] |= (1 << bit); in __set_rx_mode() 1800 iowrite32(mc_filter[0], ioaddr + MAR0); in __set_rx_mode() 1801 iowrite32(mc_filter[1], ioaddr + MAR1); in __set_rx_mode()
|
/Linux-v5.4/drivers/net/ethernet/dlink/ |
D | sundance.c | 1570 u16 mc_filter[4]; /* Multicast hash filter */ in set_rx_mode() local 1575 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1580 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1587 memset (mc_filter, 0, sizeof (mc_filter)); in set_rx_mode() 1592 mc_filter[index/16] |= (1 << (index % 16)); in set_rx_mode() 1600 mc_filter[3] |= 0x0200; in set_rx_mode() 1603 iowrite16(mc_filter[i], ioaddr + MulticastFilter0 + i*2); in set_rx_mode()
|
/Linux-v5.4/include/linux/ |
D | if_macvlan.h | 27 DECLARE_BITMAP(mc_filter, MACVLAN_MC_FILTER_SZ);
|
/Linux-v5.4/drivers/net/ |
D | macvlan.c | 52 DECLARE_BITMAP(mc_filter, MACVLAN_MC_FILTER_SZ); 278 if (!test_bit(hash, vlan->mc_filter)) in macvlan_broadcast() 469 if (test_bit(hash, port->mc_filter)) in macvlan_handle_frame() 767 static void macvlan_compute_filter(unsigned long *mc_filter, in macvlan_compute_filter() argument 772 bitmap_fill(mc_filter, MACVLAN_MC_FILTER_SZ); in macvlan_compute_filter() 784 bitmap_copy(mc_filter, filter, MACVLAN_MC_FILTER_SZ); in macvlan_compute_filter() 792 macvlan_compute_filter(vlan->mc_filter, dev, vlan); in macvlan_set_mac_lists() 810 macvlan_compute_filter(vlan->port->mc_filter, vlan->lowerdev, NULL); in macvlan_set_mac_lists()
|
/Linux-v5.4/drivers/net/ethernet/realtek/ |
D | 8139cp.c | 891 u32 mc_filter[2]; /* Multicast hash filter */ in __cp_set_rx_mode() local 900 mc_filter[1] = mc_filter[0] = 0xffffffff; in __cp_set_rx_mode() 905 mc_filter[1] = mc_filter[0] = 0xffffffff; in __cp_set_rx_mode() 909 mc_filter[1] = mc_filter[0] = 0; in __cp_set_rx_mode() 913 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __cp_set_rx_mode() 922 cpw32_f (MAR0 + 0, mc_filter[0]); in __cp_set_rx_mode() 923 cpw32_f (MAR0 + 4, mc_filter[1]); in __cp_set_rx_mode()
|
D | 8139too.c | 2553 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local 2565 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode() 2570 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode() 2574 mc_filter[1] = mc_filter[0] = 0; in __set_rx_mode() 2578 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __set_rx_mode() 2592 RTL_W32_F (MAR0 + 0, mc_filter[0]); in __set_rx_mode() 2593 RTL_W32_F (MAR0 + 4, mc_filter[1]); in __set_rx_mode()
|
/Linux-v5.4/drivers/net/ethernet/aeroflex/ |
D | greth.c | 1046 u32 mc_filter[2]; in greth_set_hash_filter() local 1049 mc_filter[0] = mc_filter[1] = 0; in greth_set_hash_filter() 1053 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in greth_set_hash_filter() 1056 GRETH_REGSAVE(regs->hash_msb, mc_filter[1]); in greth_set_hash_filter() 1057 GRETH_REGSAVE(regs->hash_lsb, mc_filter[0]); in greth_set_hash_filter()
|
/Linux-v5.4/drivers/net/ethernet/cortina/ |
D | gemini.c | 1862 u32 mc_filter[2]; in gmac_set_rx_mode() local 1864 mc_filter[1] = 0; in gmac_set_rx_mode() 1865 mc_filter[0] = 0; in gmac_set_rx_mode() 1870 mc_filter[1] = ~0; in gmac_set_rx_mode() 1871 mc_filter[0] = ~0; in gmac_set_rx_mode() 1873 mc_filter[1] = ~0; in gmac_set_rx_mode() 1874 mc_filter[0] = ~0; in gmac_set_rx_mode() 1878 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 0x1f); in gmac_set_rx_mode() 1882 writel(mc_filter[0], port->gmac_base + GMAC_MCAST_FIL0); in gmac_set_rx_mode() 1883 writel(mc_filter[1], port->gmac_base + GMAC_MCAST_FIL1); in gmac_set_rx_mode()
|