Lines Matching refs:Ctx
82 /// pub struct Device<Ctx: device::DeviceContext = device::Normal>(
84 /// PhantomData<Ctx>,
101 /// In order to convert from a any [`Device<Ctx>`] to [`ARef<Device>`], bus devices can implement
112 /// impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> {
113 /// fn as_ref(&self) -> &device::Device<Ctx> {
170 pub struct Device<Ctx: DeviceContext = Normal>(Opaque<bindings::device>, PhantomData<Ctx>);
336 impl<Ctx: DeviceContext> Device<Ctx> {
556 /// The normal context does not indicate any specific context. Any `Device<Ctx>` is also a valid
615 impl<Ctx: DeviceContext> AsRef<Device<Ctx>> for Device<Ctx> {
617 fn as_ref(&self) -> &Device<Ctx> {
633 pub unsafe trait AsBusDevice<Ctx: DeviceContext>: AsRef<Device<Ctx>> {
644 unsafe fn from_device(dev: &Device<Ctx>) -> &Self
725 /// Implement [`core::convert::From`], such that all `&Device<Ctx>` can be converted to an