Lines Matching refs:msgh

3065 	machReply->msgh.msgh_id                    = kIORPCVersionCurrentReply;  in objectInstantiate()
3066 machReply->msgh.msgh_size = replySize; in objectInstantiate()
3205 if (msgin->msgh.msgh_size < (sizeof(IORPCMessageMach) + sizeof(IORPCMessage))) { in server()
3207 DKLOG("UEXT notify %o\n", msgin->msgh.msgh_id); in server()
3212 if (!(MACH_MSGH_BITS_COMPLEX & msgin->msgh.msgh_bits)) { in server()
3221 ret = copyInObjects(msgin, message, msgin->msgh.msgh_size, true, false); in server()
3224 DKLOG("UEXT copyin(0x%x) %x\n", ret, msgin->msgh.msgh_id); in server()
3227 consumeObjects(msgin, message, msgin->msgh.msgh_size); in server()
3228 copyInObjects(msgin, message, msgin->msgh.msgh_size, false, true); in server()
3246 assert(oneway || (MACH_PORT_NULL != msgin->msgh.msgh_local_port)); in server()
3264 …IORPC rpc = { .message = msgin, .reply = msgout, .sendSize = msgin->msgh.msgh_size, .replySize = r… in server()
3285 consumeObjects(msgin, message, msgin->msgh.msgh_size); in server()
3288 copyInObjects(msgin, message, msgin->msgh.msgh_size, false, true); in server()
3292 replySize = msgout->msgh.msgh_size; in server()
3297 …ret = copyOutObjects(msgout, reply, replySize, (kIORPCVersionCurrentReply == msgout->msgh.msgh_id)… in server()
3304 msgout->msgh.msgh_id = kIORPCVersionCurrentReply; in server()
3314 msgout->msgh.msgh_bits = MACH_MSGH_BITS_COMPLEX | in server()
3315 MACH_MSGH_BITS_SET(MACH_MSGH_BITS_LOCAL(msgin->msgh.msgh_bits) /*remote*/, 0 /*local*/, 0, 0); in server()
3317 msgout->msgh.msgh_remote_port = msgin->msgh.msgh_local_port; in server()
3318 msgout->msgh.msgh_local_port = MACH_PORT_NULL; in server()
3319 msgout->msgh.msgh_voucher_port = (mach_port_name_t) 0; in server()
3320 msgout->msgh.msgh_reserved = 0; in server()
3321 msgout->msgh.msgh_size = replySize; in server()
3333 assert(mach->msgh.msgh_size == size); in MAX_OBJECT_COUNT()
3339 sizeof(mach->msgh) + sizeof(mach->msgh_body) + offsetof(IORPCMessage, objects[0]), in MAX_OBJECT_COUNT()
3421 mach->msgh.msgh_id = kIORPCVersionCurrent; in IOUserServerUEXTTrap()
3422 …mach->msgh.msgh_size = (mach_msg_size_t) (sizeof(IORPCMessageMach) + refs * sizeof(*descs) + inSiz… in IOUserServerUEXTTrap()
3426 rpc.sendSize = mach->msgh.msgh_size; in IOUserServerUEXTTrap()
3475 …copySize = rpc.reply->msgh.msgh_size - (((uintptr_t) reply) - ((uintptr_t) rpc.reply)) + sizeof(ui… in IOUserServerUEXTTrap()
3555 mach->msgh.msgh_bits = MACH_MSGH_BITS_COMPLEX | in rpc()
3557 mach->msgh.msgh_remote_port = sendPort; in rpc()
3558 mach->msgh.msgh_local_port = (oneway ? MACH_PORT_NULL : mig_get_reply_port()); in rpc()
3559 mach->msgh.msgh_id = kIORPCVersionCurrent; in rpc()
3560 mach->msgh.msgh_reserved = 0; in rpc()
3565 ret = kernel_mach_msg_send(&mach->msgh, sendSize, in rpc()
3569 ret = kernel_mach_msg_rpc(&mach->msgh, sendSize, replySize, FALSE, &message_moved); in rpc()
3585 if (kIORPCVersionCurrentReply != mach->msgh.msgh_id) { in rpc()
3586 ret = (MACH_NOTIFY_SEND_ONCE == mach->msgh.msgh_id) ? MIG_SERVER_DIED : MIG_REPLY_MISMATCH; in rpc()
3587 …} else if ((replySize = mach->msgh.msgh_size) < (sizeof(IORPCMessageMach) + sizeof(IORPCMessage)))… in rpc()
3591 if (!(MACH_MSGH_BITS_COMPLEX & mach->msgh.msgh_bits)) { in rpc()
3605 DKLOG("rpc copyin(0x%x) %x\n", ret, mach->msgh.msgh_id); in rpc()
3636 msgsize = msg->msgh.msgh_size; in IORPCMessageFromMachReply()
3640 upgrade = (msg->msgh.msgh_id != (reply ? kIORPCVersionCurrentReply : kIORPCVersionCurrent)); in IORPCMessageFromMachReply()