Home
last modified time | relevance | path

Searched refs:offs (Results 1 – 25 of 28) sorted by relevance

12

/qemu/hw/char/
H A Dsh_serial.c93 static void sh_serial_write(void *opaque, hwaddr offs, in sh_serial_write() argument
100 trace_sh_serial_write(d->id, size, offs, val); in sh_serial_write()
101 switch (offs) { in sh_serial_write()
140 switch (offs) { in sh_serial_write()
193 switch (offs) { in sh_serial_write()
209 __func__, offs); in sh_serial_write()
220 switch (offs) { in sh_serial_read()
236 switch (offs) { in sh_serial_read()
292 switch (offs) { in sh_serial_read()
309 trace_sh_serial_read(d->id, size, offs, ret); in sh_serial_read()
[all …]
H A Dtrace-events106 sh_serial_read(char *id, unsigned size, uint64_t offs, uint64_t val) " %s size %d offs 0x%02" PRIx6…
107 sh_serial_write(char *id, unsigned size, uint64_t offs, uint64_t val) "%s size %d offs 0x%02" PRIx6…
/qemu/target/loongarch/tcg/insn_trans/
H A Dtrans_branch.c.inc8 gen_goto_tb(ctx, 0, ctx->base.pc_next + a->offs);
16 gen_goto_tb(ctx, 0, ctx->base.pc_next + a->offs);
36 target_long offs, TCGCond cond)
42 gen_goto_tb(ctx, 0, ctx->base.pc_next + offs);
51 gen_bc(ctx, src1, src2, a->offs, cond);
60 gen_bc(ctx, src1, src2, a->offs, cond);
71 gen_bc(ctx, src1, src2, a->offs, cond);
/qemu/tests/qemu-iotests/
H A D22066 offs=$((0x600000 + i*0x200000))
67 poke_file "$TEST_IMG" $((i*8 + entry)) $(to_hex $offs)
68 $QEMU_IO_PROG -f raw -c "w -P 0xff $offs 2m" "$TEST_IMG" | _filter_qemu_io
H A D163121 for offs in range(0, size_to_int(self.image_len),
123 qemu_io('-c', 'write -P 0xff %d %s' % (offs, self.chunk_size),
137 for offs in offs_list:
138 qemu_io('-c', 'write -P 0xff %d %s' % (offs, self.chunk_size),
/qemu/hw/i386/
H A Dmultiboot.c328 uint32_t offs = mbs.mb_buf_size; in load_multiboot() local
348 if (load_image_size(one_file, (unsigned char *)mbs.mb_buf + offs, in load_multiboot()
349 mbs.mb_buf_size - offs) < 0) { in load_multiboot()
353 mb_add_mod(&mbs, mbs.mb_buf_phys + offs, in load_multiboot()
354 mbs.mb_buf_phys + offs + mb_mod_length, c); in load_multiboot()
357 (char *)mbs.mb_buf + offs, in load_multiboot()
358 (char *)mbs.mb_buf + offs + mb_mod_length, c); in load_multiboot()
/qemu/target/arm/tcg/
H A Dtranslate-a64.h84 int offs = element * element_size; in vec_reg_offset() local
101 offs ^= 8 - element_size; in vec_reg_offset()
104 offs += offsetof(CPUARMState, vfp.zregs[regno]); in vec_reg_offset()
106 return offs; in vec_reg_offset()
H A Dtranslate-vfp.c97 long offs = vfp_reg_offset(false, reg); in vfp_f16_offset() local
100 offs += 2; in vfp_f16_offset()
104 offs += 2; in vfp_f16_offset()
107 return offs; in vfp_f16_offset()
/qemu/block/
H A Drbd.c112 uint64_t offs; member
1469 static int qemu_rbd_diff_iterate_cb(uint64_t offs, size_t len, in qemu_rbd_diff_iterate_cb() argument
1474 assert(req->offs + req->bytes <= offs); in qemu_rbd_diff_iterate_cb()
1481 if (!req->exists && offs > req->offs) { in qemu_rbd_diff_iterate_cb()
1487 req->bytes = offs - req->offs; in qemu_rbd_diff_iterate_cb()
1491 if (req->exists && offs > req->offs + req->bytes) { in qemu_rbd_diff_iterate_cb()
1514 RBDDiffIterateReq req = { .offs = offset }; in qemu_rbd_co_block_status()
1575 head = req.offs & (s->object_size - 1); in qemu_rbd_co_block_status()
1576 req.offs -= head; in qemu_rbd_co_block_status()
1580 r = rbd_diff_iterate2(s->image, NULL, req.offs, bytes, true, true, in qemu_rbd_co_block_status()
H A Dgluster.c1369 off_t offs; in find_allocation() local
1382 offs = glfs_lseek(s->fd, start, SEEK_DATA); in find_allocation()
1383 if (offs < 0) { in find_allocation()
1387 if (offs < start) { in find_allocation()
1395 if (offs > start) { in find_allocation()
1398 *data = offs; in find_allocation()
1421 offs = glfs_lseek(s->fd, start, SEEK_HOLE); in find_allocation()
1422 if (offs < 0) { in find_allocation()
1426 if (offs < start) { in find_allocation()
1434 if (offs > start) { in find_allocation()
[all …]
H A Dfile-posix.c3090 off_t offs; in find_allocation() local
3103 offs = lseek(s->fd, start, SEEK_DATA); in find_allocation()
3104 if (offs < 0) { in find_allocation()
3108 if (offs < start) { in find_allocation()
3114 if (offs > start) { in find_allocation()
3117 *data = offs; in find_allocation()
3140 offs = lseek(s->fd, start, SEEK_HOLE); in find_allocation()
3141 if (offs < 0) { in find_allocation()
3145 if (offs < start) { in find_allocation()
3151 if (offs > start) { in find_allocation()
[all …]
/qemu/hw/display/
H A Dati.c61 uint32_t offs = s->regs.crtc_offset & 0x07ffffff; in ati_vga_switch_mode() local
97 DPRINTF("Switching to %dx%d %d %d @ %x\n", h, v, stride, bpp, offs); in ati_vga_switch_mode()
119 if (offs % stride) { in ati_vga_switch_mode()
123 vbe_ioport_write_data(&s->vga, 0, offs % stride / bypp); in ati_vga_switch_mode()
126 vbe_ioport_write_data(&s->vga, 0, offs / stride); in ati_vga_switch_mode()
268 static inline uint64_t ati_reg_read_offs(uint32_t reg, int offs, in ati_reg_read_offs() argument
271 if (offs == 0 && size == 4) { in ati_reg_read_offs()
274 return extract32(reg, offs * BITS_PER_BYTE, size * BITS_PER_BYTE); in ati_reg_read_offs()
521 static inline void ati_reg_write_offs(uint32_t *reg, int offs, in ati_reg_write_offs() argument
524 if (offs == 0 && size == 4) { in ati_reg_write_offs()
[all …]
/qemu/target/loongarch/tcg/
H A Dtranslate.c43 int offs = index * size; in vec_reg_offset() local
46 offs ^= (8 - size); in vec_reg_offset()
49 return offs + vec_full_offset(regno); in vec_reg_offset()
/qemu/hw/pci/
H A Dtrace-events9 pci_cfg_read(const char *dev, uint32_t bus, uint32_t slot, uint32_t func, unsigned offs, unsigned v…
10 pci_cfg_write(const char *dev, uint32_t bus, uint32_t slot, uint32_t func, unsigned offs, unsigned …
/qemu/target/i386/
H A Dcpu-dump.c551 target_ulong offs = MIN(env->eip, DUMP_CODE_BYTES_BACKWARD); in x86_cpu_dump_state() local
557 if (cpu_memory_rw_debug(cs, base - offs + i, &code, 1, 0) == 0) { in x86_cpu_dump_state()
563 i == offs ? "<" : "", codestr, i == offs ? ">" : ""); in x86_cpu_dump_state()
/qemu/target/s390x/tcg/
H A Dtranslate_vx.c.inc72 tcg_gen_ld8u_i64(dst, tcg_env, offs);
75 tcg_gen_ld16u_i64(dst, tcg_env, offs);
81 tcg_gen_ld8s_i64(dst, tcg_env, offs);
91 tcg_gen_ld_i64(dst, tcg_env, offs);
105 tcg_gen_ld8u_i32(dst, tcg_env, offs);
111 tcg_gen_ld8s_i32(dst, tcg_env, offs);
118 tcg_gen_ld_i32(dst, tcg_env, offs);
132 tcg_gen_st8_i64(src, tcg_env, offs);
141 tcg_gen_st_i64(src, tcg_env, offs);
155 tcg_gen_st8_i32(src, tcg_env, offs);
[all …]
/qemu/target/loongarch/
H A Dinsns.decode45 &r_offs rj offs
46 &c_offs cj offs
47 &offs offs
48 &rr_offs rj rd offs
94 @r_offs21 .... .. ................ rj:5 ..... &r_offs offs=%offs21
95 @c_offs21 .... .. ................ .. cj:3 ..... &c_offs offs=%offs21
96 @offs26 .... .. .......................... &offs offs=%offs26
97 @rr_offs16 .... .. ................ rj:5 rd:5 &rr_offs offs=%offs16
H A Ddisas.c290 output(ctx, mnemonic, "r%d, %d # 0x%" PRIx64, a->rj, a->offs, in output_r_offs()
291 ctx->pc + a->offs); in output_r_offs()
297 output(ctx, mnemonic, "fcc%d, %d # 0x%" PRIx64, a->cj, a->offs, in output_c_offs()
298 ctx->pc + a->offs); in output_c_offs()
304 output(ctx, mnemonic, "%d # 0x%" PRIx64, a->offs, ctx->pc + a->offs); in output_offs()
311 a->rd, a->offs, ctx->pc + a->offs); in output_rr_offs()
650 INSN(b, offs) in INSN()
651 INSN(bl, offs) in INSN()
/qemu/audio/
H A Dpwaudio.c153 uint32_t index, offs, n_bytes; in capture_on_process() local
170 offs = SPA_MIN(buf->datas[0].chunk->offset, buf->datas[0].maxsize); in capture_on_process()
171 n_bytes = SPA_MIN(buf->datas[0].chunk->size, buf->datas[0].maxsize - offs); in capture_on_process()
187 SPA_PTROFF(p, offs, void), n_bytes); in capture_on_process()
/qemu/target/riscv/insn_trans/
H A Dtrans_xthead.c.inc94 TCGv offs = tcg_temp_new();
97 tcg_gen_extract_tl(offs, src2, 0, 32);
98 tcg_gen_shli_tl(offs, offs, imm2);
100 tcg_gen_shli_tl(offs, src2, imm2);
103 return get_address_indexed(ctx, rs1, offs);
/qemu/hw/usb/
H A Ddev-network.c1231 uint32_t offs = 8 + le32_to_cpu(msg->DataOffset); in usb_net_handle_dataout() local
1233 if (offs < len && size < len && offs + size <= len) { in usb_net_handle_dataout()
1234 qemu_send_packet(qemu_get_queue(s->nic), s->out_buf + offs, size); in usb_net_handle_dataout()
H A Dtrace-events61 usb_ohci_mem_read(uint32_t size, const char *name, uint32_t addr, uint32_t offs, uint32_t val) "%d …
62 usb_ohci_mem_port_read(uint32_t size, const char *name, uint32_t port, uint32_t addr, uint32_t offs
65 usb_ohci_mem_write(uint32_t size, const char *name, uint32_t addr, uint32_t offs, uint32_t val) "%d…
66 …e(uint32_t size, const char *name, uint32_t port, uint32_t addr, uint32_t offs, uint32_t val) "%d …
/qemu/target/ppc/
H A Ddfp_helper.c1451 int w, i, offs; in helper_CBCDTD() local
1462 offs = 4 * (5 - i) + 32 * w; in helper_CBCDTD()
1463 bcd[i] = extract64(s, offs, 4); in helper_CBCDTD()
/qemu/hw/ppc/
H A Dtrace-events36 spapr_iommu_pre_save(uint64_t liobn, uint32_t nb, uint64_t offs, uint32_t ps) "liobn=%"PRIx64" %"PR…
37 spapr_iommu_post_load(uint64_t liobn, uint32_t pre_nb, uint32_t post_nb, uint64_t offs, uint32_t ps…
/qemu/target/riscv/
H A Dtranslate.c599 static TCGv get_address_indexed(DisasContext *ctx, int rs1, TCGv offs) in get_address_indexed() argument
604 tcg_gen_add_tl(addr, src1, offs); in get_address_indexed()

12