Home
last modified time | relevance | path

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

12

/drivers/net/ethernet/stmicro/stmmac/
Ddwmac100_core.c118 u32 mc_filter[2]; in dwmac100_set_filter() local
128 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac100_set_filter()
138 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac100_set_filter()
140 writel(mc_filter[0], ioaddr + MAC_HASH_LOW); in dwmac100_set_filter()
141 writel(mc_filter[1], ioaddr + MAC_HASH_HIGH); in dwmac100_set_filter()
Ddwmac4_core.c147 u32 mc_filter[2]; in dwmac4_set_filter() local
153 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac4_set_filter()
164 mc_filter[bit_nr >> 5] |= (1 << (bit_nr & 0x1F)); in dwmac4_set_filter()
166 writel(mc_filter[0], ioaddr + GMAC_HASH_TAB_0_31); in dwmac4_set_filter()
167 writel(mc_filter[1], ioaddr + GMAC_HASH_TAB_32_63); in dwmac4_set_filter()
Ddwmac1000_core.c163 u32 mc_filter[8]; in dwmac1000_set_filter() local
169 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac1000_set_filter()
194 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac1000_set_filter()
198 dwmac1000_set_mchash(ioaddr, mc_filter, mcbitslog2); in dwmac1000_set_filter()
/drivers/net/wireless/ath/ath6kl/
Dmain.c1162 struct ath6kl_mc_filter *mc_filter, *tmp; in ath6kl_set_multicast_list() local
1208 list_for_each_entry_safe(mc_filter, tmp, &vif->mc_filter, list) { in ath6kl_set_multicast_list()
1211 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list()
1225 mc_filter->hw_addr); in ath6kl_set_multicast_list()
1227 vif->fw_vif_idx, mc_filter->hw_addr, in ath6kl_set_multicast_list()
1231 mc_filter->hw_addr); in ath6kl_set_multicast_list()
1235 list_del(&mc_filter->list); in ath6kl_set_multicast_list()
1236 kfree(mc_filter); in ath6kl_set_multicast_list()
1244 list_for_each_entry(mc_filter, &vif->mc_filter, list) { in ath6kl_set_multicast_list()
1245 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list()
[all …]
/drivers/net/ethernet/fujitsu/
Dfmvj18x_cs.c1124 u_char mc_filter[8]; /* Multicast hash filter */ in set_rx_mode() local
1140 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1145 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1148 memset(mc_filter, 0x00, sizeof(mc_filter)); in set_rx_mode()
1153 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode()
1156 mc_filter[bit >> 3] |= (1 << (bit & 7)); in set_rx_mode()
1166 outb(mc_filter[i], ioaddr + MAR_ADR + i); in set_rx_mode()
/drivers/net/ethernet/smsc/
Depic100.c280 unsigned char mc_filter[8]; member
1365 unsigned char mc_filter[8]; /* Multicast hash filter */ in set_rx_mode() local
1371 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1376 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1384 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode()
1388 mc_filter[bit_nr >> 3] |= (1 << bit_nr); in set_rx_mode()
1392 if (memcmp(mc_filter, ep->mc_filter, sizeof(mc_filter))) { in set_rx_mode()
1394 ew16(MC0 + i*4, ((u16 *)mc_filter)[i]); in set_rx_mode()
1395 memcpy(ep->mc_filter, mc_filter, sizeof(mc_filter)); in set_rx_mode()
/drivers/net/ethernet/chelsio/cxgb/
Dpm3393.c381 u16 mc_filter[4] = { 0, }; in pm3393_set_rx_mode() local
386 mc_filter[bit >> 4] |= 1 << (bit & 0xf); in pm3393_set_rx_mode()
388 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW, mc_filter[0]); in pm3393_set_rx_mode()
389 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW, mc_filter[1]); in pm3393_set_rx_mode()
390 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH, mc_filter[2]); in pm3393_set_rx_mode()
391 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH, mc_filter[3]); in pm3393_set_rx_mode()
/drivers/net/ethernet/dec/tulip/
Dtulip_core.c1090 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()
Dwinbond-840.c1347 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local
1351 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode()
1357 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode()
1362 memset(mc_filter, 0, sizeof(mc_filter)); in __set_rx_mode()
1368 mc_filter[filbit >> 5] |= 1 << (filbit & 31); in __set_rx_mode()
1372 iowrite32(mc_filter[0], ioaddr + MulticastFilter0); in __set_rx_mode()
1373 iowrite32(mc_filter[1], ioaddr + MulticastFilter1); in __set_rx_mode()
/drivers/net/wireless/admtek/
Dadm8211.c1337 u32 mc_filter[2]; in adm8211_prepare_multicast() local
1340 mc_filter[1] = mc_filter[0] = 0; in adm8211_prepare_multicast()
1346 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in adm8211_prepare_multicast()
1349 return mc_filter[0] | ((u64)(mc_filter[1]) << 32); in adm8211_prepare_multicast()
1360 u32 mc_filter[2]; in adm8211_configure_filter() local
1362 mc_filter[0] = multicast; in adm8211_configure_filter()
1363 mc_filter[1] = multicast >> 32; in adm8211_configure_filter()
1371 mc_filter[1] = mc_filter[0] = ~0; in adm8211_configure_filter()
1378 ADM8211_CSR_WRITE(MAR0, mc_filter[0]); in adm8211_configure_filter()
1379 ADM8211_CSR_WRITE(MAR1, mc_filter[1]); in adm8211_configure_filter()
/drivers/staging/vt6656/
Dmac.c48 void vnt_mac_set_filter(struct vnt_private *priv, u64 mc_filter) in vnt_mac_set_filter() argument
50 __le64 le_mc = cpu_to_le64(mc_filter); in vnt_mac_set_filter()
Dmain_usb.c778 u64 mc_filter = 0; in vnt_prepare_multicast() local
784 mc_filter |= 1ULL << (bit_nr & 0x3f); in vnt_prepare_multicast()
789 return mc_filter; in vnt_prepare_multicast()
/drivers/net/ethernet/amd/
Damd8111e.c1360 u32 mc_filter[2] ; in amd8111e_set_multicast_list() local
1372 mc_filter[1] = mc_filter[0] = 0xffffffff; in amd8111e_set_multicast_list()
1374 amd8111e_writeq(*(u64 *)mc_filter, lp->mmio + LADRF); in amd8111e_set_multicast_list()
1379 mc_filter[1] = mc_filter[0] = 0; in amd8111e_set_multicast_list()
1381 amd8111e_writeq(*(u64 *)mc_filter, lp->mmio + LADRF); in amd8111e_set_multicast_list()
1388 mc_filter[1] = mc_filter[0] = 0; in amd8111e_set_multicast_list()
1391 mc_filter[bit_num >> 5] |= 1 << (bit_num & 31); in amd8111e_set_multicast_list()
1393 amd8111e_writeq(*(u64 *)mc_filter, lp->mmio + LADRF); in amd8111e_set_multicast_list()
Dau1000_eth.c1072 u32 mc_filter[2]; /* Multicast hash filter */ in au1000_multicast_list() local
1074 mc_filter[1] = mc_filter[0] = 0; in au1000_multicast_list()
1077 (long *)mc_filter); in au1000_multicast_list()
1078 writel(mc_filter[1], &aup->mac->multi_hash_high); in au1000_multicast_list()
1079 writel(mc_filter[0], &aup->mac->multi_hash_low); in au1000_multicast_list()
/drivers/net/ethernet/sis/
Dsis190.c837 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()
/drivers/net/ethernet/
Dfealnx.c1780 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local
1784 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode()
1789 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode()
1794 memset(mc_filter, 0, sizeof(mc_filter)); in __set_rx_mode()
1798 mc_filter[bit >> 5] |= (1 << bit); in __set_rx_mode()
1805 iowrite32(mc_filter[0], ioaddr + MAR0); in __set_rx_mode()
1806 iowrite32(mc_filter[1], ioaddr + MAR1); in __set_rx_mode()
/drivers/net/
Dmacvlan.c52 DECLARE_BITMAP(mc_filter, MACVLAN_MC_FILTER_SZ);
253 if (!test_bit(hash, vlan->mc_filter)) in macvlan_broadcast()
443 if (test_bit(hash, port->mc_filter)) in macvlan_handle_frame()
731 static void macvlan_compute_filter(unsigned long *mc_filter, in macvlan_compute_filter() argument
736 bitmap_fill(mc_filter, MACVLAN_MC_FILTER_SZ); in macvlan_compute_filter()
748 bitmap_copy(mc_filter, filter, MACVLAN_MC_FILTER_SZ); in macvlan_compute_filter()
756 macvlan_compute_filter(vlan->mc_filter, dev, vlan); in macvlan_set_mac_lists()
774 macvlan_compute_filter(vlan->port->mc_filter, vlan->lowerdev, NULL); in macvlan_set_mac_lists()
/drivers/net/ethernet/dlink/
Dsundance.c1571 u16 mc_filter[4]; /* Multicast hash filter */ in set_rx_mode() local
1576 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1581 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1588 memset (mc_filter, 0, sizeof (mc_filter)); in set_rx_mode()
1593 mc_filter[index/16] |= (1 << (index % 16)); in set_rx_mode()
1601 mc_filter[3] |= 0x0200; in set_rx_mode()
1604 iowrite16(mc_filter[i], ioaddr + MulticastFilter0 + i*2); in set_rx_mode()
/drivers/net/ethernet/realtek/
D8139cp.c893 u32 mc_filter[2]; /* Multicast hash filter */ in __cp_set_rx_mode() local
902 mc_filter[1] = mc_filter[0] = 0xffffffff; in __cp_set_rx_mode()
907 mc_filter[1] = mc_filter[0] = 0xffffffff; in __cp_set_rx_mode()
911 mc_filter[1] = mc_filter[0] = 0; in __cp_set_rx_mode()
915 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __cp_set_rx_mode()
924 cpw32_f (MAR0 + 0, mc_filter[0]); in __cp_set_rx_mode()
925 cpw32_f (MAR0 + 4, mc_filter[1]); in __cp_set_rx_mode()
D8139too.c2563 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local
2575 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode()
2580 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode()
2584 mc_filter[1] = mc_filter[0] = 0; in __set_rx_mode()
2588 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __set_rx_mode()
2602 RTL_W32_F (MAR0 + 0, mc_filter[0]); in __set_rx_mode()
2603 RTL_W32_F (MAR0 + 4, mc_filter[1]); in __set_rx_mode()
Dr8169.c5344 u32 mc_filter[2]; /* Multicast hash filter */ in rtl_set_rx_mode() local
5354 mc_filter[1] = mc_filter[0] = 0xffffffff; in rtl_set_rx_mode()
5359 mc_filter[1] = mc_filter[0] = 0xffffffff; in rtl_set_rx_mode()
5364 mc_filter[1] = mc_filter[0] = 0; in rtl_set_rx_mode()
5367 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in rtl_set_rx_mode()
5378 u32 data = mc_filter[0]; in rtl_set_rx_mode()
5380 mc_filter[0] = swab32(mc_filter[1]); in rtl_set_rx_mode()
5381 mc_filter[1] = swab32(data); in rtl_set_rx_mode()
5385 mc_filter[1] = mc_filter[0] = 0xffffffff; in rtl_set_rx_mode()
5387 RTL_W32(MAR0 + 4, mc_filter[1]); in rtl_set_rx_mode()
[all …]
/drivers/net/ethernet/aeroflex/
Dgreth.c1049 u32 mc_filter[2]; in greth_set_hash_filter() local
1052 mc_filter[0] = mc_filter[1] = 0; in greth_set_hash_filter()
1056 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in greth_set_hash_filter()
1059 GRETH_REGSAVE(regs->hash_msb, mc_filter[1]); in greth_set_hash_filter()
1060 GRETH_REGSAVE(regs->hash_lsb, mc_filter[0]); in greth_set_hash_filter()
/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_main.c1880 u32 mc_filter[2]; in sxgbe_set_rx_mode() local
1900 memset(mc_filter, 0, sizeof(mc_filter)); in sxgbe_set_rx_mode()
1911 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in sxgbe_set_rx_mode()
1913 writel(mc_filter[0], ioaddr + SXGBE_HASH_LOW); in sxgbe_set_rx_mode()
1914 writel(mc_filter[1], ioaddr + SXGBE_HASH_HIGH); in sxgbe_set_rx_mode()
/drivers/net/ethernet/3com/
Dtyphoon.c864 u32 mc_filter[2]; in typhoon_set_rx_mode() local
877 memset(mc_filter, 0, sizeof(mc_filter)); in typhoon_set_rx_mode()
880 mc_filter[bit >> 5] |= 1 << (bit & 0x1f); in typhoon_set_rx_mode()
886 xp_cmd.parm2 = cpu_to_le32(mc_filter[0]); in typhoon_set_rx_mode()
887 xp_cmd.parm3 = cpu_to_le32(mc_filter[1]); in typhoon_set_rx_mode()
/drivers/net/ethernet/via/
Dvia-rhine.c2256 u32 mc_filter[2]; /* Multicast hash filter */ in rhine_set_rx_mode() local
2281 memset(mc_filter, 0, sizeof(mc_filter)); in rhine_set_rx_mode()
2285 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in rhine_set_rx_mode()
2287 iowrite32(mc_filter[0], ioaddr + MulticastFilter0); in rhine_set_rx_mode()
2288 iowrite32(mc_filter[1], ioaddr + MulticastFilter1); in rhine_set_rx_mode()

12