Home
last modified time | relevance | path

Searched refs:mc_filter (Results 1 – 25 of 47) sorted by relevance

12

/linux-6.1.9/drivers/net/ethernet/stmicro/stmmac/
Ddwmac100_core.c98 u32 mc_filter[2]; in dwmac100_set_filter() local
108 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac100_set_filter()
118 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac100_set_filter()
120 writel(mc_filter[0], ioaddr + MAC_HASH_LOW); in dwmac100_set_filter()
121 writel(mc_filter[1], ioaddr + MAC_HASH_HIGH); in dwmac100_set_filter()
Ddwmac1000_core.c146 u32 mc_filter[8]; in dwmac1000_set_filter() local
152 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac1000_set_filter()
180 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac1000_set_filter()
185 dwmac1000_set_mchash(ioaddr, mc_filter, mcbitslog2); in dwmac1000_set_filter()
Ddwmac4_core.c640 u32 mc_filter[8]; in dwmac4_set_filter() local
643 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac4_set_filter()
670 memset(mc_filter, 0xff, sizeof(mc_filter)); in dwmac4_set_filter()
689 mc_filter[bit_nr >> 5] |= (1 << (bit_nr & 0x1f)); in dwmac4_set_filter()
694 writel(mc_filter[i], ioaddr + GMAC_HASH_TAB(i)); in dwmac4_set_filter()
/linux-6.1.9/drivers/net/wireless/ath/ath6kl/
Dmain.c1161 struct ath6kl_mc_filter *mc_filter, *tmp; in ath6kl_set_multicast_list() local
1207 list_for_each_entry_safe(mc_filter, tmp, &vif->mc_filter, list) { in ath6kl_set_multicast_list()
1210 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list()
1224 mc_filter->hw_addr); in ath6kl_set_multicast_list()
1226 vif->fw_vif_idx, mc_filter->hw_addr, in ath6kl_set_multicast_list()
1230 mc_filter->hw_addr); in ath6kl_set_multicast_list()
1234 list_del(&mc_filter->list); in ath6kl_set_multicast_list()
1235 kfree(mc_filter); in ath6kl_set_multicast_list()
1243 list_for_each_entry(mc_filter, &vif->mc_filter, list) { in ath6kl_set_multicast_list()
1244 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list()
[all …]
/linux-6.1.9/drivers/net/ethernet/fujitsu/
Dfmvj18x_cs.c1128 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-6.1.9/drivers/net/ethernet/smsc/
Depic100.c279 unsigned char mc_filter[8]; member
1357 unsigned char mc_filter[8]; /* Multicast hash filter */ in set_rx_mode() local
1363 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1368 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1376 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode()
1380 mc_filter[bit_nr >> 3] |= (1 << bit_nr); in set_rx_mode()
1384 if (memcmp(mc_filter, ep->mc_filter, sizeof(mc_filter))) { in set_rx_mode()
1386 ew16(MC0 + i*4, ((u16 *)mc_filter)[i]); in set_rx_mode()
1387 memcpy(ep->mc_filter, mc_filter, sizeof(mc_filter)); in set_rx_mode()
/linux-6.1.9/net/bluetooth/bnep/
Dcore.c171 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()
Dbnep.h158 unsigned long long mc_filter; member
Dnetdev.c126 if ((eh->h_dest[0] & 1) && !test_bit(bnep_mc_hash(eh->h_dest), (ulong *) &s->mc_filter)) in bnep_net_mc_filter()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb/
Dpm3393.c366 u16 mc_filter[4] = { 0, }; in pm3393_set_rx_mode() local
371 mc_filter[bit >> 4] |= 1 << (bit & 0xf); in pm3393_set_rx_mode()
373 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW, mc_filter[0]); in pm3393_set_rx_mode()
374 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW, mc_filter[1]); in pm3393_set_rx_mode()
375 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH, mc_filter[2]); in pm3393_set_rx_mode()
376 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH, mc_filter[3]); in pm3393_set_rx_mode()
/linux-6.1.9/drivers/net/ethernet/dec/tulip/
Dtulip_core.c1080 u32 mc_filter[2] = {0, 0}; /* Multicast hash filter */ in set_rx_mode() local
1090 mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); in set_rx_mode()
1098 if (mc_filter[0] == tp->mc_filter[0] && in set_rx_mode()
1099 mc_filter[1] == tp->mc_filter[1]) in set_rx_mode()
1103 iowrite32(mc_filter[0], ioaddr + CSR14); in set_rx_mode()
1105 iowrite32(mc_filter[1], ioaddr + CSR14); in set_rx_mode()
1107 iowrite32(mc_filter[0], ioaddr + CSR27); in set_rx_mode()
1108 iowrite32(mc_filter[1], ioaddr + CSR28); in set_rx_mode()
1110 tp->mc_filter[0] = mc_filter[0]; in set_rx_mode()
1111 tp->mc_filter[1] = mc_filter[1]; in set_rx_mode()
Dwinbond-840.c1334 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local
1338 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode()
1344 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode()
1349 memset(mc_filter, 0, sizeof(mc_filter)); in __set_rx_mode()
1355 mc_filter[filbit >> 5] |= 1 << (filbit & 31); in __set_rx_mode()
1359 iowrite32(mc_filter[0], ioaddr + MulticastFilter0); in __set_rx_mode()
1360 iowrite32(mc_filter[1], ioaddr + MulticastFilter1); in __set_rx_mode()
/linux-6.1.9/drivers/staging/vt6656/
Dmac.c23 int vnt_mac_set_filter(struct vnt_private *priv, u64 mc_filter) in vnt_mac_set_filter() argument
25 __le64 le_mc = cpu_to_le64(mc_filter); in vnt_mac_set_filter()
/linux-6.1.9/drivers/net/wireless/admtek/
Dadm8211.c1331 u32 mc_filter[2]; in adm8211_prepare_multicast() local
1334 mc_filter[1] = mc_filter[0] = 0; in adm8211_prepare_multicast()
1340 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in adm8211_prepare_multicast()
1343 return mc_filter[0] | ((u64)(mc_filter[1]) << 32); in adm8211_prepare_multicast()
1354 u32 mc_filter[2]; in adm8211_configure_filter() local
1356 mc_filter[0] = multicast; in adm8211_configure_filter()
1357 mc_filter[1] = multicast >> 32; in adm8211_configure_filter()
1365 mc_filter[1] = mc_filter[0] = ~0; in adm8211_configure_filter()
1372 ADM8211_CSR_WRITE(MAR0, mc_filter[0]); in adm8211_configure_filter()
1373 ADM8211_CSR_WRITE(MAR1, mc_filter[1]); in adm8211_configure_filter()
/linux-6.1.9/drivers/net/ethernet/amd/
Damd8111e.c1321 u32 mc_filter[2]; in amd8111e_set_multicast_list() local
1333 mc_filter[1] = mc_filter[0] = 0xffffffff; in amd8111e_set_multicast_list()
1335 amd8111e_writeq(*(u64 *)mc_filter, lp->mmio + LADRF); in amd8111e_set_multicast_list()
1340 mc_filter[1] = mc_filter[0] = 0; in amd8111e_set_multicast_list()
1342 amd8111e_writeq(*(u64 *)mc_filter, lp->mmio + LADRF); in amd8111e_set_multicast_list()
1349 mc_filter[1] = mc_filter[0] = 0; in amd8111e_set_multicast_list()
1352 mc_filter[bit_num >> 5] |= 1 << (bit_num & 31); in amd8111e_set_multicast_list()
1354 amd8111e_writeq(*(u64 *)mc_filter, lp->mmio + LADRF); in amd8111e_set_multicast_list()
Dau1000_eth.c1035 u32 mc_filter[2]; /* Multicast hash filter */ in au1000_multicast_list() local
1037 mc_filter[1] = mc_filter[0] = 0; in au1000_multicast_list()
1040 (long *)mc_filter); in au1000_multicast_list()
1041 writel(mc_filter[1], &aup->mac->multi_hash_high); in au1000_multicast_list()
1042 writel(mc_filter[0], &aup->mac->multi_hash_low); in au1000_multicast_list()
/linux-6.1.9/drivers/net/ethernet/
Dfealnx.c1776 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local
1780 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode()
1785 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode()
1790 memset(mc_filter, 0, sizeof(mc_filter)); in __set_rx_mode()
1794 mc_filter[bit >> 5] |= (1 << bit); in __set_rx_mode()
1801 iowrite32(mc_filter[0], ioaddr + MAR0); in __set_rx_mode()
1802 iowrite32(mc_filter[1], ioaddr + MAR1); in __set_rx_mode()
/linux-6.1.9/drivers/net/ethernet/sis/
Dsis190.c840 u32 mc_filter[2]; /* Multicast hash filter */ in sis190_set_rx_mode() local
847 mc_filter[1] = mc_filter[0] = 0xffffffff; in sis190_set_rx_mode()
852 mc_filter[1] = mc_filter[0] = 0xffffffff; in sis190_set_rx_mode()
857 mc_filter[1] = mc_filter[0] = 0; in sis190_set_rx_mode()
861 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in sis190_set_rx_mode()
869 SIS_W32(RxHashTable, mc_filter[0]); in sis190_set_rx_mode()
870 SIS_W32(RxHashTable + 4, mc_filter[1]); in sis190_set_rx_mode()
/linux-6.1.9/drivers/net/ethernet/dlink/
Dsundance.c1558 u16 mc_filter[4]; /* Multicast hash filter */ in set_rx_mode() local
1563 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1568 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1575 memset (mc_filter, 0, sizeof (mc_filter)); in set_rx_mode()
1580 mc_filter[index/16] |= (1 << (index % 16)); in set_rx_mode()
1588 mc_filter[3] |= 0x0200; in set_rx_mode()
1591 iowrite16(mc_filter[i], ioaddr + MulticastFilter0 + i*2); in set_rx_mode()
/linux-6.1.9/include/linux/
Dif_macvlan.h28 DECLARE_BITMAP(mc_filter, MACVLAN_MC_FILTER_SZ);
/linux-6.1.9/drivers/net/
Dmacvlan.c53 DECLARE_BITMAP(mc_filter, MACVLAN_MC_FILTER_SZ);
280 if (!test_bit(hash, vlan->mc_filter)) in macvlan_broadcast()
479 if (test_bit(hash, port->mc_filter)) in macvlan_handle_frame()
781 static void macvlan_compute_filter(unsigned long *mc_filter, in macvlan_compute_filter() argument
786 bitmap_fill(mc_filter, MACVLAN_MC_FILTER_SZ); in macvlan_compute_filter()
798 bitmap_copy(mc_filter, filter, MACVLAN_MC_FILTER_SZ); in macvlan_compute_filter()
806 macvlan_compute_filter(vlan->mc_filter, dev, vlan); in macvlan_set_mac_lists()
824 macvlan_compute_filter(vlan->port->mc_filter, vlan->lowerdev, NULL); in macvlan_set_mac_lists()
/linux-6.1.9/drivers/net/ethernet/realtek/
D8139cp.c891 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()
D8139too.c2554 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local
2566 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode()
2571 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode()
2575 mc_filter[1] = mc_filter[0] = 0; in __set_rx_mode()
2579 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __set_rx_mode()
2593 RTL_W32_F (MAR0 + 0, mc_filter[0]); in __set_rx_mode()
2594 RTL_W32_F (MAR0 + 4, mc_filter[1]); in __set_rx_mode()
/linux-6.1.9/drivers/net/ethernet/aeroflex/
Dgreth.c1047 u32 mc_filter[2]; in greth_set_hash_filter() local
1050 mc_filter[0] = mc_filter[1] = 0; in greth_set_hash_filter()
1054 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in greth_set_hash_filter()
1057 GRETH_REGSAVE(regs->hash_msb, mc_filter[1]); in greth_set_hash_filter()
1058 GRETH_REGSAVE(regs->hash_lsb, mc_filter[0]); in greth_set_hash_filter()
/linux-6.1.9/drivers/net/ethernet/cortina/
Dgemini.c1852 u32 mc_filter[2]; in gmac_set_rx_mode() local
1854 mc_filter[1] = 0; in gmac_set_rx_mode()
1855 mc_filter[0] = 0; in gmac_set_rx_mode()
1860 mc_filter[1] = ~0; in gmac_set_rx_mode()
1861 mc_filter[0] = ~0; in gmac_set_rx_mode()
1863 mc_filter[1] = ~0; in gmac_set_rx_mode()
1864 mc_filter[0] = ~0; in gmac_set_rx_mode()
1868 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 0x1f); in gmac_set_rx_mode()
1872 writel(mc_filter[0], port->gmac_base + GMAC_MCAST_FIL0); in gmac_set_rx_mode()
1873 writel(mc_filter[1], port->gmac_base + GMAC_MCAST_FIL1); in gmac_set_rx_mode()

12