Lines Matching refs:self
563 thread_t self = current_thread();
564 mach_msg_option_t option = self->ith_option;
571 self->ith_state = MACH_RCV_TIMED_OUT;
575 self->ith_state = MACH_RCV_INTERRUPTED;
580 self->ith_state = MACH_RCV_PORT_CHANGED;
588 switch (self->ith_state) {
661 thread_t self;
672 self = current_thread();
728 if (self->ith_kmsg != NULL &&
729 self->ith_kmsg->ikm_sender != NULL) {
730 lh = self->ith_kmsg->ikm_sender->label;
739 self->ith_state = MACH_RCV_INVALID_DATA;
757 if (self->ith_kmsg != NULL &&
758 self->ith_kmsg->ikm_sender != NULL) {
759 lh = self->ith_kmsg->ikm_sender->label;
768 self->ith_state = MACH_RCV_INVALID_DATA;
785 self->ith_state = MACH_RCV_TIMED_OUT;
790 thread_lock(self);
791 self->ith_state = MACH_RCV_IN_PROGRESS;
792 self->ith_option = option;
793 self->ith_msize = max_size;
803 self);
804 thread_unlock(self);
813 if (self->ith_continuation)
842 thread_t self = current_thread();
863 rcv_size = ipc_kmsg_copyout_size(kmsg, self->map);
867 self->ith_kmsg = IKM_NULL;
868 self->ith_msize = rcv_size;
869 self->ith_seqno = 0;
870 self->ith_state = mr;
877 self->ith_seqno = mqueue->imq_seqno++;
878 self->ith_kmsg = kmsg;
879 self->ith_state = mr;