| /src/external/gpl3/gcc/dist/contrib/ |
| gthr_supp_vxw_5x.c | 34 extern void *__gthread_get_tsd_data (WIND_TCB *tcb); 35 extern void __gthread_set_tsd_data (WIND_TCB *tcb, void *data); 37 extern void __gthread_enter_tsd_dtor_context (WIND_TCB *tcb); 38 extern void __gthread_leave_tsd_dtor_context (WIND_TCB *tcb); 40 /* Set and retrieve the TSD data block for the task TCB. 49 (these are all fields of the TCB structure; all have type 'int'). 62 __gthread_get_tsd_data (WIND_TCB *tcb) 64 return (void *) (tcb->TSD_SLOT); 68 __gthread_set_tsd_data (WIND_TCB *tcb, void *data) 70 tcb->TSD_SLOT = (int) data [all...] |
| /src/external/gpl3/gcc.old/dist/contrib/ |
| gthr_supp_vxw_5x.c | 34 extern void *__gthread_get_tsd_data (WIND_TCB *tcb); 35 extern void __gthread_set_tsd_data (WIND_TCB *tcb, void *data); 37 extern void __gthread_enter_tsd_dtor_context (WIND_TCB *tcb); 38 extern void __gthread_leave_tsd_dtor_context (WIND_TCB *tcb); 40 /* Set and retrieve the TSD data block for the task TCB. 49 (these are all fields of the TCB structure; all have type 'int'). 62 __gthread_get_tsd_data (WIND_TCB *tcb) 64 return (void *) (tcb->TSD_SLOT); 68 __gthread_set_tsd_data (WIND_TCB *tcb, void *data) 70 tcb->TSD_SLOT = (int) data [all...] |
| /src/sys/arch/vax/include/ |
| lwp_private.h | 44 register void *tcb __asm("r0"); 45 __asm("chmk %1" : "=r"(tcb) : "i"(SYS__lwp_getprivate)); 46 return tcb;
|
| /src/lib/libc/tls/ |
| tls.c | 86 struct tls_tcb *tcb; local 97 tls_allocation + sizeof(*tcb), PROT_READ | PROT_WRITE, 102 p = calloc(1, tls_allocation + sizeof(*tcb)); 111 tcb = (struct tls_tcb *)p; 115 tcb = (struct tls_tcb *)(p + tls_allocation); 116 p = (uint8_t *)tcb - tls_size; 117 tcb->tcb_self = tcb; 121 return tcb; 127 _rtld_tls_free(struct tls_tcb *tcb) 172 struct tls_tcb *tcb; local [all...] |
| /src/libexec/ld.elf_so/ |
| tls.c | 83 * - directly to the TCB (e.g. Arm, and AArch64); or 89 * struct tcb placed as follows for each case above 97 * the end of the struct tcb. Maybe this is suboptimal? 121 * thread-local storage to a pointer into part of the thread's TCB 125 * The TCB itself, struct tls_tcb, has a pointer to the DTV at 126 * tcb->tcb_dtv. 173 * _rtld_tls_get_addr(tcb, idx, offset) 184 * just `struct tls_tcb *tcb'? 189 struct tls_tcb *tcb = tls; local 195 dtv = tcb->tcb_dtv 245 struct tls_tcb *tcb; local 289 struct tls_tcb *tcb; local 355 struct tls_tcb *tcb; local 580 struct tls_tcb * const tcb = __lwp_gettcb_fast(); local 582 struct tls_tcb * const tcb = __lwp_getprivate_fast(); local [all...] |
| /src/external/gpl3/gcc/dist/libgcc/config/ |
| gthr-vxworks-thread.c | 46 #define __CALL_DELETE_HOOK(tcb) tls_delete_hook() 48 /* In kernel mode, we need to pass the TCB to task_delete_hook. The TCB is 50 void tls_delete_hook (void *TCB); 51 #define __CALL_DELETE_HOOK(tcb) tls_delete_hook((WIND_TCB *) ((tcb)->task_id)) 222 /* Here, we pass a pointer to a tcb to allow calls from 232 /* This __gthread_t stores the address of the TCB malloc'ed in 241 /* We are in the initial thread, we need to initialize the TCB. */ 259 __task_wrapper (__gthread_t tcb, FUNCPTR __func, _Vx_usr_arg_t __args 312 __gthread_t tcb = malloc (sizeof (*tcb)); local [all...] |
| gthr-vxworks-tls.c | 171 /* The task TCB has just been deleted. Call the destructor 180 tls_delete_hook (void *tcb ATTRIBUTE_UNUSED)
|
| /src/external/gpl3/gcc.old/dist/libgcc/config/ |
| gthr-vxworks-thread.c | 46 #define __CALL_DELETE_HOOK(tcb) tls_delete_hook() 48 /* In kernel mode, we need to pass the TCB to task_delete_hook. The TCB is 50 void tls_delete_hook (void *TCB); 51 #define __CALL_DELETE_HOOK(tcb) tls_delete_hook((WIND_TCB *) ((tcb)->task_id)) 222 /* Here, we pass a pointer to a tcb to allow calls from 232 /* This __gthread_t stores the address of the TCB malloc'ed in 241 /* We are in the initial thread, we need to initialize the TCB. */ 259 __task_wrapper (__gthread_t tcb, FUNCPTR __func, _Vx_usr_arg_t __args 312 __gthread_t tcb = malloc (sizeof (*tcb)); local [all...] |
| vxlib-tls.c | 54 We reserve a field in the TCB to point to a dynamically allocated 56 offset in this array. The exact location of the TCB field is not 107 extern void *__gthread_get_tsd_data (WIND_TCB *tcb); 108 extern void __gthread_set_tsd_data (WIND_TCB *tcb, void *data); 109 extern void __gthread_enter_tsd_dtor_context (WIND_TCB *tcb); 110 extern void __gthread_leave_tsd_dtor_context (WIND_TCB *tcb); 152 /* The task TCB has just been deleted. Call the destructor 161 tls_delete_hook (void *tcb ATTRIBUTE_UNUSED) 170 doing the killing, so must use the TCB to determine the data of 172 data = __gthread_get_tsd_data (tcb); [all...] |
| gthr-vxworks-tls.c | 171 /* The task TCB has just been deleted. Call the destructor 180 tls_delete_hook (void *tcb ATTRIBUTE_UNUSED)
|
| /src/lib/libc/arch/m68k/gen/ |
| _lwp.c | 48 void *arg, void *tcb, caddr_t stack_base, size_t stack_size) 66 u->uc_mcontext._mc_tlsbase = (uintptr_t)tcb + TLS_TP_OFFSET +
|
| /src/sys/arch/arm/apple/ |
| apple_nvme.c | 231 struct ans_nvmmu_tcb *tcb = nvme_ans_tcb(q, id); local 236 ANS_NVMMU_TCB_PITCH * id, sizeof(*tcb), BUS_DMASYNC_POSTWRITE); 238 memset(tcb, 0, sizeof(*tcb)); 239 tcb->tcb_opcode = sqe->opcode; 240 tcb->tcb_flags = ANS_NVMMU_TCB_WRITE | ANS_NVMMU_TCB_READ; 241 tcb->tcb_cid = id; 242 tcb->tcb_prpl_len = sqe->nlb; 243 tcb->tcb_prp[0] = sqe->entry.prp[0]; 244 tcb->tcb_prp[1] = sqe->entry.prp[1] 256 struct ans_nvmmu_tcb *tcb = nvme_ans_tcb(q, id); local [all...] |
| /src/lib/libc/arch/mips/gen/ |
| _lwp.c | 56 void *arg, void *tcb, caddr_t stack_base, size_t stack_size) 75 (uintptr_t)tcb + TLS_TP_OFFSET + sizeof(struct tls_tcb);
|
| /src/lib/libc/arch/or1k/gen/ |
| _lwp.c | 54 void *tcb, caddr_t stack_base, size_t stack_size) 73 (uintptr_t)tcb + TLS_TP_OFFSET + sizeof(struct tls_tcb);
|
| /src/lib/libc/arch/powerpc/gen/ |
| _lwp.c | 54 void *tcb, caddr_t stack_base, size_t stack_size) 74 (uintptr_t)tcb + TLS_TP_OFFSET + sizeof(struct tls_tcb);
|
| /src/lib/libc/arch/riscv/gen/ |
| _lwp.c | 54 void *tcb, caddr_t stack_base, size_t stack_size) 73 (uintptr_t)tcb + TLS_TP_OFFSET + sizeof(struct tls_tcb);
|
| /src/tests/lib/libc/sys/ |
| t_ptrace_lwp_wait.h | 39 volatile void **tcb; local 41 tcb = (volatile void **)arg; 43 *tcb = _lwp_getprivate(); 44 DPRINTF("Storing tcb[] = %p from thread %d\n", *tcb, _lwp_self()); 75 volatile void *tcb[4]; local 80 pthread_t t[__arraycount(tcb) - 1]; 89 memset(tcb, 0, sizeof(tcb)); 97 tcb[0] = _lwp_getprivate() [all...] |
| /src/lib/libpthread/ |
| pthread_int.h | 271 struct tls_tcb * const tcb = _PTHREAD_GETTCB_EXT(); local 273 struct tls_tcb * const tcb = __lwp_gettcb_fast(); 275 struct tls_tcb * const tcb = __lwp_getprivate_fast(); 277 return (pthread_t)tcb->tcb_pthread;
|
| /src/external/bsd/ipf/dist/ipsend/ |
| sock.c | 401 struct tcpcb *t, tcb; local 452 KMCPY(&tcb, t, sizeof(tcb)); 453 ti->ti_win = tcb.rcv_adv; 454 ti->ti_seq = tcb.snd_nxt - 1; 455 ti->ti_ack = tcb.rcv_nxt;
|
| iptests.c | 1104 struct tcpcb *tcbp, tcb; local 1139 KMCPY(&tcb, tcbp, sizeof(tcb)); 1140 ti.ti_win = tcb.rcv_adv; 1141 ti.ti_seq = htonl(tcb.snd_nxt - 1); 1142 ti.ti_ack = tcb.rcv_nxt; 1155 t->th_seq = htonl(tcb.snd_nxt);
|
| /src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/ |
| sanitizer_linux_libcdep.cc | 332 // TlsPreTcbSize includes size of struct pthread_descr and size of tcb 355 // points to the end of the TCB + 0x7000. The pthread_descr structure is 356 // immediately in front of the TCB. TlsPreTcbSize() includes the size of the 357 // TCB and the size of pthread_descr. 372 // points to the end of the TCB + 0x7000. The pthread_descr structure is 373 // immediately in front of the TCB. TlsPreTcbSize() includes the size of the 374 // TCB and the size of pthread_descr. 408 struct tls_tcb * tcb; local 410 tcb = (struct tls_tcb *)__lwp_gettcb_fast(); 412 tcb = (struct tls_tcb *)__lwp_getprivate_fast() [all...] |
| /src/libexec/ld.elf_so/arch/i386/ |
| mdreloc.c | 367 struct tls_tcb *tcb = __lwp_getprivate_fast(); local 370 dtv = tcb->tcb_dtv; 375 return _rtld_tls_get_addr(tcb, idx, offset);
|
| /src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/ |
| sanitizer_linux_libcdep.cpp | 258 // The size of a prefix of TCB including pthread::{specific_1stblock,specific} 310 // TlsPreTcbSize includes size of struct pthread_descr and size of tcb 445 struct tls_tcb *tcb = nullptr; local 447 tcb = (struct tls_tcb *)__lwp_gettcb_fast(); 449 tcb = (struct tls_tcb *)__lwp_getprivate_fast(); 451 return tcb; 571 struct tls_tcb * const tcb = ThreadSelfTlsTcb(); 574 if (tcb != 0) { 581 *addr = (uptr)tcb->tcb_dtv[1];
|
| /src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/ |
| sanitizer_linux_libcdep.cpp | 254 // The size of a prefix of TCB including pthread::{specific_1stblock,specific} 303 // TlsPreTcbSize includes size of struct pthread_descr and size of tcb 414 struct tls_tcb *tcb = nullptr; local 416 tcb = (struct tls_tcb *)__lwp_gettcb_fast(); 418 tcb = (struct tls_tcb *)__lwp_getprivate_fast(); 420 return tcb; 531 struct tls_tcb * const tcb = ThreadSelfTlsTcb(); 534 if (tcb != 0) { 541 *addr = (uptr)tcb->tcb_dtv[1];
|
| /src/sys/netinet/ |
| sctp_structs.h | 58 void *tcb; member in struct:sctp_timer
|