Home
last modified time | relevance | path

Searched refs:fs (Results 1 – 25 of 83) sorted by relevance

1234

/qemu/hw/virtio/
H A Dvhost-user-fs.c203 if (!fs->conf.tag) { in vuf_device_realize()
234 if (!vhost_user_init(&fs->vhost_user, &fs->conf.chardev, errp)) { in vuf_device_realize()
241 fs->hiprio_vq = virtio_add_queue(vdev, fs->conf.queue_size, vuf_handle_output); in vuf_device_realize()
244 fs->req_vqs = g_new(VirtQueue *, fs->conf.num_request_queues); in vuf_device_realize()
246 fs->req_vqs[i] = virtio_add_queue(vdev, fs->conf.queue_size, vuf_handle_output); in vuf_device_realize()
250 fs->vhost_dev.nvqs = 1 + fs->conf.num_request_queues; in vuf_device_realize()
251 fs->vhost_dev.vqs = g_new0(struct vhost_virtqueue, fs->vhost_dev.nvqs); in vuf_device_realize()
252 ret = vhost_dev_init(&fs->vhost_dev, &fs->vhost_user, in vuf_device_realize()
266 g_free(fs->req_vqs); in vuf_device_realize()
290 g_free(fs->req_vqs); in vuf_device_unrealize()
[all …]
/qemu/hw/audio/
H A Dasc.c119 ASCState *s = container_of(fs, ASCState, fifos[fs->index]); in asc_fifo_get()
125 val = fs->fifo[fs->rptr]; in asc_fifo_get()
126 trace_asc_fifo_get('A' + fs->index, fs->rptr, fs->cnt, val); in asc_fifo_get()
128 fs->rptr++; in asc_fifo_get()
130 fs->cnt--; in asc_fifo_get()
183 fs->xa_flags = asc_fifo_get(fs); in generate_fifo()
200 fs->xa_val = asc_fifo_get(fs); in generate_fifo()
222 fs->xa_last[1] = fs->xa_last[0]; in generate_fifo()
378 ASCState *s = container_of(fs, ASCState, fifos[fs->index]); in asc_fifo_write()
381 trace_asc_write_fifo('A' + fs->index, addr, size, fs->wptr, fs->cnt, value); in asc_fifo_write()
[all …]
/qemu/target/mips/tcg/
H A Dlmmi_helper.c61 vs.d = fs; in helper_paddsb()
75 vs.d = fs; in helper_paddusb()
89 vs.d = fs; in helper_paddsh()
103 vs.d = fs; in helper_paddush()
117 vs.d = fs; in helper_paddb()
130 vs.d = fs; in helper_paddh()
143 vs.d = fs; in helper_paddw()
156 vs.d = fs; in helper_psubsb()
170 vs.d = fs; in helper_psubusb()
184 vs.d = fs; in helper_psubsh()
[all …]
H A Dtranslate.c9292 gen_load_fpr64(ctx, t0, fs); in gen_cp1()
9297 gen_store_fpr64(ctx, t0, fs); in gen_cp1()
9365 gen_load_fpr32(ctx, t0, fs); in gen_movcf_s()
9387 gen_load_fpr64(ctx, fp0, fs); in gen_movcf_d()
9408 gen_load_fpr32(ctx, t0, fs); in gen_movcf_ps()
9414 gen_load_fpr32h(ctx, t0, fs); in gen_movcf_ps()
9420 int fs) in gen_sel_s() argument
9428 gen_load_fpr32(ctx, fp2, fs); in gen_sel_s()
9453 int fs) in gen_sel_d() argument
9461 gen_load_fpr64(ctx, fp2, fs); in gen_sel_d()
[all …]
H A Dfpu_helper.c90 switch (fs) { in helper_ctc1()
1117 uint64_t helper_float_rint_d(CPUMIPSState *env, uint64_t fs) in helper_float_rint_d() argument
1126 uint32_t helper_float_rint_s(CPUMIPSState *env, uint32_t fs) in helper_float_rint_s() argument
1471 fdret = float32_maxnum(fs, ft, &env->active_fpu.fp_status); in helper_float_max_s()
1481 fdret = float64_maxnum(fs, ft, &env->active_fpu.fp_status); in helper_float_max_d()
1715 uint32_t helper_float_maddf_s(CPUMIPSState *env, uint32_t fs, in helper_float_maddf_s() argument
1720 fdret = float32_muladd(fs, ft, fd, 0, in helper_float_maddf_s()
1727 uint64_t helper_float_maddf_d(CPUMIPSState *env, uint64_t fs, in helper_float_maddf_d() argument
1732 fdret = float64_muladd(fs, ft, fd, 0, in helper_float_maddf_d()
1739 uint32_t helper_float_msubf_s(CPUMIPSState *env, uint32_t fs, in helper_float_msubf_s() argument
[all …]
/qemu/hw/intc/
H A Detraxfs_pic.c60 fs->regs[R_R_MASKED_VECT] = fs->regs[R_R_VECT] & fs->regs[R_RW_MASK]; in pic_update()
66 if (fs->regs[R_R_MASKED_VECT]) { in pic_update()
86 struct etrax_pic *fs = opaque; in pic_read() local
89 rval = fs->regs[addr >> 2]; in pic_read()
97 struct etrax_pic *fs = opaque; in pic_write() local
101 fs->regs[R_RW_MASK] = value; in pic_write()
102 pic_update(fs); in pic_write()
123 fs->regs[R_R_NMI] |= mask; in nmi_handler()
125 fs->regs[R_R_NMI] &= ~mask; in nmi_handler()
127 qemu_set_irq(fs->parent_nmi, !!fs->regs[R_R_NMI]); in nmi_handler()
[all …]
H A Ds390_flic.c32 class = S390_FLIC_COMMON_GET_CLASS(fs); in s390_get_flic_class()
37 QEMUS390FLICState *s390_get_qemu_flic(S390FLICState *fs) in s390_get_qemu_flic() argument
43 flic = QEMU_S390_FLIC(fs); in s390_get_qemu_flic()
50 static S390FLICState *fs; in s390_get_flic() local
52 if (!fs) { in s390_get_flic()
57 return fs; in s390_get_flic()
160 QEMUS390FLICState *flic = s390_get_qemu_flic(fs); in qemu_s390_inject_airq()
170 fsc->inject_io(fs, 0, 0, 0, io_int_word); in qemu_s390_inject_airq()
415 S390FLICState *fs = S390_FLIC_COMMON(dev); in s390_flic_common_realize() local
462 S390FLICState *fs = s390_get_flic(); in type_init() local
[all …]
H A Ds390_flic_kvm.c44 flic = KVM_S390_FLIC(fs); in s390_get_kvm_flic()
150 kvm_s390_inject_flic(fs, &irq); in kvm_s390_inject_service()
171 kvm_s390_inject_flic(fs, &irq); in kvm_s390_inject_io()
182 kvm_s390_inject_flic(fs, &irq); in kvm_s390_inject_crw_mchk()
188 KVMS390FLICState *flic = s390_get_kvm_flic(fs); in kvm_s390_clear_io_flic()
206 KVMS390FLICState *flic = s390_get_kvm_flic(fs); in kvm_s390_modify_ais_mode()
216 if (!fs->ais_supported) { in kvm_s390_modify_ais_mode()
233 if (!fs->ais_supported) { in kvm_s390_inject_airq()
286 KVMS390FLICState *flic = KVM_S390_FLIC(fs); in kvm_s390_register_io_adapter()
642 S390FLICState *fs = S390_FLIC_COMMON(dev); in kvm_s390_flic_reset() local
[all …]
/qemu/include/hw/s390x/
H A Ds390_flic.h54 int (*register_io_adapter)(S390FLICState *fs, uint32_t id, uint8_t isc,
58 int (*add_adapter_routes)(S390FLICState *fs, AdapterRoutes *routes);
60 int (*clear_io_irq)(S390FLICState *fs, uint16_t subchannel_id,
62 int (*modify_ais_mode)(S390FLICState *fs, uint8_t isc, uint16_t mode);
63 int (*inject_airq)(S390FLICState *fs, uint8_t type, uint8_t isc,
65 void (*inject_service)(S390FLICState *fs, uint32_t parm);
66 void (*inject_io)(S390FLICState *fs, uint16_t subchannel_id,
69 void (*inject_crw_mchk)(S390FLICState *fs);
126 bool qemu_s390_flic_has_io(QEMUS390FLICState *fs, uint64_t cr6);
133 QEMUS390FLICState *s390_get_qemu_flic(S390FLICState *fs);
[all …]
/qemu/hw/9pfs/
H A D9p-synth.c168 V9fsSynthOpenState *synth_open = fs->private; in synth_fstat()
187 fs->private = synth_open; in synth_opendir()
193 V9fsSynthOpenState *synth_open = fs->private; in synth_closedir()
198 fs->private = NULL; in synth_closedir()
204 V9fsSynthOpenState *synth_open = fs->private; in synth_telldir()
210 V9fsSynthOpenState *synth_open = fs->private; in synth_seekdir()
216 synth_seekdir(ctx, fs, 0); in synth_rewinddir()
264 V9fsSynthOpenState *synth_open = fs->private; in synth_readdir()
282 fs->private = synth_open; in synth_open()
296 V9fsSynthOpenState *synth_open = fs->private; in synth_close()
[all …]
H A D9p-proxy.c661 return close(fs->fd); in proxy_close()
673 if (fs->fd < 0) { in proxy_open()
674 errno = -fs->fd; in proxy_open()
675 fs->fd = -1; in proxy_open()
677 return fs->fd; in proxy_open()
837 fd = fs->fd; in proxy_fstat()
853 if (fs->fd < 0) { in proxy_open2()
854 errno = -fs->fd; in proxy_open2()
855 fs->fd = -1; in proxy_open2()
857 return fs->fd; in proxy_open2()
[all …]
H A Dcodir.c38 entry = s->ops->readdir(&s->ctx, &fidp->fs); in do_readdir()
97 v9fs_readdir_lock(&fidp->fs.dir); in do_readdir_many()
101 s->ops->rewinddir(&s->ctx, &fidp->fs); in do_readdir_many()
103 s->ops->seekdir(&s->ctx, &fidp->fs, offset); in do_readdir_many()
107 saved_dir_pos = s->ops->telldir(&s->ctx, &fidp->fs); in do_readdir_many()
174 s->ops->seekdir(&s->ctx, &fidp->fs, saved_dir_pos); in do_readdir_many()
177 v9fs_readdir_unlock(&fidp->fs.dir); in do_readdir_many()
242 err = s->ops->telldir(&s->ctx, &fidp->fs); in v9fs_co_telldir()
259 s->ops->seekdir(&s->ctx, &fidp->fs, offset); in v9fs_co_seekdir()
271 s->ops->rewinddir(&s->ctx, &fidp->fs); in v9fs_co_rewinddir()
[all …]
H A Dcofile.c80 err = s->ops->fstat(&s->ctx, fidp->fid_type, &fidp->fs, stbuf); in v9fs_co_fstat()
113 err = s->ops->open(&s->ctx, &fidp->path, flags, &fidp->fs); in v9fs_co_open()
155 name->data, flags, &cred, &fidp->fs); in v9fs_co_open2()
165 s->ops->close(&s->ctx, &fidp->fs); in v9fs_co_open2()
170 s->ops->close(&s->ctx, &fidp->fs); in v9fs_co_open2()
185 int coroutine_fn v9fs_co_close(V9fsPDU *pdu, V9fsFidOpenState *fs) in v9fs_co_close() argument
195 err = s->ops->close(&s->ctx, fs); in v9fs_co_close()
216 err = s->ops->fsync(&s->ctx, fidp->fid_type, &fidp->fs, datasync); in v9fs_co_fsync()
258 err = s->ops->pwritev(&s->ctx, &fidp->fs, iov, iovcnt, offset); in v9fs_co_pwritev()
278 err = s->ops->preadv(&s->ctx, &fidp->fs, iov, iovcnt, offset); in v9fs_co_preadv()
H A D9p-local.c497 return close(fs->fd); in local_close()
514 fs->fd = fd; in local_open()
515 return fs->fd; in local_open()
534 fs->dir.stream = stream; in local_opendir()
540 rewinddir(fs->dir.stream); in local_rewinddir()
545 return telldir(fs->dir.stream); in local_telldir()
565 off = telldir(fs->dir.stream); in local_readdir()
588 seekdir(fs->dir.stream, off); in local_seekdir()
777 fd = fs->fd; in local_fstat()
866 fs->fd = fd; in local_open2()
[all …]
H A D9p.c263 if (f->fs.fd == -1) { in v9fs_reopen_fid()
353 if (fidp->fs.xattr.len != fidp->fs.xattr.copied_len) { in v9fs_xattr_fid_clunk()
358 if (fidp->fs.xattr.len) { in v9fs_xattr_fid_clunk()
369 g_free(fidp->fs.xattr.value); in v9fs_xattr_fid_clunk()
379 if (fidp->fs.fd != -1) { in free_fid()
467 if (f->fs.fd != -1) { in v9fs_reclaim_fd()
475 f->fs.fd = -1; in v9fs_reclaim_fd()
2241 if (fidp->fs.xattr.len < off) { in v9fs_xattr_read()
2590 if (!fidp->fs.dir.stream) { in v9fs_readdir()
2629 if (fidp->fs.xattr.len < off) { in v9fs_xattr_write()
[all …]
/qemu/target/s390x/
H A Dinterrupt.c120 S390FLICState *fs = s390_get_flic(); in s390_sclp_extint() local
121 S390FLICStateClass *fsc = s390_get_flic_class(fs); in s390_sclp_extint()
123 fsc->inject_service(fs, parm); in s390_sclp_extint()
129 S390FLICState *fs = s390_get_flic(); in s390_io_interrupt() local
130 S390FLICStateClass *fsc = s390_get_flic_class(fs); in s390_io_interrupt()
132 fsc->inject_io(fs, subchannel_id, subchannel_nr, io_int_parm, io_int_word); in s390_io_interrupt()
137 S390FLICState *fs = s390_get_flic(); in s390_crw_mchk() local
138 S390FLICStateClass *fsc = s390_get_flic_class(fs); in s390_crw_mchk()
140 fsc->inject_crw_mchk(fs); in s390_crw_mchk()
/qemu/pc-bios/optionrom/
H A Dmultiboot.S76 mov %ax, %fs
83 movl %eax, %fs:4
86 mov %fs:48, %eax
119 movw %di, %fs:0x2c
131 cmp %fs:0x2c, %di
164 mov %edx, %fs:0x8
187 movl %eax, %fs
/qemu/util/
H A Dmmap-alloc.c36 struct statfs fs; in qemu_fd_getfs() local
44 ret = fstatfs(fd, &fs); in qemu_fd_getfs()
47 switch (fs.f_type) { in qemu_fd_getfs()
63 struct statfs fs; in qemu_fd_getpagesize() local
68 ret = fstatfs(fd, &fs); in qemu_fd_getpagesize()
71 if (ret == 0 && fs.f_type == HUGETLBFS_MAGIC) { in qemu_fd_getpagesize()
72 return fs.f_bsize; in qemu_fd_getpagesize()
/qemu/disas/
H A Dnanomips.c1435 const char *fs = FPR(fs_value, info); in ABS_D() local
1457 const char *fs = FPR(fs_value, info); in ABS_S() local
1593 const char *fs = FPR(fs_value, info); in ADD_D() local
1618 const char *fs = FPR(fs_value, info); in ADD_S() local
3198 const char *fs = FPR(fs_value, info); in CEIL_L_D() local
3220 const char *fs = FPR(fs_value, info); in CEIL_L_S() local
3242 const char *fs = FPR(fs_value, info); in CEIL_W_D() local
3264 const char *fs = FPR(fs_value, info); in CEIL_W_S() local
3328 const char *fs = FPR(fs_value, info); in CLASS_D() local
3350 const char *fs = FPR(fs_value, info); in CLASS_S() local
[all …]
/qemu/tests/avocado/virtiofs_submounts.py.data/
H A Dhost.sh46 rm -f fs$i.img
47 truncate -s 512M fs$i.img
48 mkfs.xfs -q fs$i.img
49 devs[i]=$(sudo losetup -f --show fs$i.img)
/qemu/target/riscv/
H A Dfpu_helper.c373 float_status *fs = &env->fp_status; in helper_fround_s() local
377 frs1 = float32_round_to_int(frs1, fs); in helper_fround_s()
380 uint16_t flags = get_float_exception_flags(fs); in helper_fround_s()
383 set_float_exception_flags(flags, fs); in helper_fround_s()
532 float_status *fs = &env->fp_status; in helper_fround_d() local
535 frs1 = float64_round_to_int(frs1, fs); in helper_fround_d()
538 uint16_t flags = get_float_exception_flags(fs); in helper_fround_d()
541 set_float_exception_flags(flags, fs); in helper_fround_d()
662 float_status *fs = &env->fp_status; in helper_fround_h() local
666 frs1 = float16_round_to_int(frs1, fs); in helper_fround_h()
[all …]
/qemu/hw/watchdog/
H A Dwdt_ib700.c33 #define ib700_debug(fs,...) \ argument
34 fprintf(stderr,"ib700: %s: "fs,__func__,##__VA_ARGS__)
36 #define ib700_debug(fs,...) argument
/qemu/scripts/
H A Dqemu-binfmt-conf.sh239 if [ ! -d /proc/sys/fs/binfmt_misc ]; then
244 if [ ! -f /proc/sys/fs/binfmt_misc/register ]; then
245 if ! mount binfmt_misc -t binfmt_misc /proc/sys/fs/binfmt_misc ; then
250 qemu_check_access /proc/sys/fs/binfmt_misc/register
290 qemu_generate_register > /proc/sys/fs/binfmt_misc/register
/qemu/qga/
H A Dcommands-posix.c1175 QAPI_LIST_PREPEND(fs->disk, disk); in build_guest_fsinfo_for_real_device()
1263 if (!fs->name) { in build_guest_fsinfo_for_device()
1269 if (!fs->name) { in build_guest_fsinfo_for_device()
1295 fs = g_new0(GuestFilesystemInfo, 1); in get_disk_address()
1297 if (fs->disk != NULL) { in get_disk_address()
1613 GuestFilesystemInfo *fs = g_malloc0(sizeof(*fs)); in build_guest_fsinfo() local
1620 fs->type = g_strdup(mount->devtype); in build_guest_fsinfo()
1627 fs->used_bytes = used * fr_size; in build_guest_fsinfo()
1631 fs->has_total_bytes = true; in build_guest_fsinfo()
1633 fs->has_used_bytes = true; in build_guest_fsinfo()
[all …]
/qemu/include/hw/ipmi/
H A Dipmi.h211 #define ipmi_debug(fs, ...) \ argument
212 fprintf(stderr, "IPMI (%s): " fs, __func__, ##__VA_ARGS__)
214 #define ipmi_debug(fs, ...) argument

1234