• Home
  • Raw
  • Download

Lines Matching refs:TrbCompletionCode

11     InputControlContext, SlotContext, TrbCompletionCode, DEVICE_CONTEXT_ENTRY_SIZE,
174 C: FnMut(TrbCompletionCode) -> std::result::Result<(), ()> + 'static + Send, in disable_slot()
190 C: FnMut(TrbCompletionCode) -> std::result::Result<(), ()> + 'static + Send, in reset_slot()
205 C: FnMut(TrbCompletionCode) -> std::result::Result<(), ()> + 'static + Send, in stop_endpoint()
358 pub fn disable<C: FnMut(TrbCompletionCode) -> std::result::Result<(), ()> + 'static + Send>( in disable()
380 callback(TrbCompletionCode::Success).map_err(|_| Error::CallbackFailed) in disable()
385 callback(TrbCompletionCode::SlotNotEnabledError).map_err(|_| Error::CallbackFailed) in disable()
390 pub fn set_address(&self, trb: &AddressDeviceCommandTrb) -> Result<TrbCompletionCode> { in set_address() argument
396 return Ok(TrbCompletionCode::SlotNotEnabledError); in set_address()
408 return Ok(TrbCompletionCode::ContextStateError); in set_address()
458 return Ok(TrbCompletionCode::TransactionError); in set_address()
486 Ok(TrbCompletionCode::Success) in set_address()
493 ) -> Result<TrbCompletionCode> { in configure_endpoint() argument
528 Ok(TrbCompletionCode::Success) in configure_endpoint()
533 pub fn evaluate_context(&self, trb: &EvaluateContextCommandTrb) -> Result<TrbCompletionCode> { in evaluate_context() argument
535 return Ok(TrbCompletionCode::SlotNotEnabledError); in evaluate_context()
575 Ok(TrbCompletionCode::Success) in evaluate_context()
581 C: FnMut(TrbCompletionCode) -> std::result::Result<(), ()> + 'static + Send, in reset_slot()
599 callback(TrbCompletionCode::Success).map_err(|_| Error::CallbackFailed)?; in reset_slot()
617 C: FnMut(TrbCompletionCode) -> std::result::Result<(), ()> + 'static + Send, in stop_endpoint()
626 return cb(TrbCompletionCode::TrbError).map_err(|_| Error::CallbackFailed); in stop_endpoint()
635 cb(TrbCompletionCode::Success).map_err(|_| Error::CallbackFailed) in stop_endpoint()
642 cb(TrbCompletionCode::ContextStateError).map_err(|_| Error::CallbackFailed)?; in stop_endpoint()
649 pub fn set_tr_dequeue_ptr(&self, endpoint_id: u8, ptr: u64) -> Result<TrbCompletionCode> { in set_tr_dequeue_ptr() argument
652 return Ok(TrbCompletionCode::TrbError); in set_tr_dequeue_ptr()
662 Ok(TrbCompletionCode::Success) in set_tr_dequeue_ptr()
666 Ok(TrbCompletionCode::ContextStateError) in set_tr_dequeue_ptr()