Home
last modified time | relevance | path

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

12

/linux-6.1.9/arch/x86/kernel/fpu/
Dxstate.h91 #define XSTATE_OP(op, st, lmask, hmask, err) \ argument
97 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
116 #define XSTATE_XSAVE(st, lmask, hmask, err) \ argument
126 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
133 #define XSTATE_XRESTORE(st, lmask, hmask) \ argument
140 : "D" (st), "m" (*st), "a" (lmask), "d" (hmask) \
181 u32 hmask = mask >> 32; in os_xsave() local
187 XSTATE_XSAVE(&fpstate->regs.xsave, lmask, hmask, err); in os_xsave()
201 u32 hmask = mask >> 32; in os_xrstor() local
204 XSTATE_XRESTORE(&fpstate->regs.xsave, lmask, hmask); in os_xrstor()
[all …]
/linux-6.1.9/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()
253 unsigned long hartid, cpuid, hmask = 0, hbase = 0, htop = 0; in __sbi_send_ipi_v02() local
262 if (hmask) { in __sbi_send_ipi_v02()
266 SBI_EXT_IPI_SEND_IPI, hmask, in __sbi_send_ipi_v02()
270 hmask = 0; in __sbi_send_ipi_v02()
273 hmask <<= hbase - hartid; in __sbi_send_ipi_v02()
277 if (!hmask) { in __sbi_send_ipi_v02()
283 hmask |= BIT(hartid - hbase); in __sbi_send_ipi_v02()
[all …]
/linux-6.1.9/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.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 …]
/linux-6.1.9/arch/riscv/kvm/
Dvcpu_sbi_v01.c22 ulong hmask; in kvm_sbi_ext_v01_handler() local
52 hmask = kvm_riscv_vcpu_unpriv_read(vcpu, false, cp->a0, in kvm_sbi_ext_v01_handler()
55 hmask = (1UL << atomic_read(&kvm->online_vcpus)) - 1; in kvm_sbi_ext_v01_handler()
59 for_each_set_bit(i, &hmask, BITS_PER_LONG) { in kvm_sbi_ext_v01_handler()
75 hmask = kvm_riscv_vcpu_unpriv_read(vcpu, false, cp->a0, in kvm_sbi_ext_v01_handler()
78 hmask = (1UL << atomic_read(&kvm->online_vcpus)) - 1; in kvm_sbi_ext_v01_handler()
83 kvm_riscv_fence_i(vcpu->kvm, 0, hmask); in kvm_sbi_ext_v01_handler()
87 0, hmask); in kvm_sbi_ext_v01_handler()
90 0, hmask, in kvm_sbi_ext_v01_handler()
96 0, hmask, in kvm_sbi_ext_v01_handler()
[all …]
Dtlb.c287 unsigned long hbase, unsigned long hmask, in make_xfence_request() argument
301 if (!(hmask & (1UL << (vcpu->vcpu_id - hbase)))) in make_xfence_request()
323 unsigned long hbase, unsigned long hmask) in kvm_riscv_fence_i() argument
325 make_xfence_request(kvm, hbase, hmask, KVM_REQ_FENCE_I, in kvm_riscv_fence_i()
330 unsigned long hbase, unsigned long hmask, in kvm_riscv_hfence_gvma_vmid_gpa() argument
341 make_xfence_request(kvm, hbase, hmask, KVM_REQ_HFENCE, in kvm_riscv_hfence_gvma_vmid_gpa()
346 unsigned long hbase, unsigned long hmask) in kvm_riscv_hfence_gvma_vmid_all() argument
348 make_xfence_request(kvm, hbase, hmask, KVM_REQ_HFENCE_GVMA_VMID_ALL, in kvm_riscv_hfence_gvma_vmid_all()
353 unsigned long hbase, unsigned long hmask, in kvm_riscv_hfence_vvma_asid_gva() argument
364 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
62 if (!(hmask & (1UL << (tmp->vcpu_id - hbase)))) in kvm_sbi_ext_ipi_handler()
85 unsigned long hmask = cp->a0; in kvm_sbi_ext_rfence_handler() local
91 kvm_riscv_fence_i(vcpu->kvm, hbase, hmask); in kvm_sbi_ext_rfence_handler()
95 kvm_riscv_hfence_vvma_all(vcpu->kvm, hbase, hmask); in kvm_sbi_ext_rfence_handler()
97 kvm_riscv_hfence_vvma_gva(vcpu->kvm, hbase, hmask, in kvm_sbi_ext_rfence_handler()
103 hbase, hmask, cp->a4); in kvm_sbi_ext_rfence_handler()
106 hbase, hmask, in kvm_sbi_ext_rfence_handler()
/linux-6.1.9/arch/riscv/include/asm/
Dkvm_host.h267 unsigned long hbase, unsigned long hmask);
269 unsigned long hbase, unsigned long hmask,
273 unsigned long hbase, unsigned long hmask);
275 unsigned long hbase, unsigned long hmask,
279 unsigned long hbase, unsigned long hmask,
282 unsigned long hbase, unsigned long hmask,
286 unsigned long hbase, unsigned long hmask);
/linux-6.1.9/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-6.1.9/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.h50 int (*hugetlb_entry)(pte_t *pte, unsigned long hmask,
/linux-6.1.9/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-6.1.9/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()
1211 if (of_property_read_u16(np, "fsl,hmask", &uhdlc_priv->hmask)) in ucc_hdlc_probe()
1212 uhdlc_priv->hmask = DEFAULT_ADDR_MASK; in ucc_hdlc_probe()
/linux-6.1.9/include/net/netns/
Dxfrm.h16 unsigned int hmask; member
/linux-6.1.9/Documentation/devicetree/bindings/soc/fsl/cpm_qe/
Dnetwork.txt101 - fsl,hmask
106 fsl,hmask = /bits/ 16 <0x0000>;
/linux-6.1.9/mm/
Dpagewalk.c299 unsigned long hmask = huge_page_mask(h); in walk_hugetlb_range() local
307 pte = huge_pte_offset(walk->mm, addr & hmask, sz); in walk_hugetlb_range()
310 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.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()
/linux-6.1.9/drivers/gpu/drm/tegra/
Ddrm.h60 unsigned int hmask, vmask; member
/linux-6.1.9/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-6.1.9/mm/damon/
Dvaddr.c361 static int damon_mkold_hugetlb_entry(pte_t *pte, unsigned long hmask, in damon_mkold_hugetlb_entry() argument
487 static int damon_young_hugetlb_entry(pte_t *pte, unsigned long hmask, in damon_young_hugetlb_entry() argument
/linux-6.1.9/drivers/net/ethernet/netronome/nfp/abm/
Dcls.c45 if (knode->sel->hoff || knode->sel->hmask) { in nfp_abm_u32_check_knode()
/linux-6.1.9/fs/proc/
Dtask_mmu.c723 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()
1898 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
1916 static int gather_hugetlb_stats(pte_t *pte, unsigned long hmask, in gather_hugetlb_stats() argument
/linux-6.1.9/tools/include/uapi/linux/
Dpkt_cls.h182 __be32 hmask; member

12