| /xnu-11215/osfmk/corecrypto/ |
| H A D | ccdigest_final_64be.c | 50 ccdigest_di_decl(di, tmp); in ccdigest_final_64be() 53 ccdigest_nbits(di, tmp) += ccdigest_num(di, tmp) * 8; in ccdigest_final_64be() 54 ccdigest_data(di, tmp)[ccdigest_num(di, tmp)++] = 0x80; in ccdigest_final_64be() 58 if (ccdigest_num(di, tmp) > 64 - 8) { in ccdigest_final_64be() 60 ccdigest_data(di, tmp)[ccdigest_num(di, tmp)++] = 0; in ccdigest_final_64be() 62 di->compress(ccdigest_state(di, tmp), 1, ccdigest_data(di, tmp)); in ccdigest_final_64be() 63 ccdigest_num(di, tmp) = 0; in ccdigest_final_64be() 68 ccdigest_data(di, tmp)[ccdigest_num(di, tmp)++] = 0; in ccdigest_final_64be() 71 cc_store64_be(ccdigest_nbits(di, tmp), ccdigest_data(di, tmp) + 64 - 8); in ccdigest_final_64be() 72 di->compress(ccdigest_state(di, tmp), 1, ccdigest_data(di, tmp)); in ccdigest_final_64be() [all …]
|
| H A D | ccn_internal.h | 77 tmp = ((cc_dunit)(x)) + (y); \ 78 r = (cc_unit)tmp; \ 84 cc_unit _c = (tmp) >> CCN_UNIT_BITS; \ 85 tmp = ((cc_dunit)(x)) + (y) + _c; \ 86 r = (cc_unit)tmp; \ 92 tmp = ((cc_dunit)(x)) - (y); \ 93 r = (cc_unit)tmp; \ 107 tmp = (cc_dunit)(x) * (y); \ 108 lo += (tmp) & CCN_UNIT_MASK; \ 109 hi += (tmp) >> CCN_UNIT_BITS; \ [all …]
|
| /xnu-11215/libkern/libkern/ |
| H A D | tree.h | 113 SPLAY_LEFT((head)->sph_root, field) = SPLAY_RIGHT(tmp, field); \ 497 if (tmp && name##_RB_GETCOLOR(tmp) == RB_RED) { \ 513 if (tmp && name##_RB_GETCOLOR(tmp) == RB_RED) { \ 689 tmp = RB_LEFT(tmp, field); \ 691 tmp = RB_RIGHT(tmp, field); \ 717 tmp = RB_LEFT(tmp, field); \ 719 tmp = RB_RIGHT(tmp, field); \ 738 tmp = RB_LEFT(tmp, field); \ 741 tmp = RB_RIGHT(tmp, field); \ 778 tmp = RB_LEFT(tmp, field); \ [all …]
|
| /xnu-11215/osfmk/arm64/ |
| H A D | machine_routines_asm.h | 156 add \tmp, \src, TH_KSTACKPTR 157 ldr \dst, [\tmp] 172 add \tmp, \src, TH_UPCB 173 ldr \dst, [\tmp] 188 ldr \tmp, [\src, #ACT_CPUDATAP] 189 LOAD_INT_STACK_CPU_DATA \dst, src=\tmp, tmp=\tmp 203 add \tmp, \src, #CPU_ISTACKPTR 204 ldr \dst, [\tmp] 219 ldr \tmp, [\src, #ACT_CPUDATAP] 220 LOAD_EXCEP_STACK_CPU_DATA \dst, src=\tmp, tmp=\tmp [all …]
|
| H A D | pac_asm.h | 61 .macro REPROGRAM_JOP_KEYS skip_label, new_jop_key, cpudatap, tmp 62 ldr \tmp, [\cpudatap, CPU_JOP_KEY] 63 cmp \new_jop_key, \tmp 65 SET_JOP_KEY_REGISTERS \new_jop_key, \tmp 81 .macro REPROGRAM_ROP_KEYS skip_label, new_rop_key, cpudatap, tmp 82 ldr \tmp, [\cpudatap, CPU_ROP_KEY] 83 cmp \new_rop_key, \tmp 85 SET_ROP_KEY_REGISTERS \new_rop_key, \tmp 99 .macro SET_JOP_KEY_REGISTERS new_jop_key, tmp 129 .macro SET_ROP_KEY_REGISTERS new_rop_key, tmp [all …]
|
| H A D | cswitch.s | 272 LOAD_KERN_STACK_TOP dst=x1, src=x0, tmp=x2 // Get top of kernel stack 295 LOAD_KERN_STACK_TOP dst=x5, src=x4, tmp=x6 334 LOAD_KERN_STACK_TOP dst=x3, src=x0, tmp=x4 // Get the old kernel stack top 338 LOAD_KERN_STACK_TOP dst=x3, src=x2, tmp=x4 354 LOAD_KERN_STACK_TOP dst=x11, src=x10, tmp=x12 // Get the top of the kernel stack 357 LOAD_INT_STACK_THREAD dst=x12, src=x10, tmp=x11 372 LOAD_KERN_STACK_TOP dst=x1, src=x0, tmp=x2 // Get the top of the kernel stack 374 LOAD_INT_STACK_THREAD dst=x2, src=x0, tmp=x1 389 LOAD_KERN_STACK_TOP dst=x1, src=x0, tmp=x2 // Get the top of the kernel stack
|
| /xnu-11215/osfmk/kern/ |
| H A D | lock_ptr.c | 65 lck, __hw_lck_ptr_value(tmp), tmp.lck_ptr_locked, in __hw_lck_ptr_invalid_panic() 66 tmp.lck_ptr_mcs_tail); in __hw_lck_ptr_invalid_panic() 115 if (tmp.lck_ptr_locked || tmp.lck_ptr_mcs_tail) { in hw_lck_ptr_destroy() 125 tmp.lck_ptr_locked = true; in hw_lck_ptr_destroy() 145 hw_lck_ptr_t tmp; in hw_lck_ptr_timeout_panic() local 152 __hw_lck_ptr_value(tmp), tmp.lck_ptr_mcs_tail, in hw_lck_ptr_timeout_panic() 258 hw_lck_ptr_t tmp in hw_lck_ptr_lock_slow() 269 hw_lck_ptr_t tmp; in hw_lck_ptr_lock_fastpath() local 272 if (__probable(tmp.lck_ptr_locked == 0 && tmp.lck_ptr_mcs_tail == 0)) { in hw_lck_ptr_lock_fastpath() 382 hw_lck_ptr_t tmp; in hw_lck_ptr_wait_for_value_contended() local [all …]
|
| H A D | lock_ticket.c | 256 if (__improbable(sync && !tmp.lck_valid && !equal_tickets(tmp.nticket, tmp.cticket))) { in hw_lck_ticket_destroy_internal() 304 hw_lck_ticket_t tmp; in hw_lck_ticket_held() local 306 return !equal_tickets(tmp.cticket, tmp.nticket); in hw_lck_ticket_held() 349 tmp.cticket, tmp.nticket, tmp.lck_valid, in hw_lck_ticket_timeout_panic() 358 tmp.cticket, tmp.nticket, lsti->extra, tmp.lck_valid, in hw_lck_ticket_timeout_panic() 381 tmp.cticket, tmp.nticket, lsti->extra, in lck_ticket_timeout_panic() 619 if (__probable(equal_tickets(tmp.cticket, tmp.nticket))) { in hw_lck_ticket_lock_internal() 653 if (__probable(equal_tickets(tmp.cticket, tmp.nticket))) { in hw_lck_ticket_lock_to_internal() 690 if (__probable(tmp.cticket == tmp.nticket)) { in lck_ticket_lock_internal() 839 if (__probable(tmp.cticket == tmp.nticket)) { in hw_lck_ticket_reserve_nopreempt() [all …]
|
| H A D | ext_paniclog.c | 305 ext_paniclog_handle_t *tmp; in ext_paniclog_get_size_required() local 309 sizeof(ext_paniclog_header_t) + tmp->used_len; in ext_paniclog_get_size_required() 341 ext_paniclog_handle_t *tmp; in ext_paniclog_write_panicdata() local 373 memcpy(dst, tmp->uuid, sizeof(uuid_t)); in ext_paniclog_write_panicdata() 377 memcpy(dst, &tmp->data_id, data_id_size); in ext_paniclog_write_panicdata() 379 memcpy(dst, &tmp->used_len, sizeof(tmp->used_len)); in ext_paniclog_write_panicdata() 380 dst += sizeof(tmp->used_len); in ext_paniclog_write_panicdata() 381 memcpy(dst, tmp->buf_addr, tmp->used_len); in ext_paniclog_write_panicdata() 382 dst += tmp->used_len; in ext_paniclog_write_panicdata() 697 ext_paniclog_handle_t *tmp; in ext_paniclog_get_list_count() local [all …]
|
| H A D | lock_ptr.h | 262 hw_lck_ptr_t tmp; in hw_lck_ptr_value() local 264 tmp = atomic_load_explicit((hw_lck_ptr_t _Atomic *)lck, in hw_lck_ptr_value() 267 return __hw_lck_ptr_value(tmp); in hw_lck_ptr_value()
|
| /xnu-11215/libkern/net/ |
| H A D | inet_ntop.c | 74 char tmp[sizeof "255.255.255.255"]; in inet_ntop4() local 77 l = snprintf(tmp, sizeof(tmp), fmt, src[0], src[1], src[2], src[3]); in inet_ntop4() 81 strlcpy(dst, tmp, size); in inet_ntop4() 101 char tmp[sizeof "ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255"], *tp; in inet_ntop6() local 150 tp = tmp; in inet_ntop6() 169 (socklen_t)(sizeof tmp - (tp - tmp)))) { in inet_ntop6() 175 tp += scnprintf(tp, sizeof(tmp), "%x", words[i]); in inet_ntop6() 187 if ((socklen_t)(tp - tmp) > size) { in inet_ntop6() 190 strlcpy(dst, tmp, size); in inet_ntop6()
|
| H A D | inet_pton.c | 78 u_char tmp[NS_INADDRSZ], *tp; in inet_pton4() local 82 *(tp = tmp) = 0; in inet_pton4() 115 memcpy(dst, tmp, NS_INADDRSZ); in inet_pton4() 139 u_char tmp[NS_IN6ADDRSZ], *tp, *endp, *colonp; in inet_pton6() local 144 memset((tp = tmp), '\0', NS_IN6ADDRSZ); in inet_pton6() 225 memcpy(dst, tmp, NS_IN6ADDRSZ); in inet_pton6()
|
| /xnu-11215/tests/ |
| H A D | mach_continuous_time.c | 48 uint64_t tmp; variable 55 tmp = mach_continuous_time(); 59 tmp = mach_continuous_time(); 61 tmp = to_ms(tmp); 67 multiple_test = tmp; 81 uint64_t tmp; variable 86 tmp = mach_absolute_time_kernel(); 88 tmp = mach_absolute_time(); 92 tmp = mach_absolute_time(); 93 tmp = to_ms(tmp); [all …]
|
| H A D | fd_send.c | 184 int tmp; 187 T_QUIET; T_ASSERT_EQ(recv_fd(pair[1], &tmp), 0, "recv_fd"); 188 T_QUIET; T_ASSERT_NE(tmp, -1, "received a proper fd"); 189 T_QUIET; T_EXPECT_POSIX_SUCCESS(close(tmp), "close(tmp)"); 195 int tmp = dup(fd); 196 T_QUIET; T_ASSERT_POSIX_SUCCESS(tmp, "dup"); 197 T_QUIET; T_ASSERT_EQ(send_fd(pair[0], tmp), 0, "send_fd"); 198 T_QUIET; T_EXPECT_POSIX_SUCCESS(close(tmp), "close(tmp)");
|
| H A D | preoslog.c | 47 char tmp = 0; variable 55 ret = sysctlbyname(g_sysctl_kern_preoslog, buffer, &size, &tmp, sizeof(tmp));
|
| /xnu-11215/bsd/kern/ |
| H A D | kern_persona.c | 174 struct persona *tmp; in persona_init_begin() local 194 persona_lock(tmp); in persona_init_begin() 196 persona_unlock(tmp); in persona_init_begin() 206 persona_unlock(tmp); in persona_init_begin() 214 persona_unlock(tmp); in persona_init_begin() 387 persona_lock(tmp); in persona_lookup() 388 if (tmp->pna_id == id && persona_valid(tmp)) { in persona_lookup() 393 persona_unlock(tmp); in persona_lookup() 447 struct persona *tmp; in persona_find_all() local 473 persona_lock(tmp); in persona_find_all() [all …]
|
| H A D | kern_acct.c | 238 struct timeval ut, st, tmp; in acct_process() local 267 microtime(&tmp); in acct_process() 268 timevalsub(&tmp, &p->p_start); in acct_process() 269 an_acct.ac_etime = encode_comp_t((uint32_t)tmp.tv_sec, tmp.tv_usec); in acct_process() 276 tmp = ut; in acct_process() 277 timevaladd(&tmp, &st); in acct_process() 278 t = (int)(tmp.tv_sec * hz + tmp.tv_usec / tick); in acct_process()
|
| /xnu-11215/bsd/tests/ |
| H A D | ptrauth_data_tests_sysctl.c | 70 structure *tmp = kalloc_data(sizeof(structure), Z_WAITOK | Z_ZERO); \ 71 if (!tmp) return ENOMEM; \ 72 tmp->member = (void*)0xffffffff41414141; \ 73 VALIDATE_DATA_PTR(decl, tmp->member, discr) \ 74 kfree_data(tmp, sizeof(structure)); \
|
| /xnu-11215/osfmk/tests/ |
| H A D | ptrauth_data_tests.c | 70 structure *tmp = kalloc_data(sizeof(structure), Z_WAITOK | Z_ZERO); \ 71 if (!tmp) return KERN_NO_SPACE; \ 72 tmp->member = (void*)0xffffffff41414141; \ 73 VALIDATE_DATA_PTR(decl, tmp->member, discr) \ 74 kfree_data(tmp, sizeof(structure)); \
|
| /xnu-11215/bsd/netinet/ |
| H A D | in_stat.c | 82 uint64_t mask_lower, tmp; in in_stat_set_activity_bitmap() local 89 tmp = (((uint64_t)1) << (shift - 1)); in in_stat_set_activity_bitmap() 90 mask_lower = ((tmp - 1) ^ tmp); in in_stat_set_activity_bitmap()
|
| /xnu-11215/tests/sched/sched_test_harness/ |
| H A D | sched_runqueue_harness.c | 150 test_thread_t *tmp = (test_thread_t *)malloc(sizeof(test_thread_t) * (size_t)num_threads); in enqueue_threads_rand_order() local 155 tmp[i] = thread; in enqueue_threads_rand_order() 157 enqueue_threads_arr_rand_order(random_seed, num_threads, tmp); in enqueue_threads_rand_order() 158 free(tmp); in enqueue_threads_rand_order() 171 test_thread_t tmp = scratch_space[i]; in enqueue_threads_arr_rand_order() local 173 scratch_space[rand_ind] = tmp; in enqueue_threads_arr_rand_order()
|
| /xnu-11215/osfmk/i386/ |
| H A D | asm.h | 221 #define Gmemstore(reg,lab,tmp) movl reg,lab argument 236 #define Gmemstore(reg,lab,tmp) movl lab@GOT(%ebx),tmp; movl reg,(tmp) argument 250 #define Gmemstore(reg,lab,tmp) movl 9f,tmp; movl reg,(tmp); .data; .align ALIGN; 9: .long lab; .text argument 261 #define Egmemstore(reg,lab,tmp) Gmemstore(reg,EXT(lab),tmp) argument 268 #define Lgmemstore(reg,lab,tmp) movl reg,Lgotoff(lab) argument
|
| /xnu-11215/tests/vm/ |
| H A D | test_vm_no_pager_helper.c | 125 char tmp[512]; in execute_and_get_output() local 130 vsnprintf(tmp, sizeof(tmp), fmt, args); in execute_and_get_output() 133 PRINTF("Execute and get output: '%s'\n", tmp); in execute_and_get_output() 134 popen_stream = popen(tmp, "r"); in execute_and_get_output() 136 printf("popen for command `%s` failed\n", tmp); in execute_and_get_output() 140 printf("Getting output from popen for command `%s` failed\n", tmp); in execute_and_get_output()
|
| /xnu-11215/osfmk/mach/i386/ |
| H A D | sdt_isa.h | 215 uintptr_t tmp; \ 221 : "=r" (tmp) \ 237 uintptr_t tmp; \ 244 : "=r" (tmp) \
|
| /xnu-11215/bsd/net/ |
| H A D | kctl_test.c | 185 mbuf_ref_t tmp = m_remain; in kctl_test_send_list() local 187 while (tmp != NULL) { in kctl_test_send_list() 189 tmp = mbuf_next(tmp); in kctl_test_send_list()
|