Lines Matching refs:mr
117 mach_msg_return_t mr;
119 mr = ipc_kmsg_get_from_kernel(msg, send_size, &kmsg);
120 if (mr != MACH_MSG_SUCCESS)
121 return mr;
123 mr = ipc_kmsg_copyin_from_kernel_legacy(kmsg);
124 if (mr != MACH_MSG_SUCCESS) {
126 return mr;
129 mr = ipc_kmsg_send_always(kmsg);
130 if (mr != MACH_MSG_SUCCESS) {
134 return mr;
145 mach_msg_return_t mr;
147 mr = ipc_kmsg_get_from_kernel(msg, send_size, &kmsg);
148 if (mr != MACH_MSG_SUCCESS)
149 return mr;
151 mr = ipc_kmsg_copyin_from_kernel(kmsg);
152 if (mr != MACH_MSG_SUCCESS) {
154 return mr;
157 mr = ipc_kmsg_send_always(kmsg);
158 if (mr != MACH_MSG_SUCCESS) {
162 return mr;
175 mach_msg_return_t mr;
177 mr = ipc_kmsg_get_from_kernel(msg, send_size, &kmsg);
178 if (mr != MACH_MSG_SUCCESS)
179 return mr;
181 mr = ipc_kmsg_copyin_from_kernel_legacy(kmsg);
182 if (mr != MACH_MSG_SUCCESS) {
184 return mr;
187 mr = ipc_kmsg_send(kmsg, option, timeout_val);
188 if (mr != MACH_MSG_SUCCESS) {
192 return mr;
258 mach_msg_return_t mr;
262 mr = ipc_kmsg_get_from_kernel(msg, send_size, &kmsg);
263 if (mr != MACH_MSG_SUCCESS)
264 return mr;
284 mr = ipc_kmsg_copyin_from_kernel_legacy(kmsg);
286 mr = ipc_kmsg_copyin_from_kernel(kmsg);
288 mr = ipc_kmsg_copyin_from_kernel(kmsg);
290 if (mr != MACH_MSG_SUCCESS) {
292 return mr;
294 mr = ipc_kmsg_send_always(kmsg);
295 if (mr != MACH_MSG_SUCCESS) {
297 return mr;
327 mr = self->ith_state;
331 if (mr == MACH_MSG_SUCCESS)
336 assert(mr == MACH_RCV_INTERRUPTED);
340 return(mr);
365 mr = MACH_MSG_SUCCESS;
367 mr = MACH_RCV_TOO_LARGE;
385 return mr;
421 mach_msg_return_t mr;
456 mr = ipc_kmsg_copyin(kmsg, space, map, FALSE);
457 if (mr != MACH_MSG_SUCCESS) {
459 return mr;
463 mr = ipc_kmsg_send(kmsg, MACH_MSG_OPTION_NONE,
465 while (mr == MACH_SEND_INTERRUPTED);
466 assert(mr == MACH_MSG_SUCCESS);
476 mr = ipc_mqueue_copyin(space, rcv_name,
478 if (mr != MACH_MSG_SUCCESS)
479 return mr;
488 mr = self->ith_state;
494 } while (mr == MACH_RCV_INTERRUPTED);
495 if (mr != MACH_MSG_SUCCESS)
496 return mr;
509 mr = ipc_kmsg_copyout(kmsg, space, map, MACH_MSG_BODY_NULL);
510 if (mr != MACH_MSG_SUCCESS) {
511 if ((mr &~ MACH_MSG_MASK) == MACH_RCV_BODY_ERROR) {
520 return mr;