Lines Matching refs:mr
188 mach_msg_return_t mr;
221 mr = ipc_kmsg_copyin(kmsg, space, map, option & MACH_SEND_NOTIFY);
222 if (mr != MACH_MSG_SUCCESS) {
224 return mr;
227 mr = ipc_kmsg_send(kmsg, option & MACH_SEND_TIMEOUT, send_timeout);
228 if (mr != MACH_MSG_SUCCESS) {
229 mr |= ipc_kmsg_copyout_pseudo(kmsg, space, map, MACH_MSG_BODY_NULL);
235 return mr;
267 mach_msg_return_t mr = self->ith_state;
276 if (mr != MACH_MSG_SUCCESS) {
278 if (mr == MACH_RCV_TOO_LARGE ) {
289 mr = MACH_RCV_INVALID_DATA;
295 mr = MACH_RCV_INVALID_DATA;
313 mr = ipc_kmsg_copyout(kmsg, space, map, slist);
316 mr = ipc_kmsg_copyout(kmsg, space, map, MACH_MSG_BODY_NULL);
319 if (mr != MACH_MSG_SUCCESS) {
320 if ((mr &~ MACH_MSG_MASK) == MACH_RCV_BODY_ERROR) {
323 mr = MACH_RCV_INVALID_DATA;
328 mr = MACH_RCV_INVALID_DATA;
332 mr = ipc_kmsg_put(msg_addr,
337 return mr;
354 mach_msg_return_t mr;
356 mr = ipc_mqueue_copyin(space, rcv_name, &mqueue, &object);
357 if (mr != MACH_MSG_SUCCESS) {
358 return mr;
409 mach_msg_return_t mr = MACH_MSG_SUCCESS;
416 mr = ipc_kmsg_get(msg_addr, send_size, &kmsg);
418 if (mr != MACH_MSG_SUCCESS)
419 return mr;
421 mr = ipc_kmsg_copyin(kmsg, space, map, option & MACH_SEND_NOTIFY);
422 if (mr != MACH_MSG_SUCCESS) {
424 return mr;
427 mr = ipc_kmsg_send(kmsg, option & MACH_SEND_TIMEOUT, msg_timeout);
429 if (mr != MACH_MSG_SUCCESS) {
430 mr |= ipc_kmsg_copyout_pseudo(kmsg, space, map, MACH_MSG_BODY_NULL);
432 return mr;
442 mr = ipc_mqueue_copyin(space, rcv_name, &mqueue, &object);
443 if (mr != MACH_MSG_SUCCESS) {
444 return mr;