Home
last modified time | relevance | path

Searched defs:Device (Results 1 – 17 of 17) sorted by relevance

/rust/kernel/drm/
A Ddevice.rs57 pub struct Device<T: drm::Driver> { struct
63 impl<T: drm::Driver> Device<T> { impls
98 pub fn new(dev: &device::Device, data: impl PinInit<T::Data, Error>) -> Result<ARef<Self>> { in new()
175 impl<T: drm::Driver> Deref for Device<T> { implementation
185 unsafe impl<T: drm::Driver> AlwaysRefCounted for Device<T> { implementation
197 impl<T: drm::Driver> AsRef<device::Device> for Device<T> { implementation
198 fn as_ref(&self) -> &device::Device { in as_ref()
206 unsafe impl<T: drm::Driver> Send for Device<T> {} implementation
210 unsafe impl<T: drm::Driver> Sync for Device<T> {} implementation
/rust/kernel/
A Dplatform.rs221 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
226 impl<Ctx: device::DeviceContext> Device<Ctx> { implementation
269 impl Device<Bound> { impls
292 impl crate::dma::Device for Device<device::Core> {} implementation
295 unsafe impl crate::types::AlwaysRefCounted for Device { implementation
307 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { implementation
318 impl<Ctx: device::DeviceContext> TryFrom<&device::Device<Ctx>> for &Device<Ctx> { implementation
339 unsafe impl Send for Device {} implementation
343 unsafe impl Sync for Device {} implementation
A Dpci.rs273 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
291 fn new(pdev: &Device, num: u32, name: &CStr) -> Result<Self> { in new()
344 unsafe fn do_release(pdev: &Device, ioptr: usize, num: i32) { in do_release()
383 impl<Ctx: device::DeviceContext> Device<Ctx> { implementation
389 impl Device { implementation
415 impl Device<device::Bound> { impls
436 impl Device<device::Core> { implementation
455 impl crate::dma::Device for Device<device::Core> {} implementation
458 unsafe impl crate::types::AlwaysRefCounted for Device { implementation
502 unsafe impl Send for Device {} implementation
[all …]
A Dauxiliary.rs201 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
206 impl<Ctx: device::DeviceContext> Device<Ctx> { impls
219 pub fn parent(&self) -> Option<&device::Device> { in parent()
230 impl Device { impls
248 unsafe impl crate::types::AlwaysRefCounted for Device { implementation
267 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { implementation
279 unsafe impl Send for Device {} implementation
283 unsafe impl Sync for Device {} implementation
298 pub fn new(parent: &device::Device, name: &CStr, id: u32, modname: &CStr) -> Result<Self> { in new()
A Ddevice.rs46 pub struct Device<Ctx: DeviceContext = Normal>(Opaque<bindings::device>, PhantomData<Ctx>); struct
48 impl Device { implementation
84 impl Device<CoreInternal> { implementation
131 impl<Ctx: DeviceContext> Device<Ctx> { impls
295 unsafe impl crate::types::AlwaysRefCounted for Device { implementation
308 unsafe impl Send for Device {} implementation
312 unsafe impl Sync for Device {} implementation
A Dregulator.rs277 fn get_internal(dev: &Device, name: &CStr) -> Result<Regulator<T>> { in get_internal()
305 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get()
332 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get()
364 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get()
A Dopp.rs181 fn new(dev: &ARef<Device>, mut data: Data) -> Result<Self> { in new()
295 fn config_clks(_dev: &Device, _table: &Table, _opp: &OPP, _scaling_down: bool) -> Result { in config_clks()
302 _dev: &Device, in config_regulators()
418 pub fn set_required_dev(mut self, dev: ARef<Device>, index: u32) -> Result<Self> { in set_required_dev()
659 pub fn from_of(dev: &ARef<Device>, index: i32) -> Result<Self> { in from_of()
687 pub fn from_of_cpumask(dev: &Device, cpumask: &mut Cpumask) -> Result<Self> { in from_of_cpumask()
765 pub fn sharing_cpus(dev: &Device, cpumask: &mut Cpumask) -> Result { in sharing_cpus()
790 pub fn of_sharing_cpus(dev: &Device, cpumask: &mut Cpumask) -> Result { in of_sharing_cpus()
A Dfaux.rs54 fn as_ref(&self) -> &device::Device { in as_ref()
A Dcpu.rs141 pub unsafe fn from_cpu(cpu: CpuId) -> Result<&'static Device> { in from_cpu()
A Dclk.rs138 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { in get()
306 pub fn get(dev: &Device, name: Option<&CStr>) -> Result<Self> { in get()
A Ddma.rs21 pub trait Device: AsRef<device::Device<Core>> { interface
A Ddevres.rs208 pub fn device(&self) -> &Device { in device()
A Dfirmware.rs62 fn request_internal(name: &CStr, dev: &Device, func: FwFunc) -> Result<Self> { in request_internal()
A Dmiscdevice.rs94 pub fn device(&self) -> &Device { in device()
A Dcpufreq.rs556 pub unsafe fn set_clk(&mut self, dev: &Device, name: Option<&CStr>) -> Result<Clk> { in set_clk()
/rust/kernel/net/
A Dphy.rs74 pub struct Device(Opaque<bindings::phy_device>); struct
76 impl Device { impls
284 impl AsRef<kernel::device::Device> for Device { implementation
285 fn as_ref(&self) -> &kernel::device::Device { in as_ref()
624 fn read_mmd(_dev: &mut Device, _devnum: u8, _regnum: u16) -> Result<u16> { in read_mmd()
629 fn write_mmd(_dev: &mut Device, _devnum: u8, _regnum: u16, _val: u16) -> Result { in write_mmd()
634 fn link_change_notify(_dev: &mut Device) {} in link_change_notify()
/rust/kernel/net/phy/
A Dreg.rs48 fn write(&self, dev: &mut Device, val: u16) -> Result; in write()
117 fn write(&self, dev: &mut Device, val: u16) -> Result { in write()
207 fn write(&self, dev: &mut Device, val: u16) -> Result { in write()

Completed in 25 milliseconds