Home
last modified time | relevance | path

Searched refs:mc_filter (Results 1 – 25 of 40) 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()
Ddwmac1000_core.c137 u32 mc_filter[8]; in dwmac1000_set_filter() local
143 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac1000_set_filter()
171 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac1000_set_filter()
175 dwmac1000_set_mchash(ioaddr, mc_filter, mcbitslog2); in dwmac1000_set_filter()
/drivers/net/wireless/ath/ath6kl/
Dmain.c1165 struct ath6kl_mc_filter *mc_filter, *tmp; in ath6kl_set_multicast_list() local
1211 list_for_each_entry_safe(mc_filter, tmp, &vif->mc_filter, list) { in ath6kl_set_multicast_list()
1214 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list()
1228 mc_filter->hw_addr); in ath6kl_set_multicast_list()
1230 vif->fw_vif_idx, mc_filter->hw_addr, in ath6kl_set_multicast_list()
1234 mc_filter->hw_addr); in ath6kl_set_multicast_list()
1238 list_del(&mc_filter->list); in ath6kl_set_multicast_list()
1239 kfree(mc_filter); in ath6kl_set_multicast_list()
1247 list_for_each_entry(mc_filter, &vif->mc_filter, list) { in ath6kl_set_multicast_list()
1248 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list()
[all …]
/drivers/net/ethernet/fujitsu/
Dfmvj18x_cs.c1129 u_char mc_filter[8]; /* Multicast hash filter */ in set_rx_mode() local
1145 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1150 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode()
1153 memset(mc_filter, 0x00, sizeof(mc_filter)); in set_rx_mode()
1158 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode()
1161 mc_filter[bit >> 3] |= (1 << (bit & 7)); in set_rx_mode()
1171 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.c1093 u32 mc_filter[2] = {0, 0}; /* Multicast hash filter */ in set_rx_mode() local
1103 mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); in set_rx_mode()
1111 if (mc_filter[0] == tp->mc_filter[0] && in set_rx_mode()
1112 mc_filter[1] == tp->mc_filter[1]) in set_rx_mode()
1116 iowrite32(mc_filter[0], ioaddr + CSR14); in set_rx_mode()
1118 iowrite32(mc_filter[1], ioaddr + CSR14); in set_rx_mode()
1120 iowrite32(mc_filter[0], ioaddr + CSR27); in set_rx_mode()
1121 iowrite32(mc_filter[1], ioaddr + CSR28); in set_rx_mode()
1123 tp->mc_filter[0] = mc_filter[0]; in set_rx_mode()
1124 tp->mc_filter[1] = mc_filter[1]; in set_rx_mode()
Dwinbond-840.c1345 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local
1349 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode()
1355 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode()
1360 memset(mc_filter, 0, sizeof(mc_filter)); in __set_rx_mode()
1366 mc_filter[filbit >> 5] |= 1 << (filbit & 31); in __set_rx_mode()
1370 iowrite32(mc_filter[0], ioaddr + MulticastFilter0); in __set_rx_mode()
1371 iowrite32(mc_filter[1], ioaddr + MulticastFilter1); in __set_rx_mode()
/drivers/net/wireless/
Dadm8211.c1330 u32 mc_filter[2]; in adm8211_prepare_multicast() local
1333 mc_filter[1] = mc_filter[0] = 0; in adm8211_prepare_multicast()
1339 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in adm8211_prepare_multicast()
1342 return mc_filter[0] | ((u64)(mc_filter[1]) << 32); in adm8211_prepare_multicast()
1353 u32 mc_filter[2]; in adm8211_configure_filter() local
1355 mc_filter[0] = multicast; in adm8211_configure_filter()
1356 mc_filter[1] = multicast >> 32; in adm8211_configure_filter()
1364 mc_filter[1] = mc_filter[0] = ~0; in adm8211_configure_filter()
1371 ADM8211_CSR_WRITE(MAR0, mc_filter[0]); in adm8211_configure_filter()
1372 ADM8211_CSR_WRITE(MAR1, mc_filter[1]); in adm8211_configure_filter()
/drivers/staging/vt6656/
Dmac.c52 void vnt_mac_set_filter(struct vnt_private *priv, u64 mc_filter) in vnt_mac_set_filter() argument
54 __le64 le_mc = cpu_to_le64(mc_filter); in vnt_mac_set_filter()
Dmain_usb.c788 u64 mc_filter = 0; in vnt_prepare_multicast() local
794 mc_filter |= 1ULL << (bit_nr & 0x3f); in vnt_prepare_multicast()
799 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.c1101 u32 mc_filter[2]; /* Multicast hash filter */ in au1000_multicast_list() local
1103 mc_filter[1] = mc_filter[0] = 0; in au1000_multicast_list()
1106 (long *)mc_filter); in au1000_multicast_list()
1107 writel(mc_filter[1], &aup->mac->multi_hash_high); in au1000_multicast_list()
1108 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/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.c898 u32 mc_filter[2]; /* Multicast hash filter */ in __cp_set_rx_mode() local
907 mc_filter[1] = mc_filter[0] = 0xffffffff; in __cp_set_rx_mode()
912 mc_filter[1] = mc_filter[0] = 0xffffffff; in __cp_set_rx_mode()
916 mc_filter[1] = mc_filter[0] = 0; in __cp_set_rx_mode()
920 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __cp_set_rx_mode()
929 cpw32_f (MAR0 + 0, mc_filter[0]); in __cp_set_rx_mode()
930 cpw32_f (MAR0 + 4, mc_filter[1]); in __cp_set_rx_mode()
D8139too.c2559 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local
2571 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode()
2576 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode()
2580 mc_filter[1] = mc_filter[0] = 0; in __set_rx_mode()
2584 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __set_rx_mode()
2598 RTL_W32_F (MAR0 + 0, mc_filter[0]); in __set_rx_mode()
2599 RTL_W32_F (MAR0 + 4, mc_filter[1]); in __set_rx_mode()
Dr8169.c5328 u32 mc_filter[2]; /* Multicast hash filter */ in rtl_set_rx_mode() local
5338 mc_filter[1] = mc_filter[0] = 0xffffffff; in rtl_set_rx_mode()
5343 mc_filter[1] = mc_filter[0] = 0xffffffff; in rtl_set_rx_mode()
5348 mc_filter[1] = mc_filter[0] = 0; in rtl_set_rx_mode()
5351 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in rtl_set_rx_mode()
5362 u32 data = mc_filter[0]; in rtl_set_rx_mode()
5364 mc_filter[0] = swab32(mc_filter[1]); in rtl_set_rx_mode()
5365 mc_filter[1] = swab32(data); in rtl_set_rx_mode()
5369 mc_filter[1] = mc_filter[0] = 0xffffffff; in rtl_set_rx_mode()
5371 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.c1881 u32 mc_filter[2]; in sxgbe_set_rx_mode() local
1901 memset(mc_filter, 0, sizeof(mc_filter)); in sxgbe_set_rx_mode()
1912 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in sxgbe_set_rx_mode()
1914 writel(mc_filter[0], ioaddr + SXGBE_HASH_LOW); in sxgbe_set_rx_mode()
1915 writel(mc_filter[1], ioaddr + SXGBE_HASH_HIGH); in sxgbe_set_rx_mode()
/drivers/net/wireless/ti/wl18xx/
Ddebugfs.c138 WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, mc_filter, "%u");
465 DEBUGFS_FWSTATS_ADD(rx_filter, mc_filter); in wl18xx_debugfs_add_files()
/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()
/drivers/net/ethernet/adaptec/
Dstarfire.c1820 __le16 mc_filter[32] __attribute__ ((aligned(sizeof(long)))); /* Multicast hash filter */ in set_rx_mode() local
1822 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode()
1827 __le32 *fptr = (__le32 *) &mc_filter[(bit_nr >> 4) & ~1]; in set_rx_mode()
1840 writew(mc_filter[i], filter_addr); in set_rx_mode()

12