Searched refs:hash (Results 101 - 125 of 175) sorted by relevance

1234567

/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c109 u16 *hash, u8 op_mod)
119 *hash = imm;
686 * If GID is found in MGM or MGM is empty, *index = *hash, *prev = -1
690 * previous entry in hash chain and *mgm holds AMGM entry.
693 * entry in hash chain and *mgm holds end of hash chain.
704 u16 hash; local
715 err = mlx4_GID_HASH(dev, mailbox, &hash, op_mod);
721 mlx4_dbg(dev, "Hash for %pI6 is %04x\n", gid, hash);
723 *index = hash;
108 mlx4_GID_HASH(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, u16 *hash, u8 op_mod) argument
[all...]
/drivers/staging/lustre/lnet/selftest/
H A Dconsole.c108 /* queued in global hash & list, no refcount is taken by
109 * global hash & list, if caller release his refcount,
140 lstcon_ndlink_find(struct list_head *hash, argument
151 /* search in hash */
152 list_for_each_entry(ndl, &hash[idx], ndl_hlink) {
164 /* find or create in session hash */
179 list_add_tail(&ndl->ndl_hlink, &hash[idx]);
190 list_del(&ndl->ndl_hlink); /* delete from hash */
865 CERROR("Can't allocate hash for batch %s\n", name);
874 CERROR("Can't allocate hash fo
1143 struct list_head *hash; local
[all...]
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_surface.c867 rep->sid = user_srf->prime.base.hash.key;
1002 ttm_ref_object_base_unref(tfile, base->hash.key, TTM_REF_USAGE);
1340 rep->handle = user_srf->prime.base.hash.key;
1407 (void) ttm_ref_object_base_unref(tfile, base->hash.key,
1420 rep->crep.handle = user_srf->prime.base.hash.key;
H A Dvmwgfx_resource.c520 *handle = user_bo->prime.base.hash.key;
765 *handle = user_bo->prime.base.hash.key;
871 ttm_ref_object_base_unref(tfile, stream->base.hash.key, TTM_REF_USAGE);
H A Dvmwgfx_shader.c402 *handle = ushader->base.hash.key;
532 * vmw_compat_shader_key - Compute a hash key suitable for a compat shader.
537 * Returns a hash key suitable for a command buffer managed resource
538 * manager hash table.
/drivers/staging/lustre/lustre/llite/
H A Dnamei.c128 struct inode *ll_iget(struct super_block *sb, ino_t hash, argument
133 LASSERT(hash != 0);
134 inode = iget5_locked(sb, hash, ll_test_inode, ll_set_inode, md);
373 alias->d_name.hash == dentry->d_name.hash &&
457 /* Only hash *de if it is unhashed (new dentry).
H A Dllite_internal.h66 /** Only used on client-side for indicating the tail of dir hash/offset. */
414 #define LL_SBI_64BIT_HASH 0x4000 /* support 64-bits dir hash/offset */
448 pid_t rce_key; /* hash key */
702 struct page *ll_get_dir_page(struct inode *dir, __u64 hash,
712 struct inode *ll_iget(struct super_block *sb, ino_t hash,
1082 void free_rmtperm_hash(struct hlist_head *hash);
1125 pid_t ee_key; /* hash key */
/drivers/net/ethernet/sun/
H A Dsunvnet.c758 unsigned int hash = vnet_hashfn(skb->data); local
759 struct hlist_head *hp = &vp->port_hash[hash];
762 hlist_for_each_entry(port, hp, hash) {
1543 INIT_HLIST_NODE(&port->hash);
1556 hlist_add_head(&port->hash, &vp->port_hash[vnet_hashfn(port->raddr)]);
1597 hlist_del(&port->hash);
/drivers/net/ethernet/ti/
H A Ddavinci_emac.c701 * hash_get - Calculate hash value from mac address
702 * @addr: mac address to delete from hash table
704 * Calculates hash value from mac address
709 u32 hash; local
712 hash = 0;
716 hash ^= (tmpval >> 2) ^ (tmpval << 4);
718 hash ^= (tmpval >> 4) ^ (tmpval << 2);
720 hash ^= (tmpval >> 6) ^ (tmpval);
723 return hash & 0x3F;
727 * hash_add - Hash function to add mac addr from hash tabl
[all...]
H A Dcpmac.c325 u32 mbp, bit, hash[2] = { 0, }; local
357 hash[bit / 32] |= 1 << (bit % 32);
360 cpmac_write(priv->regs, CPMAC_MAC_HASH_LO, hash[0]);
361 cpmac_write(priv->regs, CPMAC_MAC_HASH_HI, hash[1]);
/drivers/crypto/nx/
H A Dnx.c22 #include <crypto/internal/hash.h>
23 #include <crypto/hash.h>
H A Dnx-aes-xcbc.c22 #include <crypto/internal/hash.h>
278 * generate the hash.
H A Dnx-sha256.c22 #include <crypto/internal/hash.h>
H A Dnx-sha512.c22 #include <crypto/internal/hash.h>
/drivers/crypto/ccp/
H A Dccp-crypto-main.c19 #include <crypto/internal/hash.h>
/drivers/md/bcache/
H A Drequest.c16 #include <linux/hash.h>
407 hlist_for_each_entry(i, iohash(dc, bio->bi_iter.bi_sector), hash)
424 hlist_del(&i->hash);
425 hlist_add_head(&i->hash, iohash(dc, i->last));
H A Dbcache.h297 struct hlist_node hash; member in struct:io
/drivers/net/ethernet/altera/
H A Daltera_tse_main.c1005 /* clear the hash filter */
1010 unsigned int hash = 0; local
1021 hash = (hash << 1) | xor_bit;
1023 csrwr32(1, priv->mac_dev, tse_csroffs(hash_table) + hash * 4);
1033 /* set the hash filter */
1415 /* get hash filter settings for this instance */
1418 "altr,has-hash-multicast-filter");
1420 /* Set hash filter to not set for now until the
/drivers/net/ethernet/chelsio/cxgb4vf/
H A Dt4vf_hw.c232 * hash_mac_addr - return the hash value of a MAC address
235 * Hashes a MAC address according to the hash function used by hardware
236 * inexact (hash) address matching.
1037 * @hash: pointer to hash address filter bitmap
1045 * If @hash is not %NULL addresses that fail to allocate an exact filter
1046 * are hashed and update the hash filter bitmap pointed at by @hash.
1052 u64 *hash, bool sleep_ok)
1108 else if (hash)
1050 t4vf_alloc_mac_filt(struct adapter *adapter, unsigned int viid, bool free, unsigned int naddr, const u8 **addr, u16 *idx, u64 *hash, bool sleep_ok) argument
[all...]
/drivers/net/
H A Dmacvlan.c32 #include <linux/hash.h>
241 unsigned int hash; local
251 hash = mc_hash(vlan, eth->h_dest);
252 if (!test_bit(hash, vlan->mc_filter))
/drivers/target/tcm_fc/
H A Dtfc_io.c39 #include <linux/hash.h>
/drivers/target/iscsi/
H A Discsi_target.c1205 struct hash_desc *hash,
1217 crypto_hash_init(hash);
1226 crypto_hash_update(hash, &sg[i], cur_len);
1237 crypto_hash_update(hash, &pad_sg, padding);
1239 crypto_hash_final(hash, (u8 *) &data_crc);
1245 struct hash_desc *hash,
1254 crypto_hash_init(hash);
1257 crypto_hash_update(hash, &sg, payload_length);
1261 crypto_hash_update(hash, &sg, padding);
1263 crypto_hash_final(hash, data_cr
1204 iscsit_do_crypto_hash_sg( struct hash_desc *hash, struct iscsi_cmd *cmd, u32 data_offset, u32 data_length, u32 padding, u8 *pad_bytes) argument
1244 iscsit_do_crypto_hash_buf( struct hash_desc *hash, const void *buf, u32 payload_length, u32 padding, u8 *pad_bytes, u8 *data_crc) argument
[all...]
/drivers/net/bonding/
H A Dbond_alb.c93 u8 hash = 0; local
96 hash ^= hash_start[i];
98 return hash;
131 /* skip this if we've already freed the tx hash table */
319 * Clean up all hash table entries that have this address as ip_src but
325 /* update rx hash table for this ARP */
565 netdev_err(bond->dev, "found a client with no channel in the client's hash table\n");
633 * fix the src hash list
790 /* unlink a rlb hash table entry from the src list */
1349 /* In case of IPX, it will falback to L2 hash */
[all...]
/drivers/net/ethernet/tundra/
H A Dtsi108_eth.c1195 u32 hash, crc; local
1198 hash = crc >> 23;
1199 __set_bit(hash, &data->mc_hash[0]);
/drivers/media/usb/em28xx/
H A Dem28xx.h652 unsigned long hash; /* eeprom hash - for boards with generic ID */ member in struct:em28xx
653 unsigned long i2c_hash; /* i2c devicelist hash -

Completed in 1810 milliseconds

1234567