Home
last modified time | relevance | path

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

12345678910

/illumos-kvm-cmd/hw/
H A Dvirtio-9p-debug.c53 *offsetp = offset; in pprint_int8()
71 *offsetp = offset; in pprint_int16()
89 *offsetp = offset; in pprint_int32()
107 *offsetp = offset; in pprint_int64()
124 offset += copied; in pprint_str()
217 offset += copied; in pprint_strs()
230 *offsetp = offset; in pprint_strs()
246 offset += copied; in pprint_qids()
259 *offsetp = offset; in pprint_qids()
346 size_t offset = 7;
[all …]
H A Dmcf5206.c266 if (offset >= 0x100 && offset < 0x120) { in m5206_mbar_read()
268 } else if (offset >= 0x120 && offset < 0x140) { in m5206_mbar_read()
270 } else if (offset >= 0x140 && offset < 0x160) { in m5206_mbar_read()
272 } else if (offset >= 0x180 && offset < 0x1a0) { in m5206_mbar_read()
304 if (offset >= 0x100 && offset < 0x120) { in m5206_mbar_write()
307 } else if (offset >= 0x120 && offset < 0x140) { in m5206_mbar_write()
310 } else if (offset >= 0x140 && offset < 0x160) { in m5206_mbar_write()
313 } else if (offset >= 0x180 && offset < 0x1a0) { in m5206_mbar_write()
376 offset &= 0x3ff; in m5206_mbar_readb()
395 offset &= 0x3ff; in m5206_mbar_readw()
[all …]
H A Dmpcore.c87 switch (offset) { in mpcore_timer_read()
113 switch (offset) { in mpcore_timer_write()
158 offset &= 0xfff; in mpcore_priv_read()
159 if (offset < 0x100) { in mpcore_priv_read()
161 switch (offset) { in mpcore_priv_read()
176 if (offset < 0x200) { in mpcore_priv_read()
187 if (offset < 0x700) { in mpcore_priv_read()
196 if (offset & 0x20) in mpcore_priv_read()
210 offset &= 0xfff; in mpcore_priv_write()
211 if (offset < 0x100) { in mpcore_priv_write()
[all …]
H A Dsyborg_virtio.c80 DPRINTF("readl 0x%x\n", (int)offset); in syborg_virtio_readl()
81 if (offset >= SYBORG_VIRTIO_CONFIG) { in syborg_virtio_readl()
84 switch(offset >> 2) { in syborg_virtio_readl()
129 if (offset >= SYBORG_VIRTIO_CONFIG) { in syborg_virtio_writel()
133 switch (offset >> 2) { in syborg_virtio_writel()
176 DPRINTF("readw 0x%x\n", (int)offset); in syborg_virtio_readw()
177 if (offset >= SYBORG_VIRTIO_CONFIG) { in syborg_virtio_readw()
191 if (offset >= SYBORG_VIRTIO_CONFIG) { in syborg_virtio_writew()
203 DPRINTF("readb 0x%x\n", (int)offset); in syborg_virtio_readb()
204 if (offset >= SYBORG_VIRTIO_CONFIG) { in syborg_virtio_readb()
[all …]
H A Dpflash_cfi01.c124 ret = p[offset]; in pflash_read()
133 ret = p[offset]; in pflash_read()
146 ret = p[offset]; in pflash_read()
206 offset_end = offset + size; in pflash_update()
208 offset = offset >> 9; in pflash_update()
210 bdrv_write(pfl->bs, offset, pfl->storage + (offset << 9), in pflash_update()
225 p[offset] = value; in pflash_data_write()
230 p[offset + 1] = value; in pflash_data_write()
232 p[offset] = value; in pflash_data_write()
241 p[offset + 3] = value; in pflash_data_write()
[all …]
H A Dpflash_cfi02.c120 offset &= pfl->chip_len - 1; in pflash_read()
121 boff = offset & 0xFF; in pflash_read()
140 ret = p[offset]; in pflash_read()
148 ret = p[offset]; in pflash_read()
160 ret = p[offset]; in pflash_read()
217 offset_end = offset + size; in pflash_update()
219 offset = offset >> 9; in pflash_update()
221 bdrv_write(pfl->bs, offset, pfl->storage + (offset << 9), in pflash_update()
243 offset &= pfl->chip_len - 1; in pflash_write()
246 offset, value, width); in pflash_write()
[all …]
H A Darm_gic.c262 if (offset < 0x100) { in gic_dist_readb()
264 if (offset == 0) in gic_dist_readb()
266 if (offset == 4) in gic_dist_readb()
268 if (offset < 0x08) in gic_dist_readb()
348 if (offset & 3) { in gic_dist_readb()
374 addr = offset; in gic_dist_readl()
392 if (offset < 0x100) { in gic_dist_writeb()
396 if (offset == 0) { in gic_dist_writeb()
534 addr = offset; in gic_dist_writel()
585 switch (offset) { in gic_cpu_read()
[all …]
H A Dsh_timer.c64 switch (offset >> 2) { in sh_timer_read()
86 switch (offset >> 2) { in sh_timer_write()
228 if (offset >= 0x20) { in tmu012_read()
234 if (offset >= 0x14) in tmu012_read()
237 if (offset >= 0x08) in tmu012_read()
240 if (offset == 4) in tmu012_read()
243 if ((s->feat & TMU012_FEAT_TOCR) && offset == 0) in tmu012_read()
259 if (offset >= 0x20) { in tmu012_write()
266 if (offset >= 0x14) { in tmu012_write()
271 if (offset >= 0x08) { in tmu012_write()
[all …]
H A Dpl190.c92 if (offset >= 0xfe0 && offset < 0x1000) { in pl190_read()
93 return pl190_id[(offset - 0xfe0) >> 2]; in pl190_read()
95 if (offset >= 0x100 && offset < 0x140) { in pl190_read()
96 return s->vect_addr[(offset - 0x100) >> 2]; in pl190_read()
98 if (offset >= 0x200 && offset < 0x240) { in pl190_read()
99 return s->vect_control[(offset - 0x200) >> 2]; in pl190_read()
101 switch (offset >> 2) { in pl190_read()
147 if (offset >= 0x100 && offset < 0x140) { in pl190_write()
148 s->vect_addr[(offset - 0x100) >> 2] = val; in pl190_write()
152 if (offset >= 0x200 && offset < 0x240) { in pl190_write()
[all …]
H A Dsyborg_rtc.c38 int64_t offset; member
46 offset &= 0xfff; in syborg_rtc_read()
47 switch (offset >> 2) { in syborg_rtc_read()
56 (int)offset); in syborg_rtc_read()
66 offset &= 0xfff; in syborg_rtc_write()
67 switch (offset >> 2) { in syborg_rtc_write()
71 s->offset = s->data - now; in syborg_rtc_write()
73 s->data = now + s->offset; in syborg_rtc_write()
88 (int)offset); in syborg_rtc_write()
109 qemu_put_be64(f, s->offset); in syborg_rtc_save()
[all …]
H A Darmv7m.c33 return (v & (1 << ((offset >> 2) & 7))) != 0; in bitband_readb()
42 addr = bitband_addr(opaque, offset); in bitband_writeb()
43 mask = (1 << ((offset >> 2) & 7)); in bitband_writeb()
57 addr = bitband_addr(opaque, offset) & ~1; in bitband_readw()
58 mask = (1 << ((offset >> 2) & 15)); in bitband_readw()
70 addr = bitband_addr(opaque, offset) & ~1; in bitband_writew()
71 mask = (1 << ((offset >> 2) & 15)); in bitband_writew()
86 addr = bitband_addr(opaque, offset) & ~3; in bitband_readl()
87 mask = (1 << ((offset >> 2) & 31)); in bitband_readl()
99 addr = bitband_addr(opaque, offset) & ~3; in bitband_writel()
[all …]
H A Dsmc91c111.c283 offset = offset & 0xf; in smc91c111_writeb()
284 if (offset == 14) { in smc91c111_writeb()
288 if (offset == 15) in smc91c111_writeb()
292 switch (offset) { in smc91c111_writeb()
316 switch (offset) { in smc91c111_writeb()
348 switch (offset) { in smc91c111_writeb()
434 switch (offset) { in smc91c111_writeb()
457 offset = offset & 0xf; in smc91c111_readb()
458 if (offset == 14) { in smc91c111_readb()
461 if (offset == 15) in smc91c111_readb()
[all …]
H A Dvirtio-9p.c737 offset += pdu_unmarshal(pdu, offset, "bdq", in pdu_unmarshal()
755 offset += pdu_unmarshal(pdu, offset, "ddddqqqqq", in pdu_unmarshal()
783 offset += pdu_pack(pdu, offset, &val, sizeof(val)); in pdu_marshal()
789 offset += pdu_pack(pdu, offset, &val, sizeof(val)); in pdu_marshal()
795 offset += pdu_pack(pdu, offset, &val, sizeof(val)); in pdu_marshal()
801 offset += pdu_pack(pdu, offset, &val, sizeof(val)); in pdu_marshal()
818 offset += pdu_marshal(pdu, offset, "bdq", in pdu_marshal()
1226 offset += pdu_marshal(pdu, offset, "Q", &qid); in v9fs_attach()
1898 offset = 7; in v9fs_clunk()
2043 vs->offset += pdu_pack(vs->pdu, vs->offset, in v9fs_xattr_read()
[all …]
H A Dmcf_intc.c46 int offset; in mcf_intc_read() local
48 offset = addr & 0xff; in mcf_intc_read()
49 if (offset >= 0x40 && offset < 0x80) { in mcf_intc_read()
50 return s->icr[offset - 0x40]; in mcf_intc_read()
52 switch (offset) { in mcf_intc_read()
78 int offset; in mcf_intc_write() local
80 offset = addr & 0xff; in mcf_intc_write()
81 if (offset >= 0x40 && offset < 0x80) { in mcf_intc_write()
82 int n = offset - 0x40; in mcf_intc_write()
91 switch (offset) { in mcf_intc_write()
[all …]
/illumos-kvm-cmd/kvm/vgabios/
H A Dbiossums.c92 offset = 0L; in main()
94 offset = tmp_offset; in main()
118 offset = 0L; in main()
132 offset = 0L; in main()
134 offset = chksum_bios_get_offset(bios_data, offset); in main()
206 return( *( data + offset ) ); in chksum_bios_get_value()
212 *( data + offset ) = value; in chksum_bios_set_value()
240 offset = offset + 1; in chksum_pmid_get_offset()
245 result = offset; in chksum_pmid_get_offset()
272 offset = offset + 1; in chksum_pcir_get_offset()
[all …]
/illumos-kvm-cmd/kvm/libfdt/
H A Dfdt_ro.c109 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_subnode_offset_namelen()
148 offset = fdt_subnode_offset_namelen(fdt, offset, p, q-p); in fdt_path_offset()
287 (offset >= 0) && (offset <= nodeoffset); in fdt_get_path()
288 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_get_path()
320 if ((offset == -FDT_ERR_NOTFOUND) || (offset >= 0)) in fdt_get_path()
340 (offset >= 0) && (offset <= nodeoffset); in fdt_supernode_atdepth_offset()
341 offset = fdt_next_node(fdt, offset, &depth)) { in fdt_supernode_atdepth_offset()
356 if ((offset == -FDT_ERR_NOTFOUND) || (offset >= 0)) in fdt_supernode_atdepth_offset()
389 int offset; in fdt_node_offset_by_prop_value() local
402 offset = fdt_next_node(fdt, offset, NULL)) { in fdt_node_offset_by_prop_value()
[all …]
H A Dfdt.c82 if (((offset + len) < offset) in fdt_offset_ptr()
86 p = _fdt_offset_ptr(fdt, offset); in fdt_offset_ptr()
99 if (offset % FDT_TAGSIZE) in fdt_next_tag()
106 offset += FDT_TAGSIZE; in fdt_next_tag()
112 p = fdt_offset_ptr(fdt, offset++, 1); in fdt_next_tag()
127 *nextoffset = ALIGN(offset, FDT_TAGSIZE); in fdt_next_tag()
137 if (offset >= 0) { in fdt_next_node()
138 tag = fdt_next_tag(fdt, offset, &nextoffset); in fdt_next_node()
144 offset = nextoffset; in fdt_next_node()
145 tag = fdt_next_tag(fdt, offset, &nextoffset); in fdt_next_node()
[all …]
H A Dfdt_sw.c67 int offset = fdt_size_dt_struct(fdt); in grab_space() local
73 if ((offset + len < offset) || (offset + len > spaceleft)) in grab_space()
106 int offset; in fdt_add_reservemap_entry() local
113 offset = fdt_off_dt_struct(fdt); in fdt_add_reservemap_entry()
171 int struct_top, offset; in find_add_string() local
178 offset = -strtabsize - len; in find_add_string()
183 memcpy(strtab + offset, s, len); in find_add_string()
185 return offset; in find_add_string()
219 int offset, nextoffset; in fdt_finish() local
237 offset = 0; in fdt_finish()
[all …]
/illumos-kvm-cmd/
H A Dqemu-io.c356 int64_t offset; in read_f() local
535 int64_t offset; in readv_f() local
660 int64_t offset; in write_f() local
791 int64_t offset; in writev_f() local
1007 int64_t offset; member
1311 int64_t offset; in truncate_f() local
1434 int64_t offset; in discard_f() local
1489 int64_t offset; in alloc_f() local
1537 int64_t offset; in map_f() local
1544 offset = 0; in map_f()
[all …]
H A Ddevice_tree.c79 int offset; in qemu_devtree_setprop() local
81 offset = fdt_path_offset(fdt, node_path); in qemu_devtree_setprop()
82 if (offset < 0) in qemu_devtree_setprop()
83 return offset; in qemu_devtree_setprop()
91 int offset; in qemu_devtree_setprop_cell() local
93 offset = fdt_path_offset(fdt, node_path); in qemu_devtree_setprop_cell()
94 if (offset < 0) in qemu_devtree_setprop_cell()
95 return offset; in qemu_devtree_setprop_cell()
103 int offset; in qemu_devtree_setprop_string() local
106 if (offset < 0) in qemu_devtree_setprop_string()
[all …]
H A Dbuffered_file.c75 size_t offset = 0; in buffered_flush() local
101 offset += ret; in buffered_flush()
106 memmove(s->buffer, s->buffer + offset, s->buffer_size - offset); in buffered_flush()
107 s->buffer_size -= offset; in buffered_flush()
113 int offset = 0; in buffered_put_buffer() local
134 ret = s->put_buffer(s->opaque, buf + offset, size - offset); in buffered_put_buffer()
149 offset += ret; in buffered_put_buffer()
153 if (offset >= 0) { in buffered_put_buffer()
155 buffered_append(s, buf + offset, size - offset); in buffered_put_buffer()
156 offset = size; in buffered_put_buffer()
[all …]
H A Diov.c20 size_t offset; in iov_from_buf() local
23 offset = 0; in iov_from_buf()
24 for (i = 0; offset < size && i < iovcnt; i++) { in iov_from_buf()
27 len = MIN(iov[i].iov_len, size - offset); in iov_from_buf()
29 memcpy(iov[i].iov_base, buf + offset, len); in iov_from_buf()
30 offset += len; in iov_from_buf()
32 return offset; in iov_from_buf()
36 void *buf, size_t offset, size_t size) in iov_to_buf() argument
46 if (offset < (iov_off + iov[i].iov_len)) { in iov_to_buf()
47 size_t len = MIN((iov_off + iov[i].iov_len) - offset , size); in iov_to_buf()
[all …]
/illumos-kvm-cmd/block/
H A Dqcow2-refcount.c502 dummy = update_refcount(bs, offset, cluster_offset - offset, -addend); in update_refcount()
568 int64_t offset; in qcow2_alloc_clusters() local
573 if (offset < 0) { in qcow2_alloc_clusters()
574 return offset; in qcow2_alloc_clusters()
582 return offset; in qcow2_alloc_clusters()
615 if (offset < 0) { in qcow2_alloc_bytes()
616 return offset; in qcow2_alloc_bytes()
631 return offset; in qcow2_alloc_bytes()
903 uint64_t *l2_table, offset; in check_refcounts_l2() local
916 if (offset != 0) { in check_refcounts_l2()
[all …]
H A Ddmg.c81 int64_t offset; in dmg_open() local
89 if (offset < 0) { in dmg_open()
92 offset -= 0x1d8; in dmg_open()
119 offset += 4; in dmg_open()
138 offset += 4; in dmg_open()
146 offset += 36; in dmg_open()
149 offset += 4; in dmg_open()
152 offset += 8; in dmg_open()
155 offset += 8; in dmg_open()
158 offset += 8; in dmg_open()
[all …]
H A Dqed.h109 uint64_t offset; /* offset=0 indicates an invalidate entry */ member
219 uint64_t offset);
220 void qed_read_l2_table(BDRVQEDState *s, QEDRequest *request, uint64_t offset,
246 return offset & ~(uint64_t)(s->header.cluster_size - 1); in qed_start_of_cluster()
251 return offset & (s->header.cluster_size - 1); in qed_offset_into_cluster()
278 if (offset & (s->header.cluster_size - 1)) { in qed_check_cluster_offset()
281 return offset >= header_size && offset < s->file_size; in qed_check_cluster_offset()
287 static inline bool qed_check_table_offset(BDRVQEDState *s, uint64_t offset) in qed_check_table_offset() argument
289 uint64_t end_offset = offset + (s->header.table_size - 1) * in qed_check_table_offset()
293 if (end_offset <= offset) { in qed_check_table_offset()
[all …]

Completed in 76 milliseconds

12345678910