Lines Matching refs:type
316 #define KALLOC_TYPE_DEFINE(var, type, flags) \ argument
317 _KALLOC_TYPE_DEFINE(var, type, flags)
538 #define kalloc_type_require(type, value) ({ \ argument
539 static KALLOC_TYPE_DEFINE(kt_view_var, type, \
560 #define kalloc_type_2(type, flags) ({ \ argument
561 static KALLOC_TYPE_DEFINE(kt_view_var, type, KT_SHARED_ACCT); \
562 (type *)kalloc_type_impl(kt_view_var, flags); \
565 #define kfree_type_2(type, elem) ({ \ argument
566 static KALLOC_TYPE_DEFINE(kt_view_var, type, KT_SHARED_ACCT); \
570 #define kfree_type_3(type, count, elem) \ argument
571 kfree(elem, kt_size(0, sizeof(type), count))
577 #define kalloc_type_3(type, count, flags) \ argument
578 ((type *)kalloc_flags(kt_size(0, sizeof(type), count), flags))
583 #define kalloc_type_tag_3(type, flags, tag) ({ \ argument
584 static KALLOC_TYPE_DEFINE(kt_view_var, type, \
586 (type *) kalloc_type_impl(kt_view_var, flags); \
589 #define kalloc_type_tag_4(type, count, flags, tag) \ argument
590 ((type *)kheap_alloc_tag(KHEAP_DEFAULT, kt_size(0, sizeof(type), count), flags, tag))
592 #define kalloc_type_tag_bt_4(type, count, flags, tag) \ argument
593 ((type *)kheap_alloc_tag_bt(KHEAP_DEFAULT, kt_size(0, sizeof(type), count), flags, tag))
603 #define kalloc_type_3(type, count, flags) ({ \ argument
605 ((type *)kalloc(kt_size(0, sizeof(type), count)); \
704 #define _KALLOC_TYPE_DEFINE(var, type, flags) \ argument
708 .kt_zv.zv_name = "site." #type, \
710 .kt_size = sizeof(type), \
711 .kt_signature = __builtin_xnu_type_signature(type), \
713 KALLOC_TYPE_SIZE_CHECK(sizeof(type));
719 #define KALLOC_TYPE_DEFINE_SITE(var, type, flags) \ argument
720 static _KALLOC_TYPE_DEFINE(var, type, flags)