| /freebsd/sys/x86/include/ |
| H A D | tls.h | 53 struct tcb { struct 54 struct tcb *tcb_self; /* required by rtld */ argument 65 #define TLS_TCB_SIZE sizeof(struct tcb) 69 _tcb_set(struct tcb *tcb) in _tcb_set() argument 72 amd64_set_tlsbase(tcb); in _tcb_set() 74 i386_set_gsbase(tcb); in _tcb_set() 78 static __inline struct tcb * 81 struct tcb *tcb; in _tcb_get() local 84 __asm __volatile("movq %%fs:0, %0" : "=r" (tcb)); in _tcb_get() 86 __asm __volatile("movl %%gs:0, %0" : "=r" (tcb)); in _tcb_get() [all …]
|
| /freebsd/lib/libthr/thread/ |
| H A D | thr_ctrdtr.c | 34 struct tcb * 37 struct tcb *tcb; in _tcb_ctor() local 40 tcb = _tcb_get(); in _tcb_ctor() 42 tcb = _rtld_allocate_tls(NULL, TLS_TCB_SIZE, TLS_TCB_ALIGN); in _tcb_ctor() 43 if (tcb) in _tcb_ctor() 44 tcb->tcb_thread = thread; in _tcb_ctor() 45 return (tcb); in _tcb_ctor() 49 _tcb_dtor(struct tcb *tcb) in _tcb_dtor() argument 52 _rtld_free_tls(tcb, TLS_TCB_SIZE, TLS_TCB_ALIGN); in _tcb_dtor()
|
| H A D | thr_list.c | 136 struct tcb *tcb; in _thr_alloc() local 173 tcb = _tcb_ctor(thread, 0 /* not initial tls */); in _thr_alloc() 176 tcb = _tcb_ctor(thread, 1 /* initial tls */); in _thr_alloc() 178 if (tcb != NULL) { in _thr_alloc() 179 thread->tcb = tcb; in _thr_alloc() 200 _tcb_dtor(thread->tcb); in _thr_free() 203 _tcb_dtor(thread->tcb); in _thr_free() 205 thread->tcb = NULL; in _thr_free()
|
| 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);
|
| /freebsd/lib/libc/gen/ |
| H A D | tls.c | 177 get_tls_block_ptr(void *tcb, size_t tcbsize) in get_tls_block_ptr() argument 192 return ((char *)tcb - pre_size - extra_size); in get_tls_block_ptr() 201 __libc_free_tls(void *tcb, size_t tcbsize, size_t tcbalign __unused) in __libc_free_tls() argument 205 dtv = ((struct tcb *)tcb)->tcb_dtv; in __libc_free_tls() 207 libc_free_aligned(get_tls_block_ptr(tcb, tcbsize)); in __libc_free_tls() 234 struct tcb *tcb; in __libc_allocate_tls() local 263 tcb = (struct tcb *)(tls_block + pre_size + extra_size); in __libc_allocate_tls() 264 tls = (char *)tcb + TLS_TCB_SIZE + post_size; in __libc_allocate_tls() 272 dtv = tcb->tcb_dtv; in __libc_allocate_tls() 282 tcb->tcb_dtv = dtv; in __libc_allocate_tls() [all …]
|
| /freebsd/sys/powerpc/include/ |
| H A D | tls.h | 40 _tcb_set(struct tcb *tcb) in _tcb_set() argument 44 "r" ((uint8_t *)tcb + TLS_TP_OFFSET + TLS_TCB_SIZE)); in _tcb_set() 47 "r" ((uint8_t *)tcb + TLS_TP_OFFSET + TLS_TCB_SIZE)); in _tcb_set() 51 static __inline struct tcb * 54 struct tcb *tcb; in _tcb_get() local 57 __asm __volatile("addi %0,13,%1" : "=r" (tcb) : in _tcb_get() 60 __asm __volatile("addi %0,2,%1" : "=r" (tcb) : in _tcb_get() 63 return (tcb); in _tcb_get()
|
| /freebsd/sys/arm/include/ |
| H A D | tls.h | 40 _tcb_set(struct tcb *tcb) in _tcb_set() argument 42 sysarch(ARM_SET_TP, tcb); in _tcb_set() 45 static __inline struct tcb * 48 struct tcb *tcb; in _tcb_get() local 51 : "=r" (tcb)); in _tcb_get() 52 return (tcb); in _tcb_get()
|
| /freebsd/sys/arm64/include/ |
| H A D | tls.h | 45 _tcb_set(struct tcb *tcb) in _tcb_set() argument 47 __asm __volatile("msr tpidr_el0, %x0" :: "r" (tcb)); in _tcb_set() 50 static __inline struct tcb * 53 struct tcb *tcb; in _tcb_get() local 55 __asm __volatile("mrs %x0, tpidr_el0" : "=r" (tcb)); in _tcb_get() 56 return (tcb); in _tcb_get()
|
| /freebsd/sys/riscv/include/ |
| H A D | tls.h | 46 _tcb_set(struct tcb *tcb) in _tcb_set() argument 48 __asm __volatile("addi tp, %0, %1" :: "r" (tcb), "I" (TLS_TCB_SIZE)); in _tcb_set() 51 static __inline struct tcb * 54 struct tcb *tcb; in _tcb_get() local 56 __asm __volatile("addi %0, tp, %1" : "=r" (tcb) : "I" (-TLS_TCB_SIZE)); in _tcb_get() 57 return (tcb); in _tcb_get()
|
| /freebsd/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}\n";
|
| /freebsd/sys/contrib/device-tree/Bindings/mfd/ |
| H A D | atmel-tcb.txt | 2 - compatible: Should be "atmel,<chip>-tcb", "simple-mfd", "syscon". 17 - compatible: Should be "atmel,tcb-timer" 19 counter width is 16 bits (at91rm9200-tcb), two consecutive 26 compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon"; 35 compatible = "atmel,tcb-timer"; 40 compatible = "atmel,tcb-timer"; 47 compatible = "atmel,at91rm9200-tcb", "simple-mfd", "syscon";
|
| /freebsd/sys/dev/cxgbe/tom/ |
| H A D | t4_tom.c | 442 get_tcb_tflags(const uint64_t *tcb) in get_tcb_tflags() argument 445 return ((be64toh(tcb[14]) << 32) | (be64toh(tcb[15]) >> 32)); in get_tcb_tflags() 449 get_tcb_field(const uint64_t *tcb, u_int word, uint32_t mask, u_int shift) in get_tcb_field() argument 462 t1 = be64toh(tcb[flit_idx]) >> shift; in get_tcb_field() 470 t2 = be64toh(tcb[flit_idx - 1]) << (64 - shift); in get_tcb_field() 475 #define GET_TCB_FIELD(tcb, F) \ argument 476 get_tcb_field(tcb, W_TCB_##F, M_TCB_##F, S_TCB_##F) 650 update_tcb_histent(struct tcb_histent *te, const uint64_t *tcb) in update_tcb_histent() argument 653 uint64_t tflags = get_tcb_tflags(tcb); in update_tcb_histent() 656 if (GET_TCB_FIELD(tcb, SND_MAX_RAW) != GET_TCB_FIELD(tcb, SND_UNA_RAW)) { in update_tcb_histent() [all …]
|
| /freebsd/lib/libthr/arch/amd64/amd64/ |
| H A D | thr_machdep.c | 27 amd64_set_tlsbase(thread->tcb); in __thr_setup_tsd() 44 amd64_set_fsbase(thread->tcb); in __thr_setup_tsd() 46 amd64_set_tlsbase(thread->tcb); in __thr_setup_tsd()
|
| /freebsd/sbin/ipf/ipsend/ |
| H A D | sock.c | 246 struct tcpcb *t, tcb; in do_socket() local 297 KMCPY(&tcb, t, sizeof(tcb)); in do_socket() 298 ti->ti_win = tcb.rcv_adv; in do_socket() 299 ti->ti_seq = tcb.snd_nxt - 1; in do_socket() 300 ti->ti_ack = tcb.rcv_nxt; in do_socket()
|
| /freebsd/sys/contrib/device-tree/src/arm/microchip/ |
| H A D | at91-kizbox.dts | 84 compatible = "atmel,tcb-timer"; 89 compatible = "atmel,tcb-timer"; 96 compatible = "atmel,tcb-pwm"; 104 compatible = "atmel,tcb-pwm"; 112 compatible = "atmel,tcb-pwm";
|
| H A D | mpa1600.dts | 36 compatible = "atmel,tcb-timer"; 41 compatible = "atmel,tcb-timer";
|
| H A D | at91-ariettag25.dts | 66 compatible = "atmel,tcb-timer"; 71 compatible = "atmel,tcb-timer";
|
| H A D | at91-linea.dtsi | 31 compatible = "atmel,tcb-timer"; 36 compatible = "atmel,tcb-timer";
|
| H A D | ge863-pro3.dtsi | 22 compatible = "atmel,tcb-timer"; 27 compatible = "atmel,tcb-timer";
|
| H A D | ethernut5.dts | 40 compatible = "atmel,tcb-timer"; 45 compatible = "atmel,tcb-timer";
|
| /freebsd/sys/sys/ |
| H A D | _tls_variant_i.h | 50 struct tcb { struct 55 #define TLS_TCB_SIZE sizeof(struct tcb)
|
| /freebsd/lib/libthr/arch/i386/include/ |
| H A D | pthread_md.h | 51 : "i" (offsetof(struct tcb, tcb_thread))); in _get_curthread() 60 #define __thr_setup_tsd(thread) _tcb_set((thread)->tcb)
|
| /freebsd/libexec/rtld-elf/ |
| H A D | rtld.c | 179 static void *tls_get_addr_slow(struct tcb *, int, size_t, bool) __noinline; 5363 tls_get_addr_slow(struct tcb *tcb, int index, size_t offset, bool locked) in tls_get_addr_slow() argument 5369 dtv = tcb->tcb_dtv; in tls_get_addr_slow() 5386 dtv = tcb->tcb_dtv = newdtv; in tls_get_addr_slow() 5396 allocate_module_tls(tcb, index); in tls_get_addr_slow() 5404 tls_get_addr_common(struct tcb *tcb, int index, size_t offset) in tls_get_addr_common() argument 5408 dtv = tcb->tcb_dtv; in tls_get_addr_common() 5413 return (tls_get_addr_slow(tcb, index, offset, false)); in tls_get_addr_common() 5416 static struct tcb * 5420 return ((struct tcb *)((char *)tcbelm - tcb_list_entry_offset)); in tcb_from_tcb_list_entry() [all …]
|
| H A D | rtld.h | 418 void *tls_get_addr_common(struct tcb *tcb, int index, size_t offset); 421 void *allocate_module_tls(struct tcb *tcb, int index);
|
| /freebsd/sys/contrib/device-tree/Bindings/pwm/ |
| H A D | atmel-tcb-pwm.txt | 4 - compatible: should be "atmel,tcb-pwm" 13 compatible = "atmel,tcb-pwm";
|