Home
last modified time | relevance | path

Searched refs:th (Results 1 – 25 of 356) sorted by relevance

12345678910>>...15

/NextBSD/lib/libthread_db/
HDthread_db.c94 td_ta_map_id2thr(const td_thragent_t *ta, thread_t id, td_thrhandle_t *th) in td_ta_map_id2thr() argument
96 return (ta->ta_ops->to_ta_map_id2thr(ta, id, th)); in td_ta_map_id2thr()
100 td_ta_map_lwp2thr(const td_thragent_t *ta, lwpid_t lwpid, td_thrhandle_t *th) in td_ta_map_lwp2thr() argument
102 return (ta->ta_ops->to_ta_map_lwp2thr(ta, lwpid, th)); in td_ta_map_lwp2thr()
144 td_thr_clear_event(const td_thrhandle_t *th, td_thr_events_t *events) in td_thr_clear_event() argument
146 const td_thragent_t *ta = th->th_ta; in td_thr_clear_event()
147 return (ta->ta_ops->to_thr_clear_event(th, events)); in td_thr_clear_event()
151 td_thr_dbresume(const td_thrhandle_t *th) in td_thr_dbresume() argument
153 const td_thragent_t *ta = th->th_ta; in td_thr_dbresume()
154 return (ta->ta_ops->to_thr_dbresume(th)); in td_thr_dbresume()
[all …]
HDlibthr_db.c76 static int pt_validate(const td_thrhandle_t *th);
202 pt_ta_map_id2thr(const td_thragent_t *ta, thread_t id, td_thrhandle_t *th) in pt_ta_map_id2thr() argument
229 th->th_ta = ta; in pt_ta_map_id2thr()
230 th->th_tid = id; in pt_ta_map_id2thr()
231 th->th_thread = pt; in pt_ta_map_id2thr()
236 pt_ta_map_lwp2thr(const td_thragent_t *ta, lwpid_t lwp, td_thrhandle_t *th) in pt_ta_map_lwp2thr() argument
238 return (pt_ta_map_id2thr(ta, lwp, th)); in pt_ta_map_lwp2thr()
246 td_thrhandle_t th; in pt_ta_thr_iter() local
261 th.th_ta = ta; in pt_ta_thr_iter()
262 th.th_tid = (thread_t)lwp; in pt_ta_thr_iter()
[all …]
HDlibpthread_db.c47 static int pt_validate(const td_thrhandle_t *th);
220 pt_ta_map_id2thr(const td_thragent_t *ta, thread_t id, td_thrhandle_t *th) in pt_ta_map_id2thr() argument
287 th->th_ta = ta; in pt_ta_map_id2thr()
288 th->th_tid = id; in pt_ta_map_id2thr()
289 th->th_thread = pt; in pt_ta_map_id2thr()
294 pt_ta_map_lwp2thr(const td_thragent_t *ta, lwpid_t lwp, td_thrhandle_t *th) in pt_ta_map_lwp2thr() argument
314 th->th_ta = ta; in pt_ta_map_lwp2thr()
315 th->th_tid = pt_map_thread(ta, pt, PT_USER); in pt_ta_map_lwp2thr()
316 if (th->th_tid == -1) in pt_ta_map_lwp2thr()
319 th->th_thread = pt; in pt_ta_map_lwp2thr()
[all …]
/NextBSD/sys/boot/forth/
HDMakefile.inc3 FILES+= beastie.4th
4 FILES+= brand.4th
5 FILES+= brand-fbsd.4th
6 FILES+= check-password.4th
7 FILES+= color.4th
8 FILES+= delay.4th
9 FILES+= frames.4th
10 FILES+= loader.4th
13 FILES+= logo-beastie.4th
14 FILES+= logo-beastiebw.4th
[all …]
HDMakefile3 MAN+= beastie.4th.8 \
4 brand.4th.8 \
5 check-password.4th.8 \
6 color.4th.8 \
7 delay.4th.8 \
9 loader.4th.8 \
10 menu.4th.8 \
11 menusets.4th.8 \
12 version.4th.8
/NextBSD/sys/kern/
HDkern_tc.c185 tc_delta(struct timehands *th) in tc_delta() argument
189 tc = th->th_counter; in tc_delta()
190 return ((tc->tc_get_timecount(tc) - th->th_offset_count) & in tc_delta()
204 struct timehands *th; in fbclock_binuptime() local
208 th = timehands; in fbclock_binuptime()
209 gen = atomic_load_acq_int(&th->th_generation); in fbclock_binuptime()
210 *bt = th->th_offset; in fbclock_binuptime()
211 bintime_addx(bt, th->th_scale * tc_delta(th)); in fbclock_binuptime()
213 } while (gen == 0 || gen != th->th_generation); in fbclock_binuptime()
263 struct timehands *th; in fbclock_getbinuptime() local
[all …]
/NextBSD/sys/netinet/tcp_stacks/
HDfastpath.c177 tcp_do_fastack(struct mbuf *m, struct tcphdr *th, struct socket *so, in tcp_do_fastack() argument
201 if ((SEQ_LT(tp->snd_wl1, th->th_seq) || in tcp_do_fastack()
202 (tp->snd_wl1 == th->th_seq && (SEQ_LT(tp->snd_wl2, th->th_ack) || in tcp_do_fastack()
203 (tp->snd_wl2 == th->th_ack && tiwin > tp->snd_wnd))))) { in tcp_do_fastack()
205 if (tp->snd_wl2 == th->th_ack && tiwin > tp->snd_wnd) { in tcp_do_fastack()
210 tp->snd_wl1 = th->th_seq; in tcp_do_fastack()
211 tp->snd_wl2 = th->th_ack; in tcp_do_fastack()
222 SEQ_LEQ(th->th_seq, tp->last_ack_sent)) { in tcp_do_fastack()
242 cc_cong_signal(tp, th, CC_RTO_ERR); in tcp_do_fastack()
263 SEQ_GT(th->th_ack, tp->t_rtseq)) { in tcp_do_fastack()
[all …]
/NextBSD/sys/netinet/
HDtcp_input.c262 hhook_run_tcp_est_in(struct tcpcb *tp, struct tcphdr *th, struct tcpopt *to) in hhook_run_tcp_est_in() argument
268 hhook_data.th = th; in hhook_run_tcp_est_in()
280 cc_ack_received(struct tcpcb *tp, struct tcphdr *th, uint16_t type) in cc_ack_received() argument
284 tp->ccv->bytes_this_ack = BYTES_THIS_ACK(tp, th); in cc_ack_received()
306 tp->ccv->curack = th->th_ack; in cc_ack_received()
385 cc_cong_signal(struct tcpcb *tp, struct tcphdr *th, uint32_t type) in cc_cong_signal() argument
433 if (th != NULL) in cc_cong_signal()
434 tp->ccv->curack = th->th_ack; in cc_cong_signal()
440 cc_post_recovery(struct tcpcb *tp, struct tcphdr *th) in cc_post_recovery() argument
447 tp->ccv->curack = th->th_ack; in cc_post_recovery()
[all …]
HDtcp_lro.c113 tcp_lro_csum_th(struct tcphdr *th) in tcp_lro_csum_th() argument
118 ch = th->th_sum = 0x0000; in tcp_lro_csum_th()
119 l = th->th_off; in tcp_lro_csum_th()
120 p = (uint16_t *)th; in tcp_lro_csum_th()
135 tcp_lro_rx_csum_fixup(struct lro_entry *le, void *l3hdr, struct tcphdr *th, in tcp_lro_rx_csum_fixup() argument
187 cs = ~tcp_lro_csum_th(th); in tcp_lro_rx_csum_fixup()
220 struct tcphdr *th; in tcp_lro_flush() local
232 th = (struct tcphdr *)(ip6 + 1); in tcp_lro_flush()
263 th = (struct tcphdr *)(ip4 + 1); in tcp_lro_flush()
271 th = NULL; /* Keep compiler happy. */ in tcp_lro_flush()
[all …]
HDtcp_debug.c98 struct tcphdr *th, int req) in tcp_trace() argument
142 if (th != NULL) { in tcp_trace()
146 td->td_ti.ti_t = *th; in tcp_trace()
151 td->td_ti6.th = *th; in tcp_trace()
170 if (ipgen == NULL || th == NULL) in tcp_trace()
172 seq = th->th_seq; in tcp_trace()
173 ack = th->th_ack; in tcp_trace()
189 printf("@%x, urp=%x", ack, th->th_urp); in tcp_trace()
190 flags = th->th_flags; in tcp_trace()
194 if (th->th_flags & TH_##f) { \ in tcp_trace()
HDtcp_reass.c139 tcp_reass(struct tcpcb *tp, struct tcphdr *th, int *tlenp, struct mbuf *m) in tcp_reass() argument
161 if (th == NULL) in tcp_reass()
180 if ((th->th_seq != tp->rcv_nxt || !TCPS_HAVEESTABLISHED(tp->t_state)) && in tcp_reass()
184 if ((s = tcp_log_addrs(&tp->t_inpcb->inp_inc, th, NULL, NULL))) { in tcp_reass()
202 if (th->th_seq != tp->rcv_nxt || !TCPS_HAVEESTABLISHED(tp->t_state)) { in tcp_reass()
206 if ((s = tcp_log_addrs(&tp->t_inpcb->inp_inc, th, NULL, in tcp_reass()
216 if ((s = tcp_log_addrs(&tp->t_inpcb->inp_inc, th, NULL, in tcp_reass()
231 if (SEQ_GT(q->tqe_th->th_seq, th->th_seq)) in tcp_reass()
244 i = p->tqe_th->th_seq + p->tqe_len - th->th_seq; in tcp_reass()
263 th->th_seq += i; in tcp_reass()
[all …]
/NextBSD/usr.sbin/ppp/
HDslcompress.c166 register struct tcphdr *th; in sl_compress_tcp() local
183 th = (struct tcphdr *) & ((int *) ip)[hlen]; in sl_compress_tcp()
184 if ((th->th_flags & (TH_SYN | TH_FIN | TH_RST | TH_ACK)) != TH_ACK) { in sl_compress_tcp()
185 log_Printf(LogDEBUG, "??? 2 th_flags = %x\n", th->th_flags); in sl_compress_tcp()
200 *(int *) th != ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl]) { in sl_compress_tcp()
221 && *(int *) th == ((int *) &cs->cs_ip)[cs->cs_ip.ip_hl]) in sl_compress_tcp()
234 #define THOFFSET(th) (th->th_off) in sl_compress_tcp() argument
235 hlen += th->th_off; in sl_compress_tcp()
267 hlen += th->th_off; in sl_compress_tcp()
275 THOFFSET(th) != THOFFSET(oth) || in sl_compress_tcp()
[all …]
/NextBSD/contrib/gdb/gdb/
HDwince.c805 undoSStep (thread_info * th) in undoSStep() argument
807 if (th->stepped) in undoSStep()
809 memory_remove_breakpoint (th->step_pc, (void *) &th->step_prev); in undoSStep()
810 th->stepped = 0; in undoSStep()
819 thread_info *th = current_thread; /* Info on currently selected thread */ in wince_software_single_step() local
824 undoSStep (th); in wince_software_single_step()
828 th->stepped = 1; in wince_software_single_step()
830 th->step_pc = mips_next_pc (pc); in wince_software_single_step()
831 th->step_prev = 0; in wince_software_single_step()
832 memory_insert_breakpoint (th->step_pc, (void *) &th->step_prev); in wince_software_single_step()
[all …]
HDwin32-nat.c238 thread_info *th; in thread_rec() local
240 for (th = &thread_head; (th = th->next) != NULL;) in thread_rec()
241 if (th->id == id) in thread_rec()
243 if (!th->suspend_count && get_context) in thread_rec()
246 th->suspend_count = SuspendThread (th->h) + 1; in thread_rec()
248 th->suspend_count = -1; in thread_rec()
249 th->reload_context = 1; in thread_rec()
251 return th; in thread_rec()
261 thread_info *th; in child_add_thread() local
263 if ((th = thread_rec (id, FALSE))) in child_add_thread()
[all …]
/NextBSD/sys/net/
HDslcompress.c164 register struct tcphdr *th; local
179 th = (struct tcphdr *)&((int32_t *)ip)[hlen];
180 if ((th->th_flags & (TH_SYN|TH_FIN|TH_RST|TH_ACK)) != TH_ACK)
192 *(int32_t *)th != ((int32_t *)&cs->cs_ip)[cs->cs_ip.ip_hl]) {
213 && *(int32_t *)th ==
228 hlen += th->th_off;
260 hlen += th->th_off;
268 th->th_off != oth->th_off ||
271 (th->th_off > 5 &&
272 BCMP(th + 1, oth + 1, (th->th_off - 5) << 2)))
[all …]
/NextBSD/lib/libc/sys/
HD__vdso_gettimeofday.c38 tc_delta(const struct vdso_timehands *th) in tc_delta() argument
41 return ((__vdso_gettc(th) - th->th_offset_count) & in tc_delta()
42 th->th_counter_mask); in tc_delta()
57 struct vdso_timehands *th; in binuptime() local
65 th = &tk->tk_th[curr]; in binuptime()
66 if (th->th_algo != VDSO_TH_ALGO_1) in binuptime()
68 gen = atomic_load_acq_32(&th->th_gen); in binuptime()
69 *bt = th->th_offset; in binuptime()
70 bintime_addx(bt, th->th_scale * tc_delta(th)); in binuptime()
72 bintime_add(bt, &th->th_boottime); in binuptime()
[all …]
/NextBSD/contrib/tcpdump/
HDprint-tcp.c254 register struct tcp_seq_hash6 *th; local
278 for (th = &tcp_seq_hash[tha.port % TSEQ_HASHSIZE];
279 th->nxt; th = th->nxt)
280 if (memcmp((char *)&tha, (char *)&th->addr,
281 sizeof(th->addr)) == 0)
284 if (!th->nxt || (flags & TH_SYN)) {
286 if (th->nxt == NULL) {
287 th->nxt = (struct tcp_seq_hash6 *)
288 calloc(1, sizeof(*th));
289 if (th->nxt == NULL)
[all …]
/NextBSD/tools/regression/sockets/sendfile/
HDsendfile.c85 static int test_th(struct test_header *th, uint32_t *header_length,
93 static void init_th(struct test_header *th, uint32_t header_length,
102 test_th(struct test_header *th, uint32_t *header_length, uint32_t *offset, in test_th() argument
106 if (th->th_magic != htonl(TEST_MAGIC)) in test_th()
108 *header_length = ntohl(th->th_header_length); in test_th()
109 *offset = ntohl(th->th_offset); in test_th()
110 *length = ntohl(th->th_length); in test_th()
153 struct test_header th; in receive_test() local
159 len = read(accept_socket, &th, sizeof(th)); in receive_test()
160 if (len < 0 || (size_t)len < sizeof(th)) in receive_test()
[all …]
/NextBSD/share/examples/bootforth/
HDloader.rc9 cr .( - loader.4th...)
11 include /boot/loader.4th
15 cr .( - screen.4th...)
16 s" /boot/screen.4th" O_RDONLY fopen dup fload fclose
19 cr .( - frames.4th...)
20 s" /boot/frames.4th" O_RDONLY fopen dup fload fclose
23 cr .( - menuconf.4th...)
24 s" /boot/menuconf.4th" O_RDONLY fopen dup fload fclose
26 \ Initialize loader.4th stuff
28 cr cr .( Initializing loader.4th...)
HDREADME6 automatically loaded by /boot/loader. You must choose between boot.4th or
7 loader.rc, though. Copy one or the other, but not both. Also, menu.4th is
8 only used by boot.4th, and menuconf.4th is only used by loader.rc, so you
13 boot.4th example of file which is always loaded by /boot/loader, if
17 screen.4th helpful words for screen manipulation.
18 frames.4th basic frame drawing primitives. Requires screen.4th.
19 menu.4th example of simple startup menu.
20 menuconf.4th another example of simples startup menu.
28 If you use loader.rc/menuconf.4th, be sure to create /boot/stable.conf and
/NextBSD/usr.bin/calendar/calendars/
HDcalendar.judaic94 2010/Dec/9* Chanukah: 8th Day
172 2011/12/28* Chanukah: 8th Day
246 2012/12/16* Chanukah: 8th Day
322 2013/12/5* Chanukah: 8th Day
400 2014/12/24* Chanukah: 8th Day
476 2015/12/14* Chanukah: 8th Day
529 04/07* Omer 4th day
532 04/08* Omer 5th day
535 04/09* Omer 6th day
537 04/10* Omer 7th day
[all …]
/NextBSD/sys/net80211/
HDieee80211_radiotap.c55 struct ieee80211_radiotap_header *th, int tlen, uint32_t tx_radiotap, in ieee80211_radiotap_attach() argument
58 ieee80211_radiotap_attachv(ic, th, tlen, 0, tx_radiotap, in ieee80211_radiotap_attach()
64 struct ieee80211_radiotap_header *th, in ieee80211_radiotap_attachv() argument
72 th->it_len = htole16(roundup2(tlen, sizeof(uint32_t))); in ieee80211_radiotap_attachv()
73 th->it_present = htole32(tx_radiotap); in ieee80211_radiotap_attachv()
74 ic->ic_th = th; in ieee80211_radiotap_attachv()
78 off = radiotap_offset(th, n_tx_v, IEEE80211_RADIOTAP_CHANNEL); in ieee80211_radiotap_attachv()
80 off = radiotap_offset(th, n_tx_v, IEEE80211_RADIOTAP_XCHANNEL); in ieee80211_radiotap_attachv()
86 ic->ic_txchan = ((uint8_t *) th) + off; in ieee80211_radiotap_attachv()
115 struct ieee80211_radiotap_header *th = ic->ic_th; in ieee80211_radiotap_vattach() local
[all …]
/NextBSD/contrib/compiler-rt/lib/tsan/tests/rtl/
HDtsan_posix.cc59 pthread_t th[3]; in TEST() local
64 EXPECT_EQ(pthread_create(&th[0], 0, dtors_thread, k[0]), 0); in TEST()
65 EXPECT_EQ(pthread_create(&th[1], 0, dtors_thread, k[1]), 0); in TEST()
66 EXPECT_EQ(pthread_join(th[0], 0), 0); in TEST()
67 EXPECT_EQ(pthread_create(&th[2], 0, dtors_thread, k[2]), 0); in TEST()
68 EXPECT_EQ(pthread_join(th[1], 0), 0); in TEST()
69 EXPECT_EQ(pthread_join(th[2], 0), 0); in TEST()
82 pthread_t th[kThreads]; in local_thread() local
84 EXPECT_EQ(pthread_create(&th[i], 0, local_thread, in local_thread()
87 EXPECT_EQ(pthread_join(th[i], 0), 0); in local_thread()
[all …]
/NextBSD/contrib/flex/
HDtables.c83 int yytbl_hdr_init (struct yytbl_hdr *th, const char *version_str, in yytbl_hdr_init() argument
86 memset (th, 0, sizeof (struct yytbl_hdr)); in yytbl_hdr_init()
88 th->th_magic = YYTBL_MAGIC; in yytbl_hdr_init()
89 th->th_hsize = 14 + strlen (version_str) + 1 + strlen (name) + 1; in yytbl_hdr_init()
90 th->th_hsize += yypad64 (th->th_hsize); in yytbl_hdr_init()
91 th->th_ssize = 0; // Not known at this point. in yytbl_hdr_init()
92 th->th_flags = 0; in yytbl_hdr_init()
93 th->th_version = copy_string (version_str); in yytbl_hdr_init()
94 th->th_name = copy_string (name); in yytbl_hdr_init()
144 int yytbl_hdr_fwrite (struct yytbl_writer *wr, const struct yytbl_hdr *th) in yytbl_hdr_fwrite() argument
[all …]
/NextBSD/gnu/usr.bin/gdb/libgdb/
HDfbsd-threads.c104 td_thrhandle_t *th);
116 static td_err_e (*td_thr_get_info_p) (const td_thrhandle_t *th,
119 static td_err_e (*td_thr_getxmmregs_p) (const td_thrhandle_t *th,
122 static td_err_e (*td_thr_getfpregs_p) (const td_thrhandle_t *th,
124 static td_err_e (*td_thr_getgregs_p) (const td_thrhandle_t *th,
127 static td_err_e (*td_thr_setxmmregs_p) (const td_thrhandle_t *th,
130 static td_err_e (*td_thr_setfpregs_p) (const td_thrhandle_t *th,
132 static td_err_e (*td_thr_setgregs_p) (const td_thrhandle_t *th,
134 static td_err_e (*td_thr_event_enable_p) (const td_thrhandle_t *th, int event);
136 static td_err_e (*td_thr_sstep_p) (td_thrhandle_t *th, int step);
[all …]

12345678910>>...15