| /linux/rust/kernel/drm/ |
| H A D | device.rs | 77 pub struct Device<T: drm::Driver> { struct 82 impl<T: drm::Driver> Device<T> { argument 117 pub fn new(dev: &device::Device, data: impl PinInit<T::Data, Error>) -> Result<ARef<Self>> { in new() argument 220 impl<T: drm::Driver> Deref for Device<T> { implementation 230 unsafe impl<T: drm::Driver> AlwaysRefCounted for Device<T> { implementation 245 impl<T: drm::Driver> AsRef<device::Device> for Device<T> { implementation 246 fn as_ref(&self) -> &device::Device { in as_ref() argument 249 unsafe { device::Device::from_raw((*self.as_raw()).dev) } in as_ref() 254 unsafe impl<T: drm::Driver> Send for Device<T> {} implementation 258 unsafe impl<T: drm::Driver> Sync for Device<T> {} implementation [all …]
|
| /linux/rust/kernel/ |
| H A D | pci.rs | 108 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in probe_callback() 128 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in remove_callback() 310 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> impl PinInit<Self, Error>; in probe() 322 fn unbind(dev: &Device<device::Core>, this: Pin<&Self>) { in unbind() 338 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct 343 impl<Ctx: device::DeviceContext> Device<Ctx> { impl 350 impl Device { implementation 448 impl Device<device::Core> { implementation 465 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { implementation 471 kernel::impl_device_context_deref!(unsafe { Device }); [all …]
|
| H A D | auxiliary.rs | 85 let adev = unsafe { &*adev.cast::<Device<device::CoreInternal>>() }; in probe_callback() 105 let adev = unsafe { &*adev.cast::<Device<device::CoreInternal>>() }; in remove_callback() 206 fn probe(dev: &Device<device::Core>, id_info: &Self::IdInfo) -> impl PinInit<Self, Error>; in probe() 218 fn unbind(dev: &Device<device::Core>, this: Pin<&Self>) { in unbind() 234 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct 239 impl<Ctx: device::DeviceContext> Device<Ctx> { implementation 252 impl Device<device::Bound> { impl 254 pub fn parent(&self) -> &device::Device<device::Bound> { in parent() 262 impl Device { implementation 264 pub fn parent(&self) -> &device::Device { in parent() argument [all …]
|
| H A D | platform.rs | 100 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in probe_callback() 116 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal>>() }; in remove_callback() 226 dev: &Device<device::Core>, in probe() 240 fn unbind(dev: &Device<device::Core>, this: Pin<&Self>) { in unbind() 256 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct 261 impl<Ctx: device::DeviceContext> Device<Ctx> { implementation 304 impl Device<Bound> { impl 324 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { implementation 386 impl Device<Bound> { implementation 509 kernel::impl_device_context_deref!(unsafe { Device }); [all …]
|
| H A D | device.rs | 30 /// This structure represents the Rust abstraction for a C `struct device`. A [`Device`] can either 31 /// exist as temporary reference (see also [`Device::from_raw`]), which is only valid within a 32 /// certain scope or as [`ARef<Device>`], owning a dedicated reference count. 34 /// # Device Types 36 /// A [`Device`] can represent either a bus device or a class device. 40 /// A bus device is a [`Device`] that is associated with a physical or virtual bus. Examples of 47 /// A class device is a [`Device`] that is associated with a logical category of functionality 52 /// # Device Context 54 /// [`Device`] references are generic over a [`DeviceContext`], which represents the type state of 55 /// a [`Device`] 170 pub struct Device<Ctx: DeviceContext = Normal>(Opaque<bindings::device>, PhantomData<Ctx>); global() struct 172 impl Device { global() implementation 208 impl Device<CoreInternal> { global() implementation 275 impl Device<Bound> { global() implementation 336 impl<Ctx: DeviceContext> Device<Ctx> { global() implementation 344 parent(&self) -> Option<&Device> parent() argument 500 unsafe impl crate::sync::aref::AlwaysRefCounted for Device { global() implementation 513 unsafe impl Send for Device {} global() implementation 517 unsafe impl Sync for Device {} global() implementation 604 impl<Ctx: DeviceContext> AsRef<Device<Ctx>> for Device<Ctx> { global() implementation [all...] |
| H A D | usb.rs | 95 let dev: &device::Device<device::CoreInternal> = intf.as_ref(); in probe_callback() 108 let dev: &device::Device<device::CoreInternal> = intf.as_ref(); in disconnect_callback() 111 // `probe_callback`, hence it's guaranteed that `Device::set_drvdata()` has been called in disconnect_callback() 361 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Interface<Ctx> { 362 fn as_ref(&self) -> &device::Device<Ctx> { 368 unsafe { device::Device::from_raw(dev) } in as_ref() 372 impl<Ctx: device::DeviceContext> AsRef<Device> for Interface<Ctx> { 373 fn as_ref(&self) -> &Device { 413 /// A [`Device`] instance represents a valid [`struct usb_device`] created by the C portion of the 418 struct Device<Ct 375 as_ref(&self) -> &Device as_ref() argument 420 struct Device<Ctx: device::DeviceContext = device::Normal>( global() struct 425 impl<Ctx: device::DeviceContext> Device<Ctx> { global() implementation 437 unsafe impl AlwaysRefCounted for Device { global() implementation 451 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { global() implementation 463 unsafe impl Send for Device {} global() implementation 467 unsafe impl Sync for Device {} global() implementation [all...] |
| H A D | dma.rs | 50 pub trait Device: AsRef<device::Device<Core>> { trait 416 dev: &device::Device<Bound>, in zeroed_slice_with_attrs() 427 dev: &device::Device<Bound>, in zeroed_slice() 482 dev: &device::Device<Bound>, in from_slice_with_attrs() 507 dev: &device::Device<Bound>, in from_slice() 522 dev: &device::Device<Bound>, in zeroed_with_attrs() 531 pub fn zeroed(dev: &device::Device<Bound>, gfp_flags: kernel::alloc::Flags) -> Result<Self> { in zeroed() 596 dev: ARef<device::Device>, 708 dev: &device::Device<Bound>, in alloc_with_attrs() 764 dev: &device::Device<Bound>, in zeroed_with_attrs() [all …]
|
| H A D | opp.rs | 14 device::Device, 34 dev: ARef<Device>, 176 dev: ARef<Device>, 182 fn new(dev: &ARef<Device>, mut data: Data) -> Result<Self> { in new() argument 245 pub fn add_opp(self, dev: &ARef<Device>) -> Result<Token> { in add_opp() 296 fn config_clks(_dev: &Device, _table: &Table, _opp: &OPP, _scaling_down: bool) -> Result { in config_clks() argument 303 _dev: &Device, in config_regulators() argument 368 required_dev: Option<(ARef<Device>, u32)>, 419 pub fn set_required_dev(mut self, dev: ARef<Device>, index: u32) -> Result<Self> { in set_required_dev() argument 445 pub fn set(self, dev: &Device) -> Result<ConfigToken> { in set() [all …]
|
| H A D | devres.rs | 13 Device, // 42 /// This abstraction is meant to be used by subsystems to containerize [`Device`] bound resources to 45 /// [`Device`] bound resources should be freed when either the resource goes out of scope or the 46 /// [`Device`] is unbound respectively, depending on what happens first. In any case, it is always 47 /// guaranteed that revoking the device resource is completed before the corresponding [`Device`] 51 /// [`Device`] is unbound, revoking access to the encapsulated resource (see also [`Revocable`]). 66 /// Device, 115 /// # fn no_run(dev: &Device<Bound>) -> Result<(), Error> { 126 dev: ARef<Device>, 192 pub fn new<E>(dev: &Device<Boun in data() 227 device(&self) -> &Device device() argument [all...] |
| H A D | faux.rs | 36 pub fn new(name: &CStr, parent: Option<&device::Device>) -> Result<Self> { in new() 62 impl AsRef<device::Device> for Registration { 63 fn as_ref(&self) -> &device::Device { in drop() 66 unsafe { device::Device::from_raw(addr_of_mut!((*self.as_raw()).dev)) } in drop() 54 as_ref(&self) -> &device::Device as_ref() argument
|
| H A D | regulator.rs | 21 device::{Bound, Device}, 87 pub fn devm_enable(dev: &Device<Bound>, name: &CStr) -> Result { in devm_enable() 105 pub fn devm_enable_optional(dev: &Device<Bound>, name: &CStr) -> Result { in devm_enable_optional() 272 fn get_internal(dev: &Device, name: &CStr) -> Result<Regulator<T>> { in get_internal() argument 299 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get() argument 326 pub fn get(dev: &Device, name: &CStr) -> Result<Self> { in get() argument
|
| /linux/Documentation/networking/device_drivers/ethernet/marvell/ |
| H A D | octeon_ep_vf.rst | 18 * Network controller: Cavium, Inc. Device b203 19 * Network controller: Cavium, Inc. Device b403 20 * Network controller: Cavium, Inc. Device b103 21 * Network controller: Cavium, Inc. Device b903 22 * Network controller: Cavium, Inc. Device ba03 23 * Network controller: Cavium, Inc. Device bc03 24 * Network controller: Cavium, Inc. Device bd03
|
| H A D | octeon_ep.rst | 25 * Network controller: Cavium, Inc. Device b100 26 * Network controller: Cavium, Inc. Device b200 27 * Network controller: Cavium, Inc. Device b400 28 * Network controller: Cavium, Inc. Device b900 29 * Network controller: Cavium, Inc. Device ba00 30 * Network controller: Cavium, Inc. Device bc00 31 * Network controller: Cavium, Inc. Device bd00
|
| /linux/rust/kernel/irq/ |
| H A D | request.rs | 11 use crate::device::{Bound, Device}; 39 fn handle(&self, device: &Device<Bound>) -> IrqReturn; in handle() 43 fn handle(&self, device: &Device<Bound>) -> IrqReturn { in handle() 49 fn handle(&self, device: &Device<Bound>) -> IrqReturn { in handle() 104 dev: &'a Device<Bound>, 114 pub(crate) unsafe fn new(dev: &'a Device<Bound>, irq: u32) -> Self { in new() 142 /// use kernel::device::{Bound, Device}; 156 /// fn handle(&self, _dev: &Device<Bound>) -> IrqReturn { 253 pub fn synchronize(&self, dev: &Device<Bound>) -> Result { in synchronize() 297 fn handle(&self, device: &Device<Boun [all...] |
| /linux/drivers/scsi/device_handler/ |
| H A D | Kconfig | 3 # SCSI Device Handler configuration 7 bool "SCSI Device Handlers" 11 SCSI Device Handlers provide device specific support for 16 tristate "LSI RDAC Device Handler" 22 tristate "HP/COMPAQ MSA Device Handler" 30 tristate "EMC CLARiiON Device Handler" 36 tristate "SPC-3 ALUA Device Handler" 39 SCSI Device handler for generic SPC-3 Asymmetric Logical Unit
|
| /linux/Documentation/firmware-guide/acpi/ |
| H A D | i2c-muxes.rst | 8 Device () scope per mux channel. 19 Device (SMB1) 22 Device (MUX0) 31 Device (CH00) 35 Device (CLIA) 46 Device (CH01) 50 Device (CLIB)
|
| H A D | intel-pmc-mux.rst | 22 Device modes. The driver is located here: drivers/usb/typec/mux/intel_pmc_mux.c. 37 Device (CH0) 42 Device (CH1) 48 _PLD (Physical Location of Device) 56 Device (CH0) 67 Mux-agent specific _DSD Device Properties 119 Device (MUX) 123 Device (CH0) 138 Device (CH1)
|
| /linux/rust/kernel/net/phy/ |
| H A D | reg.rs | 11 use super::Device; 45 fn read(&self, dev: &mut Device) -> Result<u16>; in read() 48 fn write(&self, dev: &mut Device, val: u16) -> Result; in write() argument 51 fn read_status(dev: &mut Device) -> Result<u16>; in read_status() 105 fn read(&self, dev: &mut Device) -> Result<u16> { in read() 117 fn write(&self, dev: &mut Device, val: u16) -> Result { in write() argument 127 fn read_status(dev: &mut Device) -> Result<u16> { in read_status() 197 fn read(&self, dev: &mut Device) -> Result<u16> { in read() 207 fn write(&self, dev: &mut Device, val: u16) -> Result { in write() argument 216 fn read_status(dev: &mut Device) -> Result<u16> { in read_status()
|
| /linux/rust/kernel/pci/ |
| H A D | irq.rs | 5 use super::Device; 80 dev: &'a Device<Bound>, 91 unsafe fn new(dev: &'a Device<Bound>, index: u32) -> Self { in new() 124 dev: ARef<Device>, 133 dev: &'a Device<Bound>, in register() 174 impl Device<device::Bound> { impl
|
| H A D | io.rs | 5 use super::Device; 82 pub(crate) pdev: &'a Device<device::Bound>, 150 pdev: ARef<Device>, 156 pub(super) fn new(pdev: &Device, num: u32, name: &CStr) -> Result<Self> { in new() argument 209 unsafe fn do_release(pdev: &Device, ioptr: usize, num: i32) { in do_release() argument 249 impl Device<device::Bound> { impl
|
| /linux/Documentation/admin-guide/auxdisplay/ |
| H A D | ks0108.rst | 24 2. Device Information 28 :Device Name: KS0108 LCD Controller 29 :Device Code: ks0108 31 :Device Webpage: -
|
| /linux/sound/soc/img/ |
| H A D | Kconfig | 6 tristate "Imagination I2S Input Device Driver" 13 tristate "Imagination I2S Output Device Driver" 20 tristate "Imagination Parallel Output Device Driver" 27 tristate "Imagination SPDIF Input Device Driver" 34 tristate "Imagination SPDIF Output Device Driver"
|
| /linux/arch/arm/mach-spear/ |
| H A D | Kconfig | 30 bool "SPEAr1310 Machine support with Device Tree" 37 bool "SPEAr1340 Machine support with Device Tree" 57 bool "SPEAr300 Machine support with Device Tree" 63 bool "SPEAr310 Machine support with Device Tree" 69 bool "SPEAr320 Machine support with Device Tree"
|
| /linux/Documentation/hwmon/ |
| H A D | mp2856.rst | 34 Device supports: 39 Device compliant with: 43 Device supports direct format for reading output current, output voltage, 45 Device supports linear format for reading input voltage and input power. 46 Device supports VID and direct formats for reading output voltage.
|
| /linux/Documentation/driver-api/ |
| H A D | infrastructure.rst | 1 Device drivers infrastructure 4 The Basic Device Driver-Model Structures 20 Device Drivers Base 71 Device Drivers DMA Management 77 Device drivers PnP support
|