Home
last modified time | relevance | path

Searched refs:VhostUserMsgHeader (Results 1 – 6 of 6) sorted by relevance

/external/rust/crates/vmm_vhost/src/vhost_user/
Dconnection.rs188 hdr: &VhostUserMsgHeader<R>, in send_header()
194 hdr as *const VhostUserMsgHeader<R> as *const u8, in send_header() constant
195 mem::size_of::<VhostUserMsgHeader<R>>(), in send_header()
199 if bytes != mem::size_of::<VhostUserMsgHeader<R>>() { in send_header()
216 hdr: &VhostUserMsgHeader<R>, in send_message()
227 hdr as *const VhostUserMsgHeader<R> as *const u8, in send_message() constant
228 mem::size_of::<VhostUserMsgHeader<R>>(), in send_message()
234 if bytes != mem::size_of::<VhostUserMsgHeader<R>>() + mem::size_of::<T>() { in send_message()
253 hdr: &VhostUserMsgHeader<R>, in send_message_with_payload()
275 hdr as *const VhostUserMsgHeader<R> as *const u8, in send_message_with_payload() constant
[all …]
Dmaster.rs556 ) -> VhostUserResult<VhostUserMsgHeader<MasterReq>> { in send_request_header()
568 ) -> VhostUserResult<VhostUserMsgHeader<MasterReq>> { in send_request_with_body()
585 ) -> VhostUserResult<VhostUserMsgHeader<MasterReq>> { in send_request_with_payload()
608 ) -> VhostUserResult<VhostUserMsgHeader<MasterReq>> { in send_fd_for_vring()
625 hdr: &VhostUserMsgHeader<MasterReq>, in recv_reply()
642 hdr: &VhostUserMsgHeader<MasterReq>, in recv_reply_with_payload()
668 fn wait_for_ack(&mut self, hdr: &VhostUserMsgHeader<MasterReq>) -> VhostUserResult<()> { in wait_for_ack()
701 fn new_request_header(request: MasterReq, size: u32) -> VhostUserMsgHeader<MasterReq> { in new_request_header()
703 VhostUserMsgHeader::new(request, 0x1, size) in new_request_header()
785 let hdr = VhostUserMsgHeader::new(MasterReq::GET_FEATURES, 0x4, 8); in test_features()
[all …]
Dmaster_req_handler.rs275 hdr: &VhostUserMsgHeader<SlaveReq>, in check_msg_size()
291 hdr: &VhostUserMsgHeader<SlaveReq>, in check_attached_rfds()
322 hdr: &VhostUserMsgHeader<SlaveReq>, in extract_msg_body()
336 req: &VhostUserMsgHeader<SlaveReq>, in new_reply_header()
337 ) -> Result<VhostUserMsgHeader<SlaveReq>> { in new_reply_header()
342 Ok(VhostUserMsgHeader::new( in new_reply_header()
351 req: &VhostUserMsgHeader<SlaveReq>, in send_ack_message()
Dslave_req_handler.rs493 hdr: &VhostUserMsgHeader<MasterReq>, in set_mem_table()
545 fn get_config(&mut self, hdr: &VhostUserMsgHeader<MasterReq>, buf: &[u8]) -> Result<()> { in get_config()
585 hdr: &VhostUserMsgHeader<MasterReq>, in set_config()
612 hdr: &VhostUserMsgHeader<MasterReq>, in set_slave_req_fd()
676 hdr: &VhostUserMsgHeader<MasterReq>, in check_request_size()
692 hdr: &VhostUserMsgHeader<MasterReq>, in check_attached_rfds()
718 hdr: &VhostUserMsgHeader<MasterReq>, in extract_request_body()
746 req: &VhostUserMsgHeader<MasterReq>, in new_reply_header()
748 ) -> Result<VhostUserMsgHeader<MasterReq>> { in new_reply_header()
756 Ok(VhostUserMsgHeader::new( in new_reply_header()
[all …]
Dmessage.rs228 pub(super) struct VhostUserMsgHeader<R: Req> { struct
235 impl<R: Req> VhostUserMsgHeader<R> { argument
240 VhostUserMsgHeader { in new()
299 pub fn is_reply_for(&self, req: &VhostUserMsgHeader<R>) -> bool { in is_reply_for()
314 impl<R: Req> Default for VhostUserMsgHeader<R> { implementation
316 VhostUserMsgHeader { in default()
325 impl<T: Req> VhostUserMsgValidator for VhostUserMsgHeader<T> { implementation
783 let mut hdr = VhostUserMsgHeader::new(MasterReq::GET_FEATURES, 0, 0x100); in msg_header_ops()
815 hdr.set_size((MAX_MSG_SIZE - mem::size_of::<VhostUserMsgHeader<MasterReq>>()) as u32); in msg_header_ops()
Dslave_fs_cache.rs41 let mut hdr = VhostUserMsgHeader::new(request, 0, len as u32); in send_message()
50 fn wait_for_ack(&mut self, hdr: &VhostUserMsgHeader<SlaveReq>) -> Result<u64> { in wait_for_ack()
190 let mut hdr = VhostUserMsgHeader::new( in test_slave_fs_cache_recv_negative()