| /xnu-11215/libkern/os/ |
| H A D | refcnt_internal.h | 5 os_ref_atomic_t ref_count; 21 os_ref_atomic_t grp_count; /* current reference count of group */ 47 void os_ref_retain_external(os_ref_atomic_t *, struct os_refgrp *); 195 os_ref_get_count_internal(os_ref_atomic_t *rc) in os_ref_get_count_internal() 236 os_ref_retain_raw(os_ref_atomic_t *rc, struct os_refgrp *grp) in os_ref_retain_raw() 248 os_ref_release_raw(os_ref_atomic_t *rc, struct os_refgrp *grp) in os_ref_release_raw() 308 os_ref_get_count_raw(os_ref_atomic_t *rc) in os_ref_get_count_raw() 352 os_ref_get_raw_mask(os_ref_atomic_t *rc) in os_ref_get_raw_mask() 358 os_ref_get_bits_mask(os_ref_atomic_t *rc, uint32_t b) in os_ref_get_bits_mask() 364 os_ref_get_count_mask(os_ref_atomic_t *rc, uint32_t b) in os_ref_get_count_mask() [all …]
|
| H A D | refcnt.h | 61 typedef _Atomic(os_ref_count_t) os_ref_atomic_t; typedef 302 static void os_ref_retain_raw(os_ref_atomic_t *, struct os_refgrp *); 307 static void os_ref_release_live_raw(os_ref_atomic_t *, struct os_refgrp *); 311 static void os_ref_retain_locked_raw(os_ref_atomic_t *, struct os_refgrp *); 315 static os_ref_count_t os_ref_get_count_raw(os_ref_atomic_t *rc); 349 static uint32_t os_ref_get_raw_mask(os_ref_atomic_t *rc); 350 static uint32_t os_ref_get_bits_mask(os_ref_atomic_t *rc, uint32_t b); 351 static os_ref_count_t os_ref_get_count_mask(os_ref_atomic_t *rc, uint32_t b); 354 os_ref_retain_mask(os_ref_atomic_t *rc, uint32_t b, struct os_refgrp *grp); 358 os_ref_retain_try_mask(os_ref_atomic_t *, uint32_t b, uint32_t reject_mask, [all …]
|
| H A D | refcnt.c | 68 os_ref_panic_retain(os_ref_atomic_t *rc) in os_ref_panic_retain() 86 os_ref_check_overflow(os_ref_atomic_t *rc, os_ref_count_t count) in os_ref_check_overflow() 324 __os_ref_retain(os_ref_atomic_t *rc, os_ref_count_t f, in __os_ref_retain() 351 __os_ref_retain_try(os_ref_atomic_t *rc, os_ref_count_t f, in __os_ref_retain_try() 390 _os_ref_release_inline(os_ref_atomic_t *rc, os_ref_count_t n, in _os_ref_release_inline() 455 os_ref_release_barrier_internal(os_ref_atomic_t *rc, in os_ref_release_barrier_internal() 469 os_ref_release_relaxed_internal(os_ref_atomic_t *rc, in os_ref_release_relaxed_internal() 483 __os_ref_retain_locked(os_ref_atomic_t *rc, os_ref_count_t f, in __os_ref_retain_locked() 538 os_ref_init_count_mask(os_ref_atomic_t *rc, uint32_t b, in os_ref_init_count_mask() 555 os_ref_retain_mask_inline(os_ref_atomic_t *rc, uint32_t n, in os_ref_retain_mask_inline() [all …]
|
| /xnu-11215/tests/ |
| H A D | os_refcnt.c | 147 os_ref_atomic_t rc; 197 os_ref_atomic_t rc; 217 os_ref_atomic_t rc; in do_bitwise_test() 264 os_ref_atomic_t rc = 0xaaaaaaaa; 349 os_ref_atomic_t rc; 365 os_ref_atomic_t rc; 380 os_ref_atomic_t rc; 398 os_ref_atomic_t rc; 415 os_ref_atomic_t rca = OS_REF_ATOMIC_INITIALIZER; 426 worker_ref(os_ref_atomic_t *rc, unsigned long *count) in worker_ref() [all …]
|
| /xnu-11215/osfmk/ipc/ |
| H A D | ipc_object.c | 191 static_assert(sizeof(os_ref_atomic_t) == sizeof(io->io_references)); in ipc_object_reference() 192 os_ref_retain_raw((os_ref_atomic_t *)&io->io_references, NULL); in ipc_object_reference() 209 if (os_ref_release_raw((os_ref_atomic_t *)&io->io_references, NULL) == 0) { in ipc_object_release() 225 if (os_ref_release_raw((os_ref_atomic_t *)&io->io_references, NULL) == 0) { in ipc_object_release_safe() 244 os_ref_release_live_raw((os_ref_atomic_t *)&io->io_references, NULL); in ipc_object_release_live()
|
| H A D | ipc_voucher.h | 74 os_ref_atomic_t iv_refs; /* reference count */
|
| H A D | ipc_space.h | 125 os_ref_atomic_t is_bits; /* holds refs, active, growing */
|
| H A D | ipc_importance.h | 63 os_ref_atomic_t iie_bits; /* type and refs */
|
| /xnu-11215/osfmk/kern/ |
| H A D | sync_sema.h | 57 os_ref_atomic_t ref_count; /* reference count */
|
| H A D | lock_group.h | 168 os_ref_atomic_t lck_grp_refcnt;
|
| H A D | turnstile.h | 358 os_ref_atomic_t ts_refcount; /* reference count for turnstiles */
|
| /xnu-11215/bsd/sys/ |
| H A D | proc_internal.h | 149 os_ref_atomic_t s_refcount; 203 os_ref_atomic_t pg_refcount; 204 os_ref_atomic_t pg_hashref; 328 os_ref_atomic_t p_refcount; /* number of outstanding users */ 329 os_ref_atomic_t p_waitref; /* number of users pending transition */
|
| H A D | tty.h | 149 os_ref_atomic_t t_refcnt;
|
| H A D | eventvar.h | 356 os_ref_atomic_t kqwl_retains; /* retain references */
|
| H A D | file_internal.h | 181 os_ref_atomic_t fg_count; /* reference count */
|
| /xnu-11215/bsd/miscfs/devfs/ |
| H A D | devfsdefs.h | 135 os_ref_atomic_t dn_refcount;
|
| /xnu-11215/osfmk/bank/ |
| H A D | bank_internal.h | 58 os_ref_atomic_t be_refs; /* Ref count */
|
| /xnu-11215/osfmk/vm/ |
| H A D | vm_object_xnu.h | 160 os_ref_atomic_t ref_count; /* Number of references */
|
| H A D | device_vm.c | 101 os_ref_atomic_t dev_pgr_hdr_ref;
|
| H A D | vm_swapfile_pager.c | 137 os_ref_atomic_t swp_pgr_hdr_ref; /* reference count */
|
| H A D | vm_map_xnu.h | 394 os_ref_atomic_t map_refcnt; /* Reference count */
|
| H A D | vm_compressor_pager.c | 151 os_ref_atomic_t cpgr_references;
|
| H A D | bsd_vm.c | 98 os_ref_atomic_t vn_pgr_hdr_ref;
|
| /xnu-11215/osfmk/mach/ |
| H A D | memory_object_types.h | 128 os_ref_atomic_t mo_ref;
|
| /xnu-11215/osfmk/arm64/sptm/pmap/ |
| H A D | pmap.h | 348 os_ref_atomic_t ref_count;
|