/freebsd/lib/libkvm/ |
H A D | kvm_minidump_powerpc64_hpt.c | 323 uint64_t hash, hmask; in pte_search() local 360 * pteg = (hash(0:38) & hmask) << 3 in pte_search() 362 * hmask (hash mask): mask generated from HTABSIZE || 11*0b1 in pte_search() 363 * hmask = number_of_ptegs - 1 in pte_search() 365 hmask = kd->vmst->hdr.pmapsize / (8 * sizeof(ppc64_pt_entry_t)) - 1; in pte_search() 366 pteg = (hash & hmask) << 3; in pte_search() 371 dprintf("%s: hash=0x%010jx, hmask=0x%010jx, (hash & hmask)=0x%010jx, " in pte_search() 373 __func__, (uintmax_t)hash, (uintmax_t)hmask, in pte_search() 374 (uintmax_t)(hash & hmask), (uintmax_t)pteg, in pte_search()
|
/freebsd/sys/netgraph/ |
H A D | ng_socket.c | 180 u_long hmask; /* hash mask */ member 573 priv->hash = hashinit(16, M_NETGRAPH_SOCK, &priv->hmask); in ng_attach_cntl() 678 hashdestroy(priv->hash, M_NETGRAPH_SOCK, priv->hmask); in ng_socket_free_priv() 796 u_long hmask; in ngs_rehash() local 798 new = hashinit_flags((priv->hmask + 1) * 2, M_NETGRAPH_SOCK, &hmask, in ngs_rehash() 808 h = hash32_str(NG_HOOK_NAME(hook), HASHINIT) & hmask; in ngs_rehash() 812 hashdestroy(priv->hash, M_NETGRAPH_SOCK, priv->hmask); in ngs_rehash() 814 priv->hmask = hmask; in ngs_rehash() 831 if (node->nd_numhooks * 2 > priv->hmask) in ngs_newhook() 834 h = hash32_str(name, HASHINIT) & priv->hmask; in ngs_newhook() [all …]
|
H A D | ng_base.c | 985 u_long hmask; in ng_name_rehash() local 989 new = hashinit_flags((V_ng_name_hmask + 1) * 2, M_NETGRAPH_NODE, &hmask, in ng_name_rehash() 999 hash = hash32_str(NG_NODE_NAME(node), HASHINIT) & hmask; in ng_name_rehash() 1005 V_ng_name_hmask = hmask; in ng_name_rehash() 1016 u_long hmask; in ng_ID_rehash() local 1020 new = hashinit_flags((V_ng_ID_hmask + 1) * 2, M_NETGRAPH_NODE, &hmask, in ng_ID_rehash() 1030 hash = (node->nd_ID % (hmask + 1)); in ng_ID_rehash() 1036 V_ng_ID_hmask = hmask; in ng_ID_rehash()
|
/freebsd/sys/contrib/device-tree/Bindings/soc/fsl/cpm_qe/ |
H A D | network.txt | 101 - fsl,hmask 106 fsl,hmask = /bits/ 16 <0x0000>;
|
H A D | fsl,ucc-hdlc.yaml | 104 fsl,hmask: 109 fsl,hmask = /bits/ 16 <0x0000>;
|
/freebsd/sys/net/ |
H A D | if_vlan.c | 107 uint16_t hmask; member 409 trunk->hmask = n - 1; in vlan_inithash() 428 trunk->hwidth = trunk->hmask = 0; in vlan_freehash() 441 i = HASH(ifv->ifv_vid, trunk->hmask); in vlan_inshash() 453 i = HASH(ifv->ifv_vid, trunk->hmask); in vlan_inshash() 471 i = HASH(ifv->ifv_vid, trunk->hmask); in vlan_remhash() 524 trunk->hmask = n2 - 1; in vlan_growhash() 538 CK_SLIST_FOREACH(ifv, &trunk->hash[HASH(vid, trunk->hmask)], ifv_list) in vlan_gethash()
|
/freebsd/sys/netinet/ |
H A D | in_fib_dxr.c | 1226 uint32_t ip, plen, hmask, start, end, i, ui; in dxr_dump_end() 1252 hmask = 0xffffffffU >> plen; in dxr_change_rib_batch() 1254 hmask = 0; in dxr_change_rib_batch() 1255 start = (ip & ~hmask) >> DXR_RANGE_SHIFT; in dxr_change_rib_batch() 1256 end = (ip | hmask) >> DXR_RANGE_SHIFT; in dxr_change_rib_batch() 1257 uint32_t ip, plen, hmask, start, end, i, ui; dxr_change_rib_batch() local
|
/freebsd/sys/dev/ixgbe/ |
H A D | ixgbe_x550.c | 4243 u32 hmask = mask & ~IXGBE_GSSR_TOKEN_SM; in ixgbe_acquire_swfw_sync_X550a() local 4250 if (hmask) in ixgbe_acquire_swfw_sync_X550a() 4251 status = ixgbe_acquire_swfw_sync_X540(hw, hmask); in ixgbe_acquire_swfw_sync_X550a() 4269 if (hmask) in ixgbe_acquire_swfw_sync_X550a() 4270 ixgbe_release_swfw_sync_X540(hw, hmask); in ixgbe_acquire_swfw_sync_X550a() 4279 if (hmask) in ixgbe_acquire_swfw_sync_X550a() 4280 ixgbe_release_swfw_sync_X540(hw, hmask); in ixgbe_acquire_swfw_sync_X550a() 4296 u32 hmask = mask & ~IXGBE_GSSR_TOKEN_SM; in ixgbe_release_swfw_sync_X550a() local 4303 if (hmask) in ixgbe_release_swfw_sync_X550a() 4304 ixgbe_release_swfw_sync_X540(hw, hmask); in ixgbe_release_swfw_sync_X550a()
|
/freebsd/sys/kern/ |
H A D | sched_ule.c | 850 cpuset_t hmask, lmask; in sched_balance_group() local 853 CPU_FILL(&hmask); in sched_balance_group() 855 high = sched_highest(cg, &hmask, 1, 0); in sched_balance_group() 859 CPU_CLR(high, &hmask); in sched_balance_group() 860 CPU_COPY(&hmask, &lmask); in sched_balance_group() 897 CPU_CLR(low, &hmask); in sched_balance_group()
|