Home
last modified time | relevance | path

Searched refs:type_t (Results 1 – 13 of 13) sorted by relevance

/xnu-11215/osfmk/kern/
H A Dstartup.h246 #define TUNABLE(type_t, var, boot_arg, default_value) \ argument
248 __TUNABLE(type_t, var, boot_arg)
270 type_t var = default_value; \
271 __TUNABLE(type_t, var, boot_arg)
278 TUNABLE(type_t, var, boot_arg, default_value)
402 type_t var = default_value; \
696 #define __startup_type_is_bool(type_t) __startup_tunable<type_t>::value
698 #define __startup_type_is_bool(type_t) __builtin_types_compatible_p(bool, type_t)
703 #define __TUNABLE(type_t, var, key) \
709 .var_len = sizeof(type_t), \
[all …]
H A Dsmr_types.h84 #define SMR_POINTER_DECL(name, type_t) \ argument
85 struct name { type_t volatile __smr_ptr; }
93 #define SMR_POINTER(type_t) \ argument
94 SMR_POINTER_DECL(, type_t)
H A Dzalloc.h1108 #define __ZONE_DECLARE_TYPE(var, type_t) __ZONE_DECLARE_TYPE2(var, type_t) argument
1188 __unsafe_forge_single(type_t *, \
1189 zalloc_permanent(sizeof(type_t), ZALIGN(type_t)))
1339 ((type_t *__zpercpu)zalloc_percpu_permanent(sizeof(type_t), ZALIGN(type_t)))
1737 #define ZONE_DECLARE(var, type_t) \ argument
1739 __ZONE_DECLARE_TYPE(var, type_t)
1751 __ZONE_DECLARE_TYPE(id, type_t)
1791 __ZONE_DECLARE_TYPE(var, type_t)
1806 ZONE_DECLARE_ID(zid, type_t); \
2426 #define ZCACHE_DECLARE(id, type_t) \ argument
[all …]
H A Dsmr_hash.h254 #define SMRH_TRAITS_DEFINE(name, type_t, link_field, ...) \ argument
256 type_t *smrht_obj_type[0]; \
259 .link_offset = offsetof(type_t, link_field), \
285 __auto_type o = __container_of(link, const type_t, link_field); \
298 __auto_type o = __container_of(link, const type_t, link_field); \
303 SMRH_TRAITS_DEFINE(name, type_t, link_field, \
304 .key_hash = sizeof(((type_t *)NULL)->key_field) > 4 \
331 #define SMRH_TRAITS_DEFINE_STR(name, type_t, link_field, ...) \ argument
332 SMRH_TRAITS_DEFINE(name, type_t, link_field, \
357 #define SMRH_TRAITS_DEFINE_MEM(name, type_t, link_field, ...) \ argument
[all …]
H A Dpercpu.h51 #define PERCPU_DECL(type_t, name) \ argument
52 extern type_t __PERCPU_NAME(name)
H A Dsmr.h326 #define smrq_entered_first(head, type_t, field) \ argument
327 __container_of_safe(smr_entered_load(&(head)->first), type_t, field)
360 #define smrq_serialized_first(head, type_t, link) \ argument
361 __container_of_safe(smr_serialized_load(&(head)->first), type_t, link)
/xnu-11215/bsd/sys/
H A Dcommpage.h62 #define COMM_PAGE_SLOT_TYPE(type_t) type_t __attribute__((address_space(1))) volatile * argument
64 #define COMM_PAGE_SLOT_TYPE(type_t) type_t volatile * argument
76 #define COMM_PAGE_SLOT(type_t, name) ((COMM_PAGE_SLOT_TYPE(type_t))_COMM_PAGE_##name) argument
94 #define COMM_PAGE_READ(type_t, slot) (*(COMM_PAGE_SLOT(type_t, slot))) argument
H A Dcdefs.h1224 #define __container_of(ptr, type_t, field) __extension__({ \ argument
1225 const __typeof__(((type_t *)NULL)->field) *__ptr = (ptr); \
1226 uintptr_t __result = (uintptr_t)__ptr - offsetof(type_t, field); \
1228 __unsafe_forge_single(type_t *, __result); \
1231 #define __container_of_safe(ptr, type_t, field) __extension__({ \ argument
1232 const __typeof__(((type_t *)NULL)->field) *__ptr_or_null = (ptr); \
1233 __ptr_or_null ? __container_of(__ptr_or_null, type_t, field) : NULL; \
/xnu-11215/osfmk/vm/
H A Dvm_sanitize.c1308 static_assert(sizeof(type_ut) == sizeof(type_t)); \
1309 static_assert(__alignof__(type_ut) == __alignof__(type_t)); \
1349 type_t u0, type_t u1, type_t u2, type_t u3, \
1350 type_t u4, type_t u5, type_t u6, type_t u7, \
1351 type_t u8, type_t u9, type_t u10, type_t u11, \
1352 type_t u12, type_t u13, type_t u14, type_t u15, \
1371 type_t t_ret = vm_sanitize_test_##type_t##_callee( \
1408 #define TEST_UT_TYPE_ABI(type_t, type_ut, equal) \ argument
1409 TEST_UT_TYPE_ABI_UT_CALLEE(type_t, type_ut, equal, vm_sanitize_test_##type_t##_args) \
1411 TEST_UT_TYPE_ABI_T_CALLER(type_t, type_ut, equal, vm_sanitize_test_##type_t##_args) \
[all …]
H A Dvm_sanitize_internal.h368 #define VM_SANITIZE_UNSAFE_FITS(_var, type_t) ({ \ argument
370 __tmp == (type_t)__tmp; \
H A Dvm_map.c1576 #define relocate(type_t, field) ({ \ in vm_map_relocate_early_elem() argument
1577 typeof(((type_t)NULL)->field) *__field = &((type_t)new_addr)->field; \ in vm_map_relocate_early_elem()
/xnu-11215/doc/allocators/
H A Dapi-basics.md190 <tt>IONewData(type_t, count)</tt><br/>
192 <tt>IODeleteData(ptr, type_t, count)</tt>
202 <tt>kalloc_type(type_t, flags)</tt><br/>
203 <tt>kfree_type(type_t, ptr)</tt>
207 <tt>IOMallocType(type_t)</tt><br/>
208 <tt>IOFreeType(ptr, type_t)</tt>
225 <tt>kfree_type(type_t, count, ptr)</tt>
229 <tt>IONew(type_t, count)</tt><br/>
230 <tt>IONewZero(type_t, count)</tt><br/>
231 <tt>IODelete(ptr, type_t, count)</tt>
[all …]
/xnu-11215/osfmk/ipc/
H A Dmach_msg.c136 #define mach_copyout_field(kaddr, uaddr, type_t, field) \ argument
137 mach_copyout((kaddr), (uaddr) + offsetof(type_t, field), \
138 sizeof(((type_t *)0)->field))