Home
last modified time | relevance | path

Searched refs:codeloc (Results 1 – 25 of 45) sorted by relevance

12

/third_party/libffi/testsuite/libffi.closures/
Dclosure_loc_fn0.c55 void *codeloc; in main() local
79 pcl = ffi_closure_alloc(sizeof(ffi_closure), &codeloc); in main()
81 CHECK(codeloc != NULL); in main()
84 (void *) 3 /* userdata */, codeloc) == FFI_OK); in main()
86 CHECK(memcmp(pcl, codeloc, sizeof(*pcl)) == 0); in main()
88 res = (*((closure_loc_test_type0)codeloc)) in main()
/third_party/python/Modules/_ctypes/
Dmalloc_closure.c110 void *Py_ffi_closure_alloc(size_t size, void** codeloc) in Py_ffi_closure_alloc() argument
116 return ffi_closure_alloc(size, codeloc); in Py_ffi_closure_alloc()
130 *codeloc = (ITEM*)((uintptr_t)item | 1); in Py_ffi_closure_alloc()
132 *codeloc = (void *)item; in Py_ffi_closure_alloc()
/third_party/libffi/src/m68k/
Dffi.c329 void *codeloc) in ffi_prep_closure_loc() argument
335 *(void **)(closure->tramp + 2) = codeloc; in ffi_prep_closure_loc()
349 rtems_cache_flush_multiple_data_lines( codeloc, FFI_TRAMPOLINE_SIZE ); in ffi_prep_closure_loc()
351 Ssystem(S_FLUSHCACHE, codeloc, FFI_TRAMPOLINE_SIZE); in ffi_prep_closure_loc()
353 syscall(SYS_cacheflush, codeloc, FLUSH_SCOPE_LINE, in ffi_prep_closure_loc()
/third_party/libffi/src/frv/
Dffi.c253 void *codeloc) in ffi_prep_closure_loc() argument
257 unsigned long cls = (long) codeloc; in ffi_prep_closure_loc()
266 tramp[0] = &((unsigned int *)codeloc)[2]; in ffi_prep_closure_loc()
289 "r" (codeloc)); in ffi_prep_closure_loc()
/third_party/libffi/src/powerpc/
Dffi.c153 void *codeloc) in ffi_prep_closure_loc() argument
156 return ffi_prep_closure_loc_linux64 (closure, cif, fun, user_data, codeloc); in ffi_prep_closure_loc()
158 return ffi_prep_closure_loc_sysv (closure, cif, fun, user_data, codeloc); in ffi_prep_closure_loc()
Dffi_darwin.c1044 void *codeloc) in ffi_prep_closure_loc() argument
1069 *((unsigned long *)&tramp[4]) = (unsigned long) codeloc; /* context */ in ffi_prep_closure_loc()
1080 tramp[3] = (unsigned long) codeloc; /* context */ in ffi_prep_closure_loc()
1087 flush_range(codeloc, FFI_TRAMPOLINE_SIZE); in ffi_prep_closure_loc()
1100 tramp_aix->static_chain = codeloc; in ffi_prep_closure_loc()
/third_party/libffi/src/
Draw_api.c229 void *codeloc) in ffi_prep_raw_closure_loc() argument
236 codeloc, in ffi_prep_raw_closure_loc()
237 codeloc); in ffi_prep_raw_closure_loc()
Djava_raw_api.c341 void *codeloc) in ffi_prep_java_raw_closure_loc() argument
348 codeloc, in ffi_prep_java_raw_closure_loc()
349 codeloc); in ffi_prep_java_raw_closure_loc()
/third_party/libffi/src/arc/
Dffi.c243 void *user_data, void *codeloc) in ffi_prep_closure_loc() argument
250 FFI_ASSERT (tramp == codeloc); in ffi_prep_closure_loc()
263 cacheflush (codeloc, FFI_TRAMPOLINE_SIZE, BCACHE); in ffi_prep_closure_loc()
/third_party/libffi/src/mips/
Dffi.c703 void *codeloc) in ffi_prep_closure_loc() argument
707 char *clear_location = (char *) codeloc; in ffi_prep_closure_loc()
732 tramp[2] = 0x3c0c0000 | ((unsigned)codeloc >> 16); in ffi_prep_closure_loc()
740 tramp[4] = 0x358c0000 | ((unsigned)codeloc & 0xffff); in ffi_prep_closure_loc()
746 tramp[1] = 0x3c0c0000 | ((unsigned long)codeloc >> 48); in ffi_prep_closure_loc()
750 tramp[3] = 0x358c0000 | (((unsigned long)codeloc >> 32) & 0xffff); in ffi_prep_closure_loc()
758 tramp[7] = 0x358c0000 | (((unsigned long)codeloc >> 16) & 0xffff); in ffi_prep_closure_loc()
772 tramp[12] = 0x358c0000 | ((unsigned long)codeloc & 0xffff); in ffi_prep_closure_loc()
/third_party/libffi/src/x86/
Dffi.c534 void *codeloc) in ffi_prep_closure_loc() argument
562 *(void **)(tramp + 1) = codeloc; in ffi_prep_closure_loc()
566 *(unsigned *)(tramp + 6) = (unsigned)dest - ((unsigned)codeloc + 10); in ffi_prep_closure_loc()
623 void *codeloc) in ffi_prep_raw_closure_loc() argument
655 *(void **)(tramp + 1) = codeloc; in ffi_prep_raw_closure_loc()
659 *(unsigned *)(tramp + 6) = (unsigned)dest - ((unsigned)codeloc + 10); in ffi_prep_raw_closure_loc()
/third_party/libffi/src/sh64/
Dffi.c301 void *codeloc) in ffi_prep_closure_loc() argument
326 tramp[5] = 0xcc000010 | (((UINT32) codeloc) >> 16) << 10; in ffi_prep_closure_loc()
327 tramp[6] = 0xc8000010 | (((UINT32) codeloc) & 0xffff) << 10; in ffi_prep_closure_loc()
336 "r"(codeloc)); in ffi_prep_closure_loc()
/third_party/libffi/src/m88k/
Dffi.c370 void *user_data, void *codeloc) in ffi_prep_closure_loc() argument
372 unsigned int *tramp = (unsigned int *) codeloc; in ffi_prep_closure_loc()
393 ffi_cacheflush_OBSD((unsigned int)codeloc, FFI_TRAMPOLINE_SIZE); in ffi_prep_closure_loc()
/third_party/libffi/include/
Dffi-arm.h335 void*codeloc);
402 void *codeloc);
415 void *codeloc);
Dffi-x86_64.h335 void*codeloc);
402 void *codeloc);
415 void *codeloc);
Dffi-aarch64.h335 void*codeloc);
402 void *codeloc);
415 void *codeloc);
/third_party/libffi/msvc_build/aarch64/aarch64_include/
Dffi.h348 void*codeloc);
415 void *codeloc);
428 void *codeloc);
/third_party/libffi/src/arm/
Dffi.c576 void *user_data, void *codeloc) in ffi_prep_closure_loc() argument
590 void **config = (void **)((uint8_t *)codeloc - PAGE_MAX_SIZE); in ffi_prep_closure_loc()
604 msync(codeloc, 8, 0x1000000); /* clear insn map */ in ffi_prep_closure_loc()
609 __clear_cache(codeloc, codeloc + 8); /* clear insn map */ in ffi_prep_closure_loc()
/third_party/libffi/src/vax/
Dffi.c244 void *user_data, void *codeloc) in ffi_prep_closure_loc() argument
246 char *tramp = (char *) codeloc; in ffi_prep_closure_loc()
/third_party/libffi/src/moxie/
Dffi.c262 void *codeloc) in ffi_prep_closure_loc() argument
266 unsigned long cls = (long) codeloc; in ffi_prep_closure_loc()
/third_party/libffi/src/microblaze/
Dffi.c280 void* user_data, void* codeloc) in ffi_prep_closure_loc() argument
283 unsigned long cls = (unsigned long)codeloc; in ffi_prep_closure_loc()
/third_party/libffi/src/or1k/
Dffi.c269 void *codeloc) in ffi_prep_closure_loc() argument
273 unsigned long cls = (unsigned long) codeloc; in ffi_prep_closure_loc()
/third_party/libffi/src/metag/
Dffi.c245 void *codeloc) in ffi_prep_closure_loc() argument
257 (unsigned int)codeloc); in ffi_prep_closure_loc()
/third_party/libffi/src/sh/
Dffi.c461 void *codeloc) in ffi_prep_closure_loc() argument
482 *(void **) &tramp[2] = (void *)codeloc; /* ctx */ in ffi_prep_closure_loc()
491 __ic_invalidate(codeloc); in ffi_prep_closure_loc()
/third_party/libffi/src/tile/
Dffi.c219 void *codeloc) in ffi_prep_closure_loc() argument
264 delta = (intptr_t)ffi_closure_tile - (intptr_t)codeloc; in ffi_prep_closure_loc()

12