Searched refs:hash (Results 26 - 50 of 102) sorted by relevance

12345

/drivers/firmware/google/
H A Dgsmi.c684 * This hash function was blatantly copied from include/linux/hash.h.
694 u64 hash = val; local
697 u64 n = hash;
699 hash -= n;
701 hash -= n;
703 hash += n;
705 hash -= n;
707 hash += n;
709 hash
735 u32 hash; local
[all...]
/drivers/s390/block/
H A Ddasd_devmap.c99 int hash, i; local
101 hash = 0;
103 hash += *bus_id;
104 return hash & 0xff;
412 int hash; local
420 hash = dasd_hash_busid(bus_id);
421 list_for_each_entry(tmp, &dasd_hashlists[hash], list)
432 list_add(&new->list, &dasd_hashlists[hash]);
448 int hash; local
452 hash
[all...]
/drivers/crypto/
H A Dtalitos.c50 #include <crypto/hash.h>
51 #include <crypto/internal/hash.h>
1663 /* hash context in */
1716 /* hash/HMAC out -or- hash context out */
1814 /* At least (blocksize + 1) bytes are available to hash */
1862 /* request SEC to INIT hash. */
1931 u8 *hash)
1946 /* Keep tfm keylen == 0 during hash of the long key */
1953 ahash_request_set_crypt(req, sg, hash, keyle
1930 keyhash(struct crypto_ahash *tfm, const u8 *key, unsigned int keylen, u8 *hash) argument
1981 u8 hash[SHA512_DIGEST_SIZE]; local
2009 struct ahash_alg hash; member in union:talitos_alg_template::__anon447
[all...]
H A Domap-sham.c37 #include <crypto/hash.h>
38 #include <crypto/internal/hash.h>
204 u32 *hash = (u32 *)ctx->digest; local
210 hash[i] = omap_sham_read(ctx->dd,
214 SHA_REG_DIGEST(i), hash[i]);
222 u32 *hash = (u32 *)req->result; local
225 if (!hash)
231 hash[i] = be32_to_cpu(in[i]);
235 hash[i] = le32_to_cpu(in[i]);
462 /* without finup() we need one block to close hash */
[all...]
H A Dixp4xx_crypto.c37 /* hash: cfgword + 2 * digestlen; crypt: keylen + cfgword */
194 const struct ix_hash_algo *hash; member in struct:ixp_alg
261 return container_of(tfm->__crt_alg, struct ixp_alg, crypto)->hash;
1350 .hash = &hash_alg_md5,
1363 .hash = &hash_alg_md5,
1376 .hash = &hash_alg_sha1,
1389 .hash = &hash_alg_sha1,
1402 .hash = &hash_alg_md5,
1415 .hash = &hash_alg_sha1,
1449 if (!ixp4xx_algos[i].hash) {
[all...]
H A Dpadlock-sha.c15 #include <crypto/internal/hash.h>
213 struct crypto_shash *hash = __crypto_shash_cast(tfm); local
230 hash->descsize += crypto_shash_descsize(fallback_tfm);
293 * multiple-parts hash supported by VIA Nano Processor.*/
/drivers/net/wireless/zd1211rw/
H A Dzd_chip.h440 /* Group hash table for filtering incoming packets.
442 * The group hash table is 64 bit large and split over two parts. The first
444 * address are used as index. Packets are received if the hash table bit is
955 static inline void zd_mc_clear(struct zd_mc_hash *hash) argument
957 hash->low = 0;
959 * The hash of the broadcast address ff:ff:ff:ff:ff:ff is 63.
961 hash->high = 0x80000000;
964 static inline void zd_mc_add_all(struct zd_mc_hash *hash) argument
966 hash->low = hash
969 zd_mc_add_addr(struct zd_mc_hash *hash, u8 *addr) argument
[all...]
H A Dzd_mac.c278 struct zd_mc_hash hash; local
279 zd_mc_clear(&hash);
280 return zd_chip_set_multicast_hash(&mac->chip, &hash);
310 /* Wait after setting the multicast hash table and powering on
1219 struct zd_mc_hash hash; local
1222 zd_mc_clear(&hash);
1226 zd_mc_add_addr(&hash, ha->addr);
1229 return hash.low | ((u64)hash.high << 32);
1240 struct zd_mc_hash hash local
[all...]
/drivers/net/ethernet/chelsio/cxgb3/
H A Dxgmac.c286 /* Calculate the RX hash filter index of an Ethernet address */
289 int hash = 0, octet, bit, i = 0, c; local
293 hash ^= (c & 1) << i;
297 return hash;
323 int hash = hash_hw_addr(ha->addr); local
325 if (hash < 32)
326 hash_lo |= (1 << hash);
328 hash_hi |= (1 << (hash - 32));
/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c91 u16 *hash, u8 op_mod)
101 *hash = imm;
554 * If GID is found in MGM or MGM is empty, *index = *hash, *prev = -1
558 * previous entry in hash chain and *mgm holds AMGM entry.
561 * entry in hash chain and *mgm holds end of hash chain.
572 u16 hash; local
583 err = mlx4_GID_HASH(dev, mailbox, &hash, op_mod);
589 mlx4_dbg(dev, "Hash for %pI6 is %04x\n", gid, hash);
591 *index = hash;
90 mlx4_GID_HASH(struct mlx4_dev *dev, struct mlx4_cmd_mailbox *mailbox, u16 *hash, u8 op_mod) argument
[all...]
/drivers/gpu/drm/
H A Ddrm_hashtab.c29 * Simple open hash tab implementation.
37 #include <linux/hash.h>
52 DRM_ERROR("Out of memory for hash table\n");
/drivers/md/
H A Draid5.h90 * stripe is also (potentially) linked to a hash bucket in the hash
95 * The inactive_list, handle_list and hash bucket lists are all protected by the
110 * lockdev check-hash unlink-stripe cnt++ clean-stripe hash-stripe unlockdev
112 * lockdev check-hash if(!cnt++)unlink-stripe unlockdev
198 struct hlist_node hash; member in struct:stripe_head
/drivers/staging/zcache/
H A Dtmem.h14 #include <linux/hash.h>
56 * It also contains a set of hash buckets, each of which contains an rbtree
/drivers/crypto/amcc/
H A Dcrypto4xx_alg.c25 #include <linux/hash.h>
26 #include <crypto/internal/hash.h>
227 /* Need to zero hash digest in SA */
/drivers/net/ethernet/
H A Dethoc.c797 u32 hash[2] = { 0, 0 }; local
821 hash[0] = 0xffffffff;
822 hash[1] = 0xffffffff;
827 hash[bit >> 5] |= 1 << (bit & 0x1f);
831 ethoc_write(priv, ETH_HASH0, hash[0]);
832 ethoc_write(priv, ETH_HASH1, hash[1]);
/drivers/net/ethernet/marvell/
H A Dskge.h2541 const u8 *hash)
2543 xm_write16(hw, port, reg, (u16)hash[0] | ((u16)hash[1] << 8));
2544 xm_write16(hw, port, reg+2, (u16)hash[2] | ((u16)hash[3] << 8));
2545 xm_write16(hw, port, reg+4, (u16)hash[4] | ((u16)hash[5] << 8));
2546 xm_write16(hw, port, reg+6, (u16)hash[6] | ((u16)hash[7] << 8));
2540 xm_outhash(const struct skge_hw *hw, int port, int reg, const u8 *hash) argument
/drivers/net/ethernet/toshiba/
H A Dspider_net.c587 * spider_net_get_multicast_hash - generates hash for multicast filter table
590 * returns the hash value.
592 * spider_net_get_multicast_hash calculates a hash value for a given multicast
599 u8 hash; local
610 hash = (crc >> 27);
611 hash <<= 3;
612 hash |= crc & 7;
613 hash &= 0xff;
615 return hash;
630 u8 hash; local
[all...]
/drivers/staging/tidspbridge/pmgr/
H A Ddbll.c36 /* Number of buckets for symbol hash table */
185 /* symbol table hash functions */
416 /* Create a hash table for symbols if not already created */
591 /* Create a hash table for symbols if flag is set */
799 u16 hash; local
802 hash = 0;
805 hash <<= 1;
806 hash ^= *name++;
809 ret = hash % max_bucket;
/drivers/net/ethernet/sun/
H A Dsunvnet.c615 unsigned int hash = vnet_hashfn(skb->data); local
616 struct hlist_head *hp = &vp->port_hash[hash];
620 hlist_for_each_entry(port, n, hp, hash) {
1187 INIT_HLIST_NODE(&port->hash);
1200 hlist_add_head(&port->hash, &vp->port_hash[vnet_hashfn(port->raddr)]);
1237 hlist_del(&port->hash);
/drivers/char/tpm/
H A Dtpm.h269 u8 hash[TPM_DIGEST_SIZE]; member in struct:tpm_pcrextend_in
/drivers/gpu/drm/gma500/
H A Dgem.c84 /* GEM should really work out the hash offsets for us */
85 *offset = (u64)obj->map_list.hash.key << PAGE_SHIFT;
/drivers/gpu/drm/ttm/
H A Dttm_lock.c277 lock->base.hash.key, TTM_REF_USAGE);
/drivers/gpu/drm/udl/
H A Dudl_gem.c234 *offset = (u64)gobj->base.map_list.hash.key << PAGE_SHIFT;
/drivers/infiniband/hw/mthca/
H A Dmthca_cmd.h322 u16 *hash);
/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.
1010 * @hash: pointer to hash address filter bitmap
1018 * If @hash is not %NULL addresses that fail to allocate an exact filter
1019 * are hashed and update the hash filter bitmap pointed at by @hash.
1025 u64 *hash, bool sleep_ok)
1078 else if (hash)
1023 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...]

Completed in 3765 milliseconds

12345