Home
last modified time | relevance | path

Searched refs:tcb (Results 1 – 25 of 101) sorted by relevance

12345

/freebsd/sys/x86/include/
H A Dtls.h53 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 Dthr_ctrdtr.c34 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 Dthr_list.c136 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 Dthr_symbols.c42 int _thread_off_tcb = offsetof(struct pthread, tcb);
55 int _thread_off_dtv = offsetof(struct tcb, tcb_dtv);
/freebsd/lib/libc/gen/
H A Dtls.c177 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 Dtls.h40 _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 Dtls.h40 _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 Dtls.h45 _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 Dtls.h46 _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 Dtermcap.pl53 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 Datmel-tcb.txt2 - 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 Dt4_tom.c442 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 Dthr_machdep.c27 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 Dsock.c246 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 Dat91-kizbox.dts84 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 Dmpa1600.dts36 compatible = "atmel,tcb-timer";
41 compatible = "atmel,tcb-timer";
H A Dat91-ariettag25.dts66 compatible = "atmel,tcb-timer";
71 compatible = "atmel,tcb-timer";
H A Dat91-linea.dtsi31 compatible = "atmel,tcb-timer";
36 compatible = "atmel,tcb-timer";
H A Dge863-pro3.dtsi22 compatible = "atmel,tcb-timer";
27 compatible = "atmel,tcb-timer";
H A Dethernut5.dts40 compatible = "atmel,tcb-timer";
45 compatible = "atmel,tcb-timer";
/freebsd/sys/sys/
H A D_tls_variant_i.h50 struct tcb { struct
55 #define TLS_TCB_SIZE sizeof(struct tcb)
/freebsd/lib/libthr/arch/i386/include/
H A Dpthread_md.h51 : "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 Drtld.c179 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 Drtld.h418 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 Datmel-tcb-pwm.txt4 - compatible: should be "atmel,tcb-pwm"
13 compatible = "atmel,tcb-pwm";

12345