Home
last modified time | relevance | path

Searched full:tcb (Results 1 – 25 of 169) sorted by relevance

1234567

/freebsd/contrib/ncurses/ncurses/win32con/
H A Dwin32_driver.c58 #define AssertTCB() assert(TCB != 0 && (TCB->magic == WINMAGIC))
62 #define SetSP() assert(TCB->csp != 0); sp = TCB->csp; (void) sp
170 con_write16(TERMINAL_CONTROL_BLOCK * TCB, in con_write16() argument
218 #define con_write(tcb, y, x, str, n) con_write16(tcb, y, x, str, n) argument
221 con_write8(TERMINAL_CONTROL_BLOCK * TCB, int y, int x, chtype *str, int n) in con_write8() argument
257 #define con_write(tcb, y, x, str, n) con_write8(tcb, y, x, str, n) argument
377 wcon_name(TERMINAL_CONTROL_BLOCK * TCB) in wcon_name() argument
379 (void) TCB; in wcon_name()
384 wcon_doupdate(TERMINAL_CONTROL_BLOCK * TCB) in wcon_doupdate() argument
390 T((T_CALLED("win32con::wcon_doupdate(%p)"), TCB)); in wcon_doupdate()
[all …]
H A Dwin_driver.c73 #define AssertTCB() assert(TCB != 0 && (TCB->magic == WINMAGIC))
74 #define SetSP() assert(TCB->csp != 0); sp = TCB->csp; (void) sp
262 con_write16(TERMINAL_CONTROL_BLOCK * TCB, int y, int x, cchar_t *str, int limit) in con_write16() argument
309 #define con_write(tcb, y, x, str, n) con_write16(tcb, y, x, str, n) argument
312 con_write8(TERMINAL_CONTROL_BLOCK * TCB, int y, int x, chtype *str, int n) in con_write8() argument
348 #define con_write(tcb, y, x, str, n) con_write8(tcb, y, x, str, n) argument
472 wcon_name(TERMINAL_CONTROL_BLOCK * TCB) in wcon_name() argument
474 (void) TCB; in wcon_name()
479 wcon_doupdate(TERMINAL_CONTROL_BLOCK * TCB) in wcon_doupdate() argument
485 T((T_CALLED("win32con::wcon_doupdate(%p)"), TCB)); in wcon_doupdate()
[all …]
/freebsd/sys/contrib/device-tree/Bindings/soc/microchip/
H A Datmel,at91rm9200-tcb.yaml4 $id: http://devicetree.org/schemas/soc/microchip/atmel,at91rm9200-tcb.yaml#
20 - atmel,at91rm9200-tcb
21 - atmel,at91sam9x5-tcb
22 - atmel,sama5d2-tcb
31 List of interrupts. One interrupt per TCB channel if available or one
62 - atmel,tcb-timer
63 - atmel,tcb-pwm
64 - microchip,tcb-capture
67 List of channels to use for this particular timer. In Microchip TCB capture
83 const: atmel,tcb-pwm
[all …]
/freebsd/contrib/ncurses/ncurses/tinfo/
H A Dtinfo_driver.c36 #define CUR TerminalType((TERMINAL*)TCB).
97 #define AssertTCB() assert(TCB!=0 && TCB->magic==TCBMAGIC)
98 #define SetSP() assert(TCB->csp!=0); sp = TCB->csp; (void) sp
105 drv_doupdate(TERMINAL_CONTROL_BLOCK * TCB) in drv_doupdate() argument
108 return TINFO_DOUPDATE(TCB->csp); in drv_doupdate()
112 drv_Name(TERMINAL_CONTROL_BLOCK * TCB) in drv_Name() argument
114 (void) TCB; in drv_Name()
156 drv_CanHandle(TERMINAL_CONTROL_BLOCK * TCB, const char *tname, int *errret) in drv_CanHandle() argument
164 T((T_CALLED("tinfo::drv_CanHandle(%p)"), (void *) TCB)); in drv_CanHandle()
166 assert(TCB != 0 && tname != 0); in drv_CanHandle()
[all …]
H A Dlib_cur_term.c98 TERMINAL_CONTROL_BLOCK *TCB = (TERMINAL_CONTROL_BLOCK *) termp; in NCURSES_SP_NAME() local
100 if (TCB->drv && in NCURSES_SP_NAME()
101 TCB->drv->isTerminfo && in NCURSES_SP_NAME()
105 TCB->csp = SP_PARM; in NCURSES_SP_NAME()
139 TERMINAL_CONTROL_BLOCK *TCB = (TERMINAL_CONTROL_BLOCK *) termp; in NCURSES_SP_NAME() local
167 if (TCB->drv) in NCURSES_SP_NAME()
168 TCB->drv->td_release(TCB); in NCURSES_SP_NAME()
/freebsd/sys/x86/include/
H A Dtls.h40 * Variant II tcb, first two members are required by rtld,
43 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()
[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()
191 * Always free tcb, as we only know it is part of RTLD TLS in _thr_free()
197 _tcb_dtor(thread->tcb); in _thr_free()
200 _tcb_dtor(thread->tcb); in _thr_free()
202 thread->tcb = NULL; in _thr_free()
/freebsd/lib/libc/gen/
H A Dtls.c144 * where TP points to start of TCB followed by aligned TLS segment.
145 * Both TCB and TLS must be aligned to alignment of TLS section. The TCB[0]
147 * Note: for Local Exec TLS Model, the offsets from TP (TCB in this case) to
151 * where TP points (with bias) to TLS and TCB immediately precedes TLS without
152 * any alignment gap[4]. Only TLS should be aligned. The TCB[0] points to DTV
169 * TCB as argument.
178 get_tls_block_ptr(void *tcb, size_t tcbsize) in get_tls_block_ptr() argument
193 return ((char *)tcb - pre_size - extra_size); in get_tls_block_ptr()
202 __libc_free_tls(void *tcb, size_t tcbsize, size_t tcbalign __unused) in __libc_free_tls() argument
207 tls = (Elf_Addr **)tcb; in __libc_free_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/contrib/device-tree/Bindings/mfd/
H A Datmel-tcb.txt2 - compatible: Should be "atmel,<chip>-tcb", "simple-mfd", "syscon".
15 The TCB can expose multiple subdevices:
17 - compatible: Should be "atmel,tcb-timer"
18 - reg: Should contain the TCB channels to be used. If the
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/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/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)
479 * Issues a CPL_GET_TCB to read the entire TCB for the tid.
515 mtx_init(&te->te_lock, "TCB entry", NULL, MTX_DEF); in alloc_tcb_histent()
532 * Start tracking the tid in the TCB history.
[all …]
/freebsd/libexec/rtld-elf/
H A Drtld_tls.h40 * for the thread library's private purposes. The location of the TCB
42 * 'Variant I' TLS, the thread local storage follows the TCB, and for
45 * TCB must begin with two pointer fields which are used by rtld for
46 * its TLS implementation. For the 'Variant I' model, the TCB must
67 void _rtld_free_tls(void *tcb, size_t tcbsize, size_t tcbalign) __exported;
/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";
/freebsd/sys/contrib/device-tree/Bindings/pwm/
H A Datmel-tcb-pwm.txt1 Atmel TCB PWM controller
4 - compatible: should be "atmel,tcb-pwm"
13 compatible = "atmel,tcb-pwm";
/freebsd/contrib/ncurses/ncurses/base/
H A Dlib_driver.c54 _nc_get_driver(TERMINAL_CONTROL_BLOCK * TCB, const char *name, int *errret) in _nc_get_driver() argument
62 (void *) TCB, NonNull(name), (void *) errret)); in _nc_get_driver()
64 assert(TCB != 0); in _nc_get_driver()
68 if (strcmp(DriverTable[i].name, res->td_name(TCB)) == 0) { in _nc_get_driver()
69 if (res->td_CanHandle(TCB, name, errret)) { in _nc_get_driver()
76 TCB->drv = use; in _nc_get_driver()
H A Dlib_endwin.c58 TERMINAL_CONTROL_BLOCK *TCB = TCBOf(SP_PARM); in NCURSES_EXPORT() local
61 if (TCB && TCB->drv && TCB->drv->td_scexit) in NCURSES_EXPORT()
62 TCB->drv->td_scexit(SP_PARM); in NCURSES_EXPORT()
/freebsd/sys/netinet/
H A Dtcp_hpts.h76 * any output (or input) functions on a TCB that
80 * be sent when a TCB is still around must be
124 * To insert a TCB on the hpts you *must* be holding the
126 * the hpts's lock and insert the TCB on the requested
137 * put the TCB back on the hpts and it will return. If your
144 * that INP_WLOCK() or from destroying your TCB where again
/freebsd/sys/sys/
H A D_tls_variant_i.h33 * Variant I TLS uses the same TCB layout across architectures.
40 struct tcb { struct
45 #define TLS_TCB_SIZE sizeof(struct tcb)
/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()

1234567