Home
last modified time | relevance | path

Searched refs:hash_32 (Results 1 - 25 of 119) sorted by relevance

12345

/kernel/linux/linux-5.10/tools/include/linux/
H A Dhash.h16 #define hash_long(val, bits) hash_32(val, bits)
66 #define hash_32 hash_32_generic macro
84 return hash_32((u32)val ^ __hash_32(val >> 32), bits); in hash_64_generic()
H A Dhashtable.h27 /* Use hash_32 when possible to allow for fast 32bit hashing in 64bit kernels. */
29 (sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
/kernel/linux/linux-5.10/include/linux/
H A Dhash.h16 #define hash_long(val, bits) hash_32(val, bits)
66 #define hash_32 hash_32_generic macro
84 return hash_32((u32)val ^ __hash_32(val >> 32), bits); in hash_64_generic()
H A Dhashtable.h30 /* Use hash_32 when possible to allow for fast 32bit hashing in 64bit kernels. */
32 (sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
/kernel/linux/linux-6.6/include/linux/
H A Dhash.h16 #define hash_long(val, bits) hash_32(val, bits)
65 static inline u32 hash_32(u32 val, unsigned int bits) in hash_32() function
81 return hash_32((u32)val ^ __hash_32(val >> 32), bits); in hash_64_generic()
H A Dhashtable.h30 /* Use hash_32 when possible to allow for fast 32bit hashing in 64bit kernels. */
32 (sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
/kernel/linux/linux-6.6/tools/include/linux/
H A Dhash.h16 #define hash_long(val, bits) hash_32(val, bits)
65 static inline u32 hash_32(u32 val, unsigned int bits) in hash_32() function
81 return hash_32((u32)val ^ __hash_32(val >> 32), bits); in hash_64_generic()
H A Dhashtable.h27 /* Use hash_32 when possible to allow for fast 32bit hashing in 64bit kernels. */
29 (sizeof(val) <= 4 ? hash_32(val, bits) : hash_long(val, bits))
/kernel/linux/linux-5.10/drivers/net/ethernet/pensando/ionic/
H A Dionic_rx_filter.c162 key = hash_32(key, IONIC_RX_FILTER_HASH_BITS); in ionic_rx_filter_save()
181 key = hash_32(vid, IONIC_RX_FILTER_HASH_BITS); in ionic_rx_filter_by_vlan()
201 key = hash_32(*(u32 *)addr, IONIC_RX_FILTER_HASH_BITS); in ionic_rx_filter_by_addr()
/kernel/linux/linux-5.10/include/net/
H A Dllc.h75 u32 bucket = hash_32(ifindex, LLC_SK_DEV_HASH_BITS); in llc_sk_dev_hash()
83 return hash_32(jhash(laddr->mac, sizeof(laddr->mac), 0), in llc_sk_laddr_hashfn()
/kernel/linux/linux-6.6/include/net/
H A Dllc.h75 u32 bucket = hash_32(ifindex, LLC_SK_DEV_HASH_BITS); in llc_sk_dev_hash()
83 return hash_32(jhash(laddr->mac, sizeof(laddr->mac), 0), in llc_sk_laddr_hashfn()
H A Draw.h45 return hash_32(net_hash_mix(net) ^ proto, RAW_HTABLE_LOG); in raw_hashfunc()
/kernel/linux/linux-6.6/drivers/net/ethernet/pensando/ionic/
H A Dionic_rx_filter.c174 key = hash_32(key, IONIC_RX_FILTER_HASH_BITS); in ionic_rx_filter_save()
191 key = hash_32(vid, IONIC_RX_FILTER_HASH_BITS); in ionic_rx_filter_by_vlan()
211 key = hash_32(*(u32 *)addr, IONIC_RX_FILTER_HASH_BITS); in ionic_rx_filter_by_addr()
230 key = hash_32(0, IONIC_RX_FILTER_HASH_BITS); in ionic_rx_filter_rxsteer()
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
H A Dipoib_vlan.c74 struct hlist_head *h = &buckets[hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP)]; in mlx5i_find_qpn_to_netdev_node()
89 u8 key = hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP); in mlx5i_pkey_add_qpn()
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ipoib/
H A Dipoib_vlan.c74 struct hlist_head *h = &buckets[hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP)]; in mlx5i_find_qpn_to_netdev_node()
89 u8 key = hash_32(qpn, MLX5I_MAX_LOG_PKEY_SUP); in mlx5i_pkey_add_qpn()
/kernel/linux/linux-6.6/drivers/net/vxlan/
H A Dvxlan_private.h48 return &vs->vni_list[hash_32((__force u32)vni, VNI_HASH_BITS)]; in vni_head()
56 return &vn->sock_list[hash_32(ntohs(port), PORT_HASH_BITS)]; in vs_head()
/kernel/linux/linux-5.10/drivers/misc/vmw_vmci/
H A Dvmci_resource.c32 return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); in vmci_resource_hash()
/kernel/linux/linux-5.10/lib/
H A Dtest_hash.c13 * __hash_32_generic() compute the same thing. Likewise hash_32()
91 /* Test hash_32 */ in test_int_hash()
92 hash_or[0][k] |= h1 = hash_32(h0, k); in test_int_hash()
94 pr_err("hash_32(%#x, %d) = %#x > %#x", h0, k, h1, m); in test_int_hash()
101 pr_err("hash_32(%#x, %d) = %#x != hash_32_generic() " in test_int_hash()
211 pr_err("OR of all hash_32(%d) results = %#x " in test_hash_init()
232 pr_info("hash_32() is arch-specific; not compared to generic."); in test_hash_init()
235 pr_info("hash_32() has no arch implementation to test."); in test_hash_init()
/kernel/linux/linux-5.10/net/netfilter/ipvs/
H A Dip_vs_dh.c80 return hash_32(ntohl(addr_fold), IP_VS_DH_TAB_BITS); in ip_vs_dh_hashkey()
/kernel/linux/linux-6.6/drivers/misc/vmw_vmci/
H A Dvmci_resource.c32 return hash_32(handle.resource, VMCI_RESOURCE_HASH_BITS); in vmci_resource_hash()
/kernel/linux/linux-6.6/net/netfilter/ipvs/
H A Dip_vs_dh.c80 return hash_32(ntohl(addr_fold), IP_VS_DH_TAB_BITS); in ip_vs_dh_hashkey()
/kernel/linux/linux-5.10/arch/sparc/kernel/
H A Diommu-common.c43 per_cpu(iommu_hash_common, i) = hash_32(i, IOMMU_POOL_HASHBITS); in setup_iommu_pool_hash()
/kernel/linux/linux-6.6/arch/sparc/kernel/
H A Diommu-common.c43 per_cpu(iommu_hash_common, i) = hash_32(i, IOMMU_POOL_HASHBITS); in setup_iommu_pool_hash()
/kernel/linux/linux-6.6/lib/
H A Dtest_hash.c13 * __hash_32_generic() compute the same thing. Likewise hash_32()
125 /* Test hash_32 */ in test_int_hash()
126 hash_or[0][k] |= params.h1 = hash_32(params.h0, k); in test_int_hash()
128 "hash_32(%#x, %d) = %#x > %#x", in test_int_hash()
216 "OR of all hash_32(%d) results = %#x (%#x expected)", in test_hash_or()
/kernel/linux/linux-5.10/net/ipv4/
H A Dtcp_metrics.c278 hash = hash_32(hash, tcp_metrics_hash_log); in __tcp_get_metrics_req()
323 hash = hash_32(hash, tcp_metrics_hash_log); in tcp_get_metrics()
867 hash = hash_32(hash, tcp_metrics_hash_log); in tcp_metrics_nl_cmd_get()
944 hash = hash_32(hash, tcp_metrics_hash_log); in tcp_metrics_nl_cmd_del()

Completed in 11 milliseconds

12345