Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 121) sorted by relevance

12345

/illumos-kvm-cmd/fpu/
H A Dsoftfloat-macros.h46 if ( count == 0 ) { in shift32RightJamming()
50 z = ( a>>count ) | ( ( a<<( ( - count ) & 31 ) ) != 0 ); in shift32RightJamming()
72 if ( count == 0 ) { in shift64RightJamming()
76 z = ( a>>count ) | ( ( a<<( ( - count ) & 63 ) ) != 0 ); in shift64RightJamming()
155 z1 = ( count < 64 ) ? ( a0>>( count & 63 ) ) : 0; in shift128Right()
230 int16 count, in shift128ExtraRightJamming() argument
290 ( count == 0 ) ? a0 : ( a0<<count ) | ( a1>>( ( - count ) & 63 ) ); in shortShift128Left()
307 int16 count, in shortShift192Left() argument
316 z2 = a2<<count; in shortShift192Left()
317 z1 = a1<<count; in shortShift192Left()
[all …]
/illumos-kvm-cmd/hw/
H A Di8254.c53 counter = s->count - ((2 * d) % s->count); in pit_get_count()
56 counter = s->count - (d % s->count); in pit_get_count()
76 out = (d < s->count); in pit_get_out1()
85 out = (d % s->count) < ((s->count + 1) >> 1); in pit_get_out1()
114 if (d < s->count) in pit_get_next_transition_time()
120 base = (d / s->count) * s->count; in pit_get_next_transition_time()
127 base = (d / s->count) * s->count; in pit_get_next_transition_time()
136 if (d < s->count) in pit_get_next_transition_time()
195 return s->count; in pit_get_initial_count()
295 int ret, count; in pit_ioport_read() local
[all …]
H A Dslavio_timer.c50 uint32_t count, counthigh, reached; member
98 uint64_t count, limit; in slavio_timer_get_out() local
108 t->count = count & TIMER_COUNT_MASK32; in slavio_timer_get_out()
109 t->counthigh = count >> 32; in slavio_timer_get_out()
161 ret = t->count & TIMER_MAX_COUNT64; in slavio_timer_mem_readl()
204 uint64_t count; in slavio_timer_mem_writel() local
210 count = ((uint64_t)t->counthigh << 32) | t->count; in slavio_timer_mem_writel()
229 uint64_t count; in slavio_timer_mem_writel() local
235 count = ((uint64_t)t->counthigh) << 32 | t->count; in slavio_timer_mem_writel()
333 VMSTATE_UINT32(count, CPUTimerState),
[all …]
H A Dmpcore.c26 uint32_t count; member
63 if (s->count == 0) in mpcore_timer_reload()
67 s->tick += (int64_t)s->count * mpcore_timer_scale(s); in mpcore_timer_reload()
76 s->count = s->load; in mpcore_timer_tick()
79 s->count = 0; in mpcore_timer_tick()
92 if (((s->control & 1) == 0) || (s->count == 0)) in mpcore_timer_read()
118 if ((s->control & 1) && s->count) { in mpcore_timer_write()
122 s->count = value; in mpcore_timer_write()
131 if (s->count == 0 && (s->control & 2)) in mpcore_timer_write()
132 s->count = s->load; in mpcore_timer_write()
H A Daxis_dev88.c91 unsigned int count; member
104 if (s->count == 0) { in tempsensor_clkedge()
105 s->count = 16; in tempsensor_clkedge()
112 s->count--; in tempsensor_clkedge()
114 if (s->count == 0) { in tempsensor_clkedge()
117 s->count = 16; in tempsensor_clkedge()
123 s->count--; in tempsensor_clkedge()
124 if (s->count == 0) { in tempsensor_clkedge()
127 s->count = 16; in tempsensor_clkedge()
134 s->count--; in tempsensor_clkedge()
[all …]
H A Decc.c59 s->lp[0] ^= ~s->count; in ecc_digest()
60 s->lp[1] ^= s->count; in ecc_digest()
62 s->count ++; in ecc_digest()
73 s->count = 0; in ecc_reset()
85 VMSTATE_UINT16(count, ECCState),
H A Dvirtio-9p-debug.c43 int count = get_sg_count(pdu, rx); in pprint_int8() local
208 uint16_t tmp_count, count, i; in pprint_strs() local
219 for (i = 0; i < count; i++) { in pprint_strs()
238 uint16_t tmp_count, count, i; in pprint_qids() local
248 for (i = 0; i < count; i++) { in pprint_qids()
265 unsigned int count; in pprint_sg() local
269 count = pdu->elem.in_num; in pprint_sg()
275 for (i = 0; i < count; i++) { in pprint_sg()
290 unsigned int count; in pprint_data() local
296 count = pdu->elem.in_num; in pprint_data()
[all …]
H A Donenand.c54 int count; member
136 s->count = 1; in onenand_reset()
264 if (onenand_load_main(s, sec, s->count, buf)) in onenand_command()
269 if (onenand_load_spare(s, sec, s->count, buf)) in onenand_command()
283 if (onenand_load_spare(s, sec, s->count, buf)) in onenand_command()
296 if (onenand_prog_main(s, sec, s->count, buf)) in onenand_command()
301 if (onenand_prog_spare(s, sec, s->count, buf)) in onenand_command()
328 if (onenand_load_main(s, sec, s->count, buf)) in onenand_command()
332 if (onenand_prog_main(s, sec, s->count, buf)) in onenand_command()
562 s->count = (value & 3) ?: 4; in onenand_write()
[all …]
H A Dadb.c134 int rptr, wptr, count; member
161 if (s->count < sizeof(s->data)) { in adb_kbd_put_keycode()
165 s->count++; in adb_kbd_put_keycode()
178 if (s->count == 0) in adb_kbd_poll()
183 s->count--; in adb_kbd_poll()
211 s->wptr = s->rptr = s->count = 0; in adb_kbd_request()
271 qemu_put_sbe32s(f, &s->count); in adb_kbd_save()
284 qemu_get_sbe32s(f, &s->count); in adb_kbd_load()
H A Di8254-kvm.c53 sc->count = c->count; in kvm_pit_pre_save()
81 c->count = sc->count; in kvm_pit_post_load()
/illumos-kvm-cmd/target-i386/
H A Dhelper_template.h271 int count, eflags; in glue() local
277 count = rclw_table[count]; in glue()
279 count = rclb_table[count]; in glue()
281 if (count) { in glue()
285 res = (t0 << count) | ((target_ulong)(eflags & CC_C) << (count - 1)); in glue()
286 if (count > 1) in glue()
300 int count, eflags; in glue() local
306 count = rclw_table[count]; in glue()
308 count = rclb_table[count]; in glue()
310 if (count) { in glue()
[all …]
/illumos-kvm-cmd/
H A Dgen-icount.h10 TCGv_i32 count; in gen_icount_start() local
16 count = tcg_temp_local_new_i32(); in gen_icount_start()
17 tcg_gen_ld_i32(count, cpu_env, offsetof(CPUState, icount_decr.u32)); in gen_icount_start()
20 tcg_gen_subi_i32(count, count, 0xdeadbeef); in gen_icount_start()
22 tcg_gen_brcondi_i32(TCG_COND_LT, count, 0, icount_label); in gen_icount_start()
23 tcg_gen_st16_i32(count, cpu_env, offsetof(CPUState, icount_decr.u16.low)); in gen_icount_start()
24 tcg_temp_free_i32(count); in gen_icount_start()
H A Dqemu-io.c131 size_t count = 0; in create_iovec() local
159 count += len; in create_iovec()
183 *total = count; in do_read()
194 *total = count; in do_write()
357 int count; in read_f() local
422 if (count < 0) { in read_f()
448 count); in read_f()
661 int count; in write_f() local
706 if (count < 0) { in write_f()
720 count); in write_f()
[all …]
H A Ddisas.c149 int count; in target_disas() local
227 for (pc = code; size > 0; pc += count, size -= count) { in target_disas()
229 count = print_insn(pc, &disasm_info); in target_disas()
243 if (count < 0) in target_disas()
245 if (size < count) { in target_disas()
259 int count; in disas() local
308 for (pc = (unsigned long)code; size > 0; pc += count, size -= count) { in disas()
312 if (count < 0) in disas()
365 int count, i; in monitor_disas() local
427 if (count < 0) in monitor_disas()
[all …]
H A Dcutils.c253 for (i = 0; i < qiov->niov && count; ++i) { in qemu_iovec_from_buffer()
254 copy = count; in qemu_iovec_from_buffer()
259 count -= copy; in qemu_iovec_from_buffer()
263 void qemu_iovec_memset(QEMUIOVector *qiov, int c, size_t count) in qemu_iovec_memset() argument
268 for (i = 0; i < qiov->niov && count; ++i) { in qemu_iovec_memset()
269 n = MIN(count, qiov->iov[i].iov_len); in qemu_iovec_memset()
271 count -= n; in qemu_iovec_memset()
275 void qemu_iovec_memset_skip(QEMUIOVector *qiov, int c, size_t count, in qemu_iovec_memset_skip() argument
284 for (i = 0; (i < qiov->niov) && (done != count); i++) { in qemu_iovec_memset_skip()
296 if (done + iov_len > count) { in qemu_iovec_memset_skip()
[all …]
H A Dqjson.c77 int count; member
89 if (s->count) in to_json_dict_iter()
104 s->count++; in to_json_dict_iter()
112 if (s->count) in to_json_list_iter()
122 s->count++; in to_json_list_iter()
208 s.count = 0; in to_json()
227 s.count = 0; in to_json()
H A Dosdep.c108 ssize_t qemu_write_full(int fd, const void *buf, size_t count) in qemu_write_full() argument
113 while (count) { in qemu_write_full()
114 ret = write(fd, buf, count); in qemu_write_full()
121 count -= ret; in qemu_write_full()
H A Dcheck-qdict.c199 int count; in START_TEST() local
208 count = 0; in START_TEST()
211 count++; in START_TEST()
214 fail_unless(count == qdict_size(tests_dict)); in START_TEST()
217 count = 0; in START_TEST()
220 count++; in START_TEST()
223 fail_unless(count == qdict_size(tests_dict)); in START_TEST()
H A Dqemu-timer.h122 void ptimer_set_count(ptimer_state *s, uint64_t count);
129 int64_t qemu_icount_round(int64_t count);
255 uint32_t count; in cpu_get_real_ticks() local
262 MIPS_RDHWR("$2", count); in cpu_get_real_ticks()
263 return (int64_t)(count * cyc_per_count); in cpu_get_real_ticks()
/illumos-kvm-cmd/block/
H A Draw-posix.c276 if (ret == count) in raw_pread_aligned()
284 return count; in raw_pread_aligned()
296 if (ret == count) in raw_pread_aligned()
299 if (ret == count) in raw_pread_aligned()
330 if (ret == count) in raw_pwrite_aligned()
376 count -= size; in raw_pread()
379 if (count == 0) in raw_pread()
386 while (count) { in raw_pread()
467 count -= size; in raw_pwrite()
470 if (count == 0) in raw_pwrite()
[all …]
H A Ddmg.c79 uint32_t count; in dmg_open() local
103 count = read_uint32(bs, info_begin + 4); in dmg_open()
104 if (count == 0) { in dmg_open()
107 info_end = info_begin + count; in dmg_open()
116 count = read_uint32(bs, offset); in dmg_open()
117 if(count==0) in dmg_open()
122 if (type == 0x6d697368 && count >= 244) { in dmg_open()
128 chunk_count = (count-204)/40; in dmg_open()
H A Draw-win32.c116 int count = nb_sectors * 512; in raw_read() local
121 ret = ReadFile(s->hfile, buf, count, &ret_count, &ov); in raw_read()
124 if (ret_count == count) in raw_read()
137 int count = nb_sectors * 512; in raw_write() local
142 ret = WriteFile(s->hfile, buf, count, &ret_count, &ov); in raw_write()
145 if (ret_count == count) in raw_write()
189 DWORD count; in raw_getlength() local
205 NULL, 0, &dg, sizeof(dg), &count, NULL); in raw_getlength()
/illumos-kvm-cmd/audio/
H A Dalsaaudio.c39 int count; member
136 for (i = 0; i < hlp->count; ++i) { in alsa_fini_poll()
142 hlp->count = 0; in alsa_fini_poll()
183 int err, count; in alsa_poll_handler() local
188 count = poll (hlp->pfds, hlp->count, 0); in alsa_poll_handler()
189 if (count < 0) { in alsa_poll_handler()
194 if (!count) { in alsa_poll_handler()
243 int i, count, err; in alsa_poll_helper() local
247 if (count <= 0) { in alsa_poll_helper()
267 for (i = 0; i < count; ++i) { in alsa_poll_helper()
[all …]
/illumos-kvm-cmd/bsd-user/
H A Dsyscall.c269 int count, int copy) in lock_iovec() argument
275 target_vec = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1); in lock_iovec()
278 for(i = 0;i < count; i++) { in lock_iovec()
295 int count, int copy) in unlock_iovec() argument
301 target_vec = lock_user(VERIFY_READ, target_addr, count * sizeof(struct target_iovec), 1); in unlock_iovec()
304 for(i = 0;i < count; i++) { in unlock_iovec()
356 int count = arg3; in do_freebsd_syscall() local
359 vec = alloca(count * sizeof(struct iovec)); in do_freebsd_syscall()
360 if (lock_iovec(VERIFY_READ, vec, arg2, count, 1) < 0) in do_freebsd_syscall()
362 ret = get_errno(writev(arg1, vec, count)); in do_freebsd_syscall()
[all …]
/illumos-kvm-cmd/tests/
H A Dsha1.c37 uint32_t count[2]; member
142 context->count[0] = context->count[1] = 0; in SHA1Init()
153 j = context->count[0]; in SHA1Update()
154 if ((context->count[0] += len << 3) < j) in SHA1Update()
155 context->count[1]++; in SHA1Update()
156 context->count[1] += (len>>29); in SHA1Update()
189 uint32_t t = context->count[i]; in SHA1Final()
197 finalcount[i] = (unsigned char)((context->count[(i >= 4 ? 0 : 1)] in SHA1Final()
203 while ((context->count[0] & 504) != 448) { in SHA1Final()

Completed in 55 milliseconds

12345