Home
last modified time | relevance | path

Searched refs:pos (Results 1 – 25 of 132) sorted by relevance

123456

/qemu/tests/tcg/s390x/
H A Dvfminmax.c346 int pos = 0; in main() local
359 memcpy(&v1_exp[pos], &v2[pos], float_size); in main()
362 memcpy(&v1_exp[pos], &v3[pos], float_size); in main()
364 memcpy(&v1_exp[pos], &v2[pos], float_size); in main()
367 memcpy(&v1_exp[pos], &v3[pos], float_size); in main()
383 memcpy(&v1_exp[pos], &v2[pos], float_size); in main()
385 memcpy(&v1_exp[pos], &v3[pos], float_size); in main()
392 pos += float_size; in main()
394 if ((m5 & 8) || pos == 16) { in main()
397 pos = 0; in main()
[all …]
/qemu/replay/
H A Dreplay-audio.c40 int pos; in replay_audio_in() local
48 for (pos = (*wpos - *recorded + size) % size ; pos != *wpos in replay_audio_in()
49 ; pos = (pos + 1) % size) { in replay_audio_in()
50 audio_sample_to_uint64(samples, pos, &left, &right); in replay_audio_in()
60 for (pos = (*wpos - *recorded + size) % size ; pos != *wpos in replay_audio_in()
61 ; pos = (pos + 1) % size) { in replay_audio_in()
64 audio_sample_from_uint64(samples, pos, left, right); in replay_audio_in()
/qemu/hw/xen/
H A Dxen-host-pci-device.c219 rc = pread(d->config_fd, buf, len, pos); in xen_host_pci_config_read()
233 rc = pwrite(d->config_fd, buf, len, pos); in xen_host_pci_config_write()
245 int rc = xen_host_pci_config_read(d, pos, &buf, 1); in xen_host_pci_get_byte()
255 int rc = xen_host_pci_config_read(d, pos, &buf, 2); in xen_host_pci_get_word()
265 int rc = xen_host_pci_config_read(d, pos, &buf, 4); in xen_host_pci_get_long()
274 return xen_host_pci_config_read(d, pos, buf, len); in xen_host_pci_get_block()
303 int pos = PCI_CONFIG_SPACE_SIZE; in xen_host_pci_find_ext_cap_offset() local
306 if (xen_host_pci_get_long(d, pos, &header)) { in xen_host_pci_find_ext_cap_offset()
318 return pos; in xen_host_pci_find_ext_cap_offset()
321 pos = PCI_EXT_CAP_NEXT(header); in xen_host_pci_find_ext_cap_offset()
[all …]
H A Dxen-host-pci-device.h45 int xen_host_pci_get_byte(XenHostPCIDevice *d, int pos, uint8_t *p);
46 int xen_host_pci_get_word(XenHostPCIDevice *d, int pos, uint16_t *p);
47 int xen_host_pci_get_long(XenHostPCIDevice *d, int pos, uint32_t *p);
48 int xen_host_pci_get_block(XenHostPCIDevice *d, int pos, uint8_t *buf,
50 int xen_host_pci_set_byte(XenHostPCIDevice *d, int pos, uint8_t data);
51 int xen_host_pci_set_word(XenHostPCIDevice *d, int pos, uint16_t data);
52 int xen_host_pci_set_long(XenHostPCIDevice *d, int pos, uint32_t data);
53 int xen_host_pci_set_block(XenHostPCIDevice *d, int pos, uint8_t *buf,
/qemu/hw/misc/
H A Di2c-echo.c34 unsigned int pos; member
51 state->pos++; in i2c_echo_bh()
56 if (state->pos > 2) { in i2c_echo_bh()
60 if (i2c_send_async(state->bus, state->data[state->pos++])) { in i2c_echo_bh()
81 state->pos = 0; in i2c_echo_event()
86 state->pos = 0; in i2c_echo_event()
91 state->pos = 0; in i2c_echo_event()
111 if (state->pos > 2) { in i2c_echo_recv()
115 return state->data[state->pos++]; in i2c_echo_recv()
122 if (state->pos > 2) { in i2c_echo_send()
[all …]
H A Daspeed_lpc.c182 const struct aspeed_kcs_register_data *pos = aspeed_kcs_registers; in aspeed_kcs_get_register_data_by_name() local
184 while (pos->name) { in aspeed_kcs_get_register_data_by_name()
185 if (!strcmp(pos->name, name)) { in aspeed_kcs_get_register_data_by_name()
186 return pos; in aspeed_kcs_get_register_data_by_name()
188 pos++; in aspeed_kcs_get_register_data_by_name()
197 const struct aspeed_kcs_register_data *pos = aspeed_kcs_registers; in aspeed_kcs_get_channel_by_register() local
199 while (pos->name) { in aspeed_kcs_get_channel_by_register()
200 if (pos->reg == reg) { in aspeed_kcs_get_channel_by_register()
201 return pos->chan; in aspeed_kcs_get_channel_by_register()
203 pos++; in aspeed_kcs_get_channel_by_register()
/qemu/util/
H A Dhbitmap.c109 size_t pos = hbi->pos; in hbitmap_iter_skip_words() local
135 pos = (pos << BITS_PER_LEVEL) + ctzl(cur); in hbitmap_iter_skip_words()
142 hbi->pos = pos; in hbitmap_iter_skip_words()
172 uint64_t pos; in hbitmap_iter_init() local
177 hbi->pos = pos >> BITS_PER_LEVEL; in hbitmap_iter_init()
249 pos++; in hbitmap_next_zero()
250 } while (pos < sz && last_lev[pos] == (unsigned long)-1); in hbitmap_next_zero()
390 size_t pos; in hb_count_between() local
439 i = pos; in hb_set_between()
517 i = pos; in hb_reset_between()
[all …]
/qemu/hw/pci/
H A Dpcie.c190 int pos; in pcie_cap_init() local
197 if (pos < 0) { in pcie_cap_init()
198 return pos; in pcie_cap_init()
200 dev->exp.exp_cap = pos; in pcie_cap_init()
220 return pos; in pcie_cap_init()
227 int pos; in pcie_cap_v1_init() local
234 if (pos < 0) { in pcie_cap_v1_init()
236 return pos; in pcie_cap_v1_init()
242 return pos; in pcie_cap_v1_init()
298 assert(pos > 0); in pcie_cap_get_type()
[all …]
/qemu/hw/pci-host/
H A Dxen_igd_pt.c49 static void host_pci_config_read(int pos, int len, uint32_t *val, Error **errp) in host_pci_config_read() argument
62 if (lseek(config_fd, pos, SEEK_SET) != pos) { in host_pci_config_read()
85 int pos, len; in igd_pt_i440fx_realize() local
88 pos = igd_host_bridge_infos[i].offset; in igd_pt_i440fx_realize()
90 host_pci_config_read(pos, len, &val, errp); in igd_pt_i440fx_realize()
94 pci_default_write_config(pci_dev, pos, val, len); in igd_pt_i440fx_realize()
/qemu/migration/
H A Dmultifd-zstd.c127 z->out.pos = 0; in zstd_send_prepare()
137 z->in.pos = 0; in zstd_send_prepare()
149 } while (ret > 0 && (z->in.size - z->in.pos > 0) in zstd_send_prepare()
151 if (ret > 0 && (z->in.size - z->in.pos > 0)) { in zstd_send_prepare()
163 p->iov[p->iovs_num].iov_len = z->out.pos; in zstd_send_prepare()
165 p->next_packet_size = z->out.pos; in zstd_send_prepare()
278 z->in.pos = 0; in zstd_recv()
284 z->out.pos = 0; in zstd_recv()
296 } while (ret > 0 && (z->in.size - z->in.pos > 0) in zstd_recv()
298 if (ret > 0 && (z->out.pos < p->page_size)) { in zstd_recv()
[all …]
/qemu/block/
H A Dqed-cluster.c92 uint64_t pos, size_t *len, in qed_find_cluster() argument
104 *len = MIN(*len, (((pos >> s->l1_shift) + 1) << s->l1_shift) - pos); in qed_find_cluster()
106 l2_offset = s->l1_table->offsets[qed_l1_index(s, pos)]; in qed_find_cluster()
121 index = qed_l2_index(s, pos); in qed_find_cluster()
122 n = qed_bytes_to_clusters(s, qed_offset_into_cluster(s, pos) + *len); in qed_find_cluster()
137 n * s->header.cluster_size - qed_offset_into_cluster(s, pos)); in qed_find_cluster()
H A Dqcow2-threads.c196 .pos = 0 in qcow2_zstd_compress()
201 .pos = 0 in qcow2_zstd_compress()
237 assert(output.pos <= dest_size); in qcow2_zstd_compress()
238 ret = output.pos; in qcow2_zstd_compress()
264 .pos = 0 in qcow2_zstd_decompress()
269 .pos = 0 in qcow2_zstd_decompress()
288 while (output.pos < output.size) { in qcow2_zstd_decompress()
289 size_t last_in_pos = input.pos; in qcow2_zstd_decompress()
290 size_t last_out_pos = output.pos; in qcow2_zstd_decompress()
306 if (last_in_pos >= input.pos && in qcow2_zstd_decompress()
[all …]
H A Dparallels-ext.c191 uint8_t *pos = ext_cluster; in parallels_parse_format_extension() local
197 memcpy(&eh, pos, sizeof(eh)); in parallels_parse_format_extension()
199 pos += sizeof(eh); in parallels_parse_format_extension()
209 ret = qcrypto_hash_bytes(QCRYPTO_HASH_ALG_MD5, (char *)pos, remaining, in parallels_parse_format_extension()
233 memcpy(&fh, pos, sizeof(fh)); in parallels_parse_format_extension()
234 pos += sizeof(fh); in parallels_parse_format_extension()
257 bitmap = parallels_load_bitmap(bs, pos, fh.data_size, errp); in parallels_parse_format_extension()
269 pos = ext_cluster + QEMU_ALIGN_UP(pos + fh.data_size - ext_cluster, 8); in parallels_parse_format_extension()
/qemu/hw/audio/
H A Dadlib.c73 int left, pos, samples; member
158 int pos = s->pos; in write_audio() local
166 s->mixbuf + (pos << (SHIFT - 1)), in write_audio()
174 pos = (pos + wsampl) % s->samples; in write_audio()
204 s->pos = (s->pos + written) % s->samples; in adlib_callback()
211 samples = MIN (samples, s->samples - s->pos); in adlib_callback()
216 YM3812UpdateOne (s->opl, s->mixbuf + s->pos, samples); in adlib_callback()
223 s->pos = (s->pos + written) % s->samples; in adlib_callback()
H A Dmarvell_88w8618.c71 int pos, block_size; in mv88w8618_audio_callback() local
94 for (pos = 0; pos < block_size; pos += 2) { in mv88w8618_audio_callback()
106 for (pos = 0; pos < block_size; pos++) { in mv88w8618_audio_callback()
112 for (pos = 0; pos < block_size; pos += 2) { in mv88w8618_audio_callback()
H A Dgus.c54 int pos, left, shift, irqs; member
83 int pos = s->pos; in write_audio() local
91 s->mixbuf + (pos << (s->shift - 1)), in write_audio()
99 pos = (pos + wsampl) % s->samples; in write_audio()
187 int pos = dma_pos, mode, left = dma_len - dma_pos; in GUS_read_DMA() local
195 ldebug ("left=%d to_copy=%d pos=%d\n", left, to_copy, pos); in GUS_read_DMA()
196 copied = k->read_memory(s->isa_dma, nchan, tmpbuf, pos, to_copy); in GUS_read_DMA()
199 pos += copied; in GUS_read_DMA()
213 VMSTATE_INT32 (pos, GUSState),
/qemu/hw/vfio/
H A Dpci.c1553 uint8_t pos; in vfio_msix_early_setup() local
1562 if (!pos) { in vfio_msix_early_setup()
1859 return next - pos; in vfio_std_cap_max_size()
1874 return next - pos; in vfio_ext_cap_max_size()
1911 uint8_t *pos; in vfio_pci_enable_rp_atomics() local
2097 pos = pci_add_capability(&vdev->pdev, PCI_CAP_ID_EXP, pos, size, in vfio_setup_pcie_cap()
2099 if (pos < 0) { in vfio_setup_pcie_cap()
2143 pos = pci_add_capability(pdev, PCI_CAP_ID_VNDR, pos, size, errp); in vfio_add_vendor_specific_cap()
2144 if (pos < 0) { in vfio_add_vendor_specific_cap()
2167 cap_id = pdev->config[pos]; in vfio_add_std_cap()
[all …]
/qemu/hw/net/rocker/
H A Drocker.c279 int pos; in cmd_get_port_settings() local
319 pos = 0; in cmd_get_port_settings()
332 rocker_tlv_nest_end(buf, &pos, nest); in cmd_get_port_settings()
485 int pos; in rocker_event_link_changed() local
508 pos = 0; in rocker_event_link_changed()
515 rocker_tlv_nest_end(buf, &pos, nest); in rocker_event_link_changed()
538 int pos; in rocker_event_mac_vlan_seen() local
571 pos = 0; in rocker_event_mac_vlan_seen()
578 rocker_tlv_nest_end(buf, &pos, nest); in rocker_event_mac_vlan_seen()
613 int pos; in rx_produce() local
[all …]
H A Drocker_tlv.h49 #define rocker_tlv_for_each(pos, head, len, rem) \ argument
50 for (pos = head, rem = len; \
51 rocker_tlv_ok(pos, rem); \
52 pos = rocker_tlv_next(pos, &(rem)))
54 #define rocker_tlv_for_each_nested(pos, tlv, rem) \ argument
55 rocker_tlv_for_each(pos, rocker_tlv_data(tlv), rocker_tlv_len(tlv), rem)
/qemu/hw/block/
H A Dm25p80.c475 uint32_t pos; member
864 s->pos = 0; in reset_memory()
1007 s->pos = 0; in decode_fast_read_cmd()
1056 s->pos = 0; in decode_dio_read_cmd()
1109 s->pos = 0; in decode_qio_read_cmd()
1149 s->pos = 0; in decode_new_cmd()
1261 s->pos = 0; in decode_new_cmd()
1294 s->pos = 0; in decode_new_cmd()
1305 s->pos = 0; in decode_new_cmd()
1333 s->pos = 0; in decode_new_cmd()
[all …]
/qemu/hw/usb/
H A Ddesc.c130 int pos = 0; in usb_desc_iface_group() local
148 pos += bLength; in usb_desc_iface_group()
156 pos += rc; in usb_desc_iface_group()
159 return pos; in usb_desc_iface_group()
183 pos += bLength; in usb_desc_iface()
186 rc = usb_desc_other(iface->descs + i, dest + pos, len - pos); in usb_desc_iface()
190 pos += rc; in usb_desc_iface()
198 pos += rc; in usb_desc_iface()
201 return pos; in usb_desc_iface()
622 while (pos+1 < bLength && pos+1 < len) { in usb_desc_string()
[all …]
/qemu/audio/
H A Dalsaaudio.c640 size_t pos = 0; in alsa_write() local
653 return pos; in alsa_write()
659 return pos; in alsa_write()
678 return pos; in alsa_write()
683 return pos; in alsa_write()
694 return pos; in alsa_write()
834 size_t pos = 0; in alsa_read() local
847 return pos; in alsa_read()
858 return pos; in alsa_read()
863 return pos; in alsa_read()
[all …]
/qemu/hw/arm/
H A Dz2.c106 int pos; member
119 z->buf[z->pos] = value & 0xff; in OBJECT_DECLARE_SIMPLE_TYPE()
120 z->pos++; in OBJECT_DECLARE_SIMPLE_TYPE()
122 if (z->pos == 3) { in OBJECT_DECLARE_SIMPLE_TYPE()
140 z->pos = 0; in OBJECT_DECLARE_SIMPLE_TYPE()
156 z->pos = 0; in zipit_lcd_realize()
169 VMSTATE_INT32(pos, ZipitLCD),
/qemu/tests/qtest/
H A Dboot-serial-test.c200 int nbr = 0, pos = 0, ccnt; in check_guest_output() local
208 if (ch == test->expect[pos]) { in check_guest_output()
209 pos += 1; in check_guest_output()
210 if (test->expect[pos] == '\0') { in check_guest_output()
215 pos = 0; in check_guest_output()
/qemu/tests/tcg/mips/user/ase/dsp/
H A Dtest_dsp_r1_extpdpv.c6 int rt, rs, ach, acl, dsp, pos, efi; in main() local
24 pos = dsp & 0x3F; in main()
26 assert(pos == 3); in main()

123456