hash_32 70 arch/powerpc/kernel/iommu.c per_cpu(iommu_pool_hash, i) = hash_32(i, IOMMU_POOL_HASHBITS); hash_32 43 arch/sparc/kernel/iommu-common.c per_cpu(iommu_hash_common, i) = hash_32(i, IOMMU_POOL_HASHBITS); hash_32 104 arch/x86/kernel/kvm.c u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS); hash_32 192 arch/x86/kernel/kvm.c u32 key = hash_32(token, KVM_TASK_SLEEP_HASHBITS); hash_32 10084 arch/x86/kvm/x86.c return hash_32(gfn & 0xffffffff, order_base_2(ASYNC_PF_PER_VCPU)); hash_32 508 drivers/dax/super.c inode = iget5_locked(dax_superblock, hash_32(devt + DAXFS_MAGIC, 31), hash_32 1088 drivers/gpu/drm/amd/amdkfd/kfd_topology.c hashout ^= hash_32(buf[i], KFD_GPU_ID_HASH_WIDTH); hash_32 509 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c &eb->buckets[hash_32(entry->handle, hash_32 841 drivers/gpu/drm/i915/gem/i915_gem_execbuffer.c head = &eb->buckets[hash_32(handle, eb->lut_size)]; hash_32 771 drivers/infiniband/sw/rdmavt/qp.c u32 n = hash_32(qp->ibqp.qp_num, rdi->qp_dev->qp_table_bits); hash_32 1427 drivers/infiniband/sw/rdmavt/qp.c u32 n = hash_32(qp->ibqp.qp_num, rdi->qp_dev->qp_table_bits); hash_32 870 drivers/md/bcache/btree.c return &c->bucket_hash[hash_32(PTR_HASH(c, k), BUCKET_HASH_BITS)]; hash_32 1552 drivers/md/dm-cache-policy-smq.c return hash_32(from_cblock(cblock), 9) & (NR_CACHE_LEVELS - 1); hash_32 27 drivers/misc/vmw_vmci/vmci_doorbell.c #define VMCI_DOORBELL_HASH(_idx) hash_32(_idx, VMCI_DOORBELL_INDEX_BITS) hash_32 32 drivers/misc/vmw_vmci/vmci_resource.c return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); hash_32 74 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c struct hlist_head *h = &buckets[hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP)]; hash_32 89 drivers/net/ethernet/mellanox/mlx5/core/ipoib/ipoib_vlan.c u8 key = hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP); hash_32 100 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c key = hash_32(key, IONIC_RX_FILTER_HASH_BITS); hash_32 119 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c key = hash_32(vid, IONIC_RX_FILTER_HASH_BITS); hash_32 139 drivers/net/ethernet/pensando/ionic/ionic_rx_filter.c key = hash_32(*(u32 *)addr, IONIC_RX_FILTER_HASH_BITS); hash_32 86 drivers/net/geneve.c return hash_32(vnid, VNI_HASH_BITS); hash_32 254 drivers/net/macvlan.c return hash_32(val, MACVLAN_MC_FILTER_BITS); hash_32 161 drivers/net/vxlan.c return &vs->vni_list[hash_32((__force u32)vni, VNI_HASH_BITS)]; hash_32 169 drivers/net/vxlan.c return &vn->sock_list[hash_32(ntohs(port), PORT_HASH_BITS)]; hash_32 1109 drivers/nvdimm/region_devs.c idx = this_cpu_add_return(flush_idx, hash_32(current->pid + idx, 8)); hash_32 2497 drivers/staging/exfat/exfat_super.c return hash_32(i_pos, EXFAT_HASH_BITS); hash_32 150 drivers/target/tcm_fc/tfc_sess.c return hash_32(port_id, FT_SESS_HASH_BITS); hash_32 113 fs/dcache.c return in_lookup_hashtable + hash_32(hash, IN_LOOKUP_SHIFT); hash_32 423 fs/fat/fat.h return hash_32(logstart, FAT_HASH_BITS); hash_32 391 fs/fat/inode.c return hash_32(i_pos, FAT_HASH_BITS); hash_32 109 fs/gfs2/glock.c return glock_wait_table + hash_32(hash, GLOCK_WAIT_TABLE_BITS); hash_32 53 fs/mbcache.c return &cache->c_hash[hash_32(key, cache->c_bucket_bits)]; hash_32 89 fs/nfsd/nfscache.c return hash_32(be32_to_cpu(xid), nn->maskbits); hash_32 16 include/linux/hash.h #define hash_long(val, bits) hash_32(val, bits) hash_32 84 include/linux/hash.h return hash_32((u32)val ^ __hash_32(val >> 32), bits); hash_32 32 include/linux/hashtable.h (sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits)) hash_32 81 include/net/llc.h return hash_32(jhash(laddr->mac, sizeof(laddr->mac), 0), hash_32 723 include/rdma/rdmavt_qp.h u32 n = hash_32(qpn, rdi->qp_dev->qp_table_bits); hash_32 114 kernel/time/posix-timers.c return hash_32(hash32_ptr(sig) ^ nr, HASH_BITS(posix_timers_hashtable)); hash_32 92 lib/test_hash.c hash_or[0][k] |= h1 = hash_32(h0, k); hash_32 209 net/core/dev.c return &net->dev_name_head[hash_32(hash, NETDEV_HASHBITS)]; hash_32 125 net/ipv4/devinet.c return hash_32(val, IN4_ADDR_HSIZE_SHIFT); hash_32 1369 net/ipv4/igmp.c return hash_32((__force u32)im->multiaddr, MC_HASH_SZ_LOG); hash_32 2707 net/ipv4/igmp.c u32 hash = hash_32((__force u32)mc_addr, MC_HASH_SZ_LOG); hash_32 55 net/ipv4/ip_tunnel.c return hash_32((__force u32)key ^ (__force u32)remote, hash_32 626 net/ipv4/route.c return hash_32(hval, FNHE_HASH_SHIFT); hash_32 258 net/ipv4/tcp_metrics.c hash = hash_32(hash, tcp_metrics_hash_log); hash_32 303 net/ipv4/tcp_metrics.c hash = hash_32(hash, tcp_metrics_hash_log); hash_32 843 net/ipv4/tcp_metrics.c hash = hash_32(hash, tcp_metrics_hash_log); hash_32 920 net/ipv4/tcp_metrics.c hash = hash_32(hash, tcp_metrics_hash_log); hash_32 995 net/ipv6/addrconf.c return hash_32(val, IN6_ADDR_HSIZE_SHIFT); hash_32 56 net/ipv6/anycast.c return hash_32(val, IN6_ADDR_HSIZE_SHIFT); hash_32 105 net/ipv6/ip6_gre.c return hash_32(hash, IP6_GRE_HASH_SIZE_SHIFT); hash_32 74 net/ipv6/ip6_tunnel.c return hash_32(hash, IP6_TUNNEL_HASH_SIZE_SHIFT); hash_32 57 net/ipv6/ip6_vti.c return hash_32(hash, IP6_VTI_HASH_SIZE_SHIFT); hash_32 1512 net/ipv6/route.c return hash_32(val, FIB6_EXCEPTION_BUCKET_SIZE_SHIFT); hash_32 138 net/l2tp/l2tp_core.c return &pn->l2tp_session_hlist[hash_32(session_id, L2TP_HASH_BITS_2)]; hash_32 151 net/l2tp/l2tp_core.c return &tunnel->session_hlist[hash_32(session_id, L2TP_HASH_BITS)]; hash_32 80 net/netfilter/ipvs/ip_vs_dh.c return hash_32(ntohl(addr_fold), IP_VS_DH_TAB_BITS); hash_32 159 net/netfilter/ipvs/ip_vs_lblc.c return hash_32(ntohl(addr_fold), IP_VS_LBLC_TAB_BITS); hash_32 322 net/netfilter/ipvs/ip_vs_lblcr.c return hash_32(ntohl(addr_fold), IP_VS_LBLCR_TAB_BITS); hash_32 94 net/netfilter/ipvs/ip_vs_sh.c return (offset + hash_32(ntohs(port) + ntohl(addr_fold), hash_32 117 net/sunrpc/svcauth_unix.c return hash_32(ipv6_addr_hash(ip), IP_HASHBITS); hash_32 16 tools/include/linux/hash.h #define hash_long(val, bits) hash_32(val, bits) hash_32 84 tools/include/linux/hash.h return hash_32((u32)val ^ __hash_32(val >> 32), bits); hash_32 29 tools/include/linux/hashtable.h (sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits)) hash_32 1455 tools/perf/util/auxtrace.c hlist_add_head(&entry->hash, &c->hashtable[hash_32(key, c->bits)]); hash_32 1468 tools/perf/util/auxtrace.c hlist = &c->hashtable[hash_32(key, c->bits)];