Home
last modified time | relevance | path

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

/linux-4.4.14/net/core/
Dflow.c127 &fcp->hash_table[i], u.hlist) { in __flow_cache_shrink()
214 if (!fcp->hash_table) in flow_cache_lookup()
221 hlist_for_each_entry(tfle, &fcp->hash_table[hash], u.hlist) { in flow_cache_lookup()
242 hlist_add_head(&fle->u.hlist, &fcp->hash_table[hash]); in flow_cache_lookup()
296 &fcp->hash_table[i], u.hlist) { in flow_cache_flush_tasklet()
325 if (!hlist_empty(&fcp->hash_table[i])) in flow_cache_percpu_empty()
398 if (!fcp->hash_table) { in flow_cache_cpu_prepare()
399 fcp->hash_table = kzalloc_node(sz, GFP_KERNEL, cpu_to_node(cpu)); in flow_cache_cpu_prepare()
400 if (!fcp->hash_table) { in flow_cache_cpu_prepare()
481 kfree(fcp->hash_table); in flow_cache_init()
[all …]
/linux-4.4.14/fs/jbd2/
Drevoke.c120 struct list_head *hash_table; member
154 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in insert_revoke_hash()
169 hash_list = &journal->j_revoke->hash_table[hash(journal, blocknr)]; in find_revoke_record()
232 table->hash_table = in jbd2_journal_init_revoke_table()
234 if (!table->hash_table) { in jbd2_journal_init_revoke_table()
241 INIT_LIST_HEAD(&table->hash_table[tmp]); in jbd2_journal_init_revoke_table()
253 hash_list = &table->hash_table[i]; in jbd2_journal_destroy_revoke_table()
257 kfree(table->hash_table); in jbd2_journal_destroy_revoke_table()
484 hash_list = &revoke->hash_table[i]; in jbd2_clear_buffer_revoked_flags()
515 INIT_LIST_HEAD(&journal->j_revoke->hash_table[i]); in jbd2_journal_switch_revoke_table()
[all …]
/linux-4.4.14/drivers/net/ppp/
Dpppoe.c108 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()
331 po = pn->hash_table[i]; in pppoe_flush_dev()
1051 po = pn->hash_table[i]; in pppoe_get_idx()
[all …]
/linux-4.4.14/include/net/
Dflowcache.h10 struct hlist_head *hash_table; member
/linux-4.4.14/drivers/md/
Ddm-cache-policy-smq.c553 struct hash_table { struct
563 static int h_init(struct hash_table *ht, struct entry_space *es, unsigned nr_entries) in h_init() argument
581 static void h_exit(struct hash_table *ht) in h_exit()
586 static struct entry *h_head(struct hash_table *ht, unsigned bucket) in h_head()
591 static struct entry *h_next(struct hash_table *ht, struct entry *e) in h_next()
596 static void __h_insert(struct hash_table *ht, unsigned bucket, struct entry *e) in __h_insert()
602 static void h_insert(struct hash_table *ht, struct entry *e) in h_insert()
608 static struct entry *__h_lookup(struct hash_table *ht, unsigned h, dm_oblock_t oblock, in __h_lookup()
624 static void __h_unlink(struct hash_table *ht, unsigned h, in __h_unlink()
636 static struct entry *h_lookup(struct hash_table *ht, dm_oblock_t oblock) in h_lookup()
[all …]
/linux-4.4.14/net/sunrpc/
Dcache.c63 head = &detail->hash_table[hash]; in sunrpc_cache_lookup()
181 hlist_add_head(&tmp->cache_list, &detail->hash_table[hash]); in sunrpc_cache_update()
422 hlist_empty(&current_detail->hash_table[current_index])) in cache_clean()
437 head = &current_detail->hash_table[current_index]; in cache_clean()
1294 hlist_for_each_entry(ch, &cd->hash_table[hash], cache_list) in cache_seq_start()
1302 hlist_empty(&cd->hash_table[hash])); in cache_seq_start()
1306 return hlist_entry_safe(cd->hash_table[hash].first, in cache_seq_start()
1329 hlist_empty(&cd->hash_table[hash])) { in cache_seq_next()
1336 return hlist_entry_safe(cd->hash_table[hash].first, in cache_seq_next()
1700 cd->hash_table = kzalloc(cd->hash_size * sizeof(struct hlist_head), in cache_create_net()
[all …]
/linux-4.4.14/drivers/net/ethernet/rdc/
Dr6040.c866 u16 hash_table[4] = { 0 }; in r6040_multicast_list() local
895 hash_table[i] = 0xffff; in r6040_multicast_list()
933 hash_table[crc >> 4] |= 1 << (crc & 0xf); in r6040_multicast_list()
941 iowrite16(hash_table[0], ioaddr + MAR0); in r6040_multicast_list()
942 iowrite16(hash_table[1], ioaddr + MAR1); in r6040_multicast_list()
943 iowrite16(hash_table[2], ioaddr + MAR2); in r6040_multicast_list()
944 iowrite16(hash_table[3], ioaddr + MAR3); in r6040_multicast_list()
/linux-4.4.14/drivers/net/bonding/
Dbond_alb.c223 struct tlb_client_info *hash_table; in __tlb_choose_channel() local
226 hash_table = bond_info->tx_hashtbl; in __tlb_choose_channel()
227 assigned_slave = hash_table[hash_index].tx_slave; in __tlb_choose_channel()
236 hash_table[hash_index].tx_slave = assigned_slave; in __tlb_choose_channel()
237 hash_table[hash_index].next = next_index; in __tlb_choose_channel()
238 hash_table[hash_index].prev = TLB_NULL_INDEX; in __tlb_choose_channel()
241 hash_table[next_index].prev = hash_index; in __tlb_choose_channel()
245 hash_table[hash_index].load_history; in __tlb_choose_channel()
250 hash_table[hash_index].tx_bytes += skb_len; in __tlb_choose_channel()
/linux-4.4.14/drivers/net/ethernet/packetengines/
Dyellowfin.c1297 u16 hash_table[4]; in set_rx_mode() local
1300 memset(hash_table, 0, sizeof(hash_table)); 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()
1312 hash_table[bit >> 4] |= (1 << bit); in set_rx_mode()
1315 hash_table[bit >> 4] |= (1 << bit); in set_rx_mode()
1319 iowrite16(hash_table[i], ioaddr + HashTbl + i*2); in set_rx_mode()
/linux-4.4.14/drivers/net/ethernet/sun/
Dsunqe.c644 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()
Dsunhme.c1529 u16 hash_table[4]; in happy_meal_init() local
1533 memset(hash_table, 0, sizeof(hash_table)); in happy_meal_init()
1537 hash_table[crc >> 4] |= 1 << (crc & 0xf); in happy_meal_init()
1539 hme_write32(hp, bregs + BMAC_HTABLE0, hash_table[0]); in happy_meal_init()
1540 hme_write32(hp, bregs + BMAC_HTABLE1, hash_table[1]); in happy_meal_init()
1541 hme_write32(hp, bregs + BMAC_HTABLE2, hash_table[2]); in happy_meal_init()
1542 hme_write32(hp, bregs + BMAC_HTABLE3, hash_table[3]); in happy_meal_init()
2419 u16 hash_table[4]; in happy_meal_set_multicast() local
2421 memset(hash_table, 0, sizeof(hash_table)); in happy_meal_set_multicast()
2425 hash_table[crc >> 4] |= 1 << (crc & 0xf); in happy_meal_set_multicast()
[all …]
Dsunbmac.c1018 u16 hash_table[4] = { 0 }; in bigmac_set_multicast() local
1023 hash_table[crc >> 4] |= 1 << (crc & 0xf); in bigmac_set_multicast()
1025 sbus_writel(hash_table[0], bregs + BMAC_HTABLE0); in bigmac_set_multicast()
1026 sbus_writel(hash_table[1], bregs + BMAC_HTABLE1); in bigmac_set_multicast()
1027 sbus_writel(hash_table[2], bregs + BMAC_HTABLE2); in bigmac_set_multicast()
1028 sbus_writel(hash_table[3], bregs + BMAC_HTABLE3); in bigmac_set_multicast()
Dsungem.c1793 u16 hash_table[16]; in gem_setup_multicast() local
1798 memset(hash_table, 0, sizeof(hash_table)); in gem_setup_multicast()
1802 hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf)); in gem_setup_multicast()
1805 writel(hash_table[i], gp->regs + MAC_HASH0 + (i << 2)); in gem_setup_multicast()
Dcassini.c2947 u16 hash_table[16]; in cas_process_mc_list() local
2952 memset(hash_table, 0, sizeof(hash_table)); in cas_process_mc_list()
2972 hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf)); in cas_process_mc_list()
2976 writel(hash_table[i], cp->regs + REG_MAC_HASH_TABLEN(i)); in cas_process_mc_list()
/linux-4.4.14/drivers/net/ethernet/
Dkorina.c496 u16 hash_table[4] = { 0 }; in korina_multicast_list() local
502 hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf)); in korina_multicast_list()
508 writel((u32)(hash_table[1] << 16 | hash_table[0]), in korina_multicast_list()
510 writel((u32)(hash_table[3] << 16 | hash_table[2]), in korina_multicast_list()
/linux-4.4.14/drivers/net/ethernet/apple/
Dbmac.c1032 u16 hash_table[4] = { 0 }; in bmac_set_multicast() local
1041 hash_table[crc >> 4] |= 1 << (crc & 0xf); in bmac_set_multicast()
1043 bmwrite(dev, BHASH0, hash_table[0]); in bmac_set_multicast()
1044 bmwrite(dev, BHASH1, hash_table[1]); in bmac_set_multicast()
1045 bmwrite(dev, BHASH2, hash_table[2]); in bmac_set_multicast()
1046 bmwrite(dev, BHASH3, hash_table[3]); in bmac_set_multicast()
/linux-4.4.14/drivers/net/ethernet/dlink/
Ddl2k.c1158 u32 hash_table[2]; in set_multicast() local
1161 hash_table[0] = hash_table[1] = 0; in set_multicast()
1163 hash_table[1] |= 0x02000000; in set_multicast()
1185 hash_table[index / 32] |= (1 << (index % 32)); in set_multicast()
1195 dw32(HashTable0, hash_table[0]); in set_multicast()
1196 dw32(HashTable1, hash_table[1]); in set_multicast()
/linux-4.4.14/drivers/net/ethernet/dec/tulip/
Dtulip_core.c1015 u16 hash_table[32]; in build_setup_frame_hash() local
1020 memset(hash_table, 0, sizeof(hash_table)); in build_setup_frame_hash()
1021 __set_bit_le(255, hash_table); /* Broadcast entry */ in build_setup_frame_hash()
1026 __set_bit_le(index, hash_table); in build_setup_frame_hash()
1029 *setup_frm++ = hash_table[i]; in build_setup_frame_hash()
1030 *setup_frm++ = hash_table[i]; in build_setup_frame_hash()
Dde2104x.c667 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()
Ddmfe.c1463 u16 i, hash_table[4]; in dm9132_id_table() local
1472 memset(hash_table, 0, sizeof(hash_table)); in dm9132_id_table()
1475 hash_table[3] = 0x8000; in dm9132_id_table()
1481 hash_table[hash_val / 16] |= (u16) 1 << (hash_val % 16); in dm9132_id_table()
1486 dw16(0, hash_table[i]); in dm9132_id_table()
/linux-4.4.14/include/linux/sunrpc/
Dcache.h78 struct hlist_head * hash_table; member
/linux-4.4.14/drivers/net/ethernet/davicom/
Ddm9000.c853 u16 hash_table[4] = { 0, 0, 0, 0x8000 }; /* broadcast address */ in dm9000_hash_table_unlocked() local
870 hash_table[hash_val / 16] |= (u16) 1 << (hash_val % 16); in dm9000_hash_table_unlocked()
875 iow(db, oft++, hash_table[i]); in dm9000_hash_table_unlocked()
876 iow(db, oft++, hash_table[i] >> 8); in dm9000_hash_table_unlocked()
/linux-4.4.14/drivers/net/ethernet/amd/xgbe/
Dxgbe-dev.c806 u32 hash_table[XGBE_MAC_HASH_TABLE_SIZE]; in xgbe_set_mac_hash_table() local
812 memset(hash_table, 0, sizeof(hash_table)); in xgbe_set_mac_hash_table()
818 hash_table[crc >> 5] |= (1 << (crc & 0x1f)); in xgbe_set_mac_hash_table()
824 hash_table[crc >> 5] |= (1 << (crc & 0x1f)); in xgbe_set_mac_hash_table()
830 XGMAC_IOWRITE(pdata, hash_reg, hash_table[i]); in xgbe_set_mac_hash_table()
/linux-4.4.14/drivers/net/ethernet/altera/
Daltera_tse.h329 u32 hash_table[64]; member
Daltera_tse_main.c1037 csrwr32(0, priv->mac_dev, tse_csroffs(hash_table) + i * 4); in altera_tse_set_mcfilter()
1053 csrwr32(1, priv->mac_dev, tse_csroffs(hash_table) + hash * 4); in altera_tse_set_mcfilter()
1065 csrwr32(1, priv->mac_dev, tse_csroffs(hash_table) + i * 4); in altera_tse_set_mcfilterall()