/illumos-gate/usr/src/cmd/mdb/intel/mdb/ |
H A D | proc_x86util.c | 288 xregs_data_ptr(const prxregset_hdr_t *prx, const prxregset_info_t *info) in xregs_data_ptr() argument 290 uintptr_t base = (uintptr_t)prx; in xregs_data_ptr() 295 xregs_valid_data(const prxregset_hdr_t *prx, const prxregset_info_t *info, in xregs_valid_data() argument 344 pt_xregs_process(const prxregset_hdr_t *prx, size_t found_size, in pt_xregs_process() argument 349 if (prx->pr_type != PR_TYPE_XSAVE) { in pt_xregs_process() 351 "to fpregset_t\n", prx->pr_type); in pt_xregs_process() 355 if (prx->pr_size < found_size) { in pt_xregs_process() 358 prx->pr_size, found_size); in pt_xregs_process() 362 for (uint32_t i = 0; i < prx->pr_ninfo; i++) { in pt_xregs_process() 363 switch (prx->pr_info[i].pri_type) { in pt_xregs_process() [all …]
|
/illumos-gate/usr/src/test/os-tests/tests/xsave/ |
H A D | xsave_util.c | 351 xsu_fpu_to_xregs_xsave(xsu_prx_t *prx, const xsu_fpu_t *fpu) in xsu_fpu_to_xregs_xsave() argument 353 prx->xp_xsave->prx_fx_fcw = FPU_CW_INIT; in xsu_fpu_to_xregs_xsave() 354 prx->xp_xsave->prx_fx_mxcsr = SSE_MXCSR_INIT; in xsu_fpu_to_xregs_xsave() 356 (void) memcpy(&prx->xp_xsave->prx_fx_xmm[i], in xsu_fpu_to_xregs_xsave() 360 prx->xp_xsave->prx_xsh_xstate_bv = XFEATURE_LEGACY_FP | in xsu_fpu_to_xregs_xsave() 362 if (prx->xp_hwsup >= XSU_YMM) { in xsu_fpu_to_xregs_xsave() 363 prx->xp_xsave->prx_xsh_xstate_bv |= XFEATURE_AVX; in xsu_fpu_to_xregs_xsave() 366 if (prx->xp_hwsup >= XSU_ZMM) { in xsu_fpu_to_xregs_xsave() 367 prx->xp_xsave->prx_xsh_xstate_bv |= XFEATURE_AVX512; in xsu_fpu_to_xregs_xsave() 372 xsu_fpu_to_xregs_ymm(xsu_prx_t *prx, const xsu_fpu_t *fpu) in xsu_fpu_to_xregs_ymm() argument [all …]
|
H A D | xregs_roundtrip.c | 41 prxregset_t *prx, *prx_alt; in main() local 69 if (Lgetxregs(L, &prx, &prx_len) != 0) { in main() 75 if (Lsetxregs(L, prx, prx_len) != 0) { in main() 90 if (memcmp(prx, prx_alt, prx_len) != 0) { in main() 91 const uint8_t *a = (uint8_t *)prx; in main() 120 iov[1].iov_base = (char *)prx; in main() 134 Plwp_freexregs(P, prx, prx_len); in main()
|
H A D | fpregs.c | 46 prxregset_t *prx, *cmp_prx; in main() local 72 xsu_fpu_to_xregs(&fpu, hwsup, &prx, &prx_len); in main() 84 if (Plwp_setxregs(xp.xp_proc, 1, prx, prx_len) != 0) { in main() 98 if (!xsu_fpregs_cmp(&fpr, prx)) { in main() 108 xsu_xregs_xmm_set(prx, seed + INT32_MAX); in main() 122 if (!xsu_xregs_comp_equal(prx, cmp_prx, PRX_INFO_YMM)) { in main()
|
H A D | proc_xregs_set.c | 57 prxregset_t *prx; in main() local 81 xsu_fpu_to_xregs(&fpu, hwsup, &prx, &prx_len); in main() 91 if (Plwp_setxregs(xp.xp_proc, 1, prx, prx_len) != 0) { in main()
|
/illumos-gate/usr/src/lib/libproc/common/ |
H A D | Plwpregs.c | 128 prxregset_t *prx; in getlwpfile_alloc() local 135 prx = malloc(st.st_size); in getlwpfile_alloc() 136 if (prx == NULL) { in getlwpfile_alloc() 140 if (read(fd, prx, st.st_size) == st.st_size) { in getlwpfile_alloc() 142 *datap = prx; in getlwpfile_alloc() 147 free(prx); in getlwpfile_alloc() 400 Plwp_freexregs(struct ps_prochandle *P __unused, prxregset_t *prx, in Plwp_freexregs() argument 403 free(prx); in Plwp_freexregs()
|
H A D | Pservice.c | 219 prxregset_t *prx; in ps_lgetxregs() local 224 if (Plwp_getxregs(P, lwpid, &prx, &xregsize) == 0) { in ps_lgetxregs() 225 (void) memcpy(xregs, prx, xregsize); in ps_lgetxregs() 226 Plwp_freexregs(P, prx, xregsize); in ps_lgetxregs()
|
/illumos-gate/usr/src/uts/intel/fs/proc/ |
H A D | prmachdep.c | 331 prgetprxregs(klwp_t *lwp, prxregset_t *prx) in prgetprxregs() argument 333 fpu_proc_xregs_get(lwp, prx); in prgetprxregs() 357 prsetprxregs(klwp_t *lwp, prxregset_t *prx) in prsetprxregs() argument 360 prxregset_hdr_t *hdr = (prxregset_hdr_t *)prx; in prsetprxregs() 437 return (fpu_proc_xregs_set(lwp, prx)); in prsetprxregs()
|
/illumos-gate/usr/src/uts/sparc/fs/proc/ |
H A D | prmachdep.c | 540 prgetprxregs(klwp_t *lwp, caddr_t prx) in prgetprxregs() argument 544 (void) xregs_get(lwp, prx); in prgetprxregs() 551 prsetprxregs(klwp_t *lwp, caddr_t prx) in prsetprxregs() argument 555 (void) xregs_set(lwp, prx); in prsetprxregs()
|
/illumos-gate/usr/src/uts/intel/os/ |
H A D | fpu.c | 2726 prxregset_hdr_t *prx = buf; in fpu_proc_xregs_set() local 2749 for (uint32_t i = 0; i < prx->pr_ninfo; i++) { in fpu_proc_xregs_set() 2750 const prxregset_info_t *info = &prx->pr_info[i]; in fpu_proc_xregs_set() 2820 for (uint32_t i = 0; i < prx->pr_ninfo; i++) { in fpu_proc_xregs_set() 2821 const prxregset_info_t *info = &prx->pr_info[i]; in fpu_proc_xregs_set()
|
/illumos-gate/usr/src/uts/common/io/rtw/ |
H A D | rtw.c | 1213 uint32_t phybaseaddr, ptx[RTW_NTXPRI], prx; in rtw_dma_init() local 1276 prx = RTW_RING_BASE(phybaseaddr, hd_rx); in rtw_dma_init() 1290 prx + ((uintptr_t)rxds - (uintptr_t)rsc->rxdesc_h); in rtw_dma_init()
|