Home
last modified time | relevance | path

Searched refs:hmask (Results 1 – 25 of 31) sorted by relevance

12

/kernel/linux/linux-5.10/net/xfrm/
Dxfrm_hash.h87 unsigned int hmask) in __xfrm_dst_hash() argument
98 return (h ^ (h >> 16)) & hmask; in __xfrm_dst_hash()
104 unsigned int hmask) in __xfrm_src_hash() argument
115 return (h ^ (h >> 16)) & hmask; in __xfrm_src_hash()
120 unsigned short family, unsigned int hmask) in __xfrm_spi_hash() argument
131 return (h ^ (h >> 10) ^ (h >> 20)) & hmask; in __xfrm_spi_hash()
134 static inline unsigned int __idx_hash(u32 index, unsigned int hmask) in __idx_hash() argument
136 return (index ^ (index >> 8)) & hmask; in __idx_hash()
140 unsigned short family, unsigned int hmask, in __sel_hash() argument
151 return hmask + 1; in __sel_hash()
[all …]
Dxfrm_policy.c487 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_bysel() local
493 hash = __sel_hash(sel, family, hmask, dbits, sbits); in policy_hash_bysel()
495 if (hash == hmask + 1) in policy_hash_bysel()
507 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_direct() local
513 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); in policy_hash_direct()
578 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in xfrm_bydst_resize() local
579 unsigned int nhashmask = xfrm_new_hash_mask(hmask); in xfrm_bydst_resize()
594 for (i = hmask; i >= 0; i--) in xfrm_bydst_resize()
598 net->xfrm.policy_bydst[dir].hmask = nhashmask; in xfrm_bydst_resize()
605 xfrm_hash_free(odst, (hmask + 1) * sizeof(struct hlist_head)); in xfrm_bydst_resize()
[all …]
/kernel/linux/linux-5.10/arch/x86/include/asm/fpu/
Dinternal.h227 #define XSTATE_OP(op, st, lmask, hmask, err) \ argument
237 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
254 #define XSTATE_XSAVE(st, lmask, hmask, err) \ argument
267 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
274 #define XSTATE_XRESTORE(st, lmask, hmask) \ argument
281 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
292 u32 hmask = mask >> 32; in copy_kernel_to_xregs_booting() local
298 XSTATE_OP(XRSTORS, xstate, lmask, hmask, err); in copy_kernel_to_xregs_booting()
300 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); in copy_kernel_to_xregs_booting()
316 u32 hmask = mask >> 32; in copy_xregs_to_kernel() local
[all …]
/kernel/linux/linux-5.10/arch/riscv/mm/
Dtlbflush.c20 struct cpumask hmask; in __sbi_tlb_flush_range() local
35 riscv_cpuid_to_hartid_mask(cmask, &hmask); in __sbi_tlb_flush_range()
36 sbi_remote_sfence_vma(cpumask_bits(&hmask), start, size); in __sbi_tlb_flush_range()
/kernel/linux/linux-5.10/arch/ia64/lib/
Ddo_csum.S95 #define hmask r16 macro
141 mov hmask=-1 // initialize head mask
169 shl hmask=hmask,tmp2 // build head mask, mask off [0,first1off[
175 (p8) and hmask=hmask,tmask // apply tail mask to head mask if 1 word only
181 and word1[0]=firstval,hmask // and mask it as appropriate
/kernel/linux/linux-5.10/include/linux/
Dinetdevice.h209 __u32 hmask; in bad_mask() local
212 hmask = ntohl(mask); in bad_mask()
213 if (hmask & (hmask+1)) in bad_mask()
291 __u32 hmask = ntohl(mask); in inet_mask_len() local
292 if (!hmask) in inet_mask_len()
294 return 32 - ffz(~hmask); in inet_mask_len()
Dpagewalk.h50 int (*hugetlb_entry)(pte_t *pte, unsigned long hmask,
/kernel/linux/linux-5.10/arch/x86/kernel/fpu/
Dxstate.c1303 u32 lmask, hmask; in copy_supervisor_to_kernel() local
1316 hmask = xfeatures_mask_supervisor() >> 32; in copy_supervisor_to_kernel()
1317 XSTATE_OP(XSAVES, xstate, lmask, hmask, err); in copy_supervisor_to_kernel()
1367 u32 lmask, hmask; in copy_dynamic_supervisor_to_kernel() local
1377 hmask = dynamic_mask >> 32; in copy_dynamic_supervisor_to_kernel()
1379 XSTATE_OP(XSAVES, xstate, lmask, hmask, err); in copy_dynamic_supervisor_to_kernel()
1403 u32 lmask, hmask; in copy_kernel_to_dynamic_supervisor() local
1413 hmask = dynamic_mask >> 32; in copy_kernel_to_dynamic_supervisor()
1415 XSTATE_OP(XRSTORS, xstate, lmask, hmask, err); in copy_kernel_to_dynamic_supervisor()
/kernel/linux/linux-5.10/drivers/net/wan/
Dfsl_ucc_hdlc.h56 __be16 hmask; member
105 unsigned short hmask; member
Dfsl_ucc_hdlc.c280 iowrite16be(priv->hmask, &priv->ucc_pram->hmask); in uhdlc_init()
1213 if (of_property_read_u16(np, "fsl,hmask", &uhdlc_priv->hmask)) in ucc_hdlc_probe()
1214 uhdlc_priv->hmask = DEFAULT_ADDR_MASK; in ucc_hdlc_probe()
/kernel/linux/linux-5.10/arch/powerpc/mm/book3s32/
Dmmu.c403 unsigned int hmask = Hash_mask >> (16 - LG_HPTEG_SIZE); in MMU_init_hw_patch() local
422 modify_instruction_site(&patch__hash_page_B, 0xffff, hmask); in MMU_init_hw_patch()
423 modify_instruction_site(&patch__hash_page_C, 0xffff, hmask); in MMU_init_hw_patch()
431 modify_instruction_site(&patch__flush_hash_B, 0xffff, hmask); in MMU_init_hw_patch()
/kernel/linux/linux-5.10/include/net/netns/
Dxfrm.h16 unsigned int hmask; member
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
Dnetwork.txt101 - fsl,hmask
106 fsl,hmask = /bits/ 16 <0x0000>;
/kernel/linux/linux-5.10/mm/
Dpagewalk.c251 unsigned long hmask = huge_page_mask(h); in walk_hugetlb_range() local
259 pte = huge_pte_offset(walk->mm, addr & hmask, sz); in walk_hugetlb_range()
262 err = ops->hugetlb_entry(pte, hmask, addr, next, walk); in walk_hugetlb_range()
Dmincore.c24 static int mincore_hugetlb(pte_t *pte, unsigned long hmask, unsigned long addr, in mincore_hugetlb() argument
Dhmm.c472 static int hmm_vma_walk_hugetlb_entry(pte_t *pte, unsigned long hmask, in hmm_vma_walk_hugetlb_entry() argument
500 pfn = pte_pfn(entry) + ((start & ~hmask) >> PAGE_SHIFT); in hmm_vma_walk_hugetlb_entry()
/kernel/linux/linux-5.10/include/media/tpg/
Dv4l2-tpg.h195 unsigned hmask[TPG_MAX_PLANES]; member
441 return ((x / tpg->hdownsampling[plane]) & tpg->hmask[plane]) * in tpg_hdiv()
/kernel/linux/linux-5.10/drivers/net/ethernet/netronome/nfp/abm/
Dcls.c45 if (knode->sel->hoff || knode->sel->hmask) { in nfp_abm_u32_check_knode()
/kernel/linux/linux-5.10/fs/proc/
Dtask_mmu.c723 static int smaps_hugetlb_range(pte_t *pte, unsigned long hmask, in smaps_hugetlb_range() argument
1542 static int pagemap_hugetlb_range(pte_t *ptep, unsigned long hmask, in pagemap_hugetlb_range() argument
1568 ((addr & ~hmask) >> PAGE_SHIFT); in pagemap_hugetlb_range()
1870 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
1890 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
/kernel/linux/linux-5.10/tools/include/uapi/linux/
Dpkt_cls.h182 __be32 hmask; member
/kernel/linux/patches/linux-4.19/prebuilts/usr/include/linux/
Dpkt_cls.h145 __be32 hmask; member
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgbe/
Dixgbe_x550.c3703 u32 hmask = mask & ~IXGBE_GSSR_TOKEN_SM; in ixgbe_acquire_swfw_sync_x550em_a() local
3709 if (hmask) in ixgbe_acquire_swfw_sync_x550em_a()
3710 status = ixgbe_acquire_swfw_sync_X540(hw, hmask); in ixgbe_acquire_swfw_sync_x550em_a()
3719 if (hmask) in ixgbe_acquire_swfw_sync_x550em_a()
3720 ixgbe_release_swfw_sync_X540(hw, hmask); in ixgbe_acquire_swfw_sync_x550em_a()
3738 u32 hmask = mask & ~IXGBE_GSSR_TOKEN_SM; in ixgbe_release_swfw_sync_x550em_a() local
3743 if (hmask) in ixgbe_release_swfw_sync_x550em_a()
3744 ixgbe_release_swfw_sync_X540(hw, hmask); in ixgbe_release_swfw_sync_x550em_a()
/kernel/linux/linux-5.10/drivers/media/common/v4l2-tpg/
Dv4l2-tpg-core.c188 tpg->hmask[0] = ~0; in tpg_s_fourcc()
189 tpg->hmask[1] = ~0; in tpg_s_fourcc()
190 tpg->hmask[2] = ~0; in tpg_s_fourcc()
304 tpg->hmask[1] = ~1; in tpg_s_fourcc()
316 tpg->hmask[1] = ~1; in tpg_s_fourcc()
341 tpg->hmask[0] = ~1; in tpg_s_fourcc()
/kernel/linux/patches/linux-5.10/prebuilts/usr/include/linux/
Dpkt_cls.h196 __be32 hmask; member
/kernel/linux/linux-5.10/include/uapi/linux/
Dpkt_cls.h252 __be32 hmask; member

12