Lines Matching refs:fd_num
493 for (i = 0; i < vmsg->fd_num; i++) { in vmsg_close_fds()
504 vmsg->fd_num = 0; in vmsg_set_reply_u64()
563 vmsg->fd_num = 0; in vu_message_read_default()
570 vmsg->fd_num = fd_size / sizeof(int); in vu_message_read_default()
571 assert(vmsg->fd_num <= VHOST_MEMORY_BASELINE_NREGIONS); in vu_message_read_default()
624 assert(vmsg->fd_num <= VHOST_MEMORY_BASELINE_NREGIONS); in vu_message_write()
625 if (vmsg->fd_num > 0) { in vu_message_write()
626 size_t fdsize = vmsg->fd_num * sizeof(int); in vu_message_write()
793 vmsg->fd_num = 0; in vu_get_features_exec()
951 if (vmsg->fd_num != 1) { in vu_add_mem_reg()
954 "should be sent for this message type", vmsg->fd_num); in vu_add_mem_reg()
991 vmsg->fd_num = 0; in vu_add_mem_reg()
1017 if (vmsg->fd_num > 1) { in vu_rem_mem_reg()
1020 "should be sent for this message type", vmsg->fd_num); in vu_rem_mem_reg()
1076 int fd_num = 0; in vu_get_shared_object() local
1084 vmsg->fds[fd_num++] = dmabuf_fd; in vu_get_shared_object()
1086 vmsg->fd_num = fd_num; in vu_get_shared_object()
1107 vmsg->fd_num = 0; in vu_set_mem_table_exec()
1147 if (vmsg->fd_num != 1 || in vu_set_log_base_exec()
1173 vmsg->fd_num = 0; in vu_set_log_base_exec()
1181 if (vmsg->fd_num != 1) { in vu_set_log_fd_exec()
1308 if (vmsg->fd_num != 1) { in vu_check_queue_msg_file()
1462 int fd_num = 0; in vu_set_queue_host_notifier() local
1477 vmsg.fds[fd_num++] = fd; in vu_set_queue_host_notifier()
1480 vmsg.fd_num = fd_num; in vu_set_queue_host_notifier()
1529 if (msg_reply.fd_num != 1) { in vu_lookup_shared_object()
1531 msg_reply.fd_num); in vu_lookup_shared_object()
1755 if (vmsg->fd_num != 1) { in vu_set_backend_req_fd()
1756 vu_panic(dev, "Invalid backend_req_fd message (%d fd's)", vmsg->fd_num); in vu_set_backend_req_fd()
1836 vmsg->fd_num = 1; in vu_set_postcopy_advise()
1953 vmsg->fd_num = 1; in vu_get_inflight_fd()
1972 if (vmsg->fd_num != 1 || in vu_set_inflight_fd()
1975 vmsg->size, vmsg->fd_num); in vu_set_inflight_fd()
2068 if (vmsg->fd_num) { in vu_process_message()
2071 for (i = 0; i < vmsg->fd_num; i++) { in vu_process_message()