Home
last modified time | relevance | path

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

12345

/freebsd-13.1/lib/libthr/thread/
H A Dthr_ctrdtr.c37 struct tcb *
40 struct tcb *tcb; in _tcb_ctor() local
43 tcb = _tcb_get(); in _tcb_ctor()
45 tcb = _rtld_allocate_tls(NULL, sizeof(struct tcb), 16); in _tcb_ctor()
46 if (tcb) in _tcb_ctor()
47 tcb->tcb_thread = thread; in _tcb_ctor()
48 return (tcb); in _tcb_ctor()
52 _tcb_dtor(struct tcb *tcb) in _tcb_dtor() argument
55 _rtld_free_tls(tcb, sizeof(struct tcb), 16); in _tcb_dtor()
H A Dthr_list.c138 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()
/freebsd-13.1/lib/libthr/arch/mips/include/
H A Dpthread_md.h44 #define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
50 struct tcb { struct
57 _tcb_set(struct tcb *tcb) in _tcb_set() argument
60 sysarch(MIPS_SET_TLS, tcb); in _tcb_set()
67 static __inline struct tcb *
70 struct tcb *tcb; in _tcb_get() local
72 sysarch(MIPS_GET_TLS, &tcb); in _tcb_get()
73 return tcb; in _tcb_get()
79 static __inline struct tcb *
98 return (struct tcb *)(_rv - TLS_TP_OFFSET - TLS_TCB_SIZE); in _tcb_get()
[all …]
/freebsd-13.1/lib/libthr/arch/arm/include/
H A Dpthread_md.h42 #define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
48 struct tcb { struct
55 _tcb_set(struct tcb *tcb) in _tcb_set() argument
58 *((struct tcb **)ARM_TP_ADDRESS) = tcb; /* avoids a system call */ in _tcb_set()
60 sysarch(ARM_SET_TP, tcb); in _tcb_set()
67 static __inline struct tcb *
71 return (*((struct tcb **)ARM_TP_ADDRESS)); in _tcb_get()
73 struct tcb *tcb; in _tcb_get()
76 : "=r" (tcb)); in _tcb_get()
77 return (tcb); in _tcb_get()
/freebsd-13.1/lib/libthr/arch/powerpc/include/
H A Dpthread_md.h43 #define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
55 struct tcb { struct
61 _tcb_set(struct tcb *tcb) in _tcb_set() argument
65 "r"((uint8_t *)tcb + TP_OFFSET)); in _tcb_set()
68 "r"((uint8_t *)tcb + TP_OFFSET)); in _tcb_set()
72 static __inline struct tcb *
75 register struct tcb *tcb; in _tcb_get() local
78 __asm __volatile("addi %0,13,%1" : "=r"(tcb) : "i"(-TP_OFFSET)); in _tcb_get()
80 __asm __volatile("addi %0,2,%1" : "=r"(tcb) : "i"(-TP_OFFSET)); in _tcb_get()
83 return (tcb); in _tcb_get()
/freebsd-13.1/lib/libthr/arch/aarch64/include/
H A Dpthread_md.h44 #define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
50 struct tcb { struct
57 _tcb_set(struct tcb *tcb) in _tcb_set() argument
60 __asm __volatile("msr tpidr_el0, %x0" :: "r" (tcb)); in _tcb_set()
66 static __inline struct tcb *
69 struct tcb *tcb; in _tcb_get() local
71 __asm __volatile("mrs %x0, tpidr_el0" : "=r" (tcb)); in _tcb_get()
72 return (tcb); in _tcb_get()
/freebsd-13.1/lib/libthr/arch/i386/include/
H A Dpthread_md.h44 #define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
50 struct tcb { struct
51 struct tcb *tcb_self; /* required by rtld */ argument
59 #define __tcb_offset(name) __offsetof(struct tcb, name)
64 #define __tcb_type(name) __typeof(((struct tcb *)0)->name)
83 _tcb_set(struct tcb *tcb) in _tcb_set() argument
85 i386_set_gsbase(tcb); in _tcb_set()
89 static __inline struct tcb *
/freebsd-13.1/lib/libthr/arch/amd64/include/
H A Dpthread_md.h44 #define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
50 struct tcb { struct
51 struct tcb *tcb_self; /* required by rtld */ argument
60 #define __tcb_offset(name) __offsetof(struct tcb, name)
65 #define __tcb_type(name) __typeof(((struct tcb *)0)->name)
83 _tcb_set(struct tcb *tcb) in _tcb_set() argument
85 amd64_set_fsbase(tcb); in _tcb_set()
88 static __inline struct tcb *
/freebsd-13.1/lib/libthr/arch/riscv/include/
H A Dpthread_md.h48 #define DTV_OFFSET offsetof(struct tcb, tcb_dtv)
49 #define TP_OFFSET sizeof(struct tcb)
55 struct tcb { struct
62 _tcb_set(struct tcb *tcb) in _tcb_set() argument
65 __asm __volatile("addi tp, %0, %1" :: "r"(tcb), "I"(TP_OFFSET)); in _tcb_set()
71 static __inline struct tcb *
74 struct tcb *_tcb; in _tcb_get()
/freebsd-13.1/sys/contrib/device-tree/Bindings/soc/microchip/
H A Datmel,at91rm9200-tcb.yaml20 - atmel,at91rm9200-tcb
21 - atmel,at91sam9x5-tcb
22 - atmel,sama5d2-tcb
61 - atmel,tcb-timer
62 - microchip,tcb-capture
81 const: atmel,sama5d2-tcb
132 compatible = "atmel,tcb-timer";
137 compatible = "atmel,tcb-timer";
153 compatible = "atmel,tcb-timer";
158 compatible = "atmel,tcb-timer";
[all …]
/freebsd-13.1/tools/tools/termcap/
H A Dtermcap.pl54 my $tcb = $ARGV[2];
112 $tcb = $refs{$tcb} if (defined $tcb && defined $refs{$tca});
115 die "Cannot find definitions for $tcb" if (defined $tcb && !defined $tcs{$tcb});
119 next if (!defined $tc{$tca}{$key} && !defined $tc{$tcb}{$key});
122 defined $tc{$tcb}{$key} ? "+" : "",
127 print "$len{$tca} - $len{$tcb}\n";
/freebsd-13.1/lib/libc/gen/
H A Dtls.c189 get_tls_block_ptr(void *tcb, size_t tcbsize) in get_tls_block_ptr() argument
204 return ((char *)tcb - pre_size - extra_size); in get_tls_block_ptr()
218 tls = (Elf_Addr **)tcb; in __libc_free_tls()
221 libc_free_aligned(get_tls_block_ptr(tcb, tcbsize)); in __libc_free_tls()
247 Elf_Addr *dtv, **tcb; in __libc_allocate_tls() local
277 tls = (char *)tcb + TLS_TCB_SIZE + post_size; in __libc_allocate_tls()
285 dtv = tcb[0]; in __libc_allocate_tls()
294 tcb[0] = dtv; in __libc_allocate_tls()
303 return (tcb); in __libc_allocate_tls()
329 dtv = ((Elf_Addr**)tcb)[1]; in __libc_free_tls()
[all …]
/freebsd-13.1/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-13.1/sys/dev/cxgbe/tom/
H A Dt4_tom.c439 return ((be64toh(tcb[14]) << 32) | (be64toh(tcb[15]) >> 32)); in get_tcb_tflags()
469 #define GET_TCB_FIELD(tcb, F) \ argument
640 if (GET_TCB_FIELD(tcb, SND_MAX_RAW) != GET_TCB_FIELD(tcb, SND_UNA_RAW)) { in update_tcb_histent()
703 (uintmax_t)get_tcb_tflags(tcb), GET_TCB_FIELD(tcb, T_STATE), in do_get_tcb_rpl()
704 GET_TCB_FIELD(tcb, T_SRTT), GET_TCB_FIELD(tcb, SND_SCALE), in do_get_tcb_rpl()
714 update_tcb_histent(te, tcb); in do_get_tcb_rpl()
774 u_char *tcb, tmp; in read_tcb_using_memwin() local
783 tcb = (u_char *)buf; in read_tcb_using_memwin()
786 tmp = tcb[i + k]; in read_tcb_using_memwin()
787 tcb[i + k] = tcb[j + k]; in read_tcb_using_memwin()
[all …]
/freebsd-13.1/sys/compat/cloudabi32/
H A Dcloudabi32_thread.c40 uint32_t tcb; member
53 return (cloudabi32_thread_setregs(td, &args->attr, args->tcb)); in initialize_thread()
68 args.tcb = rounddown(args.attr.stack + args.attr.stack_len - in cloudabi32_sys_thread_create()
70 args.attr.stack_len = args.tcb - args.attr.stack; in cloudabi32_sys_thread_create()
/freebsd-13.1/sys/compat/cloudabi64/
H A Dcloudabi64_thread.c40 uint64_t tcb; member
53 return (cloudabi64_thread_setregs(td, &args->attr, args->tcb)); in initialize_thread()
68 args.tcb = rounddown(args.attr.stack + args.attr.stack_len - in cloudabi64_sys_thread_create()
70 args.attr.stack_len = args.tcb - args.attr.stack; in cloudabi64_sys_thread_create()
/freebsd-13.1/sbin/ipf/ipsend/
H A Dsock.c251 struct tcpcb *t, tcb; in do_socket() local
302 KMCPY(&tcb, t, sizeof(tcb)); in do_socket()
303 ti->ti_win = tcb.rcv_adv; in do_socket()
304 ti->ti_seq = tcb.snd_nxt - 1; in do_socket()
305 ti->ti_ack = tcb.rcv_nxt; in do_socket()
/freebsd-13.1/sys/contrib/device-tree/Bindings/pwm/
H A Datmel-tcb-pwm.txt4 - compatible: should be "atmel,tcb-pwm"
13 compatible = "atmel,tcb-pwm";
/freebsd-13.1/sys/amd64/cloudabi64/
H A Dcloudabi64_sysvec.c159 const cloudabi64_threadattr_t *attr, uint64_t tcb) in cloudabi64_thread_setregs() argument
173 error = copyout(&tcb, (void *)tcbptr, sizeof(tcb)); in cloudabi64_thread_setregs()
/freebsd-13.1/sys/contrib/device-tree/src/arm/
H A Dmpa1600.dts36 compatible = "atmel,tcb-timer";
41 compatible = "atmel,tcb-timer";
H A Dat91-kizbox.dts84 compatible = "atmel,tcb-pwm";
97 compatible = "atmel,tcb-timer";
102 compatible = "atmel,tcb-timer";
H A Dat91-ariettag25.dts65 compatible = "atmel,tcb-timer";
70 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 Dtny_a9260_common.dtsi31 compatible = "atmel,tcb-timer";
36 compatible = "atmel,tcb-timer";

12345