/drivers/net/ethernet/stmicro/stmmac/ |
D | dwmac100_core.c | 111 u32 mc_filter[2]; in dwmac100_set_filter() local 121 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac100_set_filter() 131 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac100_set_filter() 133 writel(mc_filter[0], ioaddr + MAC_HASH_LOW); in dwmac100_set_filter() 134 writel(mc_filter[1], ioaddr + MAC_HASH_HIGH); in dwmac100_set_filter()
|
D | dwmac1000_core.c | 105 u32 mc_filter[2]; in dwmac1000_set_filter() local 111 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac1000_set_filter() 121 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac1000_set_filter() 123 writel(mc_filter[0], ioaddr + GMAC_HASH_LOW); in dwmac1000_set_filter() 124 writel(mc_filter[1], ioaddr + GMAC_HASH_HIGH); in dwmac1000_set_filter()
|
/drivers/net/wireless/ath/ath6kl/ |
D | main.c | 1159 struct ath6kl_mc_filter *mc_filter, *tmp; in ath6kl_set_multicast_list() local 1205 list_for_each_entry_safe(mc_filter, tmp, &vif->mc_filter, list) { in ath6kl_set_multicast_list() 1208 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list() 1222 mc_filter->hw_addr); in ath6kl_set_multicast_list() 1224 vif->fw_vif_idx, mc_filter->hw_addr, in ath6kl_set_multicast_list() 1228 mc_filter->hw_addr); in ath6kl_set_multicast_list() 1232 list_del(&mc_filter->list); in ath6kl_set_multicast_list() 1233 kfree(mc_filter); in ath6kl_set_multicast_list() 1241 list_for_each_entry(mc_filter, &vif->mc_filter, list) { in ath6kl_set_multicast_list() 1242 if (memcmp(ha->addr, mc_filter->hw_addr, in ath6kl_set_multicast_list() [all …]
|
/drivers/net/ethernet/fujitsu/ |
D | fmvj18x_cs.c | 1125 u_char mc_filter[8]; /* Multicast hash filter */ in set_rx_mode() local 1141 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1146 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1149 memset(mc_filter, 0x00, sizeof(mc_filter)); in set_rx_mode() 1154 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode() 1157 mc_filter[bit >> 3] |= (1 << (bit & 7)); in set_rx_mode() 1167 outb(mc_filter[i], ioaddr + MAR_ADR + i); in set_rx_mode()
|
/drivers/net/ethernet/smsc/ |
D | epic100.c | 280 unsigned char mc_filter[8]; member 1373 unsigned char mc_filter[8]; /* Multicast hash filter */ in set_rx_mode() local 1379 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1384 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1392 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode() 1396 mc_filter[bit_nr >> 3] |= (1 << bit_nr); in set_rx_mode() 1400 if (memcmp(mc_filter, ep->mc_filter, sizeof(mc_filter))) { in set_rx_mode() 1402 ew16(MC0 + i*4, ((u16 *)mc_filter)[i]); in set_rx_mode() 1403 memcpy(ep->mc_filter, mc_filter, sizeof(mc_filter)); in set_rx_mode()
|
/drivers/net/usb/ |
D | r8152.c | 886 u32 tmp, *mc_filter; /* Multicast hash filter */ in _rtl8152_set_rx_mode() local 889 mc_filter = kmalloc(sizeof(u32) * 2, GFP_KERNEL); in _rtl8152_set_rx_mode() 890 if (!mc_filter) { in _rtl8152_set_rx_mode() 905 mc_filter[1] = mc_filter[0] = 0xffffffff; in _rtl8152_set_rx_mode() 910 mc_filter[1] = mc_filter[0] = 0xffffffff; in _rtl8152_set_rx_mode() 914 mc_filter[1] = mc_filter[0] = 0; in _rtl8152_set_rx_mode() 917 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in _rtl8152_set_rx_mode() 922 tmp = mc_filter[0]; in _rtl8152_set_rx_mode() 923 mc_filter[0] = __cpu_to_le32(swab32(mc_filter[1])); in _rtl8152_set_rx_mode() 924 mc_filter[1] = __cpu_to_le32(swab32(tmp)); in _rtl8152_set_rx_mode() [all …]
|
/drivers/net/wireless/ |
D | adm8211.c | 1327 u32 mc_filter[2]; in adm8211_prepare_multicast() local 1330 mc_filter[1] = mc_filter[0] = 0; in adm8211_prepare_multicast() 1336 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in adm8211_prepare_multicast() 1339 return mc_filter[0] | ((u64)(mc_filter[1]) << 32); in adm8211_prepare_multicast() 1350 u32 mc_filter[2]; in adm8211_configure_filter() local 1352 mc_filter[0] = multicast; in adm8211_configure_filter() 1353 mc_filter[1] = multicast >> 32; in adm8211_configure_filter() 1361 mc_filter[1] = mc_filter[0] = ~0; in adm8211_configure_filter() 1366 mc_filter[1] = mc_filter[0] = ~0; in adm8211_configure_filter() 1373 ADM8211_CSR_WRITE(MAR0, mc_filter[0]); in adm8211_configure_filter() [all …]
|
/drivers/net/ethernet/chelsio/cxgb/ |
D | pm3393.c | 382 u16 mc_filter[4] = { 0, }; in pm3393_set_rx_mode() local 387 mc_filter[bit >> 4] |= 1 << (bit & 0xf); in pm3393_set_rx_mode() 389 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_LOW, mc_filter[0]); in pm3393_set_rx_mode() 390 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDLOW, mc_filter[1]); in pm3393_set_rx_mode() 391 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_MIDHIGH, mc_filter[2]); in pm3393_set_rx_mode() 392 pmwrite(cmac, SUNI1x10GEXP_REG_RXXG_MULTICAST_HASH_HIGH, mc_filter[3]); in pm3393_set_rx_mode()
|
/drivers/net/ethernet/dec/tulip/ |
D | tulip_core.c | 1094 u32 mc_filter[2] = {0, 0}; /* Multicast hash filter */ in set_rx_mode() local 1104 mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); in set_rx_mode() 1112 if (mc_filter[0] == tp->mc_filter[0] && in set_rx_mode() 1113 mc_filter[1] == tp->mc_filter[1]) in set_rx_mode() 1117 iowrite32(mc_filter[0], ioaddr + CSR14); in set_rx_mode() 1119 iowrite32(mc_filter[1], ioaddr + CSR14); in set_rx_mode() 1121 iowrite32(mc_filter[0], ioaddr + CSR27); in set_rx_mode() 1122 iowrite32(mc_filter[1], ioaddr + CSR28); in set_rx_mode() 1124 tp->mc_filter[0] = mc_filter[0]; in set_rx_mode() 1125 tp->mc_filter[1] = mc_filter[1]; in set_rx_mode()
|
D | winbond-840.c | 1348 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local 1352 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1358 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1363 memset(mc_filter, 0, sizeof(mc_filter)); in __set_rx_mode() 1369 mc_filter[filbit >> 5] |= 1 << (filbit & 31); in __set_rx_mode() 1373 iowrite32(mc_filter[0], ioaddr + MulticastFilter0); in __set_rx_mode() 1374 iowrite32(mc_filter[1], ioaddr + MulticastFilter1); in __set_rx_mode()
|
/drivers/net/ethernet/amd/ |
D | amd8111e.c | 1372 u32 mc_filter[2] ; in amd8111e_set_multicast_list() local 1384 mc_filter[1] = mc_filter[0] = 0xffffffff; in amd8111e_set_multicast_list() 1386 amd8111e_writeq(*(u64*)mc_filter,lp->mmio + LADRF); in amd8111e_set_multicast_list() 1391 mc_filter[1] = mc_filter[0] = 0; in amd8111e_set_multicast_list() 1393 amd8111e_writeq(*(u64*)mc_filter,lp->mmio + LADRF); in amd8111e_set_multicast_list() 1400 mc_filter[1] = mc_filter[0] = 0; in amd8111e_set_multicast_list() 1403 mc_filter[bit_num >> 5] |= 1 << (bit_num & 31); in amd8111e_set_multicast_list() 1405 amd8111e_writeq(*(u64*)mc_filter,lp->mmio+ LADRF); in amd8111e_set_multicast_list()
|
D | au1000_eth.c | 979 u32 mc_filter[2]; /* Multicast hash filter */ in au1000_multicast_list() local 981 mc_filter[1] = mc_filter[0] = 0; in au1000_multicast_list() 984 (long *)mc_filter); in au1000_multicast_list() 985 writel(mc_filter[1], &aup->mac->multi_hash_high); in au1000_multicast_list() 986 writel(mc_filter[0], &aup->mac->multi_hash_low); in au1000_multicast_list()
|
/drivers/net/ethernet/ |
D | fealnx.c | 1781 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local 1785 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1790 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1795 memset(mc_filter, 0, sizeof(mc_filter)); in __set_rx_mode() 1799 mc_filter[bit >> 5] |= (1 << bit); in __set_rx_mode() 1806 iowrite32(mc_filter[0], ioaddr + MAR0); in __set_rx_mode() 1807 iowrite32(mc_filter[1], ioaddr + MAR1); in __set_rx_mode()
|
/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()
|
/drivers/net/ethernet/realtek/ |
D | 8139cp.c | 875 u32 mc_filter[2]; /* Multicast hash filter */ in __cp_set_rx_mode() local 884 mc_filter[1] = mc_filter[0] = 0xffffffff; in __cp_set_rx_mode() 889 mc_filter[1] = mc_filter[0] = 0xffffffff; in __cp_set_rx_mode() 893 mc_filter[1] = mc_filter[0] = 0; in __cp_set_rx_mode() 897 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __cp_set_rx_mode() 906 cpw32_f (MAR0 + 0, mc_filter[0]); in __cp_set_rx_mode() 907 cpw32_f (MAR0 + 4, mc_filter[1]); in __cp_set_rx_mode()
|
D | 8139too.c | 2544 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local 2556 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode() 2561 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode() 2565 mc_filter[1] = mc_filter[0] = 0; in __set_rx_mode() 2569 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __set_rx_mode() 2583 RTL_W32_F (MAR0 + 0, mc_filter[0]); in __set_rx_mode() 2584 RTL_W32_F (MAR0 + 4, mc_filter[1]); in __set_rx_mode()
|
D | r8169.c | 4583 u32 mc_filter[2]; /* Multicast hash filter */ in rtl_set_rx_mode() local 4593 mc_filter[1] = mc_filter[0] = 0xffffffff; in rtl_set_rx_mode() 4598 mc_filter[1] = mc_filter[0] = 0xffffffff; in rtl_set_rx_mode() 4603 mc_filter[1] = mc_filter[0] = 0; in rtl_set_rx_mode() 4606 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in rtl_set_rx_mode() 4617 u32 data = mc_filter[0]; in rtl_set_rx_mode() 4619 mc_filter[0] = swab32(mc_filter[1]); in rtl_set_rx_mode() 4620 mc_filter[1] = swab32(data); in rtl_set_rx_mode() 4624 mc_filter[1] = mc_filter[0] = 0xffffffff; in rtl_set_rx_mode() 4626 RTL_W32(MAR0 + 4, mc_filter[1]); in rtl_set_rx_mode() [all …]
|
/drivers/net/ethernet/dlink/ |
D | sundance.c | 1558 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()
|
/drivers/staging/vt6656/ |
D | main_usb.c | 1361 u32 mc_filter[2]; in device_set_multi() local 1396 memset(mc_filter, 0, sizeof(mc_filter)); in device_set_multi() 1399 mc_filter[bit_nr >> 5] |= cpu_to_le32(1 << (bit_nr & 31)); in device_set_multi() 1402 MACvWriteMultiAddr(pDevice, ii, *((u8 *)&mc_filter[0] + ii)); in device_set_multi() 1403 MACvWriteMultiAddr(pDevice, ii+ 4, *((u8 *)&mc_filter[1] + ii)); in device_set_multi()
|
/drivers/net/ethernet/aeroflex/ |
D | greth.c | 1040 u32 mc_filter[2]; in greth_set_hash_filter() local 1043 mc_filter[0] = mc_filter[1] = 0; in greth_set_hash_filter() 1047 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in greth_set_hash_filter() 1050 GRETH_REGSAVE(regs->hash_msb, mc_filter[1]); in greth_set_hash_filter() 1051 GRETH_REGSAVE(regs->hash_lsb, mc_filter[0]); in greth_set_hash_filter()
|
/drivers/net/ethernet/cadence/ |
D | macb.c | 1181 unsigned long mc_filter[2]; in macb_sethashtable() local 1185 mc_filter[0] = mc_filter[1] = 0; in macb_sethashtable() 1189 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in macb_sethashtable() 1192 macb_or_gem_writel(bp, HRB, mc_filter[0]); in macb_sethashtable() 1193 macb_or_gem_writel(bp, HRT, mc_filter[1]); in macb_sethashtable()
|
/drivers/net/wireless/ti/wl18xx/ |
D | debugfs.c | 131 WL18XX_DEBUGFS_FWSTATS_FILE(rx_filter, mc_filter, "%u"); 355 DEBUGFS_FWSTATS_ADD(rx_filter, mc_filter); in wl18xx_debugfs_add_files()
|
/drivers/net/ |
D | macvlan.c | 172 if (!test_bit(hash, vlan->mc_filter)) in macvlan_broadcast() 435 bitmap_fill(vlan->mc_filter, MACVLAN_MC_FILTER_SZ); in macvlan_set_mac_lists() 447 bitmap_copy(vlan->mc_filter, filter, MACVLAN_MC_FILTER_SZ); in macvlan_set_mac_lists()
|
/drivers/net/ethernet/via/ |
D | via-rhine.c | 2067 u32 mc_filter[2]; /* Multicast hash filter */ in rhine_set_rx_mode() local 2092 memset(mc_filter, 0, sizeof(mc_filter)); in rhine_set_rx_mode() 2096 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in rhine_set_rx_mode() 2098 iowrite32(mc_filter[0], ioaddr + MulticastFilter0); in rhine_set_rx_mode() 2099 iowrite32(mc_filter[1], ioaddr + MulticastFilter1); in rhine_set_rx_mode()
|
/drivers/net/ethernet/3com/ |
D | typhoon.c | 864 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()
|