Searched refs:hash (Results 51 - 75 of 102) sorted by relevance

12345

/drivers/staging/ramster/
H A Dtmem.h13 #include <linux/hash.h>
55 * It also contains a set of hash buckets, each of which contains an rbtree
/drivers/usb/host/
H A Dohci-q.c508 int hash; local
560 /* hash it for later reverse mapping */
561 hash = TD_HASH_FUNC (td->td_dma);
562 td->td_hash = ohci->td_hash [hash];
563 ohci->td_hash [hash] = td;
/drivers/net/ethernet/freescale/
H A Dfec.c1302 #define HASH_BITS 6 /* #bits in hash */
1310 unsigned char hash; local
1333 /* Clear filter and add the addresses in hash register
1351 * which point to specific bit in he hash registers
1353 hash = (crc >> (32 - HASH_BITS)) & 0x3f;
1355 if (hash > 31) {
1357 tmp |= 1 << (hash - 32);
1361 tmp |= 1 << hash;
/drivers/gpu/drm/nouveau/
H A Dnvd0_display.c1903 /* point at our hash table / objects, enable interrupts */
2045 /* hash table and dma objects for the memory areas we care about */
2056 u32 hash = 0x0000 + (i * 0x040); local
2072 nv_wo32(disp->mem, hash + 0x00, NvEvoSync);
2073 nv_wo32(disp->mem, hash + 0x04, 0x00000001 | (i << 27) |
2082 nv_wo32(disp->mem, hash + 0x08, NvEvoVRAM);
2083 nv_wo32(disp->mem, hash + 0x0c, 0x00000001 | (i << 27) |
2092 nv_wo32(disp->mem, hash + 0x10, NvEvoVRAM_LP);
2093 nv_wo32(disp->mem, hash + 0x14, 0x00000001 | (i << 27) |
2102 nv_wo32(disp->mem, hash
[all...]
/drivers/gpu/drm/
H A Ddrm_bufs.c80 static int drm_map_handle(struct drm_device *dev, struct drm_hash_item *hash, argument
96 hash->key = user_token >> PAGE_SHIFT;
97 ret = drm_ht_insert_item(&dev->map_hash, hash);
116 * hash value we use are equal to those in the original
123 return drm_ht_just_insert_please(&dev->map_hash, hash,
349 ret = drm_map_handle(dev, &list->hash, user_token, 0,
360 list->user_token = list->hash.key << PAGE_SHIFT;
/drivers/net/ethernet/ti/
H A Ddavinci_emac.c699 * hash_get: Calculate hash value from mac address
700 * @addr: mac address to delete from hash table
702 * Calculates hash value from mac address
707 u32 hash; local
710 hash = 0;
714 hash ^= (tmpval >> 2) ^ (tmpval << 4);
716 hash ^= (tmpval >> 4) ^ (tmpval << 2);
718 hash ^= (tmpval >> 6) ^ (tmpval);
721 return hash & 0x3F;
725 * hash_add: Hash function to add mac addr from hash tabl
[all...]
H A Dcpmac.c334 u32 mbp, bit, hash[2] = { 0, }; local
367 hash[bit / 32] |= 1 << (bit % 32);
370 cpmac_write(priv->regs, CPMAC_MAC_HASH_LO, hash[0]);
371 cpmac_write(priv->regs, CPMAC_MAC_HASH_HI, hash[1]);
/drivers/char/tpm/
H A Dtpm.c781 * tpm_pcr_extend - extend pcr value with hash
784 * @hash: hash value used to extend pcr value
798 int tpm_pcr_extend(u32 chip_num, int pcr_idx, const u8 *hash) argument
810 memcpy(cmd.params.pcrextend_in.hash, hash, TPM_DIGEST_SIZE);
1292 memcpy(cmd.params.pcrextend_in.hash, dummy_hash,
/drivers/target/tcm_fc/
H A Dtfc_io.c40 #include <linux/hash.h>
H A Dtfc_cmd.c31 #include <linux/hash.h>
/drivers/net/ethernet/sfc/
H A Dfilter.c69 /* The filter hash function is LFSR polynomial x^16 + x^3 + 1 of a 32-bit
85 /* To allow for hash collisions, filter search continues at these
86 * increments from the first possible entry selected by the hash. */
537 unsigned hash, incr, filter_idx, depth, depth_max; local
539 hash = efx_filter_hash(key);
542 filter_idx = hash & (table->size - 1);
/drivers/gpu/drm/vmwgfx/
H A Dvmwgfx_resource.c400 ttm_ref_object_base_unref(tfile, ctx->base.hash.key, TTM_REF_USAGE);
1436 rep->sid = user_srf->base.hash.key;
1635 rep->handle = vmw_user_bo->base.hash.key;
1637 rep->cur_gmr_id = vmw_user_bo->base.hash.key;
1812 ttm_ref_object_base_unref(tfile, stream->base.hash.key, TTM_REF_USAGE);
H A Dvmwgfx_fence.c614 *p_handle = ufence->base.hash.key;
1105 handle = base->hash.key;
/drivers/md/
H A Ddm-thin.c185 uint64_t hash = key->block * BIG_PRIME; local
187 return (uint32_t) (hash & prison->hash_mask);
221 uint32_t hash = hash_key(prison, key); local
224 BUG_ON(hash > prison->nr_buckets);
228 cell = __search_bucket(prison->cells + hash, key);
245 cell = __search_bucket(prison->cells + hash, key);
261 hlist_add_head(&cell->list, prison->cells + hash);
H A Ddm-crypt.c26 #include <crypto/hash.h>
95 #define LMK_SEED_SIZE 64 /* hash + 0 */
373 /* Allocate hash algorithm */
376 ti->error = "Error initializing ESSIV hash";
490 ti->error = "Error initializing LMK hash";
579 __cpu_to_le32s(&md5state.hash[i]);
580 memcpy(iv, &md5state.hash, cc->iv_size);
/drivers/target/iscsi/
H A Discsi_target.c1175 struct hash_desc *hash,
1187 crypto_hash_init(hash);
1196 crypto_hash_update(hash, &sg[i], cur_len);
1207 crypto_hash_update(hash, &pad_sg, padding);
1209 crypto_hash_final(hash, (u8 *) &data_crc);
1215 struct hash_desc *hash,
1224 crypto_hash_init(hash);
1227 crypto_hash_update(hash, &sg, payload_length);
1231 crypto_hash_update(hash, &sg, padding);
1233 crypto_hash_final(hash, data_cr
1174 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
1214 iscsit_do_crypto_hash_buf( struct hash_desc *hash, unsigned char *buf, u32 payload_length, u32 padding, u8 *pad_bytes, u8 *data_crc) argument
[all...]
/drivers/net/bonding/
H A Dbond_alb.c91 u8 hash = 0; local
94 hash ^= hash_start[i];
97 return hash;
152 /* skip this if we've already freed the tx hash table */
368 /* update rx hash table for this ARP */
596 pr_err("%s: Error: found a client with no channel in the client's hash table\n",
1517 * Remove slave from tlb and rlb hash tables, and fix up MAC addresses
/drivers/net/ethernet/tundra/
H A Dtsi108_eth.c1196 u32 hash, crc; local
1199 hash = crc >> 23;
1200 __set_bit(hash, &data->mc_hash[0]);
/drivers/crypto/caam/
H A Dregs.h490 struct rtic_memhash hash[4]; /* Block hash values A-D */ member in struct:caam_assurance
/drivers/net/usb/
H A Dcatc.c215 #define f5u011_mchash_async(catc, hash) catc_ctrl_async(catc, USB_DIR_OUT, SetRxMode, 0, 2, &hash, 8, NULL)
/drivers/staging/omapdrm/
H A Domap_gem.c287 return (uint64_t)obj->map_list.hash.key << PAGE_SHIFT;
815 off = (uint64_t)obj->map_list.hash.key;
/drivers/media/video/em28xx/
H A Dem28xx-cards.c67 unsigned long hash; member in struct:em28xx_hash_table
2146 * EEPROM hash table for devices with generic USB IDs
2160 /* I2C devicelist hash table for devices with generic USB IDs */
2589 * Uses a hash of all eeprom bytes. The hash should be
2595 if (dev->hash == em28xx_eeprom_hash[i].hash) {
2601 "based on eeprom hash.\n");
2617 * Uses a hash of i2c scanned devices.
2628 if (dev->i2c_hash == em28xx_i2c_hash[i].hash) {
[all...]
/drivers/net/ethernet/tehuti/
H A Dtehuti.c785 /* IMF - imperfect (hash) rx multicat filter */
796 u8 hash; local
815 hash = 0;
817 hash ^= ha->addr[i];
818 reg = regRX_MCST_HASH0 + ((hash >> 5) << 2);
820 val |= (1 << (hash % 32));
/drivers/net/wireless/zd1211rw/
H A Dzd_chip.c1532 struct zd_mc_hash *hash)
1535 { CR_GROUP_HASH_P1, hash->low },
1536 { CR_GROUP_HASH_P2, hash->high },
1531 zd_chip_set_multicast_hash(struct zd_chip *chip, struct zd_mc_hash *hash) argument
/drivers/gpu/drm/exynos/
H A Dexynos_drm_gem.c670 *offset = (u64)exynos_gem_obj->base.map_list.hash.key << PAGE_SHIFT;

Completed in 650 milliseconds

12345