Home
last modified time | relevance | path

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

12

/Linux-v5.4/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.c481 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_bysel() local
487 hash = __sel_hash(sel, family, hmask, dbits, sbits); in policy_hash_bysel()
489 if (hash == hmask + 1) in policy_hash_bysel()
501 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_direct() local
507 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); in policy_hash_direct()
572 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in xfrm_bydst_resize() local
573 unsigned int nhashmask = xfrm_new_hash_mask(hmask); in xfrm_bydst_resize()
588 for (i = hmask; i >= 0; i--) in xfrm_bydst_resize()
592 net->xfrm.policy_bydst[dir].hmask = nhashmask; in xfrm_bydst_resize()
599 xfrm_hash_free(odst, (hmask + 1) * sizeof(struct hlist_head)); in xfrm_bydst_resize()
[all …]
/Linux-v5.4/arch/x86/include/asm/fpu/
Dinternal.h213 #define XSTATE_OP(op, st, lmask, hmask, err) \ argument
223 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
240 #define XSTATE_XSAVE(st, lmask, hmask, err) \ argument
253 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
260 #define XSTATE_XRESTORE(st, lmask, hmask) \ argument
267 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
278 u32 hmask = mask >> 32; in copy_xregs_to_kernel_booting() local
284 XSTATE_OP(XSAVES, xstate, lmask, hmask, err); in copy_xregs_to_kernel_booting()
286 XSTATE_OP(XSAVE, xstate, lmask, hmask, err); in copy_xregs_to_kernel_booting()
300 u32 hmask = mask >> 32; in copy_kernel_to_xregs_booting() local
[all …]
/Linux-v5.4/arch/riscv/mm/
Dtlbflush.c15 struct cpumask hmask; in __sbi_tlb_flush_range() local
17 riscv_cpuid_to_hartid_mask(cmask, &hmask); in __sbi_tlb_flush_range()
18 sbi_remote_sfence_vma(hmask.bits, start, size); in __sbi_tlb_flush_range()
Dcacheflush.c31 cpumask_t others, hmask, *mask; in flush_icache_mm() local
50 riscv_cpuid_to_hartid_mask(&others, &hmask); in flush_icache_mm()
51 sbi_remote_fence_i(hmask.bits); in flush_icache_mm()
/Linux-v5.4/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
/Linux-v5.4/include/linux/
Dinetdevice.h200 __u32 hmask; in bad_mask() local
203 hmask = ntohl(mask); in bad_mask()
204 if (hmask & (hmask+1)) in bad_mask()
282 __u32 hmask = ntohl(mask); in inet_mask_len() local
283 if (!hmask) in inet_mask_len()
285 return 32 - ffz(~hmask); in inet_mask_len()
Dpagewalk.h37 int (*hugetlb_entry)(pte_t *pte, unsigned long hmask,
/Linux-v5.4/drivers/net/wan/
Dfsl_ucc_hdlc.h56 __be16 hmask; member
105 unsigned short hmask; member
Dfsl_ucc_hdlc.c271 iowrite16be(priv->hmask, &priv->ucc_pram->hmask); in uhdlc_init()
1208 if (of_property_read_u16(np, "fsl,hmask", &uhdlc_priv->hmask)) in ucc_hdlc_probe()
1209 uhdlc_priv->hmask = DEFAULT_ADDR_MASK; in ucc_hdlc_probe()
/Linux-v5.4/arch/powerpc/mm/book3s32/
Dmmu.c406 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()
432 modify_instruction_site(&patch__flush_hash_B, 0xffff, hmask); in MMU_init_hw_patch()
/Linux-v5.4/mm/
Dpagewalk.c188 unsigned long hmask = huge_page_mask(h); in walk_hugetlb_range() local
196 pte = huge_pte_offset(walk->mm, addr & hmask, sz); in walk_hugetlb_range()
199 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.c726 static int hmm_vma_walk_hugetlb_entry(pte_t *pte, unsigned long hmask, in hmm_vma_walk_hugetlb_entry() argument
755 pfn = pte_pfn(entry) + ((start & ~hmask) >> PAGE_SHIFT); in hmm_vma_walk_hugetlb_entry()
Dmprotect.c318 static int prot_none_hugetlb_entry(pte_t *pte, unsigned long hmask, in prot_none_hugetlb_entry() argument
/Linux-v5.4/include/net/netns/
Dxfrm.h16 unsigned int hmask; member
/Linux-v5.4/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
Dnetwork.txt101 - fsl,hmask
106 fsl,hmask = /bits/ 16 <0x0000>;
/Linux-v5.4/include/media/tpg/
Dv4l2-tpg.h195 unsigned hmask[TPG_MAX_PLANES]; member
439 return ((x / tpg->hdownsampling[plane]) & tpg->hmask[plane]) * in tpg_hdiv()
/Linux-v5.4/fs/proc/
Dtask_mmu.c707 static int smaps_hugetlb_range(pte_t *pte, unsigned long hmask, in smaps_hugetlb_range() argument
1457 static int pagemap_hugetlb_range(pte_t *ptep, unsigned long hmask, in pagemap_hugetlb_range() argument
1483 ((addr & ~hmask) >> PAGE_SHIFT); in pagemap_hugetlb_range()
1781 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
1801 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
/Linux-v5.4/drivers/net/ethernet/netronome/nfp/abm/
Dcls.c45 if (knode->sel->hoff || knode->sel->hmask) { in nfp_abm_u32_check_knode()
/Linux-v5.4/tools/include/uapi/linux/
Dpkt_cls.h182 __be32 hmask; member
/Linux-v5.4/drivers/net/ethernet/intel/ixgbe/
Dixgbe_x550.c3700 u32 hmask = mask & ~IXGBE_GSSR_TOKEN_SM; in ixgbe_acquire_swfw_sync_x550em_a() local
3706 if (hmask) in ixgbe_acquire_swfw_sync_x550em_a()
3707 status = ixgbe_acquire_swfw_sync_X540(hw, hmask); in ixgbe_acquire_swfw_sync_x550em_a()
3716 if (hmask) in ixgbe_acquire_swfw_sync_x550em_a()
3717 ixgbe_release_swfw_sync_X540(hw, hmask); in ixgbe_acquire_swfw_sync_x550em_a()
3735 u32 hmask = mask & ~IXGBE_GSSR_TOKEN_SM; in ixgbe_release_swfw_sync_x550em_a() local
3740 if (hmask) in ixgbe_release_swfw_sync_x550em_a()
3741 ixgbe_release_swfw_sync_X540(hw, hmask); in ixgbe_release_swfw_sync_x550em_a()
/Linux-v5.4/include/uapi/linux/
Dpkt_cls.h224 __be32 hmask; member
/Linux-v5.4/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()
/Linux-v5.4/net/sched/
Dcls_u32.c98 unsigned int h = ntohl(key & sel->hmask) >> fshift; in u32_hash_fold()
1045 n->fshift = s->hmask ? ffs(ntohl(s->hmask)) - 1 : 0; in u32_change()

12