/drivers/misc/ |
D | uid_sys_stats.c | 31 DECLARE_HASHTABLE(hash_table, UID_HASH_BITS); 71 hash_for_each_possible(hash_table, uid_entry, hash, uid) { in find_uid_entry() 92 hash_add(hash_table, &uid_entry->hash, uid); in find_or_register_uid() 109 hash_for_each(hash_table, bkt, uid_entry, hash) { in uid_cputime_show() 138 hash_for_each(hash_table, bkt, uid_entry, hash) { in uid_cputime_show() 203 hash_for_each_possible_safe(hash_table, uid_entry, tmp, in uid_remove_write() 288 hash_for_each(hash_table, bkt, uid_entry, hash) in update_io_stats_all_locked() 302 hash_for_each(hash_table, bkt, uid_entry, hash) { in update_io_stats_all_locked() 341 hash_for_each(hash_table, bkt, uid_entry, hash) { in uid_io_show() 467 hash_init(hash_table); in proc_uid_sys_stats_init()
|
/drivers/net/ppp/ |
D | pppoe.c | 108 struct pppox_sock *hash_table[PPPOE_HASH_SIZE]; member 172 ret = pn->hash_table[hash]; in __get_item() 189 ret = pn->hash_table[hash]; in __set_item() 198 po->next = pn->hash_table[hash]; in __set_item() 199 pn->hash_table[hash] = po; in __set_item() 210 ret = pn->hash_table[hash]; in __delete_item() 211 src = &pn->hash_table[hash]; in __delete_item() 288 struct pppox_sock *po = pn->hash_table[i]; in pppoe_flush_dev() 332 po = pn->hash_table[i]; in pppoe_flush_dev() 1024 po = pn->hash_table[i]; in pppoe_get_idx() [all …]
|
/drivers/net/bonding/ |
D | bond_alb.c | 251 struct tlb_client_info *hash_table; in __tlb_choose_channel() local 254 hash_table = bond_info->tx_hashtbl; in __tlb_choose_channel() 255 assigned_slave = hash_table[hash_index].tx_slave; in __tlb_choose_channel() 264 hash_table[hash_index].tx_slave = assigned_slave; in __tlb_choose_channel() 265 hash_table[hash_index].next = next_index; in __tlb_choose_channel() 266 hash_table[hash_index].prev = TLB_NULL_INDEX; in __tlb_choose_channel() 269 hash_table[next_index].prev = hash_index; in __tlb_choose_channel() 274 hash_table[hash_index].load_history; in __tlb_choose_channel() 279 hash_table[hash_index].tx_bytes += skb_len; in __tlb_choose_channel()
|
/drivers/net/ethernet/rdc/ |
D | r6040.c | 870 u16 hash_table[4] = { 0 }; in r6040_multicast_list() local 899 hash_table[i] = 0xffff; in r6040_multicast_list() 937 hash_table[crc >> 4] |= 1 << (crc & 0xf); in r6040_multicast_list() 945 iowrite16(hash_table[0], ioaddr + MAR0); in r6040_multicast_list() 946 iowrite16(hash_table[1], ioaddr + MAR1); in r6040_multicast_list() 947 iowrite16(hash_table[2], ioaddr + MAR2); in r6040_multicast_list() 948 iowrite16(hash_table[3], ioaddr + MAR3); in r6040_multicast_list()
|
/drivers/net/ethernet/packetengines/ |
D | yellowfin.c | 1295 u16 hash_table[4]; in set_rx_mode() local 1298 memset(hash_table, 0, sizeof(hash_table)); in set_rx_mode() 1306 hash_table[bit >> 4] |= (1 << bit); in set_rx_mode() 1308 hash_table[bit >> 4] |= (1 << bit); in set_rx_mode() 1310 hash_table[bit >> 4] |= (1 << bit); in set_rx_mode() 1313 hash_table[bit >> 4] |= (1 << bit); in set_rx_mode() 1317 iowrite16(hash_table[i], ioaddr + HashTbl + i*2); in set_rx_mode()
|
/drivers/net/ethernet/sun/ |
D | sunbmac.c | 1020 u16 hash_table[4]; in bigmac_set_multicast() local 1023 hash_table[i] = 0; in bigmac_set_multicast() 1028 hash_table[crc >> 4] |= 1 << (crc & 0xf); in bigmac_set_multicast() 1030 sbus_writel(hash_table[0], bregs + BMAC_HTABLE0); in bigmac_set_multicast() 1031 sbus_writel(hash_table[1], bregs + BMAC_HTABLE1); in bigmac_set_multicast() 1032 sbus_writel(hash_table[2], bregs + BMAC_HTABLE2); in bigmac_set_multicast() 1033 sbus_writel(hash_table[3], bregs + BMAC_HTABLE3); in bigmac_set_multicast()
|
D | sunhme.c | 1522 u16 hash_table[4]; in happy_meal_init() local 1526 memset(hash_table, 0, sizeof(hash_table)); in happy_meal_init() 1530 hash_table[crc >> 4] |= 1 << (crc & 0xf); in happy_meal_init() 1532 hme_write32(hp, bregs + BMAC_HTABLE0, hash_table[0]); in happy_meal_init() 1533 hme_write32(hp, bregs + BMAC_HTABLE1, hash_table[1]); in happy_meal_init() 1534 hme_write32(hp, bregs + BMAC_HTABLE2, hash_table[2]); in happy_meal_init() 1535 hme_write32(hp, bregs + BMAC_HTABLE3, hash_table[3]); in happy_meal_init() 2367 u16 hash_table[4]; in happy_meal_set_multicast() local 2369 memset(hash_table, 0, sizeof(hash_table)); in happy_meal_set_multicast() 2373 hash_table[crc >> 4] |= 1 << (crc & 0xf); in happy_meal_set_multicast() [all …]
|
D | sunqe.c | 644 u16 hash_table[4]; in qe_set_multicast() local 645 u8 *hbytes = (unsigned char *) &hash_table[0]; in qe_set_multicast() 647 memset(hash_table, 0, sizeof(hash_table)); in qe_set_multicast() 651 hash_table[crc >> 4] |= 1 << (crc & 0xf); in qe_set_multicast()
|
D | sungem.c | 1794 u16 hash_table[16]; in gem_setup_multicast() local 1799 memset(hash_table, 0, sizeof(hash_table)); in gem_setup_multicast() 1803 hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf)); in gem_setup_multicast() 1806 writel(hash_table[i], gp->regs + MAC_HASH0 + (i << 2)); in gem_setup_multicast()
|
D | cassini.c | 2950 u16 hash_table[16]; in cas_process_mc_list() local 2955 memset(hash_table, 0, sizeof(hash_table)); in cas_process_mc_list() 2975 hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf)); in cas_process_mc_list() 2979 writel(hash_table[i], cp->regs + REG_MAC_HASH_TABLEN(i)); in cas_process_mc_list()
|
/drivers/net/ethernet/ |
D | korina.c | 498 u16 hash_table[4]; in korina_multicast_list() local 502 hash_table[i] = 0; in korina_multicast_list() 507 hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf)); in korina_multicast_list() 513 writel((u32)(hash_table[1] << 16 | hash_table[0]), in korina_multicast_list() 515 writel((u32)(hash_table[3] << 16 | hash_table[2]), in korina_multicast_list()
|
/drivers/net/ethernet/apple/ |
D | bmac.c | 1033 u16 hash_table[4]; in bmac_set_multicast() local 1039 for(i = 0; i < 4; i++) hash_table[i] = 0; in bmac_set_multicast() 1044 hash_table[crc >> 4] |= 1 << (crc & 0xf); in bmac_set_multicast() 1046 bmwrite(dev, BHASH0, hash_table[0]); in bmac_set_multicast() 1047 bmwrite(dev, BHASH1, hash_table[1]); in bmac_set_multicast() 1048 bmwrite(dev, BHASH2, hash_table[2]); in bmac_set_multicast() 1049 bmwrite(dev, BHASH3, hash_table[3]); in bmac_set_multicast()
|
/drivers/net/ethernet/davicom/ |
D | dm9000.c | 830 u16 hash_table[4]; in dm9000_hash_table_unlocked() local 840 hash_table[i] = 0x0; in dm9000_hash_table_unlocked() 843 hash_table[3] = 0x8000; in dm9000_hash_table_unlocked() 854 hash_table[hash_val / 16] |= (u16) 1 << (hash_val % 16); in dm9000_hash_table_unlocked() 859 iow(db, oft++, hash_table[i]); in dm9000_hash_table_unlocked() 860 iow(db, oft++, hash_table[i] >> 8); in dm9000_hash_table_unlocked()
|
/drivers/net/ethernet/dlink/ |
D | dl2k.c | 1111 u32 hash_table[2]; in set_multicast() local 1114 hash_table[0] = hash_table[1] = 0; in set_multicast() 1116 hash_table[1] |= 0x02000000; in set_multicast() 1138 hash_table[index / 32] |= (1 << (index % 32)); in set_multicast() 1148 dw32(HashTable0, hash_table[0]); in set_multicast() 1149 dw32(HashTable1, hash_table[1]); in set_multicast()
|
/drivers/net/ethernet/dec/tulip/ |
D | de2104x.c | 667 u16 hash_table[32]; in build_setup_frame_hash() local 672 memset(hash_table, 0, sizeof(hash_table)); in build_setup_frame_hash() 673 __set_bit_le(255, hash_table); /* Broadcast entry */ in build_setup_frame_hash() 678 __set_bit_le(index, hash_table); in build_setup_frame_hash() 682 *setup_frm++ = hash_table[i]; in build_setup_frame_hash() 683 *setup_frm++ = hash_table[i]; in build_setup_frame_hash()
|
D | tulip_core.c | 1016 u16 hash_table[32]; in build_setup_frame_hash() local 1021 memset(hash_table, 0, sizeof(hash_table)); in build_setup_frame_hash() 1022 __set_bit_le(255, hash_table); /* Broadcast entry */ in build_setup_frame_hash() 1027 __set_bit_le(index, hash_table); in build_setup_frame_hash() 1030 *setup_frm++ = hash_table[i]; in build_setup_frame_hash() 1031 *setup_frm++ = hash_table[i]; in build_setup_frame_hash()
|
D | dmfe.c | 1466 u16 i, hash_table[4]; in dm9132_id_table() local 1475 memset(hash_table, 0, sizeof(hash_table)); in dm9132_id_table() 1478 hash_table[3] = 0x8000; in dm9132_id_table() 1484 hash_table[hash_val / 16] |= (u16) 1 << (hash_val % 16); in dm9132_id_table() 1489 dw16(0, hash_table[i]); in dm9132_id_table()
|