Lines Matching refs:msgh_bits
225 if (hdr->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in ikm_kdata_size()
482 if (hdr->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in __ipc_kmsg_sign()
498 base.header.msgh_bits &= MACH_MSGH_BITS_USER; in __ipc_kmsg_sign()
499 base.header.msgh_bits &= ~MACH_MSGH_BITS_VOUCHER_MASK; in __ipc_kmsg_sign()
1070 mach_msg_bits_t mbits = hdr->msgh_bits; in ipc_kmsg_clean_header()
1452 MACH_MSGH_BITS_LOCAL(hdr->msgh_bits) == MACH_MSG_TYPE_PORT_SEND_ONCE) { in ipc_kmsg_set_qos()
1726 mach_msg_bits_t mbits = msg->msgh_bits & MACH_MSGH_BITS_USER; in ipc_kmsg_copyin_header()
1757 if ((mbits != msg->msgh_bits) || in ipc_kmsg_copyin_header()
2150 msg->msgh_bits = MACH_MSGH_BITS_SET(dest_type, reply_type, voucher_type, mbits); in ipc_kmsg_copyin_header()
2310 ikm_header(kmsg)->msgh_bits |= MACH_MSGH_BITS_CIRCULAR; in ipc_kmsg_copyin_port_descriptor()
2555 ikm_header(kmsg)->msgh_bits |= MACH_MSGH_BITS_CIRCULAR; in ipc_kmsg_copyin_ool_ports_descriptor()
2646 ikm_header(kmsg)->msgh_bits |= MACH_MSGH_BITS_CIRCULAR; in ipc_kmsg_copyin_guarded_port_descriptor()
2869 assert(hdr->msgh_bits & MACH_MSGH_BITS_COMPLEX); in ipc_kmsg_copyin_body()
2977 .msgh_bits = uhdr->msgh_bits & MACH_MSGH_BITS_USER, in ipc_kmsg_get_and_inflate_from_user()
2985 if (uhdr->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in ipc_kmsg_get_and_inflate_from_user()
3163 (uintptr_t)hdr->msgh_bits, in ipc_kmsg_copyin_from_user()
3170 hdr->msgh_bits, in ipc_kmsg_copyin_from_user()
3176 if (hdr->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in ipc_kmsg_copyin_from_user()
3322 mach_msg_bits_t mbits = msg->msgh_bits; in ipc_kmsg_copyout_header()
3672 (uintptr_t)msg->msgh_bits, in ipc_kmsg_copyout_header()
3678 (uintptr_t)msg->msgh_bits, in ipc_kmsg_copyout_header()
3687 msg->msgh_bits = MACH_MSGH_BITS_SET(reply_type, dest_type, in ipc_kmsg_copyout_header()
4295 if (hdr->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in ipc_kmsg_copyout_size()
4377 mach_msg_bits_t mbits = hdr->msgh_bits; in ipc_kmsg_copyout_pseudo()
4423 hdr->msgh_bits = mbits & MACH_MSGH_BITS_USER; in ipc_kmsg_copyout_pseudo()
4440 hdr->msgh_bits = MACH_MSGH_BITS_SET(dest_type, reply_type, MACH_MSG_TYPE_COPY_SEND, in ipc_kmsg_copyout_pseudo()
4441 MACH_MSGH_BITS_OTHER(hdr->msgh_bits)); in ipc_kmsg_copyout_pseudo()
4491 mbits = hdr->msgh_bits; in ipc_kmsg_copyout_dest_to_user()
4543 .msgh_bits = mbits, in ipc_kmsg_copyout_dest_to_user()
4591 dest_type = MACH_MSGH_BITS_REMOTE(hdr->msgh_bits); in ipc_kmsg_copyout_dest_to_kernel()
4592 reply_type = MACH_MSGH_BITS_LOCAL(hdr->msgh_bits); in ipc_kmsg_copyout_dest_to_kernel()
4615 voucher_type = MACH_MSGH_BITS_VOUCHER(hdr->msgh_bits); in ipc_kmsg_copyout_dest_to_kernel()
4632 hdr->msgh_bits = in ipc_kmsg_copyout_dest_to_kernel()
4633 (MACH_MSGH_BITS_OTHER(hdr->msgh_bits) | in ipc_kmsg_copyout_dest_to_kernel()
4645 .msgh_bits = hdr->msgh_bits, in ipc_kmsg_deflate_header()
4776 if (hdr->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in ipc_kmsg_deflate()
4987 if (msg->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in ipc_kmsg_get_from_kernel()
5053 hdr->msgh_bits |= MACH_MSGH_BITS_CIRCULAR; in ipc_kmsg_copyin_port_from_kernel()
5076 mach_msg_bits_t bits = hdr->msgh_bits; in ipc_kmsg_copyin_from_kernel()
5108 hdr->msgh_bits = bits; in ipc_kmsg_copyin_from_kernel()
5114 hdr->msgh_bits = bits; in ipc_kmsg_copyin_from_kernel()
5255 if (hdr->msgh_bits & MACH_MSGH_BITS_CIRCULAR) { in ipc_kmsg_send()
5275 MACH_MSGH_BITS_REMOTE(hdr->msgh_bits) == MACH_MSG_TYPE_PORT_SEND_ONCE) { in ipc_kmsg_send()
5471 if (hdr->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in ipc_kmsg_put_to_kernel()
5593 if (msg->msgh_bits & MACH_MSGH_BITS_RAISEIMP) { in ipc_kmsg_trace_send()
5625 switch (MACH_MSGH_BITS_LOCAL(msg->msgh_bits)) { in ipc_kmsg_trace_send()
5704 switch (MACH_MSGH_BITS_REMOTE(msg->msgh_bits)) { in ipc_kmsg_trace_send()
5718 if (msg->msgh_bits & MACH_MSGH_BITS_COMPLEX) { in ipc_kmsg_trace_send()