/freebsd-current/lib/libthr/thread/ |
H A D | thr_ctrdtr.c | 34 struct tcb * 37 struct tcb *tcb; local 40 tcb = _tcb_get(); 42 tcb = _rtld_allocate_tls(NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN); 43 if (tcb) 44 tcb->tcb_thread = thread; 45 return (tcb); 49 _tcb_dtor(struct tcb *tcb) argument [all...] |
H A D | thr_symbols.c | 42 int _thread_off_tcb = offsetof(struct pthread, tcb); 55 int _thread_off_dtv = offsetof(struct tcb, tcb_dtv);
|
H A D | thr_list.c | 135 struct tcb *tcb; local 170 tcb = _tcb_ctor(thread, 0 /* not initial tls */); 173 tcb = _tcb_ctor(thread, 1 /* initial tls */); 175 if (tcb != NULL) { 176 thread->tcb = tcb; 191 * Always free tcb, as we only know it is part of RTLD TLS 197 _tcb_dtor(thread->tcb); 200 _tcb_dtor(thread->tcb); [all...] |
H A D | thr_create.c | 159 param.tls_base = (char *)new_thread->tcb; 160 param.tls_size = sizeof(struct tcb);
|
/freebsd-current/sys/riscv/include/ |
H A D | tls.h | 46 _tcb_set(struct tcb *tcb) argument 48 __asm __volatile("addi tp, %0, %1" :: "r" (tcb), "I" (TLS_TCB_SIZE)); 51 static __inline struct tcb * 54 struct tcb *tcb; local 56 __asm __volatile("addi %0, tp, %1" : "=r" (tcb) : "I" (-TLS_TCB_SIZE)); 57 return (tcb);
|
/freebsd-current/sys/arm/include/ |
H A D | tls.h | 40 _tcb_set(struct tcb *tcb) argument 42 sysarch(ARM_SET_TP, tcb); 45 static __inline struct tcb * 48 struct tcb *tcb; local 51 : "=r" (tcb)); 52 return (tcb);
|
/freebsd-current/sys/arm64/include/ |
H A D | tls.h | 45 _tcb_set(struct tcb *tcb) argument 47 __asm __volatile("msr tpidr_el0, %x0" :: "r" (tcb)); 50 static __inline struct tcb * 53 struct tcb *tcb; local 55 __asm __volatile("mrs %x0, tpidr_el0" : "=r" (tcb)); 56 return (tcb);
|
/freebsd-current/sys/x86/include/ |
H A D | tls.h | 40 * Variant II tcb, first two members are required by rtld, 43 struct tcb { struct 44 struct tcb *tcb_self; /* required by rtld */ 55 #define TLS_TCB_SIZE sizeof(struct tcb) 59 _tcb_set(struct tcb *tcb) argument 62 amd64_set_fsbase(tcb); 64 i386_set_gsbase(tcb); 68 static __inline struct tcb * 71 struct tcb *tc local [all...] |
/freebsd-current/sys/powerpc/include/ |
H A D | tls.h | 40 _tcb_set(struct tcb *tcb) argument 44 "r" ((uint8_t *)tcb + TLS_TP_OFFSET + TLS_TCB_SIZE)); 47 "r" ((uint8_t *)tcb + TLS_TP_OFFSET + TLS_TCB_SIZE)); 51 static __inline struct tcb * 54 struct tcb *tcb; local 57 __asm __volatile("addi %0,13,%1" : "=r" (tcb) : 60 __asm __volatile("addi %0,2,%1" : "=r" (tcb) : 63 return (tcb); [all...] |
/freebsd-current/sys/sys/ |
H A D | _tls_variant_i.h | 40 struct tcb { struct 45 #define TLS_TCB_SIZE sizeof(struct tcb)
|
/freebsd-current/lib/libthr/arch/aarch64/include/ |
H A D | pthread_tls.h | 39 tlsbase = (uintptr_t)thr->tcb;
|
/freebsd-current/libexec/rtld-elf/ |
H A D | rtld_tls.h | 67 void _rtld_free_tls(void *tcb, size_t tcbsize, size_t tcbalign) __exported;
|
/freebsd-current/lib/libthr/arch/amd64/include/ |
H A D | pthread_tls.h | 39 tlsbase = (uintptr_t)thr->tcb;
|
H A D | pthread_md.h | 51 : "m" (*(volatile u_long *)offsetof(struct tcb, tcb_thread)));
|
/freebsd-current/lib/libthr/arch/arm/include/ |
H A D | pthread_tls.h | 39 tlsbase = (uintptr_t)thr->tcb;
|
/freebsd-current/lib/libthr/arch/powerpc/include/ |
H A D | pthread_tls.h | 39 tlsbase = (uintptr_t)thr->tcb;
|
/freebsd-current/lib/libthr/arch/riscv/include/ |
H A D | pthread_tls.h | 39 tlsbase = (uintptr_t)thr->tcb;
|
/freebsd-current/lib/libthr/arch/i386/include/ |
H A D | pthread_tls.h | 39 tlsbase = (uintptr_t)thr->tcb;
|
H A D | pthread_md.h | 51 : "m" (*(volatile u_int *)offsetof(struct tcb, tcb_thread)));
|
/freebsd-current/tools/tools/termcap/ |
H A D | termcap.pl | 53 my $tcb = $ARGV[2]; 111 $tcb = $refs{$tcb} if (defined $tcb && defined $refs{$tca}); 114 die "Cannot find definitions for $tcb" if (defined $tcb && !defined $tcs{$tcb}); 118 next if (!defined $tc{$tca}{$key} && !defined $tc{$tcb}{$key}); 121 defined $tc{$tcb}{$key} ? "+" : "", 126 print "$len{$tca} - $len{$tcb}\ [all...] |
/freebsd-current/lib/libc/gen/ |
H A D | tls.c | 176 get_tls_block_ptr(void *tcb, size_t tcbsize) argument 191 return ((char *)tcb - pre_size - extra_size); 200 __libc_free_tls(void *tcb, size_t tcbsize, size_t tcbalign __unused) argument 205 tls = (Elf_Addr **)tcb; 208 libc_free_aligned(get_tls_block_ptr(tcb, tcbsize)); 234 Elf_Addr *dtv, **tcb; local 263 tcb = (Elf_Addr **)(tls_block + pre_size + extra_size); 264 tls = (char *)tcb + TLS_TCB_SIZE + post_size; 272 dtv = tcb[0]; 281 tcb[ 301 __libc_free_tls(void *tcb, size_t tcbsize __unused, size_t tcbalign) argument [all...] |
/freebsd-current/sbin/ipf/ipsend/ |
H A D | sock.c | 247 struct tcpcb *t, tcb; local 298 KMCPY(&tcb, t, sizeof(tcb)); 299 ti->ti_win = tcb.rcv_adv; 300 ti->ti_seq = tcb.snd_nxt - 1; 301 ti->ti_ack = tcb.rcv_nxt;
|
H A D | iptests.c | 1051 struct tcpcb *tcbp, tcb; local 1086 KMCPY(&tcb, tcbp, sizeof(tcb)); 1087 ti.ti_win = tcb.rcv_adv; 1088 ti.ti_seq = htonl(tcb.snd_nxt - 1); 1089 ti.ti_ack = tcb.rcv_nxt; 1102 t->th_seq = htonl(tcb.snd_nxt);
|
/freebsd-current/sys/dev/cxgbe/tom/ |
H A D | t4_tom.c | 426 get_tcb_tflags(const uint64_t *tcb) argument 429 return ((be64toh(tcb[14]) << 32) | (be64toh(tcb[15]) >> 32)); 433 get_tcb_field(const uint64_t *tcb, u_int word, uint32_t mask, u_int shift) argument 446 t1 = be64toh(tcb[flit_idx]) >> shift; 454 t2 = be64toh(tcb[flit_idx - 1]) << (64 - shift); 459 #define GET_TCB_FIELD(tcb, F) \ 460 get_tcb_field(tcb, W_TCB_##F, M_TCB_##F, S_TCB_##F) 627 update_tcb_histent(struct tcb_histent *te, const uint64_t *tcb) argument 630 uint64_t tflags = get_tcb_tflags(tcb); 685 const uint64_t *tcb = (const uint64_t *)(const void *)(cpl + 1); local 717 fill_tcp_info_from_tcb(struct adapter *sc, uint64_t *tcb, struct tcp_info *ti) argument 771 u_char *tcb, tmp; local 794 uint64_t tcb[TCB_SIZE / sizeof(uint64_t)]; local [all...] |
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_linux_libcdep.cpp | 314 // TlsPreTcbSize includes size of struct pthread_descr and size of tcb 448 struct tls_tcb *tcb = nullptr; local 450 tcb = (struct tls_tcb *)__lwp_gettcb_fast(); 452 tcb = (struct tls_tcb *)__lwp_getprivate_fast(); 454 return tcb; 572 struct tls_tcb *const tcb = ThreadSelfTlsTcb(); 575 if (tcb != 0) { 582 *addr = (uptr)tcb->tcb_dtv[1];
|