Home
last modified time | relevance | path

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

12

/Linux-v6.6/arch/x86/kernel/fpu/
Dxstate.h92 #define XSTATE_OP(op, st, lmask, hmask, err) \ argument
98 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
117 #define XSTATE_XSAVE(st, lmask, hmask, err) \ argument
127 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
134 #define XSTATE_XRESTORE(st, lmask, hmask) \ argument
141 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
182 u32 hmask = mask >> 32; in os_xsave() local
188 XSTATE_XSAVE(&fpstate->regs.xsave, lmask, hmask, err); in os_xsave()
202 u32 hmask = mask >> 32; in os_xrstor() local
205 XSTATE_XRESTORE(&fpstate->regs.xsave, lmask, hmask); in os_xrstor()
[all …]
Dxstate.c316 u32 hmask = mask >> 32; in os_xrstor_booting() local
320 XSTATE_OP(XRSTORS, xstate, lmask, hmask, err); in os_xrstor_booting()
322 XSTATE_OP(XRSTOR, xstate, lmask, hmask, err); in os_xrstor_booting()
/Linux-v6.6/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()
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 …]
Dxfrm_policy.c488 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_bysel() local
494 hash = __sel_hash(sel, family, hmask, dbits, sbits); in policy_hash_bysel()
496 if (hash == hmask + 1) in policy_hash_bysel()
508 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in policy_hash_direct() local
514 hash = __addr_hash(daddr, saddr, family, hmask, dbits, sbits); in policy_hash_direct()
579 unsigned int hmask = net->xfrm.policy_bydst[dir].hmask; in xfrm_bydst_resize() local
580 unsigned int nhashmask = xfrm_new_hash_mask(hmask); in xfrm_bydst_resize()
595 for (i = hmask; i >= 0; i--) in xfrm_bydst_resize()
599 net->xfrm.policy_bydst[dir].hmask = nhashmask; in xfrm_bydst_resize()
606 xfrm_hash_free(odst, (hmask + 1) * sizeof(struct hlist_head)); in xfrm_bydst_resize()
[all …]
/Linux-v6.6/arch/riscv/kvm/
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 …]
Dtlb.c290 unsigned long hbase, unsigned long hmask, in make_xfence_request() argument
304 if (!(hmask & (1UL << (vcpu->vcpu_id - hbase)))) in make_xfence_request()
326 unsigned long hbase, unsigned long hmask) in kvm_riscv_fence_i() argument
328 make_xfence_request(kvm, hbase, hmask, KVM_REQ_FENCE_I, in kvm_riscv_fence_i()
333 unsigned long hbase, unsigned long hmask, in kvm_riscv_hfence_gvma_vmid_gpa() argument
344 make_xfence_request(kvm, hbase, hmask, KVM_REQ_HFENCE, in kvm_riscv_hfence_gvma_vmid_gpa()
349 unsigned long hbase, unsigned long hmask) in kvm_riscv_hfence_gvma_vmid_all() argument
351 make_xfence_request(kvm, hbase, hmask, KVM_REQ_HFENCE_GVMA_VMID_ALL, in kvm_riscv_hfence_gvma_vmid_all()
356 unsigned long hbase, unsigned long hmask, in kvm_riscv_hfence_vvma_asid_gva() argument
367 make_xfence_request(kvm, hbase, hmask, KVM_REQ_HFENCE, in kvm_riscv_hfence_vvma_asid_gva()
[all …]
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-v6.6/arch/riscv/kernel/
Dsbi.c74 unsigned long hmask = 0; in __sbi_v01_cpumask_to_hartmask() local
89 hmask |= BIT(hartid); in __sbi_v01_cpumask_to_hartmask()
92 return hmask; in __sbi_v01_cpumask_to_hartmask()
247 static int __sbi_rfence_v02_call(unsigned long fid, unsigned long hmask, in __sbi_rfence_v02_call() argument
258 ret = sbi_ecall(ext, fid, hmask, hbase, 0, 0, 0, 0); in __sbi_rfence_v02_call()
261 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
265 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
270 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
274 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
278 ret = sbi_ecall(ext, fid, hmask, hbase, start, in __sbi_rfence_v02_call()
[all …]
/Linux-v6.6/arch/riscv/include/asm/
Dkvm_host.h283 unsigned long hbase, unsigned long hmask);
285 unsigned long hbase, unsigned long hmask,
289 unsigned long hbase, unsigned long hmask);
291 unsigned long hbase, unsigned long hmask,
295 unsigned long hbase, unsigned long hmask,
298 unsigned long hbase, unsigned long hmask,
302 unsigned long hbase, unsigned long hmask);
/Linux-v6.6/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-v6.6/include/linux/
Dinetdevice.h214 __u32 hmask; in bad_mask() local
217 hmask = ntohl(mask); in bad_mask()
218 if (hmask & (hmask+1)) in bad_mask()
296 __u32 hmask = ntohl(mask); in inet_mask_len() local
297 if (!hmask) in inet_mask_len()
299 return 32 - ffz(~hmask); in inet_mask_len()
Dpagewalk.h71 int (*hugetlb_entry)(pte_t *pte, unsigned long hmask,
/Linux-v6.6/arch/powerpc/mm/book3s32/
Dmmu.c393 unsigned int hmask = Hash_mask >> (16 - LG_HPTEG_SIZE); in MMU_init_hw_patch() local
412 modify_instruction_site(&patch__hash_page_B, 0xffff, hmask); in MMU_init_hw_patch()
413 modify_instruction_site(&patch__hash_page_C, 0xffff, hmask); in MMU_init_hw_patch()
421 modify_instruction_site(&patch__flush_hash_B, 0xffff, hmask); in MMU_init_hw_patch()
/Linux-v6.6/drivers/net/wan/
Dfsl_ucc_hdlc.h56 __be16 hmask; member
105 unsigned short hmask; member
Dfsl_ucc_hdlc.c282 iowrite16be(priv->hmask, &priv->ucc_pram->hmask); in uhdlc_init()
1214 if (of_property_read_u16(np, "fsl,hmask", &uhdlc_priv->hmask)) in ucc_hdlc_probe()
1215 uhdlc_priv->hmask = DEFAULT_ADDR_MASK; in ucc_hdlc_probe()
/Linux-v6.6/include/net/netns/
Dxfrm.h16 unsigned int hmask; member
/Linux-v6.6/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
Dnetwork.txt101 - fsl,hmask
106 fsl,hmask = /bits/ 16 <0x0000>;
/Linux-v6.6/mm/
Dpagewalk.c315 unsigned long hmask = huge_page_mask(h); in walk_hugetlb_range() local
324 pte = hugetlb_walk(vma, addr & hmask, sz); in walk_hugetlb_range()
326 err = ops->hugetlb_entry(pte, hmask, addr, next, walk); in walk_hugetlb_range()
Dmincore.c25 static int mincore_hugetlb(pte_t *pte, unsigned long hmask, unsigned long addr, in mincore_hugetlb() argument
Dhmm.c473 static int hmm_vma_walk_hugetlb_entry(pte_t *pte, unsigned long hmask, in hmm_vma_walk_hugetlb_entry() argument
514 pfn = pte_pfn(entry) + ((start & ~hmask) >> PAGE_SHIFT); in hmm_vma_walk_hugetlb_entry()
/Linux-v6.6/drivers/gpu/drm/tegra/
Ddrm.h48 unsigned int hmask, vmask; member
/Linux-v6.6/include/media/tpg/
Dv4l2-tpg.h195 unsigned hmask[TPG_MAX_PLANES]; member
442 return ((x / tpg->hdownsampling[plane]) & tpg->hmask[plane]) * in tpg_hdiv()
/Linux-v6.6/mm/damon/
Dvaddr.c367 static int damon_mkold_hugetlb_entry(pte_t *pte, unsigned long hmask, in damon_mkold_hugetlb_entry() argument
501 static int damon_young_hugetlb_entry(pte_t *pte, unsigned long hmask, in damon_young_hugetlb_entry() argument
/Linux-v6.6/drivers/net/ethernet/netronome/nfp/abm/
Dcls.c45 if (knode->sel->hoff || knode->sel->hmask) { in nfp_abm_u32_check_knode()
/Linux-v6.6/fs/proc/
Dtask_mmu.c720 static int smaps_hugetlb_range(pte_t *pte, unsigned long hmask, in smaps_hugetlb_range() argument
1564 static int pagemap_hugetlb_range(pte_t *ptep, unsigned long hmask, in pagemap_hugetlb_range() argument
1593 ((addr & ~hmask) >> PAGE_SHIFT); in pagemap_hugetlb_range()
1906 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
1924 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument

12