/linux-2.6.39/drivers/net/ |
D | at1700.c | 112 unsigned char mc_filter[8]; member 831 unsigned char mc_filter[8]; /* Multicast hash filter */ in set_rx_mode() local 835 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 840 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 843 memset(mc_filter, 0x00, sizeof(mc_filter)); in set_rx_mode() 848 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode() 852 mc_filter[bit >> 3] |= (1 << bit); in set_rx_mode() 858 if (memcmp(mc_filter, lp->mc_filter, sizeof(mc_filter))) { in set_rx_mode() 864 outb(mc_filter[i], ioaddr + PORT_OFFSET(8 + i)); in set_rx_mode() 865 memcpy(lp->mc_filter, mc_filter, sizeof(mc_filter)); in set_rx_mode()
|
D | epic100.c | 283 unsigned char mc_filter[8]; member 1379 unsigned char mc_filter[8]; /* Multicast hash filter */ in set_rx_mode() local 1385 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1390 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1398 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode() 1402 mc_filter[bit_nr >> 3] |= (1 << bit_nr); in set_rx_mode() 1406 if (memcmp(mc_filter, ep->mc_filter, sizeof(mc_filter))) { in set_rx_mode() 1408 outw(((u16 *)mc_filter)[i], ioaddr + MC0 + i*4); in set_rx_mode() 1409 memcpy(ep->mc_filter, mc_filter, sizeof(mc_filter)); in set_rx_mode()
|
D | atp.c | 872 unsigned char new_mode, mc_filter[8]; /* Multicast hash filter */ in set_rx_mode_8012() local 880 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode_8012() 885 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode_8012() 888 mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); in set_rx_mode_8012() 895 write_reg_byte(ioaddr, i, mc_filter[i]); in set_rx_mode_8012() 901 printk(" %2.2x", mc_filter[i]); in set_rx_mode_8012()
|
D | pci-skeleton.c | 1794 u32 mc_filter[2]; /* Multicast hash filter */ in netdrv_set_rx_mode() local 1808 mc_filter[1] = mc_filter[0] = 0xffffffff; in netdrv_set_rx_mode() 1813 mc_filter[1] = mc_filter[0] = 0xffffffff; in netdrv_set_rx_mode() 1818 mc_filter[1] = mc_filter[0] = 0; in netdrv_set_rx_mode() 1822 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in netdrv_set_rx_mode() 1834 NETDRV_W32_F(MAR0 + 0, mc_filter[0]); in netdrv_set_rx_mode() 1835 NETDRV_W32_F(MAR0 + 4, mc_filter[1]); in netdrv_set_rx_mode()
|
D | amd8111e.c | 1379 u32 mc_filter[2] ; in amd8111e_set_multicast_list() local 1391 mc_filter[1] = mc_filter[0] = 0xffffffff; in amd8111e_set_multicast_list() 1393 amd8111e_writeq(*(u64*)mc_filter,lp->mmio + LADRF); in amd8111e_set_multicast_list() 1398 mc_filter[1] = mc_filter[0] = 0; in amd8111e_set_multicast_list() 1400 amd8111e_writeq(*(u64*)mc_filter,lp->mmio + LADRF); in amd8111e_set_multicast_list() 1407 mc_filter[1] = mc_filter[0] = 0; in amd8111e_set_multicast_list() 1410 mc_filter[bit_num >> 5] |= 1 << (bit_num & 31); in amd8111e_set_multicast_list() 1412 amd8111e_writeq(*(u64*)mc_filter,lp->mmio+ LADRF); in amd8111e_set_multicast_list()
|
D | fealnx.c | 1785 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local 1789 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1794 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1799 memset(mc_filter, 0, sizeof(mc_filter)); in __set_rx_mode() 1803 mc_filter[bit >> 5] |= (1 << bit); in __set_rx_mode() 1810 iowrite32(mc_filter[0], ioaddr + MAR0); in __set_rx_mode() 1811 iowrite32(mc_filter[1], ioaddr + MAR1); in __set_rx_mode()
|
D | sis190.c | 838 u32 mc_filter[2]; /* Multicast hash filter */ in sis190_set_rx_mode() local 845 mc_filter[1] = mc_filter[0] = 0xffffffff; in sis190_set_rx_mode() 850 mc_filter[1] = mc_filter[0] = 0xffffffff; in sis190_set_rx_mode() 855 mc_filter[1] = mc_filter[0] = 0; in sis190_set_rx_mode() 859 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in sis190_set_rx_mode() 867 SIS_W32(RxHashTable, mc_filter[0]); in sis190_set_rx_mode() 868 SIS_W32(RxHashTable + 4, mc_filter[1]); in sis190_set_rx_mode()
|
D | 8139cp.c | 893 u32 mc_filter[2]; /* Multicast hash filter */ in __cp_set_rx_mode() local 903 mc_filter[1] = mc_filter[0] = 0xffffffff; in __cp_set_rx_mode() 908 mc_filter[1] = mc_filter[0] = 0xffffffff; in __cp_set_rx_mode() 912 mc_filter[1] = mc_filter[0] = 0; in __cp_set_rx_mode() 916 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __cp_set_rx_mode() 927 cpw32_f (MAR0 + 0, mc_filter[0]); in __cp_set_rx_mode() 928 cpw32_f (MAR0 + 4, mc_filter[1]); in __cp_set_rx_mode()
|
D | sundance.c | 1548 u16 mc_filter[4]; /* Multicast hash filter */ in set_rx_mode() local 1553 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1558 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1565 memset (mc_filter, 0, sizeof (mc_filter)); in set_rx_mode() 1570 mc_filter[index/16] |= (1 << (index % 16)); in set_rx_mode() 1578 mc_filter[3] |= 0x0200; in set_rx_mode() 1581 iowrite16(mc_filter[i], ioaddr + MulticastFilter0 + i*2); in set_rx_mode()
|
D | au1000_eth.c | 982 u32 mc_filter[2]; /* Multicast hash filter */ in au1000_multicast_list() local 984 mc_filter[1] = mc_filter[0] = 0; in au1000_multicast_list() 987 (long *)mc_filter); in au1000_multicast_list() 988 writel(mc_filter[1], &aup->mac->multi_hash_high); in au1000_multicast_list() 989 writel(mc_filter[0], &aup->mac->multi_hash_low); in au1000_multicast_list()
|
D | macb.c | 890 unsigned long mc_filter[2]; in macb_sethashtable() local 894 mc_filter[0] = mc_filter[1] = 0; in macb_sethashtable() 898 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in macb_sethashtable() 901 macb_writel(bp, HRB, mc_filter[0]); in macb_sethashtable() 902 macb_writel(bp, HRT, mc_filter[1]); in macb_sethashtable()
|
D | 8139too.c | 2487 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local 2499 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode() 2504 mc_filter[1] = mc_filter[0] = 0xffffffff; in __set_rx_mode() 2508 mc_filter[1] = mc_filter[0] = 0; in __set_rx_mode() 2512 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in __set_rx_mode() 2523 RTL_W32_F (MAR0 + 0, mc_filter[0]); in __set_rx_mode() 2524 RTL_W32_F (MAR0 + 4, mc_filter[1]); in __set_rx_mode()
|
D | greth.c | 1036 u32 mc_filter[2]; in greth_set_hash_filter() local 1039 mc_filter[0] = mc_filter[1] = 0; in greth_set_hash_filter() 1043 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in greth_set_hash_filter() 1046 GRETH_REGSAVE(regs->hash_msb, mc_filter[1]); in greth_set_hash_filter() 1047 GRETH_REGSAVE(regs->hash_lsb, mc_filter[0]); in greth_set_hash_filter()
|
D | r8169.c | 4954 u32 mc_filter[2]; /* Multicast hash filter */ in rtl_set_rx_mode() local 4964 mc_filter[1] = mc_filter[0] = 0xffffffff; in rtl_set_rx_mode() 4969 mc_filter[1] = mc_filter[0] = 0xffffffff; in rtl_set_rx_mode() 4974 mc_filter[1] = mc_filter[0] = 0; in rtl_set_rx_mode() 4977 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in rtl_set_rx_mode() 4988 u32 data = mc_filter[0]; in rtl_set_rx_mode() 4990 mc_filter[0] = swab32(mc_filter[1]); in rtl_set_rx_mode() 4991 mc_filter[1] = swab32(data); in rtl_set_rx_mode() 4994 RTL_W32(MAR0 + 4, mc_filter[1]); in rtl_set_rx_mode() 4995 RTL_W32(MAR0 + 0, mc_filter[0]); in rtl_set_rx_mode()
|
/linux-2.6.39/drivers/net/stmmac/ |
D | dwmac100_core.c | 121 u32 mc_filter[2]; in dwmac100_set_filter() local 130 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac100_set_filter() 139 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac100_set_filter() 141 writel(mc_filter[0], ioaddr + MAC_HASH_LOW); in dwmac100_set_filter() 142 writel(mc_filter[1], ioaddr + MAC_HASH_HIGH); in dwmac100_set_filter()
|
D | dwmac1000_core.c | 107 u32 mc_filter[2]; in dwmac1000_set_filter() local 113 memset(mc_filter, 0, sizeof(mc_filter)); in dwmac1000_set_filter() 122 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in dwmac1000_set_filter() 124 writel(mc_filter[0], ioaddr + GMAC_HASH_LOW); in dwmac1000_set_filter() 125 writel(mc_filter[1], ioaddr + GMAC_HASH_HIGH); in dwmac1000_set_filter()
|
/linux-2.6.39/drivers/net/pcmcia/ |
D | fmvj18x_cs.c | 1139 u_char mc_filter[8]; /* Multicast hash filter */ in set_rx_mode() local 1155 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1160 memset(mc_filter, 0xff, sizeof(mc_filter)); in set_rx_mode() 1163 memset(mc_filter, 0x00, sizeof(mc_filter)); in set_rx_mode() 1168 memset(mc_filter, 0, sizeof(mc_filter)); in set_rx_mode() 1171 mc_filter[bit >> 3] |= (1 << (bit & 7)); in set_rx_mode() 1181 outb(mc_filter[i], ioaddr + MAR_ADR + i); in set_rx_mode()
|
/linux-2.6.39/net/bluetooth/bnep/ |
D | core.c | 190 s->mc_filter = 0; in bnep_ctrl_set_mcfilter() 193 set_bit(bnep_mc_hash(s->dev->broadcast), (ulong *) &s->mc_filter); in bnep_ctrl_set_mcfilter() 208 set_bit(bnep_mc_hash(a1), (ulong *) &s->mc_filter); in bnep_ctrl_set_mcfilter() 209 while (memcmp(a1, a2, 6) < 0 && s->mc_filter != ~0LL) { in bnep_ctrl_set_mcfilter() 211 set_bit(bnep_mc_hash(a1), (ulong *) &s->mc_filter); in bnep_ctrl_set_mcfilter() 216 BT_DBG("mc filter hash 0x%llx", s->mc_filter); in bnep_ctrl_set_mcfilter() 588 set_bit(bnep_mc_hash(dev->broadcast), (ulong *) &s->mc_filter); in bnep_add_connection()
|
D | bnep.h | 164 unsigned long long mc_filter; member
|
D | netdev.c | 135 if ((eh->h_dest[0] & 1) && !test_bit(bnep_mc_hash(eh->h_dest), (ulong *) &s->mc_filter)) in bnep_net_mc_filter()
|
/linux-2.6.39/drivers/net/wireless/ |
D | adm8211.c | 1323 u32 mc_filter[2]; in adm8211_prepare_multicast() local 1326 mc_filter[1] = mc_filter[0] = 0; in adm8211_prepare_multicast() 1332 mc_filter[bit_nr >> 5] |= 1 << (bit_nr & 31); in adm8211_prepare_multicast() 1335 return mc_filter[0] | ((u64)(mc_filter[1]) << 32); in adm8211_prepare_multicast() 1346 u32 mc_filter[2]; in adm8211_configure_filter() local 1348 mc_filter[0] = multicast; in adm8211_configure_filter() 1349 mc_filter[1] = multicast >> 32; in adm8211_configure_filter() 1357 mc_filter[1] = mc_filter[0] = ~0; in adm8211_configure_filter() 1362 mc_filter[1] = mc_filter[0] = ~0; in adm8211_configure_filter() 1369 ADM8211_CSR_WRITE(MAR0, mc_filter[0]); in adm8211_configure_filter() [all …]
|
/linux-2.6.39/drivers/net/chelsio/ |
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()
|
/linux-2.6.39/drivers/net/tulip/ |
D | tulip_core.c | 1101 u32 mc_filter[2] = {0, 0}; /* Multicast hash filter */ in set_rx_mode() local 1111 mc_filter[filterbit >> 5] |= 1 << (filterbit & 31); in set_rx_mode() 1119 if (mc_filter[0] == tp->mc_filter[0] && in set_rx_mode() 1120 mc_filter[1] == tp->mc_filter[1]) in set_rx_mode() 1124 iowrite32(mc_filter[0], ioaddr + CSR14); in set_rx_mode() 1126 iowrite32(mc_filter[1], ioaddr + CSR14); in set_rx_mode() 1128 iowrite32(mc_filter[0], ioaddr + CSR27); in set_rx_mode() 1129 iowrite32(mc_filter[1], ioaddr + CSR28); in set_rx_mode() 1131 tp->mc_filter[0] = mc_filter[0]; in set_rx_mode() 1132 tp->mc_filter[1] = mc_filter[1]; in set_rx_mode()
|
D | winbond-840.c | 1352 u32 mc_filter[2]; /* Multicast hash filter */ in __set_rx_mode() local 1356 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1362 memset(mc_filter, 0xff, sizeof(mc_filter)); in __set_rx_mode() 1367 memset(mc_filter, 0, sizeof(mc_filter)); in __set_rx_mode() 1373 mc_filter[filbit >> 5] |= 1 << (filbit & 31); in __set_rx_mode() 1377 iowrite32(mc_filter[0], ioaddr + MulticastFilter0); in __set_rx_mode() 1378 iowrite32(mc_filter[1], ioaddr + MulticastFilter1); in __set_rx_mode()
|
/linux-2.6.39/drivers/net/arm/ |
D | at91_ether.c | 561 unsigned long mc_filter[2]; in at91ether_sethashtable() local 564 mc_filter[0] = mc_filter[1] = 0; in at91ether_sethashtable() 568 mc_filter[bitnr >> 5] |= 1 << (bitnr & 31); in at91ether_sethashtable() 571 at91_emac_write(AT91_EMAC_HSL, mc_filter[0]); in at91ether_sethashtable() 572 at91_emac_write(AT91_EMAC_HSH, mc_filter[1]); in at91ether_sethashtable()
|