Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 62) sorted by relevance

123

/illumos-kvm-cmd/target-arm/
H A Dop_helper.c37 int shift; in HELPER() local
41 for (shift = 0; shift < 32; shift += 8) { in HELPER()
173 top = val >> shift; in do_ssat()
347 if (shift >= 32) in HELPER()
349 return x << shift; in HELPER()
355 if (shift >= 32) in HELPER()
363 if (shift >= 32) in HELPER()
364 shift = 31; in HELPER()
371 if (shift >= 32) { in HELPER()
418 if (shift == 0) { in HELPER()
[all …]
H A Dneon_helper.c500 if (shift >= 64 || shift <= -64) {
505 val <<= shift;
531 if (shift >= 64) {
538 val <<= shift;
577 val = (val + ((int64_t)1 << (-1 - shift))) >> -shift;
605 if (shift >= 64 || shift < 64) {
611 val = (val + ((uint64_t)1 << (-1 - shift))) >> -shift;
793 if (shift < 0) {
794 val = (val + (1 << (-1 - shift))) >> -shift;
828 if (shift < 0) {
[all …]
H A Dtranslate.c266 if (shift) in gen_ubfx()
276 if (shift) in gen_sbfx()
515 case 3: tcg_gen_andi_i32(shift, shift, 0x1f); in gen_arm_shift_reg()
2614 if (shift) in gen_neon_dup_u8()
3801 int shift; in disas_neon_ls_insn() local
4200 int shift; in disas_neon_data_insn() local
4616 shift = shift - (1 << (size + 3)); in disas_neon_data_insn()
4796 shift = shift - (1 << (size + 3)); in disas_neon_data_insn()
4892 shift = 32 - shift; in disas_neon_data_insn()
6461 val = (val >> shift) | (val << (32 - shift)); in disas_arm_insn()
[all …]
/illumos-kvm-cmd/hw/ide/
H A Dmmio.c41 int shift; member
54 addr >>= s->shift; in mmio_ide_read()
65 addr >>= s->shift; in mmio_ide_write()
122 qemu_irq irq, int shift, in mmio_ide_init() argument
130 s->shift = shift; in mmio_ide_init()
136 cpu_register_physical_memory(membase, 16 << shift, mem1); in mmio_ide_init()
137 cpu_register_physical_memory(membase2, 2 << shift, mem2); in mmio_ide_init()
/illumos-kvm-cmd/hw/
H A Donenand.c35 int shift; member
109 0x0200 << s->shift, s->iomemtype); in onenand_base_update()
111 0xbe00 << s->shift, in onenand_base_update()
115 0x4000 << s->shift, s->iomemtype, (0xc000 << s->shift)); in onenand_base_update()
123 0x10000 << s->shift, IO_MEM_UNASSIGNED); in onenand_base_unmap()
449 int offset = addr >> s->shift; in onenand_read()
514 int offset = addr >> s->shift; in onenand_write()
543 memset(s->boot[0], 0, 3 << s->shift); in onenand_write()
625 s->shift = regshift; in onenand_init()
644 s->boot[0] = ram + (0x0000 << s->shift); in onenand_init()
[all …]
H A Dptimer.c82 int shift; in ptimer_get_count() local
99 shift = clz1 < clz2 ? clz1 : clz2; in ptimer_get_count()
101 rem <<= shift; in ptimer_get_count()
102 div <<= shift; in ptimer_get_count()
103 if (shift >= 32) { in ptimer_get_count()
104 div |= ((uint64_t)s->period_frac << (shift - 32)); in ptimer_get_count()
106 if (shift != 0) in ptimer_get_count()
107 div |= (s->period_frac >> (32 - shift)); in ptimer_get_count()
110 if ((uint32_t)(s->period_frac << shift)) in ptimer_get_count()
H A Des1370.c261 uint32_t shift; member
416 d->shift); in es1370_update_voices()
478 uint32_t shift, mask; in IO_WRITE_PROTO() local
488 mask = 0xff << shift; in IO_WRITE_PROTO()
501 mask = 0xff << shift; in IO_WRITE_PROTO()
517 uint32_t shift, mask; in IO_WRITE_PROTO() local
530 mask = 0xffff << shift; in IO_WRITE_PROTO()
729 curr_count <<= d->shift; in IO_READ_PROTO()
730 count <<= d->shift; in IO_READ_PROTO()
833 (sc + 1) << d->shift, in es1370_transfer_audio()
[all …]
H A Dgus.c55 int pos, left, shift, irqs; member
100 nbytes = samples << s->shift; in write_audio()
103 s->mixbuf + (pos << (s->shift - 1)), in write_audio()
108 wsampl = wbytes >> s->shift; in write_audio()
128 samples = free >> s->shift; in GUS_callback()
226 VMSTATE_INT32(shift, GUSState),
261 s->shift = 2; in gus_initfn()
262 s->samples = AUD_get_buffer_size_out (s->voice) >> s->shift; in gus_initfn()
263 s->mixbuf = qemu_mallocz (s->samples << s->shift); in gus_initfn()
/illumos-kvm-cmd/target-i386/
H A Dops_sse.h40 int shift; in glue() local
64 int shift; in glue() local
67 shift = 15; in glue()
85 int shift; in glue() local
109 int shift; in glue() local
129 int shift; in glue() local
146 int shift; in glue() local
166 int shift; in glue() local
184 int shift; in glue() local
203 int shift, i; in glue() local
[all …]
/illumos-kvm-cmd/audio/
H A Dossaudio.c407 int bytes_to_write = samples_to_write << hw->info.shift; in oss_write_pending()
425 samples_written = bytes_written >> hw->info.shift; in oss_write_pending()
442 bufsize = hw->samples << hw->info.shift; in oss_run_out()
453 pos = hw->rpos << hw->info.shift; in oss_run_out()
455 decr = audio_MIN (bytes >> hw->info.shift, live); in oss_run_out()
565 hw->samples << hw->info.shift, in oss_init_out()
573 hw->samples << hw->info.shift); in oss_init_out()
608 1 << hw->info.shift in oss_init_out()
614 1 << hw->info.shift in oss_init_out()
728 hw->samples, 1 << hw->info.shift); in oss_init_in()
[all …]
H A Desdaudio.c120 written = write (esd->fd, esd->pcm_buf, chunk << hw->info.shift); in qesd_thread_out()
129 if (written != chunk << hw->info.shift) { in qesd_thread_out()
130 int wsamples = written >> hw->info.shift; in qesd_thread_out()
131 int wbytes = wsamples << hw->info.shift; in qesd_thread_out()
225 hw->samples << hw->info.shift); in qesd_init_out()
327 nread = read (esd->fd, buf, chunk << hw->info.shift); in qesd_thread_in()
336 if (nread != chunk << hw->info.shift) { in qesd_thread_in()
337 int rsamples = nread >> hw->info.shift; in qesd_thread_in()
338 int rbytes = rsamples << hw->info.shift; in qesd_thread_in()
349 hw->conv (hw->conv_buf + wpos, buf, nread >> hw->info.shift); in qesd_thread_in()
[all …]
H A Dwavaudio.c61 samples = INT_MAX >> hw->info.shift; in wav_run_out()
64 samples = bytes >> hw->info.shift; in wav_run_out()
76 dst = advance (wav->pcm_buf, rpos << hw->info.shift); in wav_run_out()
79 qemu_put_buffer (wav->f, dst, convert_samples << hw->info.shift); in wav_run_out()
143 wav->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in wav_init_out()
146 hw->samples << hw->info.shift); in wav_init_out()
173 uint32_t datalen = wav->total_samples << hw->info.shift; in wav_fini_out()
H A Daudio.c612 int bits = 8, sign = 0, shift = 0; in audio_pcm_init_info() local
624 shift = 1; in audio_pcm_init_info()
631 shift = 2; in audio_pcm_init_info()
639 info->shift = (as->nchannels == 2) + shift; in audio_pcm_init_info()
640 info->align = (1 << info->shift) - 1; in audio_pcm_init_info()
652 memset (buf, 0x00, len << info->shift); in audio_pcm_info_clear_buf()
923 samples = size >> sw->info.shift; in audio_pcm_sw_read()
961 return ret << sw->info.shift; in audio_pcm_sw_read()
1034 samples = size >> sw->info.shift; in audio_pcm_sw_write()
1075 size >> sw->info.shift, in audio_pcm_sw_write()
[all …]
H A Dnoaudio.c53 samples = bytes >> hw->info.shift; in no_run_out()
112 samples = bytes >> hw->info.shift; in no_run_in()
122 int samples = size >> sw->info.shift; in no_read()
127 return to_clear << sw->info.shift; in no_read()
H A Dwavcapture.c97 int stereo, bits16, shift; in wav_start_capture() local
125 shift = bits16 + stereo; in wav_start_capture()
130 le_store (hdr + 28, freq << shift, 4); in wav_start_capture()
131 le_store (hdr + 32, 1 << shift, 2); in wav_start_capture()
H A Dfmodaudio.c102 hw->samples << hw->info.shift, in fmod_clear_sample()
120 if ((len1 + len2) - (hw->samples << hw->info.shift)) { in fmod_clear_sample()
122 len1 + len2, hw->samples << hw->info.shift); in fmod_clear_sample()
155 dst = advance (dst, src_len1 << hw->info.shift); in fmod_write_sample()
188 pos << info->shift, in fmod_lock_sample()
189 len << info->shift, in fmod_lock_sample()
279 len1 = blen1 >> hw->info.shift; in fmod_run_out()
280 len2 = blen2 >> hw->info.shift; in fmod_run_out()
454 int hwshift = hw->info.shift; in fmod_run_in()
H A Dpaaudio.c95 chunk << hw->info.shift, &error) < 0) { in qpa_thread_out()
185 chunk << hw->info.shift, &error) < 0) { in qpa_thread_in()
327 pa->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in qpa_init_out()
331 hw->samples << hw->info.shift); in qpa_init_out()
382 pa->pcm_buf = audio_calloc (AUDIO_FUNC, hw->samples, 1 << hw->info.shift); in qpa_init_in()
386 hw->samples << hw->info.shift); in qpa_init_in()
/illumos-kvm-cmd/scripts/
H A Dtexi2pod.pl33 $shift = "";
159 $shift = "";
221 if ($shift ne "") {
226 if ($shift eq "") {
305 $shift = "\t";
330 $section .= $shift.$_."\n";
/illumos-kvm-cmd/target-m68k/
H A Dhelper.c478 shift &= 63; in HELPER()
479 if (shift == 0) { in HELPER()
482 } else if (shift < 32) { in HELPER()
485 } else if (shift == 32) { in HELPER()
503 shift &= 63; in HELPER()
504 if (shift == 0) { in HELPER()
507 } else if (shift < 32) { in HELPER()
510 } else if (shift == 32) { in HELPER()
528 shift &= 63; in HELPER()
529 if (shift == 0) { in HELPER()
[all …]
/illumos-kvm-cmd/target-alpha/
H A Dtranslate.c1259 tcg_gen_shli_i64(shift, shift, 3); in gen_ins_h()
1260 tcg_gen_not_i64(shift, shift); in gen_ins_h()
1261 tcg_gen_andi_i64(shift, shift, 0x3f); in gen_ins_h()
1265 tcg_temp_free(shift); in gen_ins_h()
1293 tcg_gen_shli_i64(shift, shift, 3); in gen_ins_l()
1325 tcg_gen_shli_i64(shift, shift, 3); in gen_msk_h()
1326 tcg_gen_not_i64(shift, shift); in gen_msk_h()
1327 tcg_gen_andi_i64(shift, shift, 0x3f); in gen_msk_h()
1335 tcg_temp_free(shift); in gen_msk_h()
1354 tcg_gen_shli_i64(shift, shift, 3); in gen_msk_l()
[all …]
/illumos-kvm-cmd/target-sh4/
H A Dtranslate.c983 TCGv shift; in _decode_opc() local
986 shift = tcg_temp_new(); in _decode_opc()
989 tcg_temp_free(shift); in _decode_opc()
997 tcg_gen_andi_i32(shift, shift, 0x1f); in _decode_opc()
998 tcg_gen_addi_i32(shift, shift, 1); in _decode_opc()
1000 tcg_temp_free(shift); in _decode_opc()
1017 TCGv shift; in _decode_opc() local
1023 tcg_temp_free(shift); in _decode_opc()
1031 tcg_gen_andi_i32(shift, shift, 0x1f); in _decode_opc()
1032 tcg_gen_addi_i32(shift, shift, 1); in _decode_opc()
[all …]
/illumos-kvm-cmd/
H A Dsoftmmu_template.h146 int index, shift; in glue() local
170 shift = (addr & (DATA_SIZE - 1)) * 8; in glue()
172 res = (res1 << shift) | (res2 >> ((DATA_SIZE * 8) - shift)); in glue()
174 res = (res1 >> shift) | (res2 << ((DATA_SIZE * 8) - shift)); in glue()
/illumos-kvm-cmd/ui/
H A Dvnc-enc-tight.c184 int max[3], shift[3]; \
200 shift[0] = vs->clientds.pf.rshift; \
201 shift[1] = vs->clientds.pf.gshift; \
525 int shift[3]; in tight_filter_gradient24() local
536 shift[0] = vs->clientds.pf.rshift; in tight_filter_gradient24()
537 shift[1] = vs->clientds.pf.gshift; in tight_filter_gradient24()
538 shift[2] = vs->clientds.pf.bshift; in tight_filter_gradient24()
540 shift[0] = 24 - vs->clientds.pf.rshift; in tight_filter_gradient24()
541 shift[1] = 24 - vs->clientds.pf.gshift; in tight_filter_gradient24()
542 shift[2] = 24 - vs->clientds.pf.bshift; in tight_filter_gradient24()
[all …]
/illumos-kvm-cmd/block/
H A Draw-posix.c352 int size, ret, shift, sum; in raw_pread() local
361 shift = offset & sector_mask; in raw_pread()
362 size = (shift + count + sector_mask) & ~sector_mask; in raw_pread()
369 size = bs->buffer_alignment - shift; in raw_pread()
372 memcpy(buf, s->aligned_buf + shift, size); in raw_pread()
441 int size, ret, shift, sum; in raw_pwrite() local
449 shift = offset & sector_mask; in raw_pwrite()
450 ret = raw_pread_aligned(bs, offset - shift, s->aligned_buf, in raw_pwrite()
455 size = bs->buffer_alignment - shift; in raw_pwrite()
458 memcpy(s->aligned_buf + shift, buf, size); in raw_pwrite()
[all …]
H A Dqcow2.h159 int shift = s->cluster_bits + s->l2_bits; in size_to_l1() local
160 return (size + (1ULL << shift) - 1) >> shift; in size_to_l1()

Completed in 118 milliseconds

123