Home
last modified time | relevance | path

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

12345

/freebsd/sys/x86/include/
H A Dtls.h43 struct tcb { struct
44 struct tcb *tcb_self; /* required by rtld */ argument
55 #define TLS_TCB_SIZE sizeof(struct tcb)
59 _tcb_set(struct tcb *tcb) in _tcb_set() argument
62 amd64_set_fsbase(tcb); in _tcb_set()
64 i386_set_gsbase(tcb); in _tcb_set()
68 static __inline struct tcb *
71 struct tcb *tcb; in _tcb_get() local
74 __asm __volatile("movq %%fs:0, %0" : "=r" (tcb)); in _tcb_get()
76 __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.c135 struct tcb *tcb; in _thr_alloc() local
170 tcb = _tcb_ctor(thread, 0 /* not initial tls */); in _thr_alloc()
173 tcb = _tcb_ctor(thread, 1 /* initial tls */); in _thr_alloc()
175 if (tcb != NULL) { in _thr_alloc()
176 thread->tcb = tcb; in _thr_alloc()
197 _tcb_dtor(thread->tcb); in _thr_free()
200 _tcb_dtor(thread->tcb); in _thr_free()
202 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/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/sys/contrib/device-tree/Bindings/soc/microchip/
H A Datmel,at91rm9200-tcb.yaml20 - atmel,at91rm9200-tcb
21 - atmel,at91sam9x5-tcb
22 - atmel,sama5d2-tcb
62 - atmel,tcb-timer
63 - atmel,tcb-pwm
64 - microchip,tcb-capture
83 const: atmel,tcb-pwm
108 const: atmel,sama5d2-tcb
159 compatible = "atmel,tcb-timer";
164 compatible = "atmel,tcb-timer";
[all …]
/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/lib/libc/gen/
H A Dtls.c176 get_tls_block_ptr(void *tcb, size_t tcbsize) in get_tls_block_ptr() argument
191 return ((char *)tcb - pre_size - extra_size); in get_tls_block_ptr()
205 tls = (Elf_Addr **)tcb; in __libc_free_tls()
208 libc_free_aligned(get_tls_block_ptr(tcb, tcbsize)); in __libc_free_tls()
234 Elf_Addr *dtv, **tcb; in __libc_allocate_tls() local
264 tls = (char *)tcb + TLS_TCB_SIZE + post_size; in __libc_allocate_tls()
272 dtv = tcb[0]; in __libc_allocate_tls()
281 tcb[0] = dtv; in __libc_allocate_tls()
290 return (tcb); in __libc_allocate_tls()
314 dtv = ((Elf_Addr**)tcb)[1]; in __libc_free_tls()
[all …]
/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.c429 return ((be64toh(tcb[14]) << 32) | (be64toh(tcb[15]) >> 32)); in get_tcb_tflags()
459 #define GET_TCB_FIELD(tcb, F) \ argument
633 if (GET_TCB_FIELD(tcb, SND_MAX_RAW) != GET_TCB_FIELD(tcb, SND_UNA_RAW)) { in update_tcb_histent()
696 (uintmax_t)get_tcb_tflags(tcb), GET_TCB_FIELD(tcb, T_STATE), in do_get_tcb_rpl()
697 GET_TCB_FIELD(tcb, T_SRTT), GET_TCB_FIELD(tcb, SND_SCALE), in do_get_tcb_rpl()
707 update_tcb_histent(te, tcb); in do_get_tcb_rpl()
771 u_char *tcb, tmp; in read_tcb_using_memwin() local
781 tcb = (u_char *)buf; in read_tcb_using_memwin()
784 tmp = tcb[i + k]; in read_tcb_using_memwin()
785 tcb[i + k] = tcb[j + k]; in read_tcb_using_memwin()
[all …]
/freebsd/sbin/ipf/ipsend/
H A Dsock.c247 struct tcpcb *t, tcb; in do_socket() local
298 KMCPY(&tcb, t, sizeof(tcb)); in do_socket()
299 ti->ti_win = tcb.rcv_adv; in do_socket()
300 ti->ti_seq = tcb.snd_nxt - 1; in do_socket()
301 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";
H A Dtny_a9260_common.dtsi31 compatible = "atmel,tcb-timer";
36 compatible = "atmel,tcb-timer";
H A Dtny_a9263.dts40 compatible = "atmel,tcb-timer";
45 compatible = "atmel,tcb-timer";
H A Dusb_a9260_common.dtsi27 compatible = "atmel,tcb-timer";
32 compatible = "atmel,tcb-timer";
/freebsd/sys/sys/
H A D_tls_variant_i.h40 struct tcb { struct
45 #define TLS_TCB_SIZE sizeof(struct tcb)
/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