Lines Matching defs:dsc
430 mach_msg_port_descriptor_t *dsc;
432 dsc = &saddr->port;
433 kprintf(" PORT name = %p disp = ", dsc->name);
434 ipc_print_type_name64(dsc->disposition);
440 mach_msg_ool_descriptor_t *dsc;
442 dsc = (mach_msg_ool_descriptor_t *) &saddr->out_of_line;
445 dsc->address, dsc->size,
446 mm_copy_options_string64(dsc->copy),
447 dsc->deallocate ? "DEALLOC" : "");
451 mach_msg_ool_ports_descriptor_t *dsc;
453 dsc = (mach_msg_ool_ports_descriptor_t *) &saddr->ool_ports;
456 dsc->address, dsc->count);
458 ipc_print_type_name64(dsc->disposition);
460 mm_copy_options_string64(dsc->copy),
461 dsc->deallocate ? "DEALLOC" : "");
901 mach_msg_port_descriptor_t *dsc;
903 dsc = &saddr->port;
908 if (!IO_VALID((ipc_object_t) dsc->name))
910 ipc_object_destroy((ipc_object_t) dsc->name, dsc->disposition);
915 mach_msg_ool_descriptor_t *dsc;
917 dsc = (mach_msg_ool_descriptor_t *)&saddr->out_of_line;
922 if (dsc->size == 0) {
923 assert(dsc->address == (void *) 0);
925 vm_map_copy_discard((vm_map_copy_t) dsc->address);
932 mach_msg_ool_ports_descriptor_t *dsc;
934 dsc = (mach_msg_ool_ports_descriptor_t *)&saddr->ool_ports;
935 objects = (ipc_object_t *) dsc->address;
937 if (dsc->count == 0) {
945 for (j = 0; j < dsc->count; j++) {
951 ipc_object_destroy(object, dsc->disposition);
956 assert(dsc->count != 0);
958 kfree(dsc->address,
959 (vm_size_t) dsc->count * sizeof(mach_port_t));
1988 volatile mach_msg_port_descriptor_t *dsc,
1999 volatile mach_msg_port_descriptor_t *dsc,
2029 dsc->name = (ipc_port_t) object;
2031 dsc->name = CAST_MACH_NAME_TO_PORT(name);
2033 dsc->disposition = result_disp;
2034 dsc->type = MACH_MSG_PORT_DESCRIPTOR;
2036 dsc->pad_end = 0; // debug, unnecessary
2042 mach_msg_ool_descriptor_t *dsc,
2052 mach_msg_ool_descriptor_t *dsc,
2089 dsc->size = (mach_msg_size_t)length;
2090 dsc->deallocate = dealloc;
2091 dsc->copy = copy_options;
2092 dsc->type = dsc_type;
2095 dsc->address = NULL;
2128 dsc->address = (void *)*copy;
2149 dsc->address = (void *)*copy;
2155 mach_msg_ool_ports_descriptor_t *dsc,
2165 mach_msg_ool_ports_descriptor_t *dsc,
2210 dsc->deallocate = deallocate;
2211 dsc->copy = copy_option;
2212 dsc->type = type;
2213 dsc->count = count;
2214 dsc->address = NULL; /* for now */
2217 dsc->disposition = result_disp;
2256 dsc->address = data;
2278 dsc->address = NULL;
2283 if ((dsc->disposition == MACH_MSG_TYPE_PORT_RECEIVE) &&
2631 mach_msg_port_descriptor_t *dsc;
2633 dsc = &saddr->port;
2636 name = dsc->disposition;
2637 object = (ipc_object_t) dsc->name;
2638 dsc->disposition = ipc_object_copyin_type(name);
2652 if ((dsc->disposition == MACH_MSG_TYPE_PORT_RECEIVE) &&
2673 mach_msg_ool_ports_descriptor_t *dsc;
2675 dsc = (mach_msg_ool_ports_descriptor_t *)&saddr->ool_ports;
2678 name = dsc->disposition;
2679 dsc->disposition = ipc_object_copyin_type(name);
2681 objects = (ipc_object_t *) dsc->address;
2683 for ( j = 0; j < dsc->count; j++) {
2691 if ((dsc->disposition == MACH_MSG_TYPE_PORT_RECEIVE) &&
2774 mach_msg_legacy_port_descriptor_t *dsc;
2777 dsc = (typeof(dsc))&saddr->port;
2781 name = dsc->disposition;
2782 object = (ipc_object_t) CAST_MACH_NAME_TO_PORT(dsc->name);
3166 ipc_kmsg_copyout_port_descriptor(mach_msg_descriptor_t *dsc,
3171 ipc_kmsg_copyout_port_descriptor(mach_msg_descriptor_t *dsc,
3182 port = dsc->port.name;
3183 disp = dsc->port.disposition;
3210 ipc_kmsg_copyout_ool_descriptor(mach_msg_ool_descriptor_t *dsc, mach_msg_descriptor_t *user_dsc, int is_64bit, vm_map_t map, mach_msg_return_t *mr);
3212 ipc_kmsg_copyout_ool_descriptor(mach_msg_ool_descriptor_t *dsc, mach_msg_descriptor_t *user_dsc, int is_64bit, vm_map_t map, mach_msg_return_t *mr)
3222 copy = (vm_map_copy_t) dsc->address;
3223 size = dsc->size;
3224 copy_options = dsc->copy;
3226 dsc_type = dsc->type;
3338 ipc_kmsg_copyout_ool_ports_descriptor(mach_msg_ool_ports_descriptor_t *dsc,
3346 ipc_kmsg_copyout_ool_ports_descriptor(mach_msg_ool_ports_descriptor_t *dsc,
3363 count = dsc->count;
3364 disp = dsc->disposition;
3368 if (ports_length != 0 && dsc->address != 0) {
3405 ipc_kmsg_clean_body(kmsg, 1, (mach_msg_descriptor_t *)dsc);
3421 mach_port_t *objects = (mach_port_t *) dsc->address;
3422 mach_port_name_t *names = (mach_port_name_t *) dsc->address;
3434 void *data = dsc->address;
4037 mach_msg_port_descriptor_t *dsc = &saddr->port;
4040 mach_port_t name = dsc->name;
4041 mach_msg_type_name_t disposition = dsc->disposition;