| /linux/drivers/net/ethernet/davicom/ |
| H A D | dm9051.c | 53 u16 hash_table[4]; member 274 ret = dm9051_set_regs(db, DM9051_MAR, db->rctl.hash_table, sizeof(db->rctl.hash_table)); in dm9051_set_recv() 952 memset(db->rctl.hash_table, 0, sizeof(db->rctl.hash_table)); in dm9051_open() 1055 rxctrl.hash_table[0] = 0; in dm9051_set_rx_mode() 1056 rxctrl.hash_table[1] = 0; in dm9051_set_rx_mode() 1057 rxctrl.hash_table[2] = 0; in dm9051_set_rx_mode() 1058 rxctrl.hash_table[3] = 0x8000; in dm9051_set_rx_mode() 1063 rxctrl.hash_table[hash_val / 16] |= BIT(0) << (hash_val % 16); in dm9051_set_rx_mode()
|
| H A D | dm9000.c | 842 u16 hash_table[4] = { 0, 0, 0, 0x8000 }; /* broadcast address */ in dm9000_hash_table_unlocked() local 859 hash_table[hash_val / 16] |= (u16) 1 << (hash_val % 16); in dm9000_hash_table_unlocked() 864 iow(db, oft++, hash_table[i]); in dm9000_hash_table_unlocked() 865 iow(db, oft++, hash_table[i] >> 8); in dm9000_hash_table_unlocked()
|
| /linux/drivers/net/ppp/ |
| H A D | pppoe.c | 102 struct pppox_sock __rcu *hash_table[PPPOE_HASH_SIZE]; member 164 ret = rcu_dereference(pn->hash_table[hash]); in __get_item() 181 first = rcu_dereference_protected(pn->hash_table[hash], lockdep_is_held(&pn->hash_lock)); in __set_item() 192 rcu_assign_pointer(pn->hash_table[hash], po); in __set_item() 203 ret = rcu_dereference_protected(pn->hash_table[hash], lockdep_is_held(&pn->hash_lock)); in __delete_item() 204 src = &pn->hash_table[hash]; in __delete_item() 262 struct pppox_sock *po = rcu_dereference_protected(pn->hash_table[i], in pppoe_flush_dev() 307 po = rcu_dereference_protected(pn->hash_table[i], in pppoe_flush_dev() 975 po = rcu_dereference(pn->hash_table[i]); in pppoe_get_idx() 1016 po = rcu_dereference(pn->hash_table[hash]); in pppoe_seq_next()
|
| /linux/net/sunrpc/ |
| H A D | cache.c | 68 struct hlist_head *head = &detail->hash_table[hash]; in sunrpc_cache_find_rcu() 107 struct hlist_head *head = &detail->hash_table[hash]; in sunrpc_cache_add_entry() 239 hlist_add_head_rcu(&tmp->cache_list, &detail->hash_table[hash]); in sunrpc_cache_update() 477 hlist_empty(¤t_detail->hash_table[current_index])) in cache_clean() 488 head = ¤t_detail->hash_table[current_index]; in cache_clean() 563 head = &detail->hash_table[i]; in cache_purge() 1357 hlist_for_each_entry_rcu(ch, &cd->hash_table[hash], cache_list) in __cache_seq_start() 1363 hlist_first_rcu(&cd->hash_table[hash])), in __cache_seq_start() 1389 hlist_first_rcu(&cd->hash_table[hash])), in cache_seq_next() 1739 cd->hash_table = kzalloc_objs(struct hlist_head, cd->hash_size); in cache_create_net() [all …]
|
| /linux/drivers/net/ethernet/rdc/ |
| H A D | r6040.c | 853 u16 hash_table[4] = { 0 }; in r6040_multicast_list() local 882 hash_table[i] = 0xffff; in r6040_multicast_list() 920 hash_table[crc >> 4] |= 1 << (crc & 0xf); in r6040_multicast_list() 928 iowrite16(hash_table[0], ioaddr + MAR0); in r6040_multicast_list() 929 iowrite16(hash_table[1], ioaddr + MAR1); in r6040_multicast_list() 930 iowrite16(hash_table[2], ioaddr + MAR2); in r6040_multicast_list() 931 iowrite16(hash_table[3], ioaddr + MAR3); in r6040_multicast_list()
|
| /linux/drivers/net/bonding/ |
| H A D | bond_alb.c | 195 struct tlb_client_info *hash_table; in __tlb_choose_channel() local 198 hash_table = bond_info->tx_hashtbl; in __tlb_choose_channel() 199 assigned_slave = hash_table[hash_index].tx_slave; in __tlb_choose_channel() 208 hash_table[hash_index].tx_slave = assigned_slave; in __tlb_choose_channel() 209 hash_table[hash_index].next = next_index; in __tlb_choose_channel() 210 hash_table[hash_index].prev = TLB_NULL_INDEX; in __tlb_choose_channel() 213 hash_table[next_index].prev = hash_index; in __tlb_choose_channel() 217 hash_table[hash_index].load_history; in __tlb_choose_channel() 222 hash_table[hash_index].tx_bytes += skb_len; in __tlb_choose_channel()
|
| /linux/drivers/net/ethernet/sun/ |
| H A D | sunqe.c | 646 u16 hash_table[4]; in qe_set_multicast() local 647 u8 *hbytes = (unsigned char *) &hash_table[0]; in qe_set_multicast() 649 memset(hash_table, 0, sizeof(hash_table)); in qe_set_multicast() 653 hash_table[crc >> 4] |= 1 << (crc & 0xf); in qe_set_multicast()
|
| H A D | sunbmac.c | 1019 u16 hash_table[4] = { 0 }; in bigmac_set_multicast() local 1024 hash_table[crc >> 4] |= 1 << (crc & 0xf); in bigmac_set_multicast() 1026 sbus_writel(hash_table[0], bregs + BMAC_HTABLE0); in bigmac_set_multicast() 1027 sbus_writel(hash_table[1], bregs + BMAC_HTABLE1); in bigmac_set_multicast() 1028 sbus_writel(hash_table[2], bregs + BMAC_HTABLE2); in bigmac_set_multicast() 1029 sbus_writel(hash_table[3], bregs + BMAC_HTABLE3); in bigmac_set_multicast()
|
| H A D | sungem.c | 1773 u16 hash_table[16]; in gem_setup_multicast() local 1778 memset(hash_table, 0, sizeof(hash_table)); in gem_setup_multicast() 1782 hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf)); in gem_setup_multicast() 1785 writel(hash_table[i], gp->regs + MAC_HASH0 + (i << 2)); in gem_setup_multicast()
|
| /linux/drivers/net/ethernet/ |
| H A D | korina.c | 741 u16 hash_table[4] = { 0 }; in korina_multicast_list() local 747 hash_table[crc >> 4] |= 1 << (15 - (crc & 0xf)); in korina_multicast_list() 753 writel((u32)(hash_table[1] << 16 | hash_table[0]), in korina_multicast_list() 755 writel((u32)(hash_table[3] << 16 | hash_table[2]), in korina_multicast_list()
|
| /linux/drivers/net/ethernet/apple/ |
| H A D | bmac.c | 967 u16 hash_table[4] = { 0 }; in bmac_set_multicast() local 976 hash_table[crc >> 4] |= 1 << (crc & 0xf); in bmac_set_multicast() 978 bmwrite(dev, BHASH0, hash_table[0]); in bmac_set_multicast() 979 bmwrite(dev, BHASH1, hash_table[1]); in bmac_set_multicast() 980 bmwrite(dev, BHASH2, hash_table[2]); in bmac_set_multicast() 981 bmwrite(dev, BHASH3, hash_table[3]); in bmac_set_multicast()
|
| /linux/drivers/net/ethernet/synopsys/ |
| H A D | dwc-xlgmac-hw.c | 331 u32 hash_table[XLGMAC_MAC_HASH_TABLE_SIZE]; in xlgmac_set_mac_hash_table() local 340 memset(hash_table, 0, sizeof(hash_table)); in xlgmac_set_mac_hash_table() 346 hash_table[crc >> 5] |= (1 << (crc & 0x1f)); in xlgmac_set_mac_hash_table() 352 hash_table[crc >> 5] |= (1 << (crc & 0x1f)); in xlgmac_set_mac_hash_table() 358 writel(hash_table[i], pdata->mac_regs + hash_reg); in xlgmac_set_mac_hash_table()
|
| /linux/drivers/net/ethernet/altera/ |
| H A D | altera_tse_main.c | 804 csrwr32(0, priv->mac_dev, tse_csroffs(hash_table) + i * 4); in altera_tse_set_mcfilter() 820 csrwr32(1, priv->mac_dev, tse_csroffs(hash_table) + hash * 4); in altera_tse_set_mcfilter() 832 csrwr32(1, priv->mac_dev, tse_csroffs(hash_table) + i * 4); in altera_tse_set_mcfilterall()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
| H A D | macsec_fs.c | 652 void *macdev, struct rhashtable *hash_table, bool is_tx) in macsec_fs_id_del() argument 680 rhashtable_remove_fast(hash_table, &fs_id_found->hash, *rhash); in macsec_fs_id_del() 696 void *macdev, struct rhashtable *hash_table, sci_t sci, in macsec_fs_id_add() argument 707 fs_id_iter = rhashtable_lookup(hash_table, &fs_id, rhash_fs_id); in macsec_fs_id_add() 748 err = rhashtable_insert_fast(hash_table, &fs_id_iter->hash, *rhash); in macsec_fs_id_add()
|
| /linux/Documentation/bpf/ |
| H A D | map_bloom_filter.rst | 134 return bpf_map_lookup_elem(&hash_table, &key);
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-dev.c | 966 u32 hash_table[XGBE_MAC_HASH_TABLE_SIZE]; in xgbe_set_mac_hash_table() local 972 memset(hash_table, 0, sizeof(hash_table)); in xgbe_set_mac_hash_table() 978 hash_table[crc >> 5] |= (1 << (crc & 0x1f)); in xgbe_set_mac_hash_table() 984 hash_table[crc >> 5] |= (1 << (crc & 0x1f)); in xgbe_set_mac_hash_table() 990 XGMAC_IOWRITE(pdata, hash_reg, hash_table[i]); in xgbe_set_mac_hash_table()
|
| /linux/drivers/net/ethernet/microchip/ |
| H A D | lan743x_main.c | 1459 u32 hash_table[DP_SEL_VHF_HASH_LEN]; in lan743x_rfe_set_multicast() local 1477 memset(hash_table, 0, DP_SEL_VHF_HASH_LEN * sizeof(u32)); in lan743x_rfe_set_multicast() 1503 hash_table[bitnum / 32] |= (1 << (bitnum % 32)); in lan743x_rfe_set_multicast() 1512 DP_SEL_VHF_HASH_LEN, hash_table); in lan743x_rfe_set_multicast()
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_ct.c | 3652 if (!hash_empty(vport->hash_table)) in lpfc_cmpl_ct_cmd_vmid() 3653 hash_for_each(vport->hash_table, bucket, cur, hnode) in lpfc_cmpl_ct_cmd_vmid()
|
| H A D | lpfc_scsi.c | 5482 if (!hash_empty(vport->hash_table)) in lpfc_vmid_vport_cleanup() 5483 hash_for_each(vport->hash_table, bucket, cur, hnode) in lpfc_vmid_vport_cleanup()
|
| H A D | lpfc_init.c | 4667 hash_init(vport->hash_table); in lpfc_vmid_res_alloc()
|