Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 87) sorted by relevance

1234

/illumos-kvm-cmd/
H A Dcpu-all.h218 *(uint8_t *)ptr = v; in stb_p()
277 uint8_t *p = ptr; in stw_le_p()
288 uint8_t *p = ptr; in stl_le_p()
298 uint8_t *p = ptr; in stq_le_p()
311 u.i = ldl_le_p(ptr); in ldfl_le_p()
322 stl_le_p(ptr, u.i); in stfl_le_p()
392 *(float32 *)ptr = v; in stfl_le_p()
397 *(float64 *)ptr = v; in stfq_le_p()
451 a = ldl_be_p(ptr); in ldq_be_p()
500 u.i = ldl_be_p(ptr); in ldfl_be_p()
[all …]
H A Dqemu-malloc.c29 void qemu_free(void *ptr) in qemu_free() argument
31 trace_qemu_free(ptr); in qemu_free()
32 free(ptr); in qemu_free()
46 void *ptr; in qemu_malloc() local
52 return ptr; in qemu_malloc()
69 char *ptr; in qemu_mallocz() local
81 return ptr; in qemu_mallocz()
87 void *ptr; in qemu_mallocz() local
94 return ptr; in qemu_mallocz()
100 char *ptr; in qemu_strdup() local
[all …]
H A Dia64intrin.h13 #define ia64_cmpxchg(sem,ptr,o,n,s) ({ \ argument
37 #define cmpxchg_acq(ptr,o,n) ia64_cmpxchg(acq,ptr,o,n,sizeof(*ptr)) argument
38 #define cmpxchg_rel(ptr,o,n) ia64_cmpxchg(rel,ptr,o,n,sizeof(*ptr)) argument
70 #define ia64_cmpxchg1_acq(ptr, new, old) \ argument
79 #define ia64_cmpxchg1_rel(ptr, new, old) \ argument
88 #define ia64_cmpxchg2_acq(ptr, new, old) \ argument
97 #define ia64_cmpxchg2_rel(ptr, new, old) \ argument
107 #define ia64_cmpxchg4_acq(ptr, new, old) \ argument
116 #define ia64_cmpxchg4_rel(ptr, new, old) \ argument
125 #define ia64_cmpxchg8_acq(ptr, new, old) \ argument
[all …]
H A Doslib-win32.c34 void *qemu_oom_check(void *ptr) in qemu_oom_check() argument
36 if (ptr == NULL) { in qemu_oom_check()
40 return ptr; in qemu_oom_check()
45 void *ptr; in qemu_memalign() local
52 return ptr; in qemu_memalign()
57 void *ptr; in qemu_vmalloc() local
66 trace_qemu_vmalloc(size, ptr); in qemu_vmalloc()
67 return ptr; in qemu_vmalloc()
70 void qemu_vfree(void *ptr) in qemu_vfree() argument
72 trace_qemu_vfree(ptr); in qemu_vfree()
[all …]
H A Dqjson.c138 const char *ptr; in to_json() local
140 ptr = qstring_get_str(val); in to_json()
142 while (*ptr) { in to_json()
144 (ptr[1] & 0x80) && (ptr[2] & 0x80)) { in to_json()
150 wchar |= (ptr[2] & 0x3F); in to_json()
151 ptr += 2; in to_json()
155 } else if ((ptr[0] & 0xE0) == 0xC0 && (ptr[1] & 0x80)) { in to_json()
160 wchar |= (ptr[1] & 0x3F); in to_json()
161 ptr++; in to_json()
165 } else switch (ptr[0]) { in to_json()
[all …]
H A Doslib-posix.c34 void *qemu_oom_check(void *ptr) in qemu_oom_check() argument
36 if (ptr == NULL) { in qemu_oom_check()
40 return ptr; in qemu_oom_check()
45 void *ptr; in qemu_memalign() local
48 ret = posix_memalign(&ptr, alignment, size); in qemu_memalign()
55 ptr = qemu_oom_check(valloc(size)); in qemu_memalign()
59 trace_qemu_memalign(alignment, size, ptr); in qemu_memalign()
60 return ptr; in qemu_memalign()
73 void qemu_vfree(void *ptr) in qemu_vfree() argument
75 trace_qemu_vfree(ptr); in qemu_vfree()
[all …]
H A Djson-parser.c175 if (*ptr == '"') { in qstring_from_escaped_str()
180 ptr++; in qstring_from_escaped_str()
183 while (*ptr && in qstring_from_escaped_str()
186 ptr++; in qstring_from_escaped_str()
191 ptr++; in qstring_from_escaped_str()
195 ptr++; in qstring_from_escaped_str()
199 ptr++; in qstring_from_escaped_str()
203 ptr++; in qstring_from_escaped_str()
207 ptr++; in qstring_from_escaped_str()
211 ptr++; in qstring_from_escaped_str()
[all …]
H A Dsoftmmu_header.h82 addr = ptr; in glue()
96 static inline int glue(glue(lds, SUFFIX), MEMSUFFIX)(target_ulong ptr) in glue()
103 addr = ptr; in glue()
128 addr = ptr; in glue()
145 static inline float64 glue(ldfq, MEMSUFFIX)(target_ulong ptr) in glue()
151 u.i = glue(ldq, MEMSUFFIX)(ptr); in glue()
155 static inline void glue(stfq, MEMSUFFIX)(target_ulong ptr, float64 v) in glue()
162 glue(stq, MEMSUFFIX)(ptr, u.i); in glue()
167 static inline float32 glue(ldfl, MEMSUFFIX)(target_ulong ptr) in glue()
173 u.i = glue(ldl, MEMSUFFIX)(ptr); in glue()
[all …]
H A Darm-semi.c437 uint32_t *ptr; in do_arm_semihosting() local
461 ptr[0] = tswap32(ts->heap_base); in do_arm_semihosting()
462 ptr[1] = tswap32(ts->heap_limit); in do_arm_semihosting()
463 ptr[2] = tswap32(ts->stack_base); in do_arm_semihosting()
464 ptr[3] = tswap32(0); /* Stack limit. */ in do_arm_semihosting()
465 unlock_user(ptr, ARG(0), 16); in do_arm_semihosting()
472 ptr[0] = tswap32(limit / 2); in do_arm_semihosting()
473 ptr[1] = tswap32(limit); in do_arm_semihosting()
474 ptr[2] = tswap32(limit); /* Stack base */ in do_arm_semihosting()
475 ptr[3] = tswap32(0); /* Stack limit. */ in do_arm_semihosting()
[all …]
H A Dqemu-error.c134 cur_loc->ptr = argv + idx; in loc_set_cmdline()
146 cur_loc->ptr = fname; in loc_set_file()
176 argp = cur_loc->ptr; in error_print_loc()
184 error_printf("%s:", (const char *)cur_loc->ptr); in error_print_loc()
H A Diov.c38 uint8_t *ptr; in iov_to_buf() local
42 ptr = buf; in iov_to_buf()
49 memcpy(ptr + buf_off, iov[i].iov_base + (offset - iov_off), len); in iov_to_buf()
H A Dcutils.c55 int strstart(const char *str, const char *val, const char **ptr) in strstart() argument
66 if (ptr) in strstart()
67 *ptr = p; in strstart()
71 int stristart(const char *str, const char *val, const char **ptr) in stristart() argument
82 if (ptr) in stristart()
83 *ptr = p; in stristart()
H A Dosdep.h35 #define container_of(ptr, type, member) ({ \ argument
36 const typeof(((type *) 0)->member) *__mptr = (ptr); \
91 void qemu_vfree(void *ptr);
/illumos-kvm-cmd/hw/
H A Dqdev-properties.c8 void *ptr = dev; in qdev_get_prop_ptr() local
9 ptr += prop->offset; in qdev_get_prop_ptr()
10 return ptr; in qdev_get_prop_ptr()
277 if (*ptr) in parse_string()
291 if (!*ptr) in print_string()
317 *ptr = bs; in parse_drive()
325 if (*ptr) { in free_drive()
335 *ptr ? bdrv_get_device_name(*ptr) : "<null>"); in print_drive()
363 if (*ptr && (*ptr)->label) { in print_chr()
397 if (*ptr && (*ptr)->name) { in print_netdev()
[all …]
H A Dds1338.c17 int ptr; member
56 res = s->nvram[s->ptr]; in ds1338_recv()
57 s->ptr = (s->ptr + 1) & 0xff; in ds1338_recv()
65 s->ptr = data; in ds1338_send()
69 s->nvram[s->ptr - 8] = data; in ds1338_send()
109 s->ptr = (s->ptr + 1) & 0xff; in ds1338_send()
H A Dsmc91c111.c28 uint16_t ptr; member
268 s->ptr = 0; in smc91c111_reset()
397 SET_LOW(ptr, value); in smc91c111_writeb()
400 SET_HIGH(ptr, value); in smc91c111_writeb()
407 if (s->ptr & 0x8000) in smc91c111_writeb()
411 p = s->ptr & 0x07ff; in smc91c111_writeb()
413 s->ptr = (s->ptr & 0xf800) | ((s->ptr + 1) & 0x7ff); in smc91c111_writeb()
544 return s->ptr & 0xff; in smc91c111_readb()
552 if (s->ptr & 0x8000) in smc91c111_readb()
556 p = s->ptr & 0x07ff; in smc91c111_readb()
[all …]
H A Dqdev-addr.c9 target_phys_addr_t *ptr = qdev_get_prop_ptr(dev, prop); in parse_taddr() local
11 *ptr = strtoull(str, NULL, 16); in parse_taddr()
17 target_phys_addr_t *ptr = qdev_get_prop_ptr(dev, prop); in print_taddr() local
18 return snprintf(dest, len, "0x" TARGET_FMT_plx, *ptr); in print_taddr()
/illumos-kvm-cmd/tests/
H A Dqruncom.c35 stl((uint8_t *)ptr, e1); in set_gate()
36 stl((uint8_t *)ptr + 4, e2); in set_gate()
47 void qemu_free(void *ptr) in qemu_free() argument
49 free(ptr); in qemu_free()
59 void *ptr; in qemu_mallocz() local
60 ptr = qemu_malloc(size); in qemu_mallocz()
61 if (!ptr) in qemu_mallocz()
63 memset(ptr, 0, size); in qemu_mallocz()
64 return ptr; in qemu_mallocz()
72 void qemu_vfree(void *ptr) in qemu_vfree() argument
[all …]
/illumos-kvm-cmd/target-i386/
H A Dexec.h210 static inline CPU86_LDouble helper_fldt(target_ulong ptr) in helper_fldt() argument
217 upper = lduw(ptr + 8); in helper_fldt()
221 ll = (ldq(ptr) >> 11) & ((1LL << 52) - 1); in helper_fldt()
231 static inline void helper_fstt(CPU86_LDouble f, target_ulong ptr) in helper_fstt() argument
238 stq(ptr, (MANTD(temp) << 11) | (1LL << 63)); in helper_fstt()
242 stw(ptr + 8, e); in helper_fstt()
248 static inline CPU86_LDouble helper_fldt(target_ulong ptr) in helper_fldt() argument
252 temp.l.lower = ldq(ptr); in helper_fldt()
253 temp.l.upper = lduw(ptr + 8); in helper_fldt()
262 stq(ptr, temp.l.lower); in helper_fstt()
[all …]
H A Dop_helper.c142 target_ulong ptr; in load_segment() local
287 target_ulong ptr; in switch_tss() local
890 target_ulong ptr; in do_interrupt64() local
1164 target_ulong ptr; in do_interrupt_user() local
2020 target_ulong ptr; in helper_lldt() local
2067 target_ulong ptr; in helper_ltr() local
3939 mem_ref = ptr; in helper_fbst_ST0()
4325 ptr += 10; in helper_fsave()
4353 ptr += 10; in helper_frstor()
4364 if (ptr & 0xf) { in helper_fxsave()
[all …]
/illumos-kvm-cmd/linux-user/
H A Duaccess.c44 uint8_t *ptr; in target_strlen() local
51 ptr = lock_user(VERIFY_READ, guest_addr, max_len, 1); in target_strlen()
52 if (!ptr) in target_strlen()
54 len = qemu_strnlen((const char *)ptr, max_len); in target_strlen()
55 unlock_user(ptr, guest_addr, 0); in target_strlen()
H A Dflatload.c104 static int target_pread(int fd, abi_ulong ptr, abi_ulong len, in target_pread() argument
110 buf = lock_user(VERIFY_WRITE, ptr, len, 0); in target_pread()
112 unlock_user(buf, ptr, len); in target_pread()
343 uint32_t *ptr; in old_reloc() local
351 ptr = (uint32_t *) ((unsigned long) libinfo->start_code + offset); in old_reloc()
353 ptr = (uint32_t *) ((unsigned long) libinfo->start_data + offset); in old_reloc()
359 offset, ptr, (int)*ptr, segment[reloc_type]); in old_reloc()
364 *ptr += libinfo->start_code; in old_reloc()
367 *ptr += libinfo->start_data; in old_reloc()
370 *ptr += libinfo->end_data; in old_reloc()
[all …]
/illumos-kvm-cmd/bsd-user/
H A Duaccess.c44 uint8_t *ptr; in target_strlen() local
51 ptr = lock_user(VERIFY_READ, guest_addr, max_len, 1); in target_strlen()
52 if (!ptr) in target_strlen()
54 len = qemu_strnlen((char *)ptr, max_len); in target_strlen()
55 unlock_user(ptr, guest_addr, 0); in target_strlen()
/illumos-kvm-cmd/net/
H A Dtap-solaris.c63 char *ptr; in tap_alloc() local
75 ptr = dev; in tap_alloc()
76 while( *ptr && !qemu_isdigit((int)*ptr) ) ptr++; in tap_alloc()
77 ppa = atoi(ptr); in tap_alloc()
/illumos-kvm-cmd/ui/
H A Dvnc-enc-hextile.c29 static void hextile_enc_cord(uint8_t *ptr, int x, int y, int w, int h) in hextile_enc_cord() argument
31 ptr[0] = ((x & 0x0F) << 4) | (y & 0x0F); in hextile_enc_cord()
32 ptr[1] = (((w - 1) & 0x0F) << 4) | ((h - 1) & 0x0F); in hextile_enc_cord()

Completed in 129 milliseconds

1234