Home
last modified time | relevance | path

Searched refs:fn (Results 1 – 25 of 135) sorted by relevance

123456

/qemu/hw/s390x/
H A Ds390-virtio-hcall.c20 void s390_register_virtio_hypercall(uint64_t code, s390_virtio_fn fn) in s390_register_virtio_hypercall() argument
25 s390_diag500_table[code] = fn; in s390_register_virtio_hypercall()
30 s390_virtio_fn fn; in s390_virtio_hypercall() local
33 fn = s390_diag500_table[env->regs[1]]; in s390_virtio_hypercall()
34 if (fn) { in s390_virtio_hypercall()
35 env->regs[2] = fn(&env->regs[2]); in s390_virtio_hypercall()
/qemu/scripts/coccinelle/
H A Derrp-guard.cocci42 identifier fn;
46 fn(...,
72 identifier fn, local_err;
124 fn << check1.fn;
135 identifier fn, _errp;
157 fn << check2.fn;
183 identifier fn, local_err;
187 fn(..., Error **
313 identifier rule1.fn;
327 identifier rule1.fn;
[all …]
/qemu/tests/tcg/cris/libc/
H A Dcheck_openpf5.c27 char *fn = malloc (strlen (argv[0]) + 2); in main() local
28 if (fn == NULL) in main()
30 strcpy (fn, "/"); in main()
31 strcat (fn, argv[0]); in main()
35 if (open (fn, O_RDONLY) < 0) in main()
/qemu/util/
H A Ddefer-call.c29 void (*fn)(void *); member
67 void defer_call(void (*fn)(void *), void *opaque) in defer_call()
73 fn(opaque); in defer_call()
87 .fn = fn, in defer_call()
148 fns[i].fn(fns[i].opaque); in defer_call_end()
/qemu/target/s390x/tcg/
H A Dtranslate_vx.c.inc1831 const GVecGen4 *fn;
1840 fn = &g_vmal[es];
1843 fn = &g_vmah[es];
1849 fn = &g_vmae[es];
1855 fn = &g_vmao[es];
1916 const GVecGen3 *fn;
1929 fn = &g_vmh[es];
1932 fn = &g_vmlh[es];
1935 fn = &g_vme[es];
1941 fn = &g_vmo[es];
[all …]
H A Dvec_fpu_helper.c114 bool s, bool XxC, uint8_t erm, vop32_2_fn fn, in vop32_2() argument
125 s390_vec_write_float32(&tmp, i, fn(a, &env->fpu_status)); in vop32_2()
138 bool s, bool XxC, uint8_t erm, vop64_2_fn fn, in vop64_2() argument
149 s390_vec_write_float64(&tmp, i, fn(a, &env->fpu_status)); in vop64_2()
171 s390_vec_write_float128(&tmp, fn(a, &env->fpu_status)); in vop128_2()
261 CPUS390XState *env, bool s, vop32_3_fn fn, in vop32_3() argument
284 CPUS390XState *env, bool s, vop64_3_fn fn, in vop64_3() argument
315 s390_vec_write_float128(&tmp, fn(a, b, &env->fpu_status)); in vop128_3()
429 if (fn(b, a, &env->fpu_status)) { in vfc32()
461 if (fn(b, a, &env->fpu_status)) { in vfc64()
[all …]
/qemu/target/arm/tcg/
H A Dtranslate-mve.c153 !fn) { in do_ldst()
318 !fn) { in do_ldst_sg_imm()
507 !fn) { in do_1op_vec()
605 !fn) {
789 !fn) { in do_2op_vec()
1041 !fn) { in DO_2OP_FP()
1154 !fn) { in DO_2OP_FP_SCALAR()
1262 !fn) { in do_dual_acc()
1497 !fn) { in do_1imm()
1561 !fn) { in do_2shift_vec()
[all …]
H A Dtranslate-sve.c96 if (fn == NULL) { in gen_gvec_ool_zz()
112 if (fn == NULL) { in gen_gvec_fpst_zz()
137 if (fn == NULL) { in gen_gvec_ool_zzz()
161 if (fn == NULL) { in gen_gvec_fpst_zzz()
187 if (fn == NULL) { in gen_gvec_ool_zzzz()
218 if (fn == NULL) { in gen_gvec_ptr_zzzz()
246 if (fn == NULL) { in gen_gvec_fpst_zzzzp()
267 if (fn == NULL) { in gen_gvec_ool_zzp()
296 if (fn == NULL) { in gen_gvec_fpst_zzp()
322 if (fn == NULL) { in gen_gvec_ool_zzzp()
[all …]
H A Dtranslate-sme.c240 static bool do_ldst_r(DisasContext *s, arg_ldstr *a, GenLdStR *fn) in do_ldst_r() argument
253 fn(s, base, 0, svl, a->rn, imm * svl); in do_ldst_r()
261 gen_helper_gvec_4 *fn) in TRANS_FEAT()
276 fn(za, zn, pn, pm, tcg_constant_i32(desc)); in TRANS_FEAT()
286 gen_helper_gvec_5 *fn) in TRANS_FEAT()
302 fn(za, zn, zm, pn, pm, tcg_constant_i32(desc)); in TRANS_FEAT()
307 gen_helper_gvec_5_ptr *fn) in do_outprod_fpst() argument
324 fn(za, zn, zm, pn, pm, fpst, tcg_constant_i32(desc)); in do_outprod_fpst()
H A Dtranslate-neon.c1555 GVecGen2iFn *fn; in trans_Vimm_1r() local
1565 fn = gen_VMOV_1r; in trans_Vimm_1r()
1567 return do_1reg_imm(s, a, fn); in trans_Vimm_1r()
2228 if (!fn) { in do_2scalar_fp_vec()
2864 ZipFn *fn) in do_zip_uzp() argument
2882 if (!fn) { in do_zip_uzp()
2893 fn(pd, pm); in do_zip_uzp()
2899 static ZipFn * const fn[2][4] = { in trans_VUZP() local
2917 static ZipFn * const fn[2][4] = { in trans_VZIP() local
3286 if (!fn) { in do_2misc()
[all …]
/qemu/target/loongarch/tcg/insn_trans/
H A Dtrans_fcmp.c.inc30 void (*fn)(TCGv, TCGv_env, TCGv, TCGv, TCGv_i32);
41 fn = (a->fcond & 1 ? gen_helper_fcmp_s_s : gen_helper_fcmp_c_s);
44 fn(var, tcg_env, src1, src2, tcg_constant_i32(flags));
54 void (*fn)(TCGv, TCGv_env, TCGv, TCGv, TCGv_i32);
65 fn = (a->fcond & 1 ? gen_helper_fcmp_s_d : gen_helper_fcmp_c_d);
68 fn(var, tcg_env, src1, src2, tcg_constant_i32(flags));
/qemu/include/hw/arm/
H A Dsoc_dma.h98 soc_dma_io_t fn, void *opaque, int out);
103 hwaddr virt_base, soc_dma_io_t fn, void *opaque) in soc_dma_port_add_fifo_in() argument
105 return soc_dma_port_add_fifo(dma, virt_base, fn, opaque, 0); in soc_dma_port_add_fifo_in()
109 hwaddr virt_base, soc_dma_io_t fn, void *opaque) in soc_dma_port_add_fifo_out() argument
111 return soc_dma_port_add_fifo(dma, virt_base, fn, opaque, 1); in soc_dma_port_add_fifo_out()
/qemu/qapi/
H A Dqmp-registry.c19 QmpCommandFunc *fn, QmpCommandOptions options, in qmp_register_command() argument
28 cmd->fn = fn; in qmp_register_command()
87 void qmp_for_each_command(const QmpCommandList *cmds, qmp_cmd_callback_fn fn, in qmp_for_each_command() argument
93 fn(cmd, opaque); in qmp_for_each_command()
/qemu/tests/unit/
H A Dtest-block-iothread.c396 void (*fn)(BdrvChild *c); member
403 .fn = test_sync_op_pread,
411 .fn = NULL,
415 .fn = NULL,
419 .fn = NULL,
423 .fn = NULL,
427 .fn = NULL,
431 .fn = NULL,
452 .fn = test_sync_op_flush,
486 if (t->fn) { in test_sync_op()
[all …]
H A Dtest-forward-visitor.c21 #define CAST_VISIT_TYPE(fn) ((GenericVisitor *)(fn)) argument
28 static void *visit_with_forward(const char *srcstr, GenericVisitor *fn) in visit_with_forward() argument
40 fn(alias_v, "src", &result, &err); in visit_with_forward()
43 fn(alias_v, "dst", &result, &err); in visit_with_forward()
/qemu/scripts/
H A Dsimpletrace.py176 fn = getattr(self, event.name, None)
177 if fn is None:
182 fn_argcount = len(inspect.getfullargspec(fn)[0]) - 1
185 return lambda _, rec: fn(*(rec[1:2] + rec[3:3 + event_argcount]))
188 return lambda _, rec: fn(*rec[1:3 + event_argcount])
191 return lambda _, rec: fn(*rec[3:3 + event_argcount])
269 fn = getattr(self, event.name, self.catchall)
270 fn(*rec_args, event=event, **kwargs)
H A Dqom-cast-macro-clean-cocci-gen.py42 for fn in sys.argv[1:]:
44 content = open(fn, 'rt').read()
/qemu/ebpf/
H A Debpf.h21 #define ebpf_binary_init(id, fn) \ argument
22 static void __attribute__((constructor)) ebpf_binary_init_ ## fn(void) \
25 const void *data = fn(&datalen); \
/qemu/block/
H A Dqcow2-threads.c372 Qcow2CompressFunc fn; in qcow2_co_compress() local
376 fn = qcow2_zlib_compress; in qcow2_co_compress()
381 fn = qcow2_zstd_compress; in qcow2_co_compress()
388 return qcow2_co_do_compress(bs, dest, dest_size, src, src_size, fn); in qcow2_co_compress()
409 Qcow2CompressFunc fn; in qcow2_co_decompress() local
413 fn = qcow2_zlib_decompress; in qcow2_co_decompress()
418 fn = qcow2_zstd_decompress; in qcow2_co_decompress()
425 return qcow2_co_do_compress(bs, dest, dest_size, src, src_size, fn); in qcow2_co_decompress()
/qemu/hw/arm/
H A Ddigic_boards.c93 char *fn = qemu_find_file(QEMU_FILE_TYPE_BIOS, filename); in digic_load_rom() local
95 if (!fn) { in digic_load_rom()
100 rom_size = load_image_targphys(fn, addr, max_size); in digic_load_rom()
105 g_free(fn); in digic_load_rom()
/qemu/target/riscv/
H A Dvector_internals.c60 opivv2_fn *fn, uint32_t esz) in do_vext_vv()
77 fn(vd, vs1, vs2, i); in do_vext_vx()
86 opivx2_fn fn, uint32_t esz) in do_vext_vx()
103 fn(vd, s1, vs2, i);
38 do_vext_vv(void * vd,void * v0,void * vs1,void * vs2,CPURISCVState * env,uint32_t desc,opivv2_fn * fn,uint32_t esz) do_vext_vv() argument
64 do_vext_vx(void * vd,void * v0,target_long s1,void * vs2,CPURISCVState * env,uint32_t desc,opivx2_fn fn,uint32_t esz) do_vext_vx() argument
/qemu/include/hw/acpi/
H A Dacpi_aml_interface.h44 dev_aml_fn fn = get_dev_aml_func(dev); in call_dev_aml_func() local
45 if (fn) { in call_dev_aml_func()
46 fn(ACPI_DEV_AML_IF(dev), scope); in call_dev_aml_func()
/qemu/include/qapi/qmp/
H A Ddispatch.h34 QmpCommandFunc *fn; member
45 QmpCommandFunc *fn, QmpCommandOptions options,
64 void qmp_for_each_command(const QmpCommandList *cmds, qmp_cmd_callback_fn fn,
/qemu/scripts/codeconverter/codeconverter/
H A Dqom_type_info.py813 fn = self.file.find_match(StaticVoidFunction, self.name)
814 DBG("function for %s: %s", self.name, fn)
815 if fn and fn.body == '':
816 yield fn.make_patch('')
847 for fn in m.file.matches_of_type(StaticVoidFunction):
848 if fn.contains(m):
849 return fn
862 fn = find_containing_func(self)
863 if fn:
864 DBG("%r is inside %r", self, fn)
[all …]
/qemu/hw/xen/
H A Dxen-operations.c316 xs_watch_fn fn; member
327 w->fn(w->opaque, v[XS_WATCH_PATH]); in watch_notify()
331 static struct qemu_xs_watch *new_watch(const char *path, xs_watch_fn fn, in new_watch() argument
341 w->fn = fn; in new_watch()
357 const char *path, xs_watch_fn fn, in libxenstore_watch() argument
360 struct qemu_xs_watch *w = new_watch(path, fn, opaque); in libxenstore_watch()

123456