| /xnu-11215/san/memory/ |
| H A D | kasan-test.c | 83 if (t->data) { in heap_cleanup() 84 kfree_data(t->data, t->datasz); in heap_cleanup() 108 t->data = x; in test_heap_underflow() 121 t->data = x; in test_heap_overflow() 150 TEST_START(t); in test_heap_double_free() 158 TEST_FAULT(t); in test_heap_double_free() 167 TEST_START(t); in test_heap_small_free() 174 t->data = x; in test_heap_small_free() 176 TEST_FAULT(t); in test_heap_small_free() 596 int ret = t->func(t); in kasan_run_test() [all …]
|
| /xnu-11215/bsd/kern/ |
| H A D | mach_process.c | 106 #define SET(t, f) (t) |= (f) argument 107 #define CLR(t, f) (t) &= ~(f) argument 108 #define ISSET(t, f) ((t) & (f)) argument 247 proc_rele(t); in ptrace() 277 proc_lock(t); in ptrace() 283 t->p_oppid = t->p_ppid; in ptrace() 331 proc_lock(t); in ptrace() 363 if (t->p_oppid != t->p_ppid) { in ptrace() 464 proc_lock(t); in ptrace() 495 proc_lock(t); in ptrace() [all …]
|
| H A D | uipc_mbuf2.c | 187 for (t = m; t; t = t->m_next) { in m_pulldown() 361 for (t = m; t; t = t->m_next) { in m_pulldown() 362 printf("%c%d", t == n ? '*' : ' ', t->m_len); in m_pulldown() 502 t = NULL; in m_tag_alloc_mbuf() 510 M_TAG_INIT(t, id, type, len, (void *)(t + 1), mb_cl); in m_tag_alloc_mbuf() 514 return t; in m_tag_alloc_mbuf() 568 M_TAG_INIT(t, id, type, len, (void *)(t + 1), mb_cl); in m_tag_create_mbuf() 572 return t; in m_tag_create_mbuf() 908 m_tag_free(t); in m_tag_delete() 958 p = m_tag_alloc(t->m_tag_id, t->m_tag_type, t->m_tag_len, how); in m_tag_copy() [all …]
|
| /xnu-11215/osfmk/kern/ |
| H A D | thread_group.c | 700 (t->thread_group == t->preadopt_thread_group) || in thread_assert_has_valid_thread_group() 701 (t->thread_group == t->bank_thread_group) || in thread_assert_has_valid_thread_group() 702 (t->thread_group == t->auto_join_thread_group) || in thread_assert_has_valid_thread_group() 703 (t->thread_group == t->work_interval_thread_group)); in thread_assert_has_valid_thread_group() 887 thread_lock(t); in thread_set_preadopt_thread_group() 1022 thread_unlock(t); in thread_set_preadopt_thread_group() 1047 thread_lock(t); in thread_set_thread_group() 1075 thread_lock(t); in thread_group_set_bank() 1083 thread_unlock(t); in thread_group_set_bank() 1152 thread_lock(t); in thread_set_work_interval_thread_group() [all …]
|
| H A D | thread_group.h | 123 void thread_group_init_thread(thread_t t, task_t task); 139 struct thread_group *thread_group_get(thread_t t); 140 struct thread_group *thread_group_get_home_group(thread_t t); 141 void thread_group_set_bank(thread_t t, struct thread_group *tg); 155 void thread_set_work_interval_thread_group(thread_t t, struct thread_group *tg); 157 void thread_set_autojoin_thread_group_locked(thread_t t, struct thread_group *tg); 160 void thread_set_preadopt_thread_group(thread_t t, struct thread_group *tg); 163 void thread_resolve_and_enforce_thread_group_hierarchy_if_needed(thread_t t);
|
| /xnu-11215/bsd/net/ |
| H A D | radix.c | 332 t = t->rn_right; in rn_match_args() 334 t = t->rn_left; in rn_match_args() 368 t = t->rn_dupedkey; in rn_match_args() 399 t = t->rn_dupedkey; in rn_match_args() 401 for (; t; t = t->rn_dupedkey) { in rn_match_args() 419 t = t->rn_parent; in rn_match_args() 809 t = t->rn_parent; in rn_addroute() 907 t = t->rn_parent; in rn_delete() 935 for (t = rn_clist; t && t->rn_ybro != tt; t = t->rn_ybro) { in rn_delete() 1047 t->rn_left->rn_parent = t; in rn_delete() [all …]
|
| /xnu-11215/libsyscall/wrappers/string/ |
| H A D | memcpy.c | 56 size_t t; in _libkernel_memmove() local 79 t = length; in _libkernel_memmove() 81 t = wsize - (t & wmask); in _libkernel_memmove() 83 length -= t; in _libkernel_memmove() 89 t = length / wsize; in _libkernel_memmove() 91 t = length & wmask; in _libkernel_memmove() 101 t = (uintptr_t)src; in _libkernel_memmove() 104 t = length; in _libkernel_memmove() 106 t &= wmask; in _libkernel_memmove() 108 length -= t; in _libkernel_memmove() [all …]
|
| H A D | memset.c | 56 size_t t; in _libkernel_memset() local 92 if ((t = (long)dst & wmask) != 0) { in _libkernel_memset() 93 t = wsize - t; in _libkernel_memset() 94 length -= t; in _libkernel_memset() 97 } while (--t != 0); in _libkernel_memset() 101 t = length / wsize; in _libkernel_memset() 105 } while (--t != 0); in _libkernel_memset() 108 t = length & wmask; in _libkernel_memset() 109 if (t != 0) { in _libkernel_memset() 112 } while (--t != 0); in _libkernel_memset()
|
| /xnu-11215/bsd/security/audit/ |
| H A D | audit_bsm_token.c | 76 token_t *t; in au_to_arg32() local 96 return t; in au_to_arg32() 122 return t; in au_to_arg64() 182 return t; in au_to_attr32() 226 return t; in au_to_attr64() 290 return t; in au_to_data() 310 return t; in au_to_exit() 348 return t; in au_to_newgroups() 366 return t; in au_to_in_addr() 387 return t; in au_to_in_addr_ex() [all …]
|
| /xnu-11215/bsd/net/classq/ |
| H A D | classq_util.c | 88 read_dsfield(struct mbuf *m, struct pf_mtag *t) in read_dsfield() argument 93 if (t->pftag_hdr == NULL || in read_dsfield() 100 if (((caddr_t)t->pftag_hdr >= m0->m_data) && in read_dsfield() 111 if (t->pftag_flags & PF_TAG_HDR_INET) { in read_dsfield() 122 } else if (t->pftag_flags & PF_TAG_HDR_INET6) { in read_dsfield() 144 if (t->pftag_hdr == NULL || in write_dsfield() 151 if (((caddr_t)t->pftag_hdr >= m0->m_data) && in write_dsfield() 162 if (t->pftag_flags & PF_TAG_HDR_INET) { in write_dsfield() 190 } else if (t->pftag_flags & PF_TAG_HDR_INET6) { in write_dsfield() 218 if ((hdr = t->pftag_hdr) == NULL || in mark_ecn() [all …]
|
| /xnu-11215/tests/intrusive_shared_ptr_src/ |
| H A D | compare.equal.nullptr.cpp | 24 check_eq(T t, U u) in check_eq() argument 26 CHECK(t == u); in check_eq() 27 CHECK(u == t); in check_eq() 28 CHECK(!(t != u)); in check_eq() 29 CHECK(!(u != t)); in check_eq() 34 check_ne(T t, U u) in check_ne() argument 36 CHECK(!(t == u)); in check_ne() 37 CHECK(!(u == t)); in check_ne() 38 CHECK(t != u); in check_ne() 39 CHECK(u != t); in check_ne()
|
| H A D | compare.equal.cpp | 21 check_eq(T t, U u) in check_eq() argument 23 CHECK(t == u); in check_eq() 24 CHECK(u == t); in check_eq() 25 CHECK(!(t != u)); in check_eq() 26 CHECK(!(u != t)); in check_eq() 31 check_ne(T t, U u) in check_ne() argument 33 CHECK(!(t == u)); in check_ne() 34 CHECK(!(u == t)); in check_ne() 35 CHECK(t != u); in check_ne() 36 CHECK(u != t); in check_ne()
|
| H A D | compare.equal.raw.cpp | 27 check_eq(T t, U u) in check_eq() argument 29 CHECK(t == u); in check_eq() 30 CHECK(u == t); in check_eq() 31 CHECK(!(t != u)); in check_eq() 32 CHECK(!(u != t)); in check_eq() 37 check_ne(T t, U u) in check_ne() argument 39 CHECK(!(t == u)); in check_ne() 40 CHECK(!(u == t)); in check_ne() 41 CHECK(t != u); in check_ne() 42 CHECK(u != t); in check_ne()
|
| /xnu-11215/tests/bounded_ptr_src/ |
| H A D | compare.order.raw.cpp | 38 check_lt(T t, U u) in check_lt() argument 40 _assert(t < u); in check_lt() 41 _assert(t <= u); in check_lt() 43 _assert(!(t > u)); in check_lt() 47 _assert(u > t); in check_lt() 48 _assert(u >= t); in check_lt() 53 check_eq(T t, U u) in check_eq() argument 56 _assert(t <= u); in check_eq() 57 _assert(t >= u); in check_eq() 61 _assert(u <= t); in check_eq() [all …]
|
| H A D | compare.order.cpp | 39 check_lt(T t, U u) in check_lt() argument 41 _assert(t < u); in check_lt() 42 _assert(t <= u); in check_lt() 44 _assert(!(t > u)); in check_lt() 48 _assert(u > t); in check_lt() 49 _assert(u >= t); in check_lt() 54 check_eq(T t, U u) in check_eq() argument 57 _assert(t <= u); in check_eq() 58 _assert(t >= u); in check_eq() 62 _assert(u <= t); in check_eq() [all …]
|
| /xnu-11215/osfmk/prng/ |
| H A D | entropy.c | 339 t->observation_count += 1; in add_observation() 340 …t->stats->max_observation_count = MAX(t->stats->max_observation_count, (uint32_t)t->observation_co… in add_observation() 342 t->stats->failure_count += 1; in add_observation() 352 t->stats->reset_count += 1; in reset_test() 353 t->init_observation = observation; in reset_test() 354 t->observation_count = 1; in reset_test() 355 …t->stats->max_observation_count = MAX(t->stats->max_observation_count, (uint32_t)t->observation_co… in reset_test() 381 if (t->init_observation == observation) { in repetition_count_test() 384 reset_test(t, observation); in repetition_count_test() 432 reset_test(t, observation); in adaptive_proportion_test() [all …]
|
| /xnu-11215/osfmk/arm/ |
| H A D | locks.h | 110 #define lock_disable_preemption_for_thread(t) ({ \ argument 111 thread_t __dpft_thread = (t); \ 123 #define lock_disable_preemption_for_thread(t) ({ \ argument 124 uint32_t *__dpft_countp = &(t)->machine.preemption_count; \ 130 #define lock_preemption_level_for_thread(t) get_preemption_level_for_thread(t) argument 131 #define lock_preemption_disabled_for_thread(t) (get_preemption_level_for_thread(t) != 0) argument
|
| /xnu-11215/bsd/sys/ |
| H A D | pthread_shims.h | 151 uint64_t (*proc_get_register)(struct proc *t); 152 void (*proc_set_register)(struct proc *t); 156 user_addr_t (*proc_get_wqthread)(struct proc *t); 158 int (*proc_get_pthsize)(struct proc *t); 159 void (*proc_set_pthsize)(struct proc *t, int size); 161 thread_t (*task_findtid)(task_t t, uint64_t tid); 163 bool (*proc_get_jit_entitled)(struct proc *t); 185 void* (*proc_get_pthhash)(struct proc *t); 194 void* (*uthread_get_uukwe)(struct uthread *t); 197 int (*uthread_is_cancelled)(struct uthread *t); [all …]
|
| H A D | ioccom.h | 94 #define _IOR(g, n, t) _IOC(IOC_OUT, (g), (n), sizeof(t)) argument 95 #define _IOW(g, n, t) _IOC(IOC_IN, (g), (n), sizeof(t)) argument 97 #define _IOWR(g, n, t) _IOC(IOC_INOUT, (g), (n), sizeof(t)) argument
|
| /xnu-11215/tests/ |
| H A D | mach_continuous_time.c | 300 uint64_t t; in T_STAT_MEASURE_LOOP() local 301 t = mach_absolute_time(); in T_STAT_MEASURE_LOOP() 308 uint64_t t; in T_STAT_MEASURE_LOOP() local 309 t = mach_continuous_time(); in T_STAT_MEASURE_LOOP() 319 uint64_t t; in T_STAT_MEASURE_LOOP() local 320 t = mach_absolute_time(); in T_STAT_MEASURE_LOOP() 327 uint64_t t; in T_STAT_MEASURE_LOOP() local 339 uint64_t t; in T_STAT_MEASURE_LOOP() local 347 uint64_t t; in T_STAT_MEASURE_LOOP() local 358 uint64_t t; in T_STAT_MEASURE_LOOP() local [all …]
|
| /xnu-11215/tools/lldbmacros/tests/lldbmock/ |
| H A D | utils.py | 41 for t in sbtype.get_members_array(): 42 if t.GetType().IsAnonymousType(): 43 yield from visit_type(t.GetType(), offs + t.GetOffsetInBytes()) 45 yield (t, offs + t.GetOffsetInBytes())
|
| /xnu-11215/bsd/dev/arm/ |
| H A D | cpu_copy_in_cksum.s | 85 #define t r12 macro 270 ldrh t, [src], #2 271 strh t, [dst], #2 279 ldrb t,[src],#1 280 strb t,[dst],#1 282 lsl t, t, #8 292 lsl t, partial, #8 307 and t, r0, lr 308 add r0, t, r0, lsr #16 314 and t, r0, lr [all …]
|
| /xnu-11215/tools/lldbmacros/ |
| H A D | ipc.py | 545 l = [ GetTaskIPCSummary(t) for t in kern.tasks ] 1249 for t in tasklist: 1304 func(t, space, ctx, taskports_idx, 0, t.itk_settable_self, 17) 1306 func(t, space, ctx, taskports_idx, 0, t.itk_host, 17) 1308 func(t, space, ctx, taskports_idx, 0, t.itk_bootstrap, 17) 1310 func(t, space, ctx, taskports_idx, 0, t.itk_debug_control, 17) 1312 func(t, space, ctx, taskports_idx, 0, t.itk_task_access, 17) 1320 func(t, space, ctx, taskports_idx, 0, t.itk_task_ports[3], 0) 1324 func(t, space, ctx, taskports_idx, 0, t.itk_resume, 16) 1328 tr_max = sizeof(t.itk_registered) // sizeof(t.itk_registered[0]) [all …]
|
| /xnu-11215/bsd/skywalk/nexus/ |
| H A D | nexus_adapter.c | 232 last[t] = na_get_nrings(na, t); in na_interp_ringid() 317 ch->ch_first[t] = ch->ch_last[t] = 0; in na_unset_ringid() 805 n[t] = ch->ch_last[t] - ch->ch_first[t]; in na_schema_alloc() 806 ASSERT(n[t] == 0 || n[t] <= na_get_nrings(na, t)); in na_schema_alloc() 1541 if (t < NR_TXRXAF || t == NR_LBA) { in na_kr_create() 1936 if (t == NR_TX || t == NR_A || t == NR_EV || t == NR_LBA) { in na_kr_setup() 1939 ASSERT(t == NR_RX || t == NR_F); in na_kr_setup() 2026 if (t == NR_TX || t == NR_A || t == NR_EV || t == NR_LBA) { in na_kr_setup() 2029 ASSERT(t == NR_RX || t == NR_F); in na_kr_setup() 2678 ch->ch_si[t] = ch_is_multiplex(ch, t) ? &na->na_si[t] : in na_connect() [all …]
|
| /xnu-11215/bsd/skywalk/core/ |
| H A D | skywalk_var.h | 156 sk_ring2str(enum txrx t) in sk_ring2str() argument 158 switch (t) { in sk_ring2str() 180 sk_txrx_swap(enum txrx t) in sk_txrx_swap() argument 182 return t == NR_RX ? NR_TX : NR_RX; in sk_txrx_swap() 185 #define for_rx_tx(t) for ((t) = 0; (t) < NR_TXRX; (t)++) argument 186 #define for_a_f(t) for ((t) = NR_A; (t) <= NR_F; (t)++) argument 187 #define for_all_rings(t) for ((t) = 0; (t) < NR_ALL; (t)++) argument
|