Lines Matching refs:abi_ulong
36 [CTLTYPE_ULONG] = sizeof(abi_ulong),
68 static const abi_ulong guest_max_mem = UINT32_MAX - 0x100c000 + 1;
70 static abi_ulong cap_memory(uint64_t mem) in cap_memory()
76 static abi_ulong scale_to_guest_pages(uint64_t pages) in scale_to_guest_pages()
82 pages = MIN(pages, guest_max_mem / (abi_ulong)TARGET_PAGE_SIZE); in scale_to_guest_pages()
99 static abi_ulong h2g_ulong_sat(u_long ul) in h2g_ulong_sat()
213 *(abi_ulong *)gp = tswap32(h2g_ulong_sat(*(u_long *)hp)); in h2g_old_sysctl()
271 (*(abi_ulong *)holdp) = tswapal(TARGET_USRSTACK); in do_freebsd_sysctl_oid()
273 holdlen = sizeof(abi_ulong); in do_freebsd_sysctl_oid()
279 (*(abi_ulong *)holdp) = tswapal(TARGET_PS_STRINGS); in do_freebsd_sysctl_oid()
281 holdlen = sizeof(abi_ulong); in do_freebsd_sysctl_oid()
332 holdlen = sizeof(abi_ulong); in do_freebsd_sysctl_oid()
344 (*(abi_ulong *)holdp) = tswapal((abi_ulong)lvalue); in do_freebsd_sysctl_oid()
381 (*(abi_ulong *)holdp) = tswapal((abi_ulong)lvalue); in do_freebsd_sysctl_oid()
383 holdlen = sizeof(abi_ulong); in do_freebsd_sysctl_oid()
391 (*(abi_ulong *)holdp) = tswapal((abi_ulong)TARGET_PAGE_SIZE); in do_freebsd_sysctl_oid()
392 ((abi_ulong *)holdp)[1] = 0; in do_freebsd_sysctl_oid()
394 holdlen = sizeof(abi_ulong) * 2; in do_freebsd_sysctl_oid()
481 abi_long do_freebsd_sysctlbyname(CPUArchState *env, abi_ulong namep, in do_freebsd_sysctlbyname()
482 int32_t namelen, abi_ulong oldp, abi_ulong oldlenp, abi_ulong newp, in do_freebsd_sysctlbyname()
483 abi_ulong newlen) in do_freebsd_sysctlbyname()
490 abi_ulong oldlen = 0; in do_freebsd_sysctlbyname()
494 if (!access_ok(VERIFY_WRITE, oldlenp, sizeof(abi_ulong)) || in do_freebsd_sysctlbyname()
541 abi_long do_freebsd_sysctl(CPUArchState *env, abi_ulong namep, int32_t namelen, in do_freebsd_sysctl()
542 abi_ulong oldp, abi_ulong oldlenp, abi_ulong newp, abi_ulong newlen) in do_freebsd_sysctl()
547 abi_ulong oldlen = 0; in do_freebsd_sysctl()
552 if (!access_ok(VERIFY_WRITE, oldlenp, sizeof(abi_ulong)) || in do_freebsd_sysctl()