Home
last modified time | relevance | path

Searched refs:len (Results 1 – 25 of 1200) sorted by path

12345678910>>...48

/qemu/.gitlab-ci.d/
H A Dcheck-dco.py15 if len(sys.argv) >= 2:
H A Dcheck-patch.py15 if len(sys.argv) >= 2:
/qemu/accel/hvf/
H A Dhvf-accel-ops.c476 static int hvf_insert_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len) in hvf_insert_breakpoint() argument
499 err = hvf_arch_insert_hw_breakpoint(addr, len, type); in hvf_insert_breakpoint()
514 static int hvf_remove_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len) in hvf_remove_breakpoint() argument
538 err = hvf_arch_remove_hw_breakpoint(addr, len, type); in hvf_remove_breakpoint()
/qemu/accel/kvm/
H A Dkvm-all.c1222 .len = size, in kvm_set_ioeventfd_mmio()
1256 .len = size, in kvm_set_ioeventfd_pio()
2710 ent->len); in kvm_flush_coalesced_mmio_buffer()
2712 cpu_physical_memory_write(ent->phys_addr, ent->data, ent->len); in kvm_flush_coalesced_mmio_buffer()
3034 run->mmio.len, in kvm_cpu_exec()
3345 int kvm_insert_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len) in kvm_insert_breakpoint() argument
3368 err = kvm_arch_insert_hw_breakpoint(addr, len, type); in kvm_insert_breakpoint()
3383 int kvm_remove_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len) in kvm_remove_breakpoint() argument
3407 err = kvm_arch_remove_hw_breakpoint(addr, len, type); in kvm_remove_breakpoint()
3457 sigmask->len = s->sigmask_len; in kvm_set_signal_mask()
H A Dkvm-cpus.h22 int kvm_insert_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len);
23 int kvm_remove_breakpoint(CPUState *cpu, int type, vaddr addr, vaddr len);
/qemu/accel/tcg/
H A Dcputlb.c746 vaddr addr, vaddr len, in tlb_flush_range_locked() argument
763 if (mask < f->mask || len > f->mask) { in tlb_flush_range_locked()
766 midx, addr, mask, len); in tlb_flush_range_locked()
784 for (vaddr i = 0; i < len; i += TARGET_PAGE_SIZE) { in tlb_flush_range_locked()
797 vaddr len; member
810 d.addr, d.bits, d.len, d.idxmap); in tlb_flush_range_by_mmuidx_async_0()
824 if (d.len >= (TARGET_PAGE_SIZE * TB_JMP_CACHE_SIZE)) { in tlb_flush_range_by_mmuidx_async_0()
870 d.len = len; in tlb_flush_range_by_mmuidx()
913 d.len = len; in tlb_flush_range_by_mmuidx_all_cpus()
940 vaddr len, in tlb_flush_range_by_mmuidx_all_cpus_synced() argument
[all …]
H A Dplugin-gen.c52 size_t len; in gen_enable_mem_helper() local
71 if (!insn->mem_cbs || !insn->mem_cbs->len) { in gen_enable_mem_helper()
85 len = insn->mem_cbs->len; in gen_enable_mem_helper()
87 sizeof(struct qemu_plugin_dyn_cb), len); in gen_enable_mem_helper()
89 len * sizeof(struct qemu_plugin_dyn_cb)); in gen_enable_mem_helper()
319 for (i = 0, n = (cbs ? cbs->len : 0); i < n; i++) { in plugin_gen_tb_start()
331 for (i = 0, n = (cbs ? cbs->len : 0); i < n; i++) { in plugin_gen_tb_start()
363 for (i = 0, n = (cbs ? cbs->len : 0); i < n; i++) { in plugin_gen_insn_start()
419 if (n <= ptb->insns->len) {
[all...]
H A Dtb-maint.c1201 unsigned len, uintptr_t ra) in tb_invalidate_phys_page_fast__locked() argument
1211 tb_invalidate_phys_page_range__locked(pages, p, start, start + len - 1, ra); in tb_invalidate_phys_page_fast__locked()
H A Dtcg-accel-ops.c131 static int tcg_insert_breakpoint(CPUState *cs, int type, vaddr addr, vaddr len) in tcg_insert_breakpoint() argument
150 err = cpu_watchpoint_insert(cpu, addr, len, in tcg_insert_breakpoint()
162 static int tcg_remove_breakpoint(CPUState *cs, int type, vaddr addr, vaddr len) in tcg_remove_breakpoint() argument
181 err = cpu_watchpoint_remove(cpu, addr, len, in tcg_remove_breakpoint()
H A Dtranslator.c243 void *dest, vaddr pc, size_t len) in translator_ld() argument
246 vaddr last = pc + len - 1; in translator_ld()
262 memcpy(dest, host + (pc - base), len); in translator_ld()
272 len -= len0; in translator_ld()
326 memcpy(dest, host + (pc - base), len); in translator_ld()
369 vaddr addr, size_t len) in translator_st() argument
377 offset_end = offset + len; in translator_st()
388 memcpy(dest, db->host_addr[0] + offset, len); in translator_st()
471 void translator_fake_ld(DisasContextBase *db, const void *data, size_t len) in translator_fake_ld() argument
474 record_save(db, db->pc_first, data, len); in translator_fake_ld()
H A Duser-exec.c534 bool page_check_range(target_ulong start, target_ulong len, int flags) in page_check_range() argument
540 if (len == 0) { in page_check_range()
544 last = start + len - 1; in page_check_range()
626 assert(len != 0); in page_find_range_empty()
630 len_m1 = len - 1; in page_find_range_empty()
740 target_ulong start, len, i; in page_unprotect() local
745 len = TARGET_PAGE_SIZE; in page_unprotect()
747 pageflags_set_clear(start, start + len - 1, PAGE_WRITE, 0); in page_unprotect()
751 len = host_page_size; in page_unprotect()
754 for (i = 0; i < len; i += TARGET_PAGE_SIZE) { in page_unprotect()
[all …]
H A Dwatchpoint.c37 vaddr addr, vaddr len) in watchpoint_address_matches() argument
45 vaddr wpend = wp->vaddr + wp->len - 1; in watchpoint_address_matches()
46 vaddr addrend = addr + len - 1; in watchpoint_address_matches()
52 int cpu_watchpoint_address_matches(CPUState *cpu, vaddr addr, vaddr len) in cpu_watchpoint_address_matches() argument
58 if (watchpoint_address_matches(wp, addr, len)) { in cpu_watchpoint_address_matches()
66 void cpu_check_watchpoint(CPUState *cpu, vaddr addr, vaddr len, in cpu_check_watchpoint() argument
87 addr = cc->tcg_ops->adjust_watchpoint_address(cpu, addr, len); in cpu_check_watchpoint()
94 if (hit_flags && watchpoint_address_matches(wp, addr, len)) { in cpu_check_watchpoint()
/qemu/audio/
H A Dalsaaudio.c637 static size_t alsa_write(HWVoiceOut *hw, void *buf, size_t len) in alsa_write() argument
641 size_t len_frames = len / hw->info.bytes_per_frame; in alsa_write()
682 len, src); in alsa_write()
831 static size_t alsa_read(HWVoiceIn *hw, void *buf, size_t len) in alsa_read() argument
836 while (len) { in alsa_read()
841 alsa->handle, dst, len / hw->info.bytes_per_frame); in alsa_read()
846 trace_alsa_read_zero(len); in alsa_read()
851 alsa_logerr(nread, "Failed to read %zu frames\n", len); in alsa_read()
862 len, dst); in alsa_read()
868 len -= nread * hw->info.bytes_per_frame; in alsa_read()
H A Daudio.c331 void audio_pcm_info_clear_buf (struct audio_pcm_info *info, void *buf, int len) in audio_pcm_info_clear_buf() argument
333 if (!len) { in audio_pcm_info_clear_buf()
338 memset(buf, 0x00, len * info->bytes_per_frame); in audio_pcm_info_clear_buf()
342 memset(buf, 0x80, len * info->bytes_per_frame); in audio_pcm_info_clear_buf()
355 for (i = 0; i < len * info->nchannels; i++) { in audio_pcm_info_clear_buf()
371 for (i = 0; i < len * info->nchannels; i++) { in audio_pcm_info_clear_buf()
658 static void audio_pcm_hw_clip_out(HWVoiceOut *hw, void *pcm_buf, size_t len) in audio_pcm_hw_clip_out() argument
663 while (len) { in audio_pcm_hw_clip_out()
667 size_t samples_to_clip = MIN(len, samples_till_end_of_buf); in audio_pcm_hw_clip_out()
672 len -= samples_to_clip; in audio_pcm_hw_clip_out()
H A Daudio_int.h247 void audio_pcm_info_clear_buf (struct audio_pcm_info *info, void *buf, int len);
266 static inline size_t audio_ring_dist(size_t dst, size_t src, size_t len) in audio_ring_dist() argument
268 return (dst >= src) ? (dst - src) : (len - src + dst); in audio_ring_dist()
279 static inline size_t audio_ring_posb(size_t pos, size_t dist, size_t len) in audio_ring_posb() argument
281 return pos >= dist ? pos - dist : len - dist + pos; in audio_ring_posb()
H A Dcoreaudio.m318 size_t len;
340 len = frameCount * hw->info.bytes_per_frame;
341 while (len) {
347 write_len = MIN(MIN(hw->pending_emul, len),
352 len -= write_len;
H A Ddsound_template.h69 DWORD len, in glue()
86 hr = glue(IFACE, _Lock)(buf, pos, len, p1p, blen1p, p2p, blen2p, flag); in glue()
H A Ddsoundaudio.c476 static size_t dsound_put_buffer_out(HWVoiceOut *hw, void *buf, size_t len) in dsound_put_buffer_out() argument
480 int err = dsound_unlock_out(dsb, buf, NULL, len, 0); in dsound_put_buffer_out()
486 hw->pos_emul = (hw->pos_emul + len) % hw->size_emul; in dsound_put_buffer_out()
488 return len; in dsound_put_buffer_out()
579 static void dsound_put_buffer_in(HWVoiceIn *hw, void *buf, size_t len) in dsound_put_buffer_in() argument
583 int err = dsound_unlock_in(dscb, buf, NULL, len, 0); in dsound_put_buffer_in()
589 hw->pos_emul = (hw->pos_emul + len) % hw->size_emul; in dsound_put_buffer_in()
H A Djackaudio.c343 static size_t qjack_write(HWVoiceOut *hw, void *buf, size_t len) in qjack_write() argument
350 return len; in qjack_write()
354 return qjack_buffer_write(&jo->c.fifo, buf, len); in qjack_write()
357 static size_t qjack_read(HWVoiceIn *hw, void *buf, size_t len) in qjack_read() argument
364 return len; in qjack_read()
368 return qjack_buffer_read(&ji->c.fifo, buf, len); in qjack_read()
H A Dmixeng.c523 void mixeng_clear (struct st_sample *buf, int len) in mixeng_clear() argument
525 memset (buf, 0, len * sizeof (struct st_sample)); in mixeng_clear()
528 void mixeng_volume (struct st_sample *buf, int len, struct mixeng_volume *vol) in mixeng_volume() argument
531 mixeng_clear (buf, len); in mixeng_volume()
535 while (len--) { in mixeng_volume()
H A Dmixeng.h57 void mixeng_clear (struct st_sample *buf, int len);
58 void mixeng_volume (struct st_sample *buf, int len, struct mixeng_volume *vol);
H A Dnoaudio.c44 static size_t no_write(HWVoiceOut *hw, void *buf, size_t len) in no_write() argument
47 return audio_rate_get_bytes(&no->rate, &hw->info, len); in no_write()
H A Dossaudio.c436 len = MIN(len, oss_get_available_bytes(oss)); in oss_write()
438 total_len = len; in oss_write()
439 while (len) { in oss_write()
445 len -= to_copy; in oss_write()
451 while (len) { in oss_write()
459 len); in oss_write()
465 if (bytes_written < len) { in oss_write()
468 len -= bytes_written; in oss_write()
686 while (len) { in oss_read()
699 len, dst); in oss_read()
[all …]
H A Dpwaudio.c239 trace_pw_read(avail, index, len); in qpw_read()
241 if (avail < (int32_t) len) { in qpw_read()
242 len = avail; in qpw_read()
248 index += len; in qpw_read()
250 l = len; in qpw_read()
294 len = 0; in qpw_write()
300 trace_pw_write(filled, avail, index, len); in qpw_write()
302 if (len > avail) { in qpw_write()
303 len = avail; in qpw_write()
318 index += len; in qpw_write()
[all …]
H A Dsdlaudio.c218 static void sdl_callback_out(void *opaque, Uint8 *buf, int len) in sdl_callback_out() argument
227 while (hw->pending_emul && len) { in sdl_callback_out()
234 write_len = MIN(MIN(hw->pending_emul, len), in sdl_callback_out()
239 len -= write_len; in sdl_callback_out()
245 if (len) { in sdl_callback_out()
247 len / hw->info.bytes_per_frame); in sdl_callback_out()
266 static void sdl_callback_in(void *opaque, Uint8 *buf, int len) in sdl_callback_in() argument
277 while (hw->pending_emul < hw->size_emul && len) { in sdl_callback_in()
278 size_t read_len = MIN(len, MIN(hw->size_emul - hw->pos_emul, in sdl_callback_in()
285 len -= read_len; in sdl_callback_in()

12345678910>>...48