Lines Matching refs:vfd_id
141 vfd_id: u32, in encode_vfd_new()
155 id: Le32::from(vfd_id), in encode_vfd_new()
169 vfd_id: u32, in encode_vfd_new_dmabuf()
180 id: Le32::from(vfd_id), in encode_vfd_new_dmabuf()
200 fn encode_vfd_recv(writer: &mut Writer, vfd_id: u32, data: &[u8], vfd_ids: &[u32]) -> WlResult<()> { in encode_vfd_recv()
206 id: Le32::from(vfd_id), in encode_vfd_recv()
222 fn encode_vfd_hup(writer: &mut Writer, vfd_id: u32) -> WlResult<()> { in encode_vfd_hup()
228 id: Le32::from(vfd_id), in encode_vfd_hup()
1004 fn dmabuf_sync(&mut self, vfd_id: u32, flags: u32) -> WlResult<WlResp> { in dmabuf_sync()
1009 match self.vfds.get_mut(&vfd_id) { in dmabuf_sync()
1069 let vfd_id = event.token; in process_wait_context() localVariable
1071 self.vfds.get(&vfd_id).and_then(|vfd| vfd.wait_descriptor()) in process_wait_context()
1077 self.in_queue.push_back((vfd_id, WlRecv::Hup)); in process_wait_context()
1082 fn close(&mut self, vfd_id: u32) -> WlResult<WlResp> { in close()
1085 if *dest_vfd_id == vfd_id { in close()
1091 for vfd_id in to_delete { in close()
1093 let _ = self.close(vfd_id); in close()
1095 match self.vfds.remove(&vfd_id) { in close()
1097 self.in_queue.retain(|&(id, _)| id != vfd_id); in close()
1127 vfd_id: u32, in send()
1137 for vfd_id in send_vfd_ids.iter_mut().take(vfd_count) { in send()
1138 *vfd_id = if foreign_id { in send()
1245 match self.vfds.get_mut(&vfd_id) { in send()
1264 fn recv(&mut self, vfd_id: u32) -> WlResult<()> { in recv()
1265 let buf = match self.vfds.get_mut(&vfd_id) { in recv()
1270 self.in_queue.push_back((vfd_id, WlRecv::Hup)); in recv()
1282 vfd_id, in recv()
1289 self.in_queue.push_back((vfd_id, WlRecv::Data { buf })); in recv()
1387 (vfd_id, WlRecv::Vfd { id }) => { in next_recv()
1388 if self.current_recv_vfd.is_none() || self.current_recv_vfd == Some(vfd_id) { in next_recv()
1413 (vfd_id, WlRecv::Data { ref buf }) => { in next_recv()
1414 if self.current_recv_vfd.is_none() || self.current_recv_vfd == Some(vfd_id) { in next_recv()
1416 id: vfd_id, in next_recv()
1428 (vfd_id, WlRecv::Hup) => Some(WlResp::VfdHup { id: vfd_id }), in next_recv()
1438 (vfd_id, WlRecv::Vfd { id }) => { in pop_recv()
1439 if self.current_recv_vfd.is_none() || self.current_recv_vfd == Some(vfd_id) { in pop_recv()
1441 self.current_recv_vfd = Some(vfd_id); in pop_recv()
1448 (vfd_id, WlRecv::Data { .. }) => { in pop_recv()
1451 if !(self.current_recv_vfd.is_none() || self.current_recv_vfd == Some(vfd_id)) { in pop_recv()