Home
last modified time | relevance | path

Searched refs:offset (Results 1 – 25 of 1289) sorted by relevance

12345678910>>...52

/qemu/hw/m68k/
H A Dmcf5206.c289 uint16_t offset, unsigned size) in m5206_mbar_read() argument
291 if (offset >= 0x100 && offset < 0x120) { in m5206_mbar_read()
292 return m5206_timer_read(&s->timer[0], offset - 0x100); in m5206_mbar_read()
293 } else if (offset >= 0x120 && offset < 0x140) { in m5206_mbar_read()
294 return m5206_timer_read(&s->timer[1], offset - 0x120); in m5206_mbar_read()
295 } else if (offset >= 0x140 && offset < 0x160) { in m5206_mbar_read()
296 return mcf_uart_read(s->uart[0], offset - 0x140, size); in m5206_mbar_read()
297 } else if (offset >= 0x180 && offset < 0x1a0) { in m5206_mbar_read()
298 return mcf_uart_read(s->uart[1], offset - 0x180, size); in m5206_mbar_read()
300 switch (offset) { in m5206_mbar_read()
[all …]
/qemu/tests/qemu-iotests/
H A D146.out29 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET},
30 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET},
31 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET},
32 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET},
33 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET},
34 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET},
35 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET},
36 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET},
37 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET},
38 …, "depth": 0, "present": true, "zero": false, "data": true, "compressed": false, "offset": OFFSET},
[all …]
H A Dcommon.pattern65 local offset=$2
77 io "$op" $offset $cluster_size $cluster_size $num_small
78 offset=$((offset + num_small * $cluster_size))
81 io "$op" $((offset + $half_cluster)) $half_cluster $cluster_size $num_small
82 offset=$((offset + num_small * $cluster_size))
85 io "$op" $offset $half_cluster $cluster_size $num_small
86 offset=$((offset + num_small * $cluster_size))
89 io "$op" $((offset + $quarter_cluster)) $half_cluster $cluster_size $num_small
90 offset=$((offset + num_small * $cluster_size))
93 io "$op" $((offset + $half_cluster)) $((cluster_size * 2)) $((cluster_size * 3)) $num_medium
[all …]
H A D014.out4 test2: With offset 0
7 wrote 4096/4096 bytes at offset 16384
9 wrote 4096/4096 bytes at offset 53248
11 wrote 4096/4096 bytes at offset 90112
13 wrote 4096/4096 bytes at offset 126976
15 wrote 4096/4096 bytes at offset 163840
17 wrote 4096/4096 bytes at offset 200704
19 wrote 4096/4096 bytes at offset 237568
21 wrote 4096/4096 bytes at offset 274432
23 wrote 4096/4096 bytes at offset 311296
[all …]
H A D022.out5 At offset 10485760:
7 wrote 4096/4096 bytes at offset 10485760
9 wrote 4096/4096 bytes at offset 10489856
11 wrote 4096/4096 bytes at offset 10493952
13 wrote 4096/4096 bytes at offset 10498048
15 wrote 4096/4096 bytes at offset 10502144
17 wrote 4096/4096 bytes at offset 10506240
19 wrote 4096/4096 bytes at offset 10510336
21 wrote 4096/4096 bytes at offset 10514432
23 wrote 4096/4096 bytes at offset 10518528
[all …]
H A D019.out6 wrote 512/512 bytes at offset 0
8 wrote 512/512 bytes at offset 1024
10 wrote 512/512 bytes at offset 2048
12 wrote 512/512 bytes at offset 3072
14 wrote 512/512 bytes at offset 4096
16 wrote 512/512 bytes at offset 5120
18 wrote 512/512 bytes at offset 6144
20 wrote 512/512 bytes at offset 7168
22 wrote 512/512 bytes at offset 8192
24 wrote 512/512 bytes at offset 9216
[all …]
H A D023.out7 At offset 0:
9 wrote 1024/1024 bytes at offset 0
11 wrote 1024/1024 bytes at offset 1024
13 wrote 1024/1024 bytes at offset 2048
15 wrote 1024/1024 bytes at offset 3072
17 wrote 1024/1024 bytes at offset 4096
19 wrote 1024/1024 bytes at offset 5120
21 wrote 1024/1024 bytes at offset 6144
23 wrote 1024/1024 bytes at offset 7168
25 wrote 1024/1024 bytes at offset 8192
[all …]
H A D013.out5 At offset 0:
7 wrote 4096/4096 bytes at offset 0
9 wrote 4096/4096 bytes at offset 4096
11 wrote 4096/4096 bytes at offset 8192
13 wrote 4096/4096 bytes at offset 12288
15 wrote 4096/4096 bytes at offset 16384
17 wrote 4096/4096 bytes at offset 20480
19 wrote 4096/4096 bytes at offset 24576
21 wrote 4096/4096 bytes at offset 28672
23 wrote 4096/4096 bytes at offset 32768
[all …]
H A D028.out6 wrote 512/512 bytes at offset 3221194240
8 wrote 512/512 bytes at offset 3221195264
10 wrote 512/512 bytes at offset 3221196288
12 wrote 512/512 bytes at offset 3221197312
14 wrote 512/512 bytes at offset 3221198336
16 wrote 512/512 bytes at offset 3221199360
18 wrote 512/512 bytes at offset 3221200384
20 wrote 512/512 bytes at offset 3221201408
22 wrote 512/512 bytes at offset 3221202432
24 wrote 512/512 bytes at offset 3221203456
[all …]
H A D020.out6 wrote 512/512 bytes at offset 0
8 wrote 512/512 bytes at offset 1024
10 wrote 512/512 bytes at offset 2048
12 wrote 512/512 bytes at offset 3072
14 wrote 512/512 bytes at offset 4096
16 wrote 512/512 bytes at offset 5120
18 wrote 512/512 bytes at offset 6144
20 wrote 512/512 bytes at offset 7168
22 wrote 512/512 bytes at offset 8192
24 wrote 512/512 bytes at offset 9216
[all …]
H A D017.out6 wrote 512/512 bytes at offset 0
8 wrote 512/512 bytes at offset 1024
10 wrote 512/512 bytes at offset 2048
12 wrote 512/512 bytes at offset 3072
14 wrote 512/512 bytes at offset 4096
16 wrote 512/512 bytes at offset 5120
18 wrote 512/512 bytes at offset 6144
20 wrote 512/512 bytes at offset 7168
22 wrote 512/512 bytes at offset 8192
24 wrote 512/512 bytes at offset 9216
[all …]
H A D018.out6 wrote 512/512 bytes at offset 0
8 wrote 512/512 bytes at offset 1024
10 wrote 512/512 bytes at offset 2048
12 wrote 512/512 bytes at offset 3072
14 wrote 512/512 bytes at offset 4096
16 wrote 512/512 bytes at offset 5120
18 wrote 512/512 bytes at offset 6144
20 wrote 512/512 bytes at offset 7168
22 wrote 512/512 bytes at offset 8192
24 wrote 512/512 bytes at offset 9216
[all …]
H A D037.out5 wrote 512/512 bytes at offset 0
7 wrote 512/512 bytes at offset 512
9 wrote 512/512 bytes at offset 1024
11 wrote 512/512 bytes at offset 1536
13 wrote 512/512 bytes at offset 2048
15 wrote 512/512 bytes at offset 2560
17 wrote 512/512 bytes at offset 3072
19 wrote 512/512 bytes at offset 3584
21 wrote 512/512 bytes at offset 4096
23 wrote 512/512 bytes at offset 4608
[all …]
H A D038.out5 wrote 65536/65536 bytes at offset 0
7 wrote 65536/65536 bytes at offset 65536
9 wrote 65536/65536 bytes at offset 131072
11 wrote 65536/65536 bytes at offset 196608
13 wrote 65536/65536 bytes at offset 262144
15 wrote 65536/65536 bytes at offset 327680
17 wrote 65536/65536 bytes at offset 393216
19 wrote 65536/65536 bytes at offset 458752
21 wrote 65536/65536 bytes at offset 524288
23 wrote 65536/65536 bytes at offset 589824
[all …]
H A D035.out5 wrote 512/512 bytes at offset XXX
7 wrote 512/512 bytes at offset XXX
9 wrote 512/512 bytes at offset XXX
11 wrote 512/512 bytes at offset XXX
13 wrote 512/512 bytes at offset XXX
15 wrote 512/512 bytes at offset XXX
17 wrote 512/512 bytes at offset XXX
19 wrote 512/512 bytes at offset XXX
21 wrote 512/512 bytes at offset XXX
23 wrote 512/512 bytes at offset XXX
[all …]
H A D046.out5 wrote 65536/65536 bytes at offset 0
7 wrote 65536/65536 bytes at offset 65536
9 wrote 65536/65536 bytes at offset 131072
11 wrote 65536/65536 bytes at offset 196608
13 wrote 65536/65536 bytes at offset 262144
15 wrote 65536/65536 bytes at offset 327680
17 wrote 65536/65536 bytes at offset 393216
19 wrote 65536/65536 bytes at offset 458752
21 wrote 65536/65536 bytes at offset 524288
23 wrote 65536/65536 bytes at offset 589824
[all …]
H A D033.out7 wrote 1024/1024 bytes at offset 512
9 wrote 1536/1536 bytes at offset 131072
11 wrote 131072/131072 bytes at offset 1024
15 read 512/512 bytes at offset 512
17 read 131072/131072 bytes at offset 1024
19 read 512/512 bytes at offset 132096
23 wrote 65536/65536 bytes at offset 65536
25 wrote 65536/65536 bytes at offset 65536
29 read 131072/131072 bytes at offset 1024
33 wrote 4096/4096 bytes at offset 0
[all …]
/qemu/hw/cxl/
H A Dcxl-component-utils.c64 static uint64_t cxl_cache_mem_read_reg(void *opaque, hwaddr offset, in cxl_cache_mem_read_reg() argument
73 return cregs->special_ops->read(cxl_cstate, offset, 4); in cxl_cache_mem_read_reg()
76 return cregs->cache_mem_registers[offset / 4]; in cxl_cache_mem_read_reg()
91 static void dumb_hdm_handler(CXLComponentState *cxl_cstate, hwaddr offset, in dumb_hdm_handler() argument
99 switch (offset) { in dumb_hdm_handler()
118 stl_le_p((uint8_t *)cache_mem + offset, value); in dumb_hdm_handler()
121 static void cxl_cache_mem_write_reg(void *opaque, hwaddr offset, uint64_t value, in cxl_cache_mem_write_reg() argument
132 mask = cregs->cache_mem_regs_write_mask[offset / 4]; in cxl_cache_mem_write_reg()
135 value |= ~mask & cregs->cache_mem_registers[offset / 4]; in cxl_cache_mem_write_reg()
137 cregs->special_ops->write(cxl_cstate, offset, value, size); in cxl_cache_mem_write_reg()
[all …]
/qemu/hw/intc/
H A Darm_gicv3_dist.c94 int offset, uint32_t val) in gicd_write_bitmap_reg() argument
105 int irq = offset * 8; in gicd_write_bitmap_reg()
118 int offset, uint32_t val) in gicd_write_set_bitmap_reg() argument
129 int irq = offset * 8; in gicd_write_set_bitmap_reg()
142 int offset, uint32_t val) in gicd_write_clear_bitmap_reg() argument
153 int irq = offset * 8; in gicd_write_clear_bitmap_reg()
166 int offset) in gicd_read_bitmap_reg() argument
176 int irq = offset * 8; in gicd_read_bitmap_reg()
301 static bool gicd_readb(GICv3State *s, hwaddr offset, in gicd_readb() argument
305 switch (offset) { in gicd_readb()
[all …]
/qemu/fsdev/
H A D9p-iov-marshal.c22 size_t offset, size_t size, int pack) in v9fs_packunpack() argument
31 if (offset >= sg[i].iov_len) { in v9fs_packunpack()
33 offset -= sg[i].iov_len; in v9fs_packunpack()
36 len = MIN(sg[i].iov_len - offset, size); in v9fs_packunpack()
38 memcpy(sg[i].iov_base + offset, addr, len); in v9fs_packunpack()
40 memcpy(addr, sg[i].iov_base + offset, len); in v9fs_packunpack()
46 offset = 0; in v9fs_packunpack()
61 size_t offset, size_t size) in v9fs_unpack() argument
63 return v9fs_packunpack(dst, out_sg, out_num, offset, size, 0); in v9fs_unpack()
66 ssize_t v9fs_pack(struct iovec *in_sg, int in_num, size_t offset, in v9fs_pack() argument
[all …]
/qemu/hw/net/
H A Dnpcm_pcs.c149 static uint16_t npcm_pcs_read_sr_ctl(NPCMPCSState *s, hwaddr offset) in npcm_pcs_read_sr_ctl() argument
151 hwaddr regno = offset / sizeof(uint16_t); in npcm_pcs_read_sr_ctl()
157 DEVICE(s)->canonical_path, offset); in npcm_pcs_read_sr_ctl()
164 static uint16_t npcm_pcs_read_sr_mii(NPCMPCSState *s, hwaddr offset) in npcm_pcs_read_sr_mii() argument
166 hwaddr regno = offset / sizeof(uint16_t); in npcm_pcs_read_sr_mii()
172 DEVICE(s)->canonical_path, offset); in npcm_pcs_read_sr_mii()
179 static uint16_t npcm_pcs_read_sr_tim(NPCMPCSState *s, hwaddr offset) in npcm_pcs_read_sr_tim() argument
181 hwaddr regno = offset / sizeof(uint16_t); in npcm_pcs_read_sr_tim()
187 DEVICE(s)->canonical_path, offset); in npcm_pcs_read_sr_tim()
194 static uint16_t npcm_pcs_read_vr_mii(NPCMPCSState *s, hwaddr offset) in npcm_pcs_read_vr_mii() argument
[all …]
/qemu/block/
H A Draw-format.c38 uint64_t offset; member
76 static int raw_read_options(QDict *options, uint64_t *offset, bool *has_size, in raw_read_options() argument
88 *offset = qemu_opt_get_size(opts, "offset", 0); in raw_read_options()
99 raw_apply_options(BlockDriverState *bs, BDRVRawState *s, uint64_t offset, in raw_apply_options() argument
111 if (offset > real_size) { in raw_apply_options()
114 offset, real_size); in raw_apply_options()
118 if (has_size && (real_size - offset) < size) { in raw_apply_options()
122 offset, size, real_size); in raw_apply_options()
134 s->offset = offset; in raw_apply_options()
136 s->size = has_size ? size : real_size - offset; in raw_apply_options()
[all …]
/qemu/util/
H A Diov.c26 size_t offset, const void *buf, size_t bytes) in iov_from_buf_full() argument
30 for (i = 0, done = 0; (offset || done < bytes) && i < iov_cnt; i++) { in iov_from_buf_full()
31 if (offset < iov[i].iov_len) { in iov_from_buf_full()
32 size_t len = MIN(iov[i].iov_len - offset, bytes - done); in iov_from_buf_full()
33 memcpy(iov[i].iov_base + offset, buf + done, len); in iov_from_buf_full()
35 offset = 0; in iov_from_buf_full()
37 offset -= iov[i].iov_len; in iov_from_buf_full()
44 size_t offset, void *buf, size_t bytes) in iov_to_buf_full() argument
48 for (i = 0, done = 0; (offset || done < bytes) && i < iov_cnt; i++) { in iov_to_buf_full()
49 if (offset < iov[i].iov_len) { in iov_to_buf_full()
[all …]
/qemu/tests/unit/
H A Dtest-bitmap.c65 int offset; in bitmap_set_case() local
70 for (offset = 0; offset <= BITS_PER_LONG; offset++) { in bitmap_set_case()
72 set_func(bmap, BITS_PER_LONG + offset, 1); in bitmap_set_case()
74 ==, BITS_PER_LONG + offset); in bitmap_set_case()
77 BITS_PER_LONG + offset), in bitmap_set_case()
78 ==, BITS_PER_LONG + offset + 1); in bitmap_set_case()
89 for (offset = 0; offset <= BITS_PER_LONG; offset++) { in bitmap_set_case()
92 set_func(bmap, BITS_PER_LONG - offset, 2 * BITS_PER_LONG + offset); in bitmap_set_case()
96 ==, BITS_PER_LONG - offset); in bitmap_set_case()
99 BITS_PER_LONG - offset), in bitmap_set_case()
[all …]
/qemu/target/i386/
H A Dxsave_helper.c24 legacy = buf + e->offset; in x86_cpu_xsave_all_areas()
25 header = buf + e->offset + sizeof(*legacy); in x86_cpu_xsave_all_areas()
54 if (e->size && e->offset) { in x86_cpu_xsave_all_areas()
57 avx = buf + e->offset; in x86_cpu_xsave_all_areas()
68 if (e->size && e->offset) { in x86_cpu_xsave_all_areas()
74 assert(f->offset); in x86_cpu_xsave_all_areas()
76 bndreg = buf + e->offset; in x86_cpu_xsave_all_areas()
77 bndcsr = buf + f->offset; in x86_cpu_xsave_all_areas()
85 if (e->size && e->offset) { in x86_cpu_xsave_all_areas()
94 assert(f->offset); in x86_cpu_xsave_all_areas()
[all …]

12345678910>>...52