/drivers/staging/ramster/ |
H A D | tmem.h | 13 #include <linux/hash.h> 55 * It also contains a set of hash buckets, each of which contains an rbtree
|
/drivers/usb/host/ |
H A D | ohci-q.c | 508 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 D | fec.c | 1302 #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 D | nvd0_display.c | 1903 /* 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 D | drm_bufs.c | 80 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 D | davinci_emac.c | 699 * 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 D | cpmac.c | 334 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 D | tpm.c | 781 * 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 D | tfc_io.c | 40 #include <linux/hash.h>
|
H A D | tfc_cmd.c | 31 #include <linux/hash.h>
|
/drivers/net/ethernet/sfc/ |
H A D | filter.c | 69 /* 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 D | vmwgfx_resource.c | 400 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 D | vmwgfx_fence.c | 614 *p_handle = ufence->base.hash.key; 1105 handle = base->hash.key;
|
/drivers/md/ |
H A D | dm-thin.c | 185 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 D | dm-crypt.c | 26 #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 D | iscsi_target.c | 1175 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 D | bond_alb.c | 91 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 D | tsi108_eth.c | 1196 u32 hash, crc; local 1199 hash = crc >> 23; 1200 __set_bit(hash, &data->mc_hash[0]);
|
/drivers/crypto/caam/ |
H A D | regs.h | 490 struct rtic_memhash hash[4]; /* Block hash values A-D */ member in struct:caam_assurance
|
/drivers/net/usb/ |
H A D | catc.c | 215 #define f5u011_mchash_async(catc, hash) catc_ctrl_async(catc, USB_DIR_OUT, SetRxMode, 0, 2, &hash, 8, NULL)
|
/drivers/staging/omapdrm/ |
H A D | omap_gem.c | 287 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 D | em28xx-cards.c | 67 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 D | tehuti.c | 785 /* 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 D | zd_chip.c | 1532 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 D | exynos_drm_gem.c | 670 *offset = (u64)exynos_gem_obj->base.map_list.hash.key << PAGE_SHIFT;
|