| /xnu-8792.41.9/security/ |
| H A D | mac_label.c | 177 static intptr_t 178 mac_label_slot_encode(intptr_t p) in mac_label_slot_encode() 180 return (p == 0) ? (intptr_t)MAC_LABEL_NULL_SLOT : p; in mac_label_slot_encode() 183 static intptr_t 184 mac_label_slot_decode(intptr_t p) in mac_label_slot_decode() 186 return (p == (intptr_t)MAC_LABEL_NULL_SLOT) ? 0 : p; in mac_label_slot_decode() 192 intptr_t 198 return mac_label_slot_decode((intptr_t) label->l_perpolicy[slot]); in mac_label_get() 209 mac_label_set(struct label *label, int slot, intptr_t v) in mac_label_set() 213 if (v == (intptr_t)MAC_LABEL_NULL_SLOT) { in mac_label_set()
|
| H A D | mac_policy.h | 6424 intptr_t mac_label_get(struct label *l, int slot); 6428 void mac_label_set(struct label *l, int slot, intptr_t v); 6437 intptr_t mac_vnode_label_get(struct vnode *vp, int slot, intptr_t sentinel); 6438 void mac_vnode_label_set(struct vnode *vp, int slot, intptr_t v);
|
| H A D | mac_base.c | 1790 intptr_t 1797 mac_label_set(struct label *l __unused, int slot __unused, intptr_t v __unused) in mac_label_set()
|
| /xnu-8792.41.9/bsd/skywalk/nexus/flowswitch/flow/ |
| H A D | flow_owner.c | 75 P2ROUNDUP((intptr_t)fob_buf + sizeof(void *), cache_sz); in flow_owner_buckets_alloc() 76 fob_pbuf = (void **)((intptr_t)fob - sizeof(void *)); in flow_owner_buckets_alloc() 77 ASSERT((intptr_t)fob_pbuf >= (intptr_t)fob_buf); in flow_owner_buckets_alloc() 78 ASSERT(((intptr_t)fob + (fob_cnt * (*fob_sz))) <= in flow_owner_buckets_alloc() 79 ((intptr_t)fob_buf + fob_tot_sz)); in flow_owner_buckets_alloc() 95 fob_pbuf = (void **)((intptr_t)fob - sizeof(void *)); in flow_owner_buckets_free() 553 if ((intptr_t)a->fo_context > (intptr_t)b->fo_context) { in fo_cmp() 555 } else if ((intptr_t)a->fo_context < (intptr_t)b->fo_context) { in fo_cmp()
|
| H A D | flow_route.c | 160 P2ROUNDUP((intptr_t)frb_buf + sizeof(void *), cache_sz); in flow_route_buckets_alloc() 161 frb_pbuf = (void **)((intptr_t)frb - sizeof(void *)); in flow_route_buckets_alloc() 162 ASSERT((intptr_t)frb_pbuf >= (intptr_t)frb_buf); in flow_route_buckets_alloc() 163 ASSERT(((intptr_t)frb + (frb_cnt * (*frb_sz))) <= in flow_route_buckets_alloc() 164 ((intptr_t)frb_buf + frb_tot_sz)); in flow_route_buckets_alloc() 180 frb_pbuf = (void **)((intptr_t)frb - sizeof(void *)); in flow_route_buckets_free() 272 P2ROUNDUP((intptr_t)frib_buf + sizeof(void *), cache_sz); in flow_route_id_buckets_alloc() 273 frib_pbuf = (void **)((intptr_t)frib - sizeof(void *)); in flow_route_id_buckets_alloc() 274 ASSERT((intptr_t)frib_pbuf >= (intptr_t)frib_buf); in flow_route_id_buckets_alloc() 275 ASSERT(((intptr_t)frib + (frib_cnt * (*frib_sz))) <= in flow_route_id_buckets_alloc() [all …]
|
| H A D | flow_var.h | 840 ((intptr_t)fm->fm_owner_buckets + in flow_mgr_get_fob_at_idx() 849 ((intptr_t)fm->fm_route_buckets + in flow_mgr_get_frb_at_idx() 858 ((intptr_t)fm->fm_route_id_buckets + in flow_mgr_get_frib_at_idx() 867 ASSERT(((intptr_t)bkt - (intptr_t)fm->fm_owner_buckets) % in flow_mgr_get_fob_idx() 869 return (uint32_t)(((intptr_t)bkt - (intptr_t)fm->fm_owner_buckets) / in flow_mgr_get_fob_idx()
|
| /xnu-8792.41.9/bsd/kern/ |
| H A D | mcache.c | 300 P2ROUNDUP((intptr_t)buf + sizeof(void *), CPU_CACHE_LINE_SIZE); in mcache_create_common() 301 pbuf = (void **)((intptr_t)cp - sizeof(void *)); in mcache_create_common() 930 pbuf = (void **)((intptr_t)cp - sizeof(void *)); in mcache_destroy() 957 base = (void *)P2ROUNDUP((intptr_t)buf + sizeof(u_int64_t), in mcache_slab_alloc() 964 pbuf = (void **)((intptr_t)base - sizeof(void *)); in mcache_slab_alloc() 967 VERIFY(((intptr_t)base + cp->mc_bufsize) <= in mcache_slab_alloc() 968 ((intptr_t)buf + cp->mc_chunksize)); in mcache_slab_alloc() 978 VERIFY(((intptr_t)base + rsize) <= in mcache_slab_alloc() 979 ((intptr_t)buf + cp->mc_chunksize)); in mcache_slab_alloc() 1019 pbuf = (void **)((intptr_t)base - sizeof(void *)); in mcache_slab_free() [all …]
|
| /xnu-8792.41.9/tools/tests/execperf/ |
| H A D | run.c | 36 ret = pthread_create(&threads[i], NULL, work, (void *)(intptr_t)count); in main() 63 int count = (int)(intptr_t)arg; in work()
|
| /xnu-8792.41.9/osfmk/kdp/ml/i386/ |
| H A D | kdp_x86_common.c | 92 addr64_t cur_virt_dst = PAL_KDP_ADDR((addr64_t)(intptr_t)dst); in kdp_machine_vm_read() 185 cur_virt_dst = (addr64_t)(intptr_t)dst; in kdp_machine_phys_read() 235 cur_virt_src = PAL_KDP_ADDR((addr64_t)(intptr_t)src); in kdp_machine_vm_write() 295 cur_virt_src = (addr64_t)(intptr_t)src; in kdp_machine_phys_write()
|
| /xnu-8792.41.9/bsd/sys/_types/ |
| H A D | _intptr_t.h | 32 typedef __darwin_intptr_t intptr_t; typedef
|
| /xnu-8792.41.9/osfmk/mach/machine/ |
| H A D | machine_types.defs | 50 * The [u]intptr_t types for the native 63 type intptr_t = int64_t; 66 type intptr_t = int32_t;
|
| /xnu-8792.41.9/osfmk/kern/ |
| H A D | syscall_subr.c | 180 int option = (int)(intptr_t)parameter; in thread_switch_continue() 293 thread_run(self, thread_switch_continue, (void *)(intptr_t)option, pulled_thread); in thread_switch() 319 thread_yield_with_continuation(thread_switch_continue, (void *)(intptr_t)option); in thread_switch()
|
| /xnu-8792.41.9/bsd/dev/dtrace/ |
| H A D | dtrace_glue.c | 668 intptr_t mem_aligned; in dt_kmem_alloc_aligned_tag() 685 mem_aligned = (intptr_t) (((intptr_t) mem + align + hdr_size) & ~(align - 1)); in dt_kmem_alloc_aligned_tag() 718 intptr_t ptr = (intptr_t) buf; in dt_kmem_free_aligned()
|
| /xnu-8792.41.9/osfmk/mach/ |
| H A D | vm_param.h | 544 intptr_t addr = (intptr_t)packed; in vm_unpack_pointer()
|
| H A D | dyld_kernel_fixups.h | 583 …uint64_t targetValue = (top8Bits << 13) | (((intptr_t)(bottom43Bits << 21) >> 21) & 0x00FFFFFFFFFF… in rebase_chain()
|
| /xnu-8792.41.9/bsd/skywalk/mem/ |
| H A D | skmem_cache.c | 638 P2ROUNDUP((intptr_t)buf + sizeof(void *), CHANNEL_CACHE_ALIGN_MAX); in skmem_cache_create() 639 void **pbuf = (void **)((intptr_t)skm - sizeof(void *)); in skmem_cache_create() 899 void **pbuf = (void **)((intptr_t)skm - sizeof(void *)); in skmem_cache_destroy() 1273 buf = (void *)P2ROUNDUP((intptr_t)obj + sizeof(u_int64_t), in skmem_slab_alloc_pseudo_locked() 1280 void **pbuf = (void **)((intptr_t)buf - sizeof(void *)); in skmem_slab_alloc_pseudo_locked() 1283 VERIFY(((intptr_t)buf + skm->skm_bufsize) <= in skmem_slab_alloc_pseudo_locked() 1284 ((intptr_t)obj + skm->skm_objsize)); in skmem_slab_alloc_pseudo_locked() 1497 void **pbuf = (void **)((intptr_t)obj - sizeof(void *)); in skmem_slab_free_pseudo_locked() 1499 VERIFY(((intptr_t)obj + skm->skm_bufsize) <= in skmem_slab_free_pseudo_locked() 1500 ((intptr_t)*pbuf + skm->skm_objsize)); in skmem_slab_free_pseudo_locked()
|
| /xnu-8792.41.9/bsd/sys/ |
| H A D | linker_set.h | 208 static __inline intptr_t
|
| H A D | event.h | 111 intptr_t data; /* filter-specific data */
|
| /xnu-8792.41.9/EXTERNAL_HEADERS/ |
| H A D | stdatomic.h | 128 typedef _Atomic(intptr_t) atomic_intptr_t;
|
| /xnu-8792.41.9/bsd/net/ |
| H A D | bpf_filter.c | 469 if (((intptr_t)(p + k) & 3) != 0) { in bpf_filter() 540 if (((intptr_t)(p + k) & 3) != 0) { in bpf_filter()
|
| /xnu-8792.41.9/libkern/libkern/ |
| H A D | Block_private.h | 260 (type)((uintptr_t)&_bds->field + (uintptr_t)(intptr_t)_bds->field); \
|
| /xnu-8792.41.9/bsd/vfs/ |
| H A D | vfs_vnops.c | 2085 static intptr_t 2093 return (intptr_t)spc; in vnode_writable_space_count() 2097 return (intptr_t)0; in vnode_writable_space_count() 2100 return (intptr_t)1; in vnode_writable_space_count()
|
| /xnu-8792.41.9/libkern/libclosure/ |
| H A D | runtime.cpp | 219 uintptr_t extendedOffset = (uintptr_t)(intptr_t)offset; in unwrap_relative_pointer()
|
| /xnu-8792.41.9/bsd/skywalk/packet/ |
| H A D | packet_copy.c | 1427 VERIFY(((intptr_t)dp - (intptr_t)mbuf_datastart(m)) + len <= in pkt_copy_to_mbuf() 1625 VERIFY(((intptr_t)dp - (intptr_t)mbuf_datastart(m)) + len <= in pkt_copy_multi_buflet_to_mbuf()
|
| /xnu-8792.41.9/osfmk/i386/commpage/ |
| H A D | commpage.c | 218 return (void*)(intptr_t)kernel_addr; // return address in kernel map in commpage_allocate()
|