Home
last modified time | relevance | path

Searched refs:asid (Results 1 – 25 of 38) sorted by relevance

12

/freebsd/contrib/processor-trace/libipt/test/src/
H A Dptunit-asid.c56 struct pt_asid asid; in from_user_default() local
59 errcode = pt_asid_from_user(&asid, NULL); in from_user_default()
61 ptu_uint_eq(asid.size, sizeof(asid)); in from_user_default()
62 ptu_uint_eq(asid.cr3, pt_asid_no_cr3); in from_user_default()
63 ptu_uint_eq(asid.vmcs, pt_asid_no_vmcs); in from_user_default()
70 struct pt_asid asid, user; in from_user_small() local
75 errcode = pt_asid_from_user(&asid, &user); in from_user_small()
77 ptu_uint_eq(asid.size, sizeof(asid)); in from_user_small()
78 ptu_uint_eq(asid.cr3, pt_asid_no_cr3); in from_user_small()
79 ptu_uint_eq(asid.vmcs, pt_asid_no_vmcs); in from_user_small()
[all …]
H A Dptunit-image.c109 struct pt_asid asid[3]; member
394 const struct pt_asid *asid, in image_readmem_callback() argument
400 (void) asid; in image_readmem_callback()
462 struct pt_asid asid; in fini() local
465 pt_asid_init(&asid); in fini()
469 errcode = pt_image_add(&image, &section, &asid, 0x0ull, 0); in fini()
535 struct pt_asid asid; in read_empty() local
539 pt_asid_init(&asid); in read_empty()
543 &asid, 0x1000ull); in read_empty()
557 status = pt_image_add(&ifix->image, &ifix->section[0], &ifix->asid[0], in overlap_front()
[all …]
H A Dptunit-mapped_section.c92 static struct ptunit_result asid(void) in asid() function
95 struct pt_asid asid; in asid() local
98 pt_asid_init(&asid); in asid()
99 asid.cr3 = 0xa00000ull; in asid()
100 asid.vmcs = 0xb00000ull; in asid()
102 pt_msec_init(&msec, NULL, &asid, 0x2000ull, 0x100ull, 0x1000ull); in asid()
106 ptu_uint_eq(pasid->cr3, asid.cr3); in asid()
107 ptu_uint_eq(pasid->vmcs, asid.vmcs); in asid()
190 ptu_run(suite, asid); in main()
H A Dptunit-msec_cache.c140 const struct pt_asid *asid, uint64_t vaddr) in pt_image_find() argument
146 if (!image || !msec || !asid) in pt_image_find()
228 struct pt_asid asid; in fill_null() local
233 status = pt_msec_cache_fill(NULL, &msec, &image, &asid, 0ull); in fill_null()
236 status = pt_msec_cache_fill(&mcache, NULL, &image, &asid, 0ull); in fill_null()
239 status = pt_msec_cache_fill(&mcache, &msec, NULL, &asid, 0ull); in fill_null()
299 struct pt_asid asid; in fill_nomap() local
305 status = pt_msec_cache_fill(&tfix->mcache, &msec, &tfix->image, &asid, in fill_nomap()
323 struct pt_asid asid; in fill() local
326 status = pt_msec_cache_fill(&tfix->mcache, &msec, &tfix->image, &asid, in fill()
H A Dptunit-block_decoder.c271 struct pt_asid asid; in asid_null() local
274 errcode = pt_blk_asid(NULL, &asid, sizeof(asid)); in asid_null()
277 errcode = pt_blk_asid(&decoder, NULL, sizeof(asid)); in asid_null()
H A Dptunit-insn_decoder.c271 struct pt_asid asid; in asid_null() local
274 errcode = pt_insn_asid(NULL, &asid, sizeof(asid)); in asid_null()
277 errcode = pt_insn_asid(&decoder, NULL, sizeof(asid)); in asid_null()
/freebsd/contrib/processor-trace/libipt/src/
H A Dpt_asid.c36 int pt_asid_from_user(struct pt_asid *asid, const struct pt_asid *user) in pt_asid_from_user() argument
38 if (!asid) in pt_asid_from_user()
41 pt_asid_init(asid); in pt_asid_from_user()
49 if (sizeof(*asid) < size) in pt_asid_from_user()
50 size = sizeof(*asid); in pt_asid_from_user()
53 memcpy(asid, user, size); in pt_asid_from_user()
56 asid->size = sizeof(*asid); in pt_asid_from_user()
62 int pt_asid_to_user(struct pt_asid *user, const struct pt_asid *asid, in pt_asid_to_user() argument
65 if (!user || !asid) in pt_asid_to_user()
69 if (size < sizeof(asid->size)) in pt_asid_to_user()
[all …]
H A Dpt_image.c59 const struct pt_asid *asid, in pt_mk_section_list() argument
77 pt_msec_init(&list->section, section, asid, vaddr, offset, size); in pt_mk_section_list()
156 const struct pt_asid *asid, uint64_t vaddr, int isid) in pt_image_add() argument
169 next = pt_mk_section_list(section, asid, begin, 0ull, size, isid); in pt_image_add()
189 errcode = pt_asid_match(masid, asid); in pt_image_add()
268 const struct pt_asid *asid, uint64_t vaddr) in pt_image_remove() argument
287 errcode = pt_asid_match(masid, asid); in pt_image_remove()
312 struct pt_asid asid; in pt_image_add_file() local
318 errcode = pt_asid_from_user(&asid, uasid); in pt_image_add_file()
327 errcode = pt_image_add(image, section, &asid, vaddr, 0); in pt_image_add_file()
[all …]
H A Dpt_insn.c229 const struct pt_asid *asid) in pt_insn_decode_retry() argument
247 size = pt_image_read(image, &isid, &insn->raw[isize], remaining, asid, in pt_insn_decode_retry()
289 return pt_insn_decode_retry(insn, iext, image, asid); in pt_insn_decode_retry()
310 struct pt_image *image, const struct pt_asid *asid) in pt_insn_decode() argument
319 asid, insn->ip); in pt_insn_decode()
339 return pt_insn_decode_retry(insn, iext, image, asid); in pt_insn_decode()
347 const struct pt_asid *asid, size_t steps) in pt_insn_range_is_contiguous() argument
363 errcode = pt_insn_decode(&insn, &iext, image, asid); in pt_insn_range_is_contiguous()
H A Dpt_insn_decoder.c63 pt_asid_init(&decoder->asid); in pt_insn_reset()
434 int pt_insn_asid(const struct pt_insn_decoder *decoder, struct pt_asid *asid, in pt_insn_asid() argument
437 if (!decoder || !asid) in pt_insn_asid()
440 return pt_asid_to_user(asid, &decoder->asid, size); in pt_insn_asid()
479 errcode = pt_insn_decode(&insn, &iext, decoder->image, &decoder->asid); in check_erratum_skd022()
990 &decoder->asid, bdm64_max_steps); in handle_erratum_bdm64()
1233 &decoder->asid); in pt_insn_decode_cached()
1241 &decoder->asid); in pt_insn_decode_cached()
1255 &decoder->asid); in pt_insn_decode_cached()
1282 &decoder->asid, ip); in pt_insn_msec_lookup()
[all …]
H A Dpt_msec_cache.c101 struct pt_image *image, const struct pt_asid *asid, in pt_msec_cache_fill() argument
117 isid = pt_image_find(image, msec, asid, vaddr); in pt_msec_cache_fill()
H A Dpt_block_decoder.c93 pt_asid_init(&decoder->asid); in pt_blk_reset()
450 int pt_blk_asid(const struct pt_block_decoder *decoder, struct pt_asid *asid, in pt_blk_asid() argument
453 if (!decoder || !asid) in pt_blk_asid()
456 return pt_asid_to_user(asid, &decoder->asid, size); in pt_blk_asid()
766 status = pt_insn_decode(&insn, &iext, decoder->image, &decoder->asid); in pt_blk_proceed_one_insn()
1335 errcode = pt_insn_decode(&insn, &iext, decoder->image, &decoder->asid); in pt_blk_handle_erratum_skd022()
2077 errcode = pt_insn_decode(&insn, &iext, decoder->image, &decoder->asid); in pt_blk_proceed_truncated()
2479 &decoder->asid, decoder->ip); in pt_blk_msec_fill()
2647 status = pt_insn_decode(&insn, &iext, decoder->image, &decoder->asid); in pt_blk_handle_erratum_bdm64()
2661 &decoder->asid, bdm64_max_steps); in pt_blk_handle_erratum_bdm64()
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dv3_asid.c113 ASIdentifiers *asid = ext; in i2r_ASIdentifiers() local
114 return (i2r_ASIdentifierChoice(out, asid->asnum, indent, in i2r_ASIdentifiers()
116 i2r_ASIdentifierChoice(out, asid->rdi, indent, in i2r_ASIdentifiers()
154 int X509v3_asid_add_inherit(ASIdentifiers *asid, int which) in X509v3_asid_add_inherit() argument
157 if (asid == NULL) in X509v3_asid_add_inherit()
161 choice = &asid->asnum; in X509v3_asid_add_inherit()
164 choice = &asid->rdi; in X509v3_asid_add_inherit()
185 int X509v3_asid_add_id_or_range(ASIdentifiers *asid, in X509v3_asid_add_id_or_range() argument
190 if (asid == NULL) in X509v3_asid_add_id_or_range()
194 choice = &asid->asnum; in X509v3_asid_add_id_or_range()
[all …]
/freebsd/contrib/processor-trace/libipt/internal/include/
H A Dpt_mapped_section.h44 struct pt_asid asid; member
67 const struct pt_asid *asid, in pt_msec_init() argument
78 if (asid) in pt_msec_init()
79 msec->asid = *asid; in pt_msec_init()
81 pt_asid_init(&msec->asid); in pt_msec_init()
142 return &msec->asid; in pt_msec_asid()
H A Dpt_image.h89 const struct pt_asid *asid, uint64_t vaddr, int isid);
98 const struct pt_asid *asid, uint64_t vaddr);
109 uint16_t size, const struct pt_asid *asid,
123 const struct pt_asid *asid, uint64_t vaddr);
H A Dpt_asid.h49 extern int pt_asid_from_user(struct pt_asid *asid, const struct pt_asid *user);
59 extern int pt_asid_to_user(struct pt_asid *user, const struct pt_asid *asid,
H A Dpt_insn.h196 struct pt_image *image, const struct pt_asid *asid);
209 const struct pt_asid *asid,
H A Dpt_msec_cache.h93 const struct pt_asid *asid, uint64_t vaddr);
/freebsd/contrib/processor-trace/libipt/include/
H A Dintel-pt.h1681 static inline void pt_asid_init(struct pt_asid *asid) in pt_asid_init() argument
1683 asid->size = sizeof(*asid); in pt_asid_init()
1684 asid->cr3 = pt_asid_no_cr3; in pt_asid_init()
1685 asid->vmcs = pt_asid_no_vmcs; in pt_asid_init()
1816 const struct pt_asid *asid,
1832 int isid, const struct pt_asid *asid);
1859 const struct pt_asid *asid);
1872 const struct pt_asid *asid);
1883 const struct pt_asid *asid,
2159 struct pt_asid *asid, size_t size);
[all …]
/freebsd/sys/amd64/vmm/amd/
H A Dsvm_softc.h45 struct asid { struct
60 struct asid asid; member
H A Dsvm.c124 static struct asid asid[MAXCPU]; variable
266 asid[cpu].gen = ~0UL; in svm_modinit()
267 asid[cpu].num = nasid - 1; in svm_modinit()
521 ctrl->asid = 0; in vmcb_init()
1972 if (vcpu->asid.gen != asid[cpu].gen) { in svm_pmap_activate()
1989 if (++asid[cpu].num >= nasid) { in svm_pmap_activate()
1990 asid[cpu].num = 1; in svm_pmap_activate()
1991 if (++asid[cpu].gen == 0) in svm_pmap_activate()
1992 asid[cpu].gen = 1; in svm_pmap_activate()
2002 vcpu->asid.gen = asid[cpu].gen; in svm_pmap_activate()
[all …]
/freebsd/sys/arm64/iommu/
H A Dsmmu.c486 cmd[0] |= (uint64_t)entry->tlbi.asid << TLBI_0_ASID_S; in make_cmd()
498 cmd[0] |= (uint64_t)entry->tlbi.asid << TLBI_0_ASID_S; in make_cmd()
648 smmu_tlbi_asid(struct smmu_softc *sc, uint16_t asid) in smmu_tlbi_asid() argument
654 cmd.tlbi.asid = asid; in smmu_tlbi_asid()
660 smmu_tlbi_va(struct smmu_softc *sc, vm_offset_t va, uint16_t asid) in smmu_tlbi_va() argument
666 cmd.tlbi.asid = asid; in smmu_tlbi_va()
859 val |= (uint64_t)domain->asid << CD0_ASID_S; in smmu_init_cd()
1540 smmu_asid_free(struct smmu_softc *sc, int asid) in smmu_asid_free() argument
1544 bit_clear(sc->asid_set, asid); in smmu_asid_free()
1637 dprintf("%s: %lx, %ld, domain %d\n", __func__, va, size, domain->asid); in smmu_unmap()
[all …]
/freebsd/sys/arm64/include/
H A Dpmap.h120 #define ASID_TO_OPERAND(asid) ({ \ argument
121 KASSERT((asid) != -1, ("invalid ASID")); \
122 (uint64_t)(asid) << TTBR_ASID_SHIFT; \
/freebsd/sys/riscv/vmm/
H A Dvmm_sbi.c68 uint64_t asid __unused; in vmm_sbi_handle_rfnc()
75 asid = hypctx->guest_regs.hyp_a[4]; in vmm_sbi_handle_rfnc()
/freebsd/sys/riscv/riscv/
H A Dsbi.c246 u_long asid) in sbi_hsm_hart_start()
254 size, asid); in sbi_hsm_hart_stop()
258 (uint64_t)hart_mask, start, size, asid);
227 sbi_remote_sfence_vma_asid(const u_long * hart_mask,u_long start,u_long size,u_long asid) sbi_remote_sfence_vma_asid() argument

12