Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 27) sorted by relevance

12

/illumos-kvm-cmd/target-ppc/
H A Dtranslate.c264 gen_update_nip(ctx, ctx->nip); in gen_exception_err()
278 gen_update_nip(ctx, ctx->nip); in gen_exception()
291 gen_update_nip(ctx, ctx->nip); in gen_debug_exception()
305 gen_update_nip(ctx, ctx->nip); in gen_stop_exception()
3038 gen_update_nip(ctx, ctx->nip-4); in gen_conditional_store()
3390 gen_setlr(ctx, ctx->nip); in gen_b()
3415 gen_setlr(ctx, ctx->nip); in gen_bcond()
3622 gen_update_nip(ctx, ctx->nip); in gen_tw()
3633 gen_update_nip(ctx, ctx->nip); in gen_twi()
3645 gen_update_nip(ctx, ctx->nip); in gen_td()
[all …]
H A Dhelper.c239 access = pp_check(ctx->key, pp, ctx->nx); in _pte_check()
433 ctx->raddr & TARGET_PAGE_MASK, ctx->prot, ret); in ppc6xx_tlb_check()
538 i, ctx->raddr, ctx->prot & PAGE_READ ? 'R' : '-', in get_bat()
632 ctx->raddr, ctx->prot, ret); in _find_pte()
909 ctx->key, ds, ctx->nx, vsid); in get_segment()
1033 if ((rw == 1 || ctx->key != 1) && (rw == 0 || ctx->key != 0)) { in get_segment()
1185 " %d %d\n", __func__, address, ctx->raddr, ctx->prot, in mmu40x_get_physical_address()
1256 ctx->raddr = eaddr; in check_physical()
1390 mmu_ctx_t ctx; in cpu_get_phys_page_debug() local
1402 mmu_ctx_t ctx; in cpu_ppc_handle_mmu_fault() local
[all …]
H A Dcpu.h737 int get_physical_address (CPUPPCState *env, mmu_ctx_t *ctx, target_ulong vaddr,
H A Dtranslate_init.c359 DisasContext *ctx = opaque; in spr_write_hid0_601() local
363 gen_stop_exception(ctx); in spr_write_hid0_601()
403 DisasContext *ctx = opaque; in spr_write_40x_dbcr0() local
407 gen_stop_exception(ctx); in spr_write_40x_dbcr0()
481 DisasContext *ctx = opaque; in spr_write_excp_vector() local
500 gen_inval_exception(ctx, POWERPC_EXCP_PRIV_REG); in spr_write_excp_vector()
/illumos-kvm-cmd/target-mips/
H A Dtranslate.c720 if (do_save_pc && ctx->pc != ctx->saved_pc) { in save_cpu_state()
722 ctx->saved_pc = ctx->pc; in save_cpu_state()
724 if (ctx->hflags != ctx->saved_hflags) { in save_cpu_state()
726 ctx->saved_hflags = ctx->hflags; in save_cpu_state()
741 ctx->saved_hflags = ctx->hflags; in restore_cpu_state()
11628 gen_goto_tb(ctx, 1, ctx->pc + 4); in decode_opc()
12363 ctx.opcode = ldl_code(ctx.pc); in gen_intermediate_code_internal()
12367 ctx.opcode = lduw_code(ctx.pc); in gen_intermediate_code_internal()
12370 ctx.opcode = lduw_code(ctx.pc); in gen_intermediate_code_internal()
12411 gen_goto_tb(&ctx, 0, ctx.pc); in gen_intermediate_code_internal()
[all …]
/illumos-kvm-cmd/target-sh4/
H A Dtranslate.c57 #define IS_USER(ctx) (!(ctx->sr & SR_MD)) argument
324 gen_goto_tb(ctx, 0, ctx->delayed_pc); in gen_jump()
366 gen_goto_tb(ctx, 1, ctx->pc + 2); in gen_delayed_conditional_jump()
627 ctx->delayed_pc = ctx->pc + 4 + B11_0s * 2; in _decode_opc()
634 ctx->delayed_pc = ctx->pc + 4 + B11_0s * 2; in _decode_opc()
1262 gen_conditional_jump(ctx, ctx->pc + 2, in _decode_opc()
1273 gen_conditional_jump(ctx, ctx->pc + 4 + B7_0s * 2, in _decode_opc()
1890 ctx->opcode, ctx->pc); in _decode_opc()
1999 ctx.opcode = lduw_code(ctx.pc); in gen_intermediate_code_internal()
2002 ctx.pc += 2; in gen_intermediate_code_internal()
[all …]
/illumos-kvm-cmd/hw/
H A Dvirtio-9p-xattr.h21 ssize_t (*getxattr)(FsContext *ctx, const char *path,
23 ssize_t (*listxattr)(FsContext *ctx, const char *path,
25 int (*setxattr)(FsContext *ctx, const char *path, const char *name,
27 int (*removexattr)(FsContext *ctx,
54 static inline ssize_t pt_getxattr(FsContext *ctx, const char *path, in pt_getxattr() argument
57 return lgetxattr(rpath(ctx, path), name, value, size); in pt_getxattr()
60 static inline int pt_setxattr(FsContext *ctx, const char *path, in pt_setxattr() argument
64 return lsetxattr(rpath(ctx, path), name, value, size, flags); in pt_setxattr()
67 static inline int pt_removexattr(FsContext *ctx, in pt_removexattr() argument
70 return lremovexattr(rpath(ctx, path), name); in pt_removexattr()
[all …]
H A Dvirtio-9p-xattr.c32 ssize_t v9fs_get_xattr(FsContext *ctx, const char *path, in v9fs_get_xattr() argument
35 XattrOperations *xops = get_xattr_operations(ctx->xops, name); in v9fs_get_xattr()
37 return xops->getxattr(ctx, path, name, value, size); in v9fs_get_xattr()
43 ssize_t pt_listxattr(FsContext *ctx, const char *path, in pt_listxattr() argument
65 ssize_t v9fs_list_xattr(FsContext *ctx, const char *path, in v9fs_list_xattr() argument
75 xattr_len = llistxattr(rpath(ctx, path), value, 0); in v9fs_list_xattr()
87 xops = get_xattr_operations(ctx->xops, orig_value); in v9fs_list_xattr()
120 XattrOperations *xops = get_xattr_operations(ctx->xops, name); in v9fs_set_xattr()
129 int v9fs_remove_xattr(FsContext *ctx, in v9fs_remove_xattr() argument
132 XattrOperations *xops = get_xattr_operations(ctx->xops, name); in v9fs_remove_xattr()
[all …]
H A Dvirtio-9p-posix-acl.c26 static ssize_t mp_pacl_getxattr(FsContext *ctx, const char *path, in mp_pacl_getxattr() argument
29 return lgetxattr(rpath(ctx, path), MAP_ACL_ACCESS, value, size); in mp_pacl_getxattr()
32 static ssize_t mp_pacl_listxattr(FsContext *ctx, const char *path, in mp_pacl_listxattr() argument
53 return lsetxattr(rpath(ctx, path), MAP_ACL_ACCESS, value, size, flags); in mp_pacl_setxattr()
56 static int mp_pacl_removexattr(FsContext *ctx, in mp_pacl_removexattr() argument
60 ret = lremovexattr(rpath(ctx, path), MAP_ACL_ACCESS); in mp_pacl_removexattr()
73 static ssize_t mp_dacl_getxattr(FsContext *ctx, const char *path, in mp_dacl_getxattr() argument
76 return lgetxattr(rpath(ctx, path), MAP_ACL_DEFAULT, value, size); in mp_dacl_getxattr()
79 static ssize_t mp_dacl_listxattr(FsContext *ctx, const char *path, in mp_dacl_listxattr() argument
103 static int mp_dacl_removexattr(FsContext *ctx, in mp_dacl_removexattr() argument
[all …]
H A Dvirtio-9p-local.c131 static int local_close(FsContext *ctx, int fd) in local_close() argument
136 static int local_closedir(FsContext *ctx, DIR *dir) in local_closedir() argument
143 return open(rpath(ctx, path), flags); in local_open()
148 return opendir(rpath(ctx, path)); in local_opendir()
428 err = link(tmp, rpath(ctx, newpath)); in local_link()
444 return truncate(rpath(ctx, path), size); in local_truncate()
453 tmp = qemu_strdup(rpath(ctx, oldpath)); in local_rename()
455 err = rename(tmp, rpath(ctx, newpath)); in local_rename()
490 return remove(rpath(ctx, path)); in local_remove()
525 static int local_lremovexattr(FsContext *ctx, in local_lremovexattr() argument
[all …]
H A Dvirtio-9p-xattr-user.c21 static ssize_t mp_user_getxattr(FsContext *ctx, const char *path, in mp_user_getxattr() argument
32 return lgetxattr(rpath(ctx, path), name, value, size); in mp_user_getxattr()
35 static ssize_t mp_user_listxattr(FsContext *ctx, const char *path, in mp_user_listxattr() argument
67 static int mp_user_setxattr(FsContext *ctx, const char *path, const char *name, in mp_user_setxattr() argument
78 return lsetxattr(rpath(ctx, path), name, value, size, flags); in mp_user_setxattr()
81 static int mp_user_removexattr(FsContext *ctx, in mp_user_removexattr() argument
92 return lremovexattr(rpath(ctx, path), name); in mp_user_removexattr()
H A Dvirtio-9p.c100 return s->ops->close(&s->ctx, fd); in v9fs_do_close()
105 return s->ops->closedir(&s->ctx, dir); in v9fs_do_closedir()
120 return s->ops->rewinddir(&s->ctx, dir); in v9fs_do_rewinddir()
125 return s->ops->telldir(&s->ctx, dir); in v9fs_do_telldir()
130 return s->ops->readdir(&s->ctx, dir); in v9fs_do_readdir()
3701 s->ctx.fs_sm = SM_MAPPED; in virtio_9p_init()
3707 s->ctx.fs_sm = SM_NONE; in virtio_9p_init()
3708 s->ctx.xops = none_xattr_ops; in virtio_9p_init()
3714 s->ctx.fs_sm = SM_NONE; in virtio_9p_init()
3715 s->ctx.xops = none_xattr_ops; in virtio_9p_init()
[all …]
H A Dfile-op-9p.h100 static inline const char *rpath(FsContext *ctx, const char *path) in rpath() argument
104 snprintf(buffer, sizeof(buffer), "%s/%s", ctx->fs_root, path); in rpath()
H A Dvirtio-9p.h210 FsContext ctx; member
/illumos-kvm-cmd/target-alpha/
H A Dtranslate.c600 ctx->tb_rm = fn11; in gen_qual_roundmode()
639 ctx->tb_ftz = fn11; in gen_qual_flushzero()
2577 if (!ctx->pal_mode) in translate_one()
3142 DisasContext ctx, *ctxp = &ctx; in gen_intermediate_code_internal() local
3155 ctx.tb = tb; in gen_intermediate_code_internal()
3156 ctx.env = env; in gen_intermediate_code_internal()
3157 ctx.pc = pc_start; in gen_intermediate_code_internal()
3160 ctx.mem_idx = 0; in gen_intermediate_code_internal()
3172 ctx.tb_rm = -1; in gen_intermediate_code_internal()
3174 ctx.tb_ftz = -1; in gen_intermediate_code_internal()
[all …]
/illumos-kvm-cmd/
H A Dqemu-io.c1038 ctx->qiov.size, 1, ctx->Cflag); in aio_write_done()
1041 free(ctx); in aio_write_done()
1060 memset(cmp_buf, ctx->pattern, ctx->qiov.size); in aio_read_done()
1061 if (memcmp(ctx->buf, cmp_buf, ctx->qiov.size)) { in aio_read_done()
1074 dump_buffer(ctx->buf, ctx->offset, ctx->qiov.size); in aio_read_done()
1080 ctx->qiov.size, 1, ctx->Cflag); in aio_read_done()
1083 free(ctx); in aio_read_done()
1152 free(ctx); in aio_read_f()
1159 free(ctx); in aio_read_f()
1176 ctx->qiov.size >> 9, aio_read_done, ctx); in aio_read_f()
[all …]
H A Dlinux-aio.c30 struct qemu_laio_state *ctx; member
39 io_context_t ctx; member
135 nevents = io_getevents(s->ctx, val, MAX_EVENTS, events, &ts); in qemu_laio_completion_cb()
170 ret = io_cancel(laiocb->ctx->ctx, &laiocb->iocb, &event); in laio_cancel()
184 qemu_laio_completion_cb(laiocb->ctx); in laio_cancel()
205 laiocb->ctx = s; in laio_submit()
226 if (io_submit(s->ctx, 1, &iocbs) < 0) in laio_submit()
248 if (io_setup(MAX_EVENTS, &s->ctx) != 0) in laio_init()
H A Dcpus.c530 void *ctx) in sigbus_handler() argument
H A Dqemu-kvm.c1160 void *ctx) in sigbus_handler() argument
/illumos-kvm-cmd/tests/
H A Druncom.c74 struct vm86plus_struct ctx; in main() local
113 memset(&ctx, 0, sizeof(ctx)); in main()
115 r = &ctx.regs; in main()
128 set_bit((uint8_t *)&ctx.int_revectored, 0x21); in main()
133 pushw(&ctx.regs, 0x0000); in main()
142 ret = vm86(VM86_ENTER, &ctx); in main()
176 dump_regs(&ctx.regs); in main()
188 dump_regs(&ctx.regs); in main()
H A Dsha1.c223 SHA1_CTX ctx; in main() local
230 SHA1Init(&ctx); in main()
232 SHA1Update(&ctx, buf, BUFSIZE); in main()
233 SHA1Final(hash, &ctx); in main()
H A Dtest-i386.c1598 struct vm86plus_struct ctx; in test_vm86() local
1610 memset(&ctx, 0, sizeof(ctx)); in test_vm86()
1613 r = &ctx.regs; in test_vm86()
1631 set_bit((uint8_t *)&ctx.int_revectored, 0x21); in test_vm86()
1634 ret = vm86(VM86_ENTER, &ctx); in test_vm86()
/illumos-kvm-cmd/scripts/
H A Dcheckpatch.pl1572 my $ctx = $s;
1574 $ctx =~ s/\)[^\)]*$//;
1596 shift(@ctx);
1597 for my $ctx (@ctx) {
1601 $err .= "$sep$ctx\n";
1619 my $ctx = join("\n", @ctx);
2032 my $ctx = "${a}x${c}";
2098 if ($ctx !~ /[WEOBC]x[^W]/ && $ctx !~ /[^W]x[WOBEC]/) {
2105 if ($ctx =~ /ExW/) {
2125 if ($ctx =~ /Wx./) {
[all …]
/illumos-kvm-cmd/target-i386/
H A Dfake-exec.c50 void tcg_prologue_init(TCGContext *ctx) in tcg_prologue_init() argument
/illumos-kvm-cmd/target-microblaze/
H A Dtranslate.c1573 struct DisasContext ctx; in gen_intermediate_code_internal() local
1574 struct DisasContext *dc = &ctx; in gen_intermediate_code_internal()

Completed in 149 milliseconds

12