Home
last modified time | relevance | path

Searched full:hmask (Results 1 – 25 of 26) sorted by relevance

12

/linux/net/xfrm/
H A 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()
135 __xfrm_seq_hash(u32 seq, unsigned int hmask) in __xfrm_seq_hash() argument
138 return (h ^ (h >> 10) ^ (h >> 20)) & hmask; in __xfrm_seq_hash()
141 static inline unsigned int __idx_hash(u32 index, unsigned int hmask) in __idx_hash() argument
143 return (index ^ (index >> 8)) & hmask; in __idx_hash()
[all …]
H A Dxfrm_policy.c540 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_bysel() local
546 hash = __sel_hash(sel, family, hmask, dbits, sbits); in policy_hash_bysel()
548 if (hash == hmask + 1) in policy_hash_bysel()
560 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_direct() local
566 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); in policy_hash_direct()
631 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in xfrm_bydst_resize() local
632 unsigned int nhashmask = xfrm_new_hash_mask(hmask); in xfrm_bydst_resize()
647 for (i = hmask; i >= 0; i--) in xfrm_bydst_resize()
651 net->xfrm.policy_bydst[dir].hmask = nhashmask; in xfrm_bydst_resize()
658 xfrm_hash_free(odst, (hmask + 1) * sizeof(struct hlist_head)); in xfrm_bydst_resize()
[all …]
/linux/arch/riscv/kvm/
H A Dvcpu_sbi_v01.c19 ulong hmask; in kvm_sbi_ext_v01_handler() local
50 hmask = kvm_riscv_vcpu_unpriv_read(vcpu, false, cp->a0, utrap); in kvm_sbi_ext_v01_handler()
52 hmask = (1UL << atomic_read(&kvm->online_vcpus)) - 1; in kvm_sbi_ext_v01_handler()
56 for_each_set_bit(i, &hmask, BITS_PER_LONG) { in kvm_sbi_ext_v01_handler()
72 hmask = kvm_riscv_vcpu_unpriv_read(vcpu, false, cp->a0, utrap); in kvm_sbi_ext_v01_handler()
74 hmask = (1UL << atomic_read(&kvm->online_vcpus)) - 1; in kvm_sbi_ext_v01_handler()
79 kvm_riscv_fence_i(vcpu->kvm, 0, hmask); in kvm_sbi_ext_v01_handler()
83 0, hmask); in kvm_sbi_ext_v01_handler()
86 0, hmask, in kvm_sbi_ext_v01_handler()
92 0, hmask, in kvm_sbi_ext_v01_handler()
[all …]
H A Dvcpu_sbi_replace.c52 unsigned long hmask = cp->a0; in kvm_sbi_ext_ipi_handler() local
65 if (!(hmask & (1UL << (tmp->vcpu_id - hbase)))) in kvm_sbi_ext_ipi_handler()
87 unsigned long hmask = cp->a0; in kvm_sbi_ext_rfence_handler() local
93 kvm_riscv_fence_i(vcpu->kvm, hbase, hmask); in kvm_sbi_ext_rfence_handler()
98 kvm_riscv_hfence_vvma_all(vcpu->kvm, hbase, hmask); in kvm_sbi_ext_rfence_handler()
100 kvm_riscv_hfence_vvma_gva(vcpu->kvm, hbase, hmask, in kvm_sbi_ext_rfence_handler()
107 hbase, hmask, cp->a4); in kvm_sbi_ext_rfence_handler()
110 hbase, hmask, in kvm_sbi_ext_rfence_handler()
/linux/arch/x86/kernel/fpu/
H A Dxstate.h114 #define XSTATE_OP(op, st, lmask, hmask, err) \ argument
120 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
135 #define XSTATE_XSAVE(st, lmask, hmask, err) \ argument
145 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
152 #define XSTATE_XRESTORE(st, lmask, hmask) \ argument
159 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
206 u32 hmask = mask >> 32; in os_xsave() local
212 XSTATE_XSAVE(&fpstate->regs.xsave, lmask, hmask, err); in os_xsave()
226 u32 hmask = mask >> 32; in os_xrstor() local
229 XSTATE_XRESTORE(&fpstate->regs.xsave, lmask, hmask); in os_xrstor()
[all …]
H A Dxstate.c320 u32 hmask = mask >> 32; in os_xrstor_booting() local
324 XSTATE_OP(XRSTORS, xstate, lmask, hmask, err); in os_xrstor_booting()
326 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); in os_xrstor_booting()
/linux/arch/riscv/kernel/
H A Dsbi.c31 unsigned long hmask = 0; in __sbi_v01_cpumask_to_hartmask() local
46 hmask |= BIT(hartid); in __sbi_v01_cpumask_to_hartmask()
49 return hmask; in __sbi_v01_cpumask_to_hartmask()
204 static int __sbi_rfence_v02_call(unsigned long fid, unsigned long hmask, in __sbi_rfence_v02_call() argument
215 ret = sbi_ecall(ext, fid, hmask, hbase, 0, 0, 0, 0); in __sbi_rfence_v02_call()
218 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
222 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
227 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
231 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
235 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
[all …]
/linux/drivers/net/wan/
H A Dfsl_ucc_hdlc.h56 __be16 hmask; member
105 unsigned short hmask; member
/linux/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
H A Dfsl,ucc-hdlc.yaml104 fsl,hmask:
109 fsl,hmask = /bits/ 16 <0x0000>;
/linux/include/media/tpg/
H A Dv4l2-tpg.h195 unsigned hmask[TPG_MAX_PLANES]; member
442 return ((x / tpg->hdownsampling[plane]) & tpg->hmask[plane]) * in tpg_hdiv()
/linux/drivers/gpu/drm/tegra/
H A Ddrm.h51 unsigned int hmask, vmask; member
H A Ddc.c985 value = (src.y1 & tegra->vmask) << 16 | (src.x1 & tegra->hmask); in __tegra_cursor_atomic_update()
989 (drm_rect_width(&src) & tegra->hmask); in __tegra_cursor_atomic_update()
997 value = ((y & tegra->vmask) << 16) | (x & tegra->hmask); in __tegra_cursor_atomic_update()
H A Ddrm.c1199 tegra->hmask = drm->mode_config.max_width - 1; in host1x_drm_probe()
/linux/mm/
H A Dpagewalk.c327 unsigned long hmask = huge_page_mask(h); in walk_page_test()
336 pte = hugetlb_walk(vma, addr & hmask, sz); in __walk_page_range()
338 err = ops->hugetlb_entry(pte, hmask, addr, next, walk); in __walk_page_range()
268 unsigned long hmask = huge_page_mask(h); walk_hugetlb_range() local
H A Dhmm.c468 static int hmm_vma_walk_hugetlb_entry(pte_t *pte, unsigned long hmask, in hmm_vma_walk_hugetlb_entry() argument
509 pfn = pte_pfn(entry) + ((start & ~hmask) >> PAGE_SHIFT); in hmm_vma_walk_hugetlb_entry()
H A Dmincore.c25 static int mincore_hugetlb(pte_t *pte, unsigned long hmask, unsigned long addr, in mincore_hugetlb() argument
H A Dmprotect.c582 static int prot_none_hugetlb_entry(pte_t *pte, unsigned long hmask, in prot_none_hugetlb_entry()
580 prot_none_hugetlb_entry(pte_t * pte,unsigned long hmask,unsigned long addr,unsigned long next,struct mm_walk * walk) prot_none_hugetlb_entry() argument
H A Dmemory-failure.c835 static int hwpoison_hugetlb_range(pte_t *ptep, unsigned long hmask, in hwpoison_hugetlb_range()
833 hwpoison_hugetlb_range(pte_t * ptep,unsigned long hmask,unsigned long addr,unsigned long end,struct mm_walk * walk) hwpoison_hugetlb_range() argument
/linux/mm/damon/
H A Dvaddr.c370 static int damon_mkold_hugetlb_entry(pte_t *pte, unsigned long hmask, in damon_mkold_hugetlb_entry()
504 static int damon_young_hugetlb_entry(pte_t *pte, unsigned long hmask, in damon_young_hugetlb_entry()
369 damon_mkold_hugetlb_entry(pte_t * pte,unsigned long hmask,unsigned long addr,unsigned long end,struct mm_walk * walk) damon_mkold_hugetlb_entry() argument
503 damon_young_hugetlb_entry(pte_t * pte,unsigned long hmask,unsigned long addr,unsigned long end,struct mm_walk * walk) damon_young_hugetlb_entry() argument
/linux/drivers/net/ethernet/netronome/nfp/abm/
H A Dcls.c45 if (knode->sel->hoff || knode->sel->hmask) { in nfp_abm_u32_check_knode()
/linux/fs/proc/
H A Dtask_mmu.c1004 static int smaps_hugetlb_range(pte_t *pte, unsigned long hmask, in smaps_hugetlb_range() argument
1862 static int pagemap_hugetlb_range(pte_t *ptep, unsigned long hmask, in pagemap_hugetlb_range() argument
1892 ((addr & ~hmask) >> PAGE_SHIFT); in pagemap_hugetlb_range()
2550 static int pagemap_scan_hugetlb_entry(pte_t *ptep, unsigned long hmask, in pagemap_scan_hugetlb_entry() argument
2971 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
2989 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
/linux/tools/include/uapi/linux/
H A Dpkt_cls.h182 __be32 hmask; member
/linux/net/sched/
H A Dcls_u32.c109 unsigned int h = ntohl(key & sel->hmask) >> fshift; in u32_hash_fold()
1128 n->fshift = s->hmask ? ffs(ntohl(s->hmask)) - 1 : 0; in u32_change()
/linux/drivers/media/common/v4l2-tpg/
H A Dv4l2-tpg-core.c220 tpg->hmask[0] = ~0; in tpg_s_fourcc()
221 tpg->hmask[1] = ~0; in tpg_s_fourcc()
222 tpg->hmask[2] = ~0; in tpg_s_fourcc()
338 tpg->hmask[1] = ~1; in tpg_s_fourcc()
350 tpg->hmask[1] = ~1; in tpg_s_fourcc()
375 tpg->hmask[0] = ~1; in tpg_s_fourcc()
/linux/include/uapi/linux/
H A Dpkt_cls.h260 __be32 hmask;

12