Lines Matching refs:msgh

3087 	machReply->msgh.msgh_id                    = kIORPCVersionCurrentReply;  in objectInstantiate()
3088 machReply->msgh.msgh_size = replySize; in objectInstantiate()
3227 if (msgin->msgh.msgh_size < (sizeof(IORPCMessageMach) + sizeof(IORPCMessage))) { in server()
3229 DKLOG("UEXT notify %o\n", msgin->msgh.msgh_id); in server()
3234 if (!(MACH_MSGH_BITS_COMPLEX & msgin->msgh.msgh_bits)) { in server()
3243 ret = copyInObjects(msgin, message, msgin->msgh.msgh_size, true, false); in server()
3246 DKLOG("UEXT copyin(0x%x) %x\n", ret, msgin->msgh.msgh_id); in server()
3249 consumeObjects(msgin, message, msgin->msgh.msgh_size); in server()
3250 copyInObjects(msgin, message, msgin->msgh.msgh_size, false, true); in server()
3268 assert(oneway || (MACH_PORT_NULL != msgin->msgh.msgh_local_port)); in server()
3286 …IORPC rpc = { .message = msgin, .reply = msgout, .sendSize = msgin->msgh.msgh_size, .replySize = r… in server()
3307 consumeObjects(msgin, message, msgin->msgh.msgh_size); in server()
3310 copyInObjects(msgin, message, msgin->msgh.msgh_size, false, true); in server()
3314 replySize = msgout->msgh.msgh_size; in server()
3319 …ret = copyOutObjects(msgout, reply, replySize, (kIORPCVersionCurrentReply == msgout->msgh.msgh_id)… in server()
3326 msgout->msgh.msgh_id = kIORPCVersionCurrentReply; in server()
3336 msgout->msgh.msgh_bits = MACH_MSGH_BITS_COMPLEX | in server()
3337 MACH_MSGH_BITS_SET(MACH_MSGH_BITS_LOCAL(msgin->msgh.msgh_bits) /*remote*/, 0 /*local*/, 0, 0); in server()
3339 msgout->msgh.msgh_remote_port = msgin->msgh.msgh_local_port; in server()
3340 msgout->msgh.msgh_local_port = MACH_PORT_NULL; in server()
3341 msgout->msgh.msgh_voucher_port = (mach_port_name_t) 0; in server()
3342 msgout->msgh.msgh_reserved = 0; in server()
3343 msgout->msgh.msgh_size = replySize; in server()
3355 assert(mach->msgh.msgh_size == size); in MAX_OBJECT_COUNT()
3361 sizeof(mach->msgh) + sizeof(mach->msgh_body) + offsetof(IORPCMessage, objects[0]), in MAX_OBJECT_COUNT()
3443 mach->msgh.msgh_id = kIORPCVersionCurrent; in IOUserServerUEXTTrap()
3444 …mach->msgh.msgh_size = (mach_msg_size_t) (sizeof(IORPCMessageMach) + refs * sizeof(*descs) + inSiz… in IOUserServerUEXTTrap()
3448 rpc.sendSize = mach->msgh.msgh_size; in IOUserServerUEXTTrap()
3497 …copySize = rpc.reply->msgh.msgh_size - (((uintptr_t) reply) - ((uintptr_t) rpc.reply)) + sizeof(ui… in IOUserServerUEXTTrap()
3577 mach->msgh.msgh_bits = MACH_MSGH_BITS_COMPLEX | in rpc()
3579 mach->msgh.msgh_remote_port = sendPort; in rpc()
3580 mach->msgh.msgh_local_port = (oneway ? MACH_PORT_NULL : mig_get_reply_port()); in rpc()
3581 mach->msgh.msgh_id = kIORPCVersionCurrent; in rpc()
3582 mach->msgh.msgh_reserved = 0; in rpc()
3587 ret = kernel_mach_msg_send(&mach->msgh, sendSize, in rpc()
3591 ret = kernel_mach_msg_rpc(&mach->msgh, sendSize, replySize, FALSE, &message_moved); in rpc()
3607 if (kIORPCVersionCurrentReply != mach->msgh.msgh_id) { in rpc()
3608 ret = (MACH_NOTIFY_SEND_ONCE == mach->msgh.msgh_id) ? MIG_SERVER_DIED : MIG_REPLY_MISMATCH; in rpc()
3609 …} else if ((replySize = mach->msgh.msgh_size) < (sizeof(IORPCMessageMach) + sizeof(IORPCMessage)))… in rpc()
3613 if (!(MACH_MSGH_BITS_COMPLEX & mach->msgh.msgh_bits)) { in rpc()
3627 DKLOG("rpc copyin(0x%x) %x\n", ret, mach->msgh.msgh_id); in rpc()
3658 msgsize = msg->msgh.msgh_size; in IORPCMessageFromMachReply()
3662 upgrade = (msg->msgh.msgh_id != (reply ? kIORPCVersionCurrentReply : kIORPCVersionCurrent)); in IORPCMessageFromMachReply()