Searched refs:th (Results 1 - 25 of 36) sorted by relevance

12

/macosx-10.5.8/xnu-1228.15.4/osfmk/i386/
H A Ddb_trace.c94 #define INKERNELSTACK(va, th) 1
450 thread_t th, top_act; local
495 th = db_default_act;
496 if (th == THREAD_NULL)
497 th = current_thread();
498 if (th == THREAD_NULL) {
503 act_list = &th->task->threads;
521 th = current_thread();
522 task = (th != THREAD_NULL)? th
[all...]
H A Dpmap.h230 * the highest 4th-level directory (KERNEL_UBER_PML4_INDEX). That is,
637 #define PMAP_ACTIVATE_USER(th, my_cpu) { \
641 PMAP_ACTIVATE_MAP(th->map, my_cpu) \
645 #define PMAP_DEACTIVATE_USER(th, my_cpu)
685 #define PMAP_SWITCH_USER(th, new_map, my_cpu) { \
689 PMAP_DEACTIVATE_MAP(th->map, my_cpu); \
690 th->map = new_map; \
691 PMAP_ACTIVATE_MAP(th->map, my_cpu); \
693 inval_copy_windows(th); \
H A Dbsd_i386.c901 get_user_regs(thread_t th) argument
903 if (th->machine.pcb)
904 return(USER_STATE(th));
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/i386/
H A Dstubs.c121 get_bsduthreadarg(thread_t th) argument
126 ut = get_bsdthread_info(th);
128 if (ml_thread_is64bit(th) == TRUE)
129 arg_ptr = (void *)saved_state64(find_user_regs(th));
137 get_bsduthreadrval(thread_t th) argument
141 ut = get_bsdthread_info(th);
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet/
H A Dtcp_debug.c110 tcp_trace(act, ostate, tp, ipgen, th, req)
114 struct tcphdr *th;
167 if (th) {
170 td->td_ti.ti_t = *th;
171 bzero((caddr_t)&td->td_ti6.th, sizeof(td->td_ti6.th));
175 td->td_ti6.th = *th;
183 bzero((caddr_t)&td->td_ti6.th, sizeof(td->td_ti6.th));
[all...]
H A Dtcp_debug.h86 struct tcphdr th; member in struct:tcp_debug::__anon320
H A Dtcp_input.c288 static void tcp_newreno_partial_ack(struct tcpcb *tp, struct tcphdr *th);
292 tcp_reass(tp, th, tlenp, m)
294 register struct tcphdr *th;
307 * Call with th==0 after become established to
310 if (th == NULL)
320 if (th->th_seq != tp->rcv_nxt &&
343 if (SEQ_GT(q->tqe_th->th_seq, th->th_seq))
356 i = p->tqe_th->th_seq + p->tqe_len - th->th_seq;
374 th->th_seq += i;
385 register int i = (th
528 register struct tcphdr *th; local
[all...]
H A Dtcp_output.c226 register struct tcphdr *th; local
1208 th = (struct tcphdr *)(ip6 + 1);
1209 tcp_fillheaders(tp, ip6, th);
1215 th = (struct tcphdr *)(ip + 1);
1217 tcp_fillheaders(tp, ip, th);
1247 th->th_seq = htonl(tp->snd_nxt);
1249 th->th_seq = htonl(tp->snd_max);
1251 th->th_seq = htonl(p->rxmit);
1255 th->th_ack = htonl(tp->rcv_nxt);
1259 bcopy(opt, th
[all...]
H A Dtcp_subr.c475 register struct tcphdr *th,
545 bcopy((caddr_t)th, (caddr_t)nth, sizeof(struct tcphdr));
564 if (th != nth) {
570 nth->th_sport = th->th_sport;
571 nth->th_dport = th->th_dport;
642 tcp_trace(TA_OUTPUT, 0, tp, mtod(m, void *), th, 0);
1276 struct tcphdr *th;
1302 th = (struct tcphdr *)((caddr_t)ip
1304 inp = in_pcblookup_hash(&tcbinfo, faddr, th->th_dport,
1305 ip->ip_src, th
472 tcp_respond( struct tcpcb *tp, void *ipgen, register struct tcphdr *th, register struct mbuf *m, tcp_seq ack, tcp_seq seq, int flags, unsigned int ifscope ) argument
[all...]
H A Dtcp_sack.c521 tcp_sack_partialack(tp, th)
523 struct tcphdr *th;
530 if (((th->th_ack - tp->snd_una) / tp->t_maxseg) > 2)
/macosx-10.5.8/xnu-1228.15.4/osfmk/ppc/
H A DPseudoKernel.c242 thread_t th; local
248 th = current_thread(); /* Get our thread */
252 if ( th->machine.bbDescAddr ) return KERN_FAILURE; /* Bail if already authorized... */
262 ret = vm_map_wire(th->map, /* Kernel wire the descriptor in the user's map */
273 pmap_find_phys(th->map->pmap, CAST_USER_ADDR_T(Desc_TableStart));
277 (void) vm_map_unwire(th->map, /* No, unwire the descriptor */
290 th->machine.bbDescAddr = (unsigned int)kerndescaddr+origdescoffset; /* Set kernel address of the table */
291 th->machine.bbUserDA = (unsigned int)Desc_TableStart; /* Set user address of the table */
292 th->machine.bbTableStart = (unsigned int)TWI_TableStart; /* Set address of the trap table */
293 th
[all...]
H A Ddb_trace.c67 #define INKERNELSTACK(va, th) 1
763 thread_act_t th, top_act; local
810 th = db_default_act;
811 if (th == THR_ACT_NULL)
812 th = current_thread();
813 if (th == THR_ACT_NULL) {
818 act_list = &th->task->threads;
837 th = current_thread();
838 task = (th != THR_ACT_NULL)? th
[all...]
H A Dmisc_protos.h100 thread_t th);
127 thread_t th);
H A Dpmap.h245 #define PMAP_SWITCH_USER(th, map, my_cpu) th->map = map;
247 #define PMAP_CONTEXT(pmap,th)
H A Dpcb.c479 dump_thread(thread_t th) argument
481 printf(" thread @ %p:\n", th);
/macosx-10.5.8/xnu-1228.15.4/bsd/dev/ppc/
H A Dstubs.c88 get_bsduthreadarg(thread_t th) argument
91 ut = get_bsdthread_info(th);
96 get_bsduthreadrval(thread_t th) argument
99 ut = get_bsdthread_info(th);
/macosx-10.5.8/xnu-1228.15.4/osfmk/kern/
H A Dbsd_kern.c76 void *get_bsdthreadtask_info(thread_t th) argument
78 return(th->task != TASK_NULL ? th->task->bsd_info : NULL);
92 void *get_bsdthread_info(thread_t th) argument
94 return(th->uthread);
319 task_t get_threadtask(thread_t th) argument
321 return(th->task);
429 thread_t th)
431 return(th->user_stop_count);
439 thread_t th)
428 get_thread_userstop( thread_t th) argument
438 thread_should_abort( thread_t th) argument
456 thread_t th = current_thread(); local
[all...]
H A Dsync_lock.c61 #define ulock_ownership_set(ul, th) \
63 thread_mtx_lock(th); \
64 enqueue (&th->held_ulocks, (queue_entry_t) (ul)); \
65 thread_mtx_unlock(th); \
66 (ul)->holder = th; \
71 thread_t th; \
72 th = (ul)->holder; \
73 if (th->active) { \
74 thread_mtx_lock(th); \
75 remqueue(&th
[all...]
H A Dthread.h420 #define thread_lock_init(th) simple_lock_init(&(th)->sched_lock, 0)
421 #define thread_lock(th) simple_lock(&(th)->sched_lock)
422 #define thread_unlock(th) simple_unlock(&(th)->sched_lock)
424 #define wake_lock_init(th) simple_lock_init(&(th)->wake_lock, 0)
425 #define wake_lock(th) simple_lock(&(th)
[all...]
H A Dthread.c1212 thread_t th = current_thread(); local
1214 if (th->funnel_state & TH_FN_OWNED) {
1215 return(th->funnel_lock);
1312 thread_t th)
1314 return (thread_should_halt_fast(th));
1311 thread_should_halt( thread_t th) argument
/macosx-10.5.8/xnu-1228.15.4/osfmk/ipc/
H A Dipc_mqueue.c247 thread_t th; local
249 th = wait_queue_wakeup64_identity_locked(
256 if (th == THREAD_NULL)
267 if (th->ith_msize <
269 REQUESTED_TRAILER_SIZE(th->ith_option)) {
270 th->ith_state = MACH_RCV_TOO_LARGE;
271 th->ith_msize = kmsg->ikm_header->msgh_size;
272 if (th->ith_option & MACH_RCV_LARGE) {
276 th->ith_kmsg = IKM_NULL;
277 th
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/kern/
H A Dpthread_synch.c132 static void workqueue_run_nextitem(proc_t p, thread_t th);
133 static void wq_runitem(proc_t p, user_addr_t item, thread_t th, struct threadlist *tl,
135 static int setup_wqthread(proc_t p, thread_t th, user_addr_t item, int reuse_thread, struct threadlist *tl);
798 thread_t th; local
825 kret = thread_create(ctask, &th);
828 thread_reference(th);
830 sright = (void *) convert_thread_to_port(th);
898 thread_set_wq_state64(th, (thread_state_t)ts64);
900 thread_set_cthreadself(th, (uint64_t)th_pthread, isLP64);
923 thread_set_wq_state32(th, (thread_state_
1350 thread_t th; local
1548 thread_t th = THREAD_NULL; local
1960 wq_runitem(proc_t p, user_addr_t item, thread_t th, struct threadlist *tl, int reuse_thread, int wake_thread, int return_directly) argument
1990 setup_wqthread(proc_t p, thread_t th, user_addr_t item, int reuse_thread, struct threadlist *tl) argument
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/netinet6/
H A Dip6_fw.c834 struct tcphdr th; member in struct:__anon329
843 ti.th = *tcp;
844 ti.th.th_seq = ntohl(ti.th.th_seq);
845 ti.th.th_ack = ntohl(ti.th.th_ack);
847 if (ti.th.th_flags & TH_ACK) {
849 seq = ti.th.th_ack;
852 ack = ti.th.th_seq;
855 - (ti.th
[all...]
/macosx-10.5.8/xnu-1228.15.4/osfmk/kdp/
H A Dkdp_udp.c1291 struct corehdr *th = NULL; local
1317 th = create_panic_header(request, corename, length, panic_block);
1320 if (!kdp_vm_read((caddr_t) panic_data, (caddr_t) th->th_data, length)) {
1321 memset ((caddr_t) th->th_data, 'X', length);
1325 *(unsigned int *) th->th_data = htonl(*(unsigned int *) panic_data);
1341 th = (struct corehdr *) &pkt.data[pkt.off];
1343 if (ntohs(th->th_opcode) == KDP_ACK && ntohl(th->th_block) == panic_block) {
1346 if (ntohs(th->th_opcode) == KDP_ERROR) {
1347 printf("Panic server returned error %d, retrying\n", ntohl(th
[all...]
/macosx-10.5.8/xnu-1228.15.4/bsd/sys/
H A Dsignalvar.h220 int thread_issignal(proc_t p, thread_t th, sigset_t mask);

Completed in 447 milliseconds

12