| /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 { impl 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> { impl 304 impl Device<Bound> { impl 324 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { implementation 386 impl Device<Bound> { impl 509 kernel::impl_device_context_deref!(unsafe { Device }); [all …]
|
| H A D | device.rs | 170 pub struct Device<Ctx: DeviceContext = Normal>(Opaque<bindings::device>, PhantomData<Ctx>); struct 172 impl Device { implementation 194 pub unsafe fn as_bound(&self) -> &Device<Bound> { in as_bound() 208 impl Device<CoreInternal> { implementation 275 impl Device<Bound> { implementation 336 impl<Ctx: DeviceContext> Device<Ctx> { implementation 344 pub(crate) fn parent(&self) -> Option<&Device> { in parent() argument 357 Some(unsafe { Device::from_raw(parent) }) in parent() 496 kernel::impl_device_context_deref!(unsafe { Device }); 497 kernel::impl_device_context_into_aref!(Device); [all …]
|
| H A D | usb.rs | 97 let dev: &device::Device<device::CoreInternal> = intf.as_ref(); in probe_callback() 110 let dev: &device::Device<device::CoreInternal> = intf.as_ref(); in disconnect_callback() 363 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Interface<Ctx> { 364 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref() 370 unsafe { device::Device::from_raw(dev) } in as_ref() 374 impl<Ctx: device::DeviceContext> AsRef<Device> for Interface<Ctx> { 375 fn as_ref(&self) -> &Device { in as_ref() argument 420 struct Device<Ctx: device::DeviceContext = device::Normal>( struct 425 impl<Ctx: device::DeviceContext> Device<Ctx> { implementation 433 kernel::impl_device_context_deref!(unsafe { Device }); [all …]
|
| H A D | pwm.rs | 78 pub struct Device(Opaque<bindings::pwm_device>); 80 impl Device { 81 /// Creates a reference to a [`Device`] from a valid C pointer. 86 /// returned [`Device`] reference. in from_raw() 89 // `Device` type being transparent makes the cast ok. in as_raw() 185 fn request(_chip: &Chip<Self>, _pwm: &Device, _parent_dev: &device::Device<Bound>) -> Result { in request() 192 _pwm: &Device, in capture() 195 _parent_dev: &device::Device<Bound>, in capture() 204 _pwm: &Device, in round_waveform_tohw() 73 pub struct Device(Opaque<bindings::pwm_device>); global() struct 75 impl Device { global() implementation 183 request(_chip: &Chip<Self>, _pwm: &Device, _parent_dev: &device::Device<Bound>) -> Result request() argument 190 capture( _chip: &Chip<Self>, _pwm: &Device, _result: &mut bindings::pwm_capture, _timeout: usize, _parent_dev: &device::Device<Bound>, ) -> Result capture() argument 202 round_waveform_tohw( _chip: &Chip<Self>, _pwm: &Device, _wf: &Waveform, ) -> Result<RoundedWaveform<Self::WfHw>> round_waveform_tohw() argument 212 round_waveform_fromhw( _chip: &Chip<Self>, _pwm: &Device, _wfhw: &Self::WfHw, _wf: &mut Waveform, ) -> Result round_waveform_fromhw() argument 222 read_waveform( _chip: &Chip<Self>, _pwm: &Device, _parent_dev: &device::Device<Bound>, ) -> Result<Self::WfHw> read_waveform() argument 231 write_waveform( _chip: &Chip<Self>, _pwm: &Device, _wfhw: &Self::WfHw, _parent_dev: &device::Device<Bound>, ) -> Result write_waveform() argument 550 device(&self) -> &device::Device device() argument 588 new( parent_dev: &device::Device, num_channels: u32, data: impl pin_init::PinInit<T, Error>, ) -> Result<ARef<Self>> new() argument [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, // 113 dev: ARef<Device>, 127 pub fn new<E>(dev: &Device<Bound>, data: impl PinInit<T, E>) -> Result<Self> in new() 186 pub fn device(&self) -> &Device { in device() argument 226 pub fn access<'a>(&'a self, dev: &'a Device<Bound>) -> Result<&'a T> { in access() 276 fn register_foreign<P>(dev: &Device<Bound>, data: P) -> Result in register_foreign() 332 pub fn register<T, E>(dev: &Device<Bound>, data: impl PinInit<T, E>, flags: Flags) -> Result in register()
|
| 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 as_ref() argument 66 unsafe { device::Device::from_raw(addr_of_mut!((*self.as_raw()).dev)) } in as_ref()
|
| 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/rust/kernel/net/ ! |
| H A D | phy.rs | 74 pub struct Device(Opaque<bindings::phy_device>); struct 76 impl Device { implementation 281 impl AsRef<kernel::device::Device> for Device { implementation 282 fn as_ref(&self) -> &kernel::device::Device { in as_ref() argument 285 unsafe { kernel::device::Device::from_raw(addr_of_mut!((*phydev).mdio.dev)) } in as_ref() 317 let dev = unsafe { Device::from_raw(phydev) }; in soft_reset_callback() 332 let dev = unsafe { Device::from_raw(phydev) }; in probe_callback() 346 let dev = unsafe { Device::from_raw(phydev) }; in get_features_callback() 360 let dev = unsafe { Device::from_raw(phydev) }; in suspend_callback() 374 let dev = unsafe { Device::from_raw(phydev) }; in resume_callback() [all …]
|
| /linux/Documentation/PCI/endpoint/ ! |
| H A D | pci-endpoint-cfs.rst | 35 Creating EPF Device 44 ... <EPF Device 11>/ 45 ... <EPF Device 21>/ 46 ... <EPF Device 31>/ 48 ... <EPF Device 12>/ 49 ... <EPF Device 22>/ 56 (These entries are created by the framework when any new <EPF Device> is 61 ... <EPF Device 11>/ 72 ... <Symlink EPF Device 31>/ 84 The <EPF Device> directory can have a list of symbolic links [all …]
|
| H A D | pci-vntb-howto.rst | 15 Endpoint Device 45 Creating pci-epf-vntb Device 77 Configuring pci-epf-vntb Device 114 Binding pci-epf-vntb Device to EP Controller 135 RootComplex Device 142 "Creating pci-epf-vntb Device" section above:: 145 00:00.0 PCI bridge: Freescale Semiconductor Inc Device 0000 (rev 01) 146 01:00.0 RAM memory: Freescale Semiconductor Inc Device 0809 148 Endpoint Device / Virtual PCI bus 155 "Creating pci-epf-vntb Device" section above:: [all …]
|
| /linux/drivers/net/phy/ ! |
| H A D | ax88796b_rust.rs | 33 fn asix_soft_reset(dev: &mut phy::Device) -> Result { in asix_soft_reset() 49 fn read_status(dev: &mut phy::Device) -> Result<u16> { in read_status() 80 fn suspend(dev: &mut phy::Device) -> Result { in suspend() 84 fn resume(dev: &mut phy::Device) -> Result { in resume() 88 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset() 92 fn link_change_notify(dev: &mut phy::Device) { in link_change_notify() argument 110 fn suspend(dev: &mut phy::Device) -> Result { in suspend() 114 fn resume(dev: &mut phy::Device) -> Result { in resume() 118 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset() 130 fn soft_reset(dev: &mut phy::Device) -> Result { in soft_reset()
|
| /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() 253 pub fn synchronize(&self, dev: &Device<Bound>) -> Result { in synchronize() 300 fn handle(&self, device: &Device<Bound>) -> ThreadedIrqReturn { in handle() 308 fn handle_threaded(&self, device: &Device<Bound>) -> IrqReturn; in handle_threaded() 312 fn handle(&self, device: &Device<Bound>) -> ThreadedIrqReturn { in handle() [all …]
|
| /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/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/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/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 | DSD-properties-rules.rst | 4 _DSD Device Properties Usage Rules 10 The _DSD (Device Specific Data) configuration object, introduced in ACPI 5.1, 23 generic Device Properties UUID in the _DSD return package as specified in the 25 "Device Properties UUID" in _DSD (Device Specific Data) Implementation Guide 29 that can be returned by _DSD in the Device Properties UUID sub-package for a 34 can be returned in the Device Properties UUID sub-package for the device in 42 "Hierarchical Data Extension UUID" in _DSD (Device Specific Data) 52 Valid property sets must follow the guidance given by the Device Properties UUID 60 associated with the Device Properties UUID. 82 Property Sets and Device Tree Bindings [all …]
|
| /linux/rust/kernel/drm/ ! |
| H A D | device.rs | 58 pub struct Device<T: drm::Driver> { struct 63 impl<T: drm::Driver> Device<T> { implementation 98 pub fn new(dev: &device::Device, data: impl PinInit<T::Data, Error>) -> Result<ARef<Self>> { in new() argument 191 impl<T: drm::Driver> Deref for Device<T> { implementation 201 unsafe impl<T: drm::Driver> AlwaysRefCounted for Device<T> { implementation 216 impl<T: drm::Driver> AsRef<device::Device> for Device<T> { implementation 217 fn as_ref(&self) -> &device::Device { in as_ref() argument 220 unsafe { device::Device::from_raw((*self.as_raw()).dev) } in as_ref() 225 unsafe impl<T: drm::Driver> Send for Device<T> {} implementation 229 unsafe impl<T: drm::Driver> Sync for Device<T> {} implementation
|
| /linux/Documentation/driver-api/cxl/devices/ ! |
| H A D | device-types.rst | 42 Device Types 52 * Allows Device-to-Host coherence and Host-to-Device snoops. 62 A Type-2 CXL Device: 65 * Optionally implements coherent cache and Host-Managed Device Memory 79 A Type-3 CXL Device 82 * Implements Host-Managed Device Memory 102 A Single-Logical Device (SLD) is a device which presents a single device to 105 A Multi-Logical Device (MLD) is a device which may present multiple devices 108 A Single-Headed Device exposes only a single physical connection. 110 A Multi-Headed Device exposes multiple physical connections. [all …]
|
| /linux/drivers/gpu/drm/tyr/ ! |
| H A D | driver.rs | 7 use kernel::device::Device; 33 pub(crate) type TyrDevice = drm::Device<TyrDriver>; 42 pub(crate) pdev: ARef<platform::Device>, 68 fn issue_soft_reset(dev: &Device<Bound>, iomem: &Devres<IoMem>) -> Result { in issue_soft_reset() 97 pdev: &platform::Device<Core>, in probe() 120 let platform: ARef<platform::Device> = pdev.into(); in probe() 136 let tdev: ARef<TyrDevice> = drm::Device::new(pdev.as_ref(), data)?; in probe()
|
| /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> { implementation
|