Lines Matching refs:Ok
155 Ok(WlOp::NewAlloc { in parse_new()
174 Ok(WlOp::NewPipe { in parse_new_pipe()
203 Ok(WlOp::NewDmabuf { in parse_new_dmabuf()
223 Ok(WlOp::DmabufSync { in parse_dmabuf_sync()
254 Ok(WlOp::Send { in parse_send()
270 Ok(id.into()) in parse_id()
277 VIRTIO_WL_CMD_VFD_CLOSE => Ok(WlOp::Close { in parse_desc()
281 VIRTIO_WL_CMD_VFD_NEW_CTX => Ok(WlOp::NewCtx { in parse_desc()
291 v => Ok(WlOp::InvalidCommand { op_type: v }), in parse_desc()
319 Ok(size_of::<CtrlVfdNew>() as u32) in encode_vfd_new()
352 Ok(size_of::<CtrlVfdNewDmabuf>() as u32) in encode_vfd_new_dmabuf()
387 Ok((size_of::<CtrlVfdRecv>() + vfd_ids.len() * size_of::<Le32>() + data.len()) as u32) in encode_vfd_recv()
400 Ok(size_of_val(&ctrl_vfd_new) as u32) in encode_vfd_hup()
424 Ok(size_of::<Le32>() as u32) in encode_resp()
626 Ok, enumerator
663 WlResp::Ok => VIRTIO_WL_RESP_OK, in get_code()
723 Ok(vfd) in connect()
743 Ok(vfd) in allocate()
776 Ok((vfd, desc)) in dmabuf()
797 Ok(()) in dmabuf_sync()
809 Ok(vfd) in pipe_remote_read_local_write()
817 Ok(vfd) in pipe_remote_write_local_read()
827 Ok(fd_size) => { in from_file()
839 Ok(vfd) in from_file()
846 Ok(FileFlags::Read) => VIRTIO_WL_VFD_READ, in from_file()
847 Ok(FileFlags::Write) => VIRTIO_WL_VFD_WRITE, in from_file()
848 Ok(FileFlags::ReadWrite) => VIRTIO_WL_VFD_READ | VIRTIO_WL_VFD_WRITE, in from_file()
853 Ok(vfd) in from_file()
909 Ok(WlResp::Ok) in send()
913 return Ok(WlResp::InvalidType); in send()
918 Ok(WlResp::Ok) in send()
920 Ok(WlResp::InvalidType) in send()
945 return Ok(buf); in recv()
947 Ok(Vec::new()) in recv()
956 return Ok(buf); in recv()
958 Ok(Vec::new()) in recv()
960 Ok(Vec::new()) in recv()
977 Ok(()) in close()
1032 return Ok(WlResp::InvalidId); in new_pipe()
1036 return Ok(WlResp::InvalidFlags); in new_pipe()
1040 return Ok(WlResp::InvalidFlags); in new_pipe()
1050 return Ok(WlResp::InvalidFlags); in new_pipe()
1063 Ok(resp) in new_pipe()
1065 Entry::Occupied(_) => Ok(WlResp::InvalidId), in new_pipe()
1071 return Ok(WlResp::InvalidId); in new_alloc()
1076 return Ok(WlResp::InvalidFlags); in new_alloc()
1079 return Ok(WlResp::Err(Box::from("invalid flags"))); in new_alloc()
1093 Ok(resp) in new_alloc()
1095 Entry::Occupied(_) => Ok(WlResp::InvalidId), in new_alloc()
1102 return Ok(WlResp::InvalidId); in new_dmabuf()
1116 Ok(resp) in new_dmabuf()
1118 Entry::Occupied(_) => Ok(WlResp::InvalidId), in new_dmabuf()
1125 return Ok(WlResp::InvalidFlags); in dmabuf_sync()
1131 Ok(WlResp::Ok) in dmabuf_sync()
1133 None => Ok(WlResp::InvalidId), in dmabuf_sync()
1139 return Ok(WlResp::InvalidId); in new_context()
1154 Ok(WlResp::VfdNew { in new_context()
1162 Entry::Occupied(_) => Ok(WlResp::InvalidId), in new_context()
1168 Ok(v) => v.to_owned(), in process_poll_context()
1211 Ok(WlResp::Ok) in close()
1213 None => Ok(WlResp::InvalidId), in close()
1255 None => return Ok(WlResp::InvalidType), in send()
1259 return Ok(WlResp::InvalidId); in send()
1271 return Ok(WlResp::InvalidId); in send()
1274 Ok(ResourceResponse::Resource(bridged_file)) => { in send()
1278 Ok(ResourceResponse::Invalid) => { in send()
1280 return Ok(WlResp::InvalidId); in send()
1287 return Ok(WlResp::InvalidId); in send()
1300 return Ok(WlResp::InvalidId); in send()
1308 WlResp::Ok => {} in send()
1309 _ => return Ok(WlResp::InvalidType), in send()
1311 None => return Ok(WlResp::InvalidId), in send()
1322 Ok(WlResp::Ok) in send()
1328 None => return Ok(()), in recv()
1332 return Ok(()); in recv()
1352 Ok(()) in recv()
1389 Ok(WlResp::InvalidCommand) in execute()
1535 .and_then(|pc| pc.add(&in_queue_evt, Token::InQueue).and(Ok(pc))) in run()
1536 .and_then(|pc| pc.add(&out_queue_evt, Token::OutQueue).and(Ok(pc))) in run()
1537 .and_then(|pc| pc.add(&kill_evt, Token::Kill).and(Ok(pc))) in run()
1538 .and_then(|pc| pc.add(&self.state.poll_ctx, Token::State).and(Ok(pc))) in run()
1541 .and(Ok(pc)) in run()
1543 Ok(pc) => pc, in run()
1553 Ok(v) => v, in run()
1600 Ok(op) => match self.state.execute(&self.mem, op) { in run()
1601 Ok(r) => r, in run()
1649 Ok(len) => { in run()
1689 Ok(Wl { in new()
1753 let (self_kill_evt, kill_evt) = match EventFd::new().and_then(|e| Ok((e.try_clone()?, e))) { in activate()
1754 Ok(v) => v, in activate()