Home
last modified time | relevance | path

Searched refs:Device (Results 1 – 25 of 1587) sorted by relevance

12345678910>>...64

/linux/rust/kernel/drm/
H A Ddevice.rs75 /// A trait implemented by all possible contexts a [`Device`] can be used in.
77 /// Setting up a new [`Device`] is a multi-stage process. Each step of the process that a user struct
79 /// `Device<T, Registered>` would be a [`Device`] that reached the [`Registered`] [`DeviceContext`].
86 /// |Device created| → |Device initialized| → |Registered w/ userspace|
91 /// 1. The [`Device`] is in the [`Uninit`] context and is not guaranteed to be initialized or
93 /// 2. The [`Device`] is guaranteed to be fully initialized, but is not guaranteed to be registered
96 /// 3. The [`Device`] is guaranteed to be fully initialized, and is guaranteed to have been
100 /// for a reference type, it can only guarantee that a [`Device`] reache
82 impl<T: drm::Driver> Device<T> { global() implementation
117 new(dev: &device::Device, data: impl PinInit<T::Data, Error>) -> Result<ARef<Self>> new() argument
220 impl<T: drm::Driver> Deref for Device<T> { global() implementation
230 unsafe impl<T: drm::Driver> AlwaysRefCounted for Device<T> { global() implementation
245 impl<T: drm::Driver> AsRef<device::Device> for Device<T> { global() implementation
246 as_ref(&self) -> &device::Device as_ref() argument
254 unsafe impl<T: drm::Driver> Send for Device<T> {} global() implementation
258 unsafe impl<T: drm::Driver> Sync for Device<T> {} global() implementation
260 impl<T, const ID: u64> WorkItem<ID> for Device<T> global() implementation
283 unsafe impl<T, const ID: u64> HasWork<Device<T>, ID> for Device<T> global() implementation
311 unsafe impl<T, const ID: u64> HasDelayedWork<Device<T>, ID> for Device<T> global() implementation
[all...]
/linux/rust/kernel/
H A Dpci.rs109 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal<'_>>>() }; in probe_callback()
133 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal<'_>>>() }; in remove_callback()
136 // `probe_callback`, hence it's guaranteed that `Device::set_drvdata()` has been called in remove_callback()
280 /// _pdev: &'bound pci::Device<Core<'_>>,
309 dev: &'bound Device<device::Core<'_>>,
315 /// Called when a [`Device`] is unbound from its bound [`Driver`]. Implementing this callback
319 /// `&Device<Core>` or `&Device<Bound>` reference. For instance, drivers may try to perform I/O
323 fn unbind<'bound>(dev: &'bound Device<device::Core<'_>>, this: Pin<&Self::Data<'bound>>) { in unbind()
336 /// A [`Device`] instanc
338 pub struct Device<Ctx: device::DeviceContext = device::Normal>( global() struct
343 impl<Ctx: device::DeviceContext> Device<Ctx> { global() implementation
350 impl Device { global() implementation
448 impl Device<device::Core> { global() implementation
465 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { global() implementation
474 impl crate::dma::Device for Device<device::Core> {} global() implementation
477 unsafe impl crate::sync::aref::AlwaysRefCounted for Device { global() implementation
489 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { global() implementation
500 impl<Ctx: device::DeviceContext> TryFrom<&device::Device<Ctx>> for &Device<Ctx> { global() implementation
521 unsafe impl Send for Device {} global() implementation
525 unsafe impl Sync for Device {} global() implementation
[all...]
H A Dauxiliary.rs92 let adev = unsafe { &*adev.cast::<Device<device::CoreInternal<'_>>>() }; in probe_callback()
114 let adev = unsafe { &*adev.cast::<Device<device::CoreInternal<'_>>>() };
117 // `probe_callback`, hence it's guaranteed that `Device::set_drvdata()` has been called
209 dev: &'bound Device<device::Core<'_>>,
215 /// Called when a [`Device`] is unbound from its bound [`Driver`]. Implementing this callback
219 /// `&Device<Core>` or `&Device<Bound>` reference. For instance, drivers may try to perform I/O in unbind()
223 fn unbind<'bound>(dev: &'bound Device<device::Core<'_>>, this: Pin<&Self::Data<'bound>>) {
236 /// A [`Device`] instance represents a valid `struct auxiliary_device` created by the C portion of
239 pub struct Device<Ct implementation
234 pub struct Device<Ctx: device::DeviceContext = device::Normal>( global() struct
252 impl Device<device::Bound> { global() implementation
262 impl Device { global() implementation
264 parent(&self) -> &device::Device parent() argument
282 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { global() implementation
292 unsafe impl crate::sync::aref::AlwaysRefCounted for Device { global() implementation
311 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Device<Ctx> { global() implementation
323 unsafe impl Send for Device {} global() implementation
327 unsafe impl Sync for Device {} global() implementation
[all...]
H A Dplatform.rs102 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal<'_>>>() }; in probe_callback()
119 let pdev = unsafe { &*pdev.cast::<Device<device::CoreInternal<'_>>>() }; in remove_callback()
231 dev: &'bound Device<device::Core<'_>>, in probe()
245 fn unbind<'bound>(dev: &'bound Device<device::Core<'_>>, this: Pin<&Self::Data<'bound>>) { in unbind()
261 pub struct Device<Ctx: device::DeviceContext = device::Normal>( struct
266 impl<Ctx: device::DeviceContext> Device<Ctx> { impl
310 impl Device<Bound> { implementation
330 unsafe impl<Ctx: device::DeviceContext> device::AsBusDevice<Ctx> for Device<Ctx> { implementation
408 impl Device<Bound> { implementation
531 kernel::impl_device_context_deref!(unsafe { Device });
[all …]
H A Ddevice.rs167 pub struct Device<Ctx: DeviceContext = Normal>(Opaque<bindings::device>, PhantomData<Ctx>); struct
169 impl Device { implementation
191 pub unsafe fn as_bound(&self) -> &Device<Bound> { in as_bound()
205 impl<'a> Device<CoreInternal<'a>> { impl
241 impl<Ctx: InternalBoundContext> Device<Ctx> { implementation
263 impl<Ctx: DeviceContext> Device<Ctx> { implementation
271 pub(crate) fn parent(&self) -> Option<&Device> { in parent() argument
284 Some(unsafe { Device::from_raw(parent) }) in parent()
434 kernel::impl_device_context_deref!(unsafe { Device });
435 kernel::impl_device_context_into_aref!(Device);
[all …]
H A Dusb.rs98 let dev: &device::Device<device::CoreInternal<'_>> = intf.as_ref(); in probe_callback()
111 let dev: &device::Device<device::CoreInternal<'_>> = intf.as_ref(); in disconnect_callback()
114 // `probe_callback`, hence it's guaranteed that `Device::set_drvdata()` has been called in disconnect_callback()
364 impl<Ctx: device::DeviceContext> AsRef<device::Device<Ctx>> for Interface<Ctx> { in as_ref()
365 fn as_ref(&self) -> &device::Device<Ctx> { in as_ref()
371 unsafe { device::Device::from_raw(dev) } in as_ref()
375 impl<Ctx: device::DeviceContext> AsRef<Device> for Interface<Ctx> { in as_ref() argument
376 fn as_ref(&self) -> &Device { in as_ref()
416 /// A [`Device`] instance represents a valid [`struct usb_device`] created by the C portion of the
421 struct Device<Ct
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 Ddma.rs54 /// The [`dma::Device`](Device) trait should be implemented by bus specific device representations,
56 #[cfg_attr(CONFIG_PCI, doc = "* [`pci::Device`](kernel::pci::Device)")]
57 /// * [`platform::Device`](::kernel::platform::Device)
58 pub trait Device<'a>: AsRef<device::Device<Core<'a>>> {
70 // - By the type invariant of `device::Device`, `self.as_ref().as_raw()` is valid.
87 // - By the type invariant of `device::Device`, `sel
50 pub trait Device: AsRef<device::Device<Core>> { global() interface
[all...]
H A Dopp.rs14 device::Device,
34 dev: ARef<Device>,
43 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety in new()
163 /// use kernel::device::Device;
168 /// fn create_opp(dev: &ARef<Device>, freq: Hertz, volt: MicroVolt, level: u32) -> Result<Token> {
176 dev: ARef<Device>,
182 fn new(dev: &ARef<Device>, mut data: Data) -> Result<Self> { in new() argument
183 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety in new()
195 // SAFETY: The requirements are satisfied by the existence of [`Device`] and its safety in drop()
212 /// use kernel::device::Device;
296 config_clks(_dev: &Device, _table: &Table, _opp: &OPP, _scaling_down: bool) -> Result config_clks() argument
303 config_regulators( _dev: &Device, _opp_old: &OPP, _opp_new: &OPP, _data: *mut *mut bindings::regulator, _count: u32, ) -> Result config_regulators() argument
419 set_required_dev(mut self, dev: ARef<Device>, index: u32) -> Result<Self> set_required_dev() argument
661 from_of(dev: &ARef<Device>, index: i32) -> Result<Self> from_of() argument
689 from_of_cpumask(dev: &Device, cpumask: &mut Cpumask) -> Result<Self> from_of_cpumask() argument
764 sharing_cpus(dev: &Device, cpumask: &mut Cpumask) -> Result sharing_cpus() argument
789 of_sharing_cpus(dev: &Device, cpumask: &mut Cpumask) -> Result of_sharing_cpus() argument
[all...]
H A Ddevres.rs13 Device, //
139 dev: ARef<Device>,
205 pub fn new<E>(dev: &Device<Bound>, data: impl PinInit<T, E>) -> Result<Self> in new()
300 pub fn device(&self) -> &Device { in device() argument
337 pub fn access<'a>(&'a self, dev: &'a Device<Bound>) -> Result<&'a T> { in access()
430 dev: &'a Device<Bound>, in new()
446 pub fn device(&self) -> &Device { in device() argument
455 pub fn access_with<R, G>(&self, dev: &Device<Bound>, f: G) -> Result<R> in access_with()
481 pub fn access<'a>(&'a self, dev: &'a Device<Bound>) -> Result<&'a F::Of<'a>> { in access()
493 fn register_foreign<P>(dev: &Device<Bound>, data: P) -> Result in register_foreign()
[all …]
H A Dfaux.rs36 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 Dregulator.rs21 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 Docteon_ep_vf.rst18 * 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 Docteon_ep.rst25 * 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 DKconfig3 # 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/irq/
H A Drequest.rs16 Device, //
57 _dev: PhantomData<&'a Device<Bound>>,
66 pub(crate) unsafe fn new(_dev: &'a Device<Bound>, irq: u32) -> Self {
/linux/Documentation/firmware-guide/acpi/
H A Di2c-muxes.rst8 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 Dintel-pmc-mux.rst22 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 Dreg.rs11 use super::Device;
31 /// fn link_change_notify(dev: &mut Device) {
47 fn read(&self, dev: &mut Device) -> Result<u16>;
50 fn write(&self, dev: &mut Device, val: u16) -> Result;
53 fn read_status(dev: &mut Device) -> Result<u16>;
107 fn read(&self, dev: &mut Device) -> Result<u16> { in read()
109 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Device`. in read()
119 fn write(&self, dev: &mut Device, val: u16) -> Result { in write()
121 // SAFETY: `phydev` is pointing to a valid object by the type invariant of `Device`. in write()
129 fn read_status(dev: &mut Device) in read_status()
48 write(&self, dev: &mut Device, val: u16) -> Result write() argument
117 write(&self, dev: &mut Device, val: u16) -> Result write() argument
207 write(&self, dev: &mut Device, val: u16) -> Result write() argument
[all...]
/linux/rust/kernel/pci/
H A Dirq.rs5 use super::Device;
127 dev: &'a Device<Bound>,
134 /// This is at least the `min_vecs` that [`Device::alloc_irq_vectors`] was asked for. in register()
174 impl Device<device::Bound> { implementation
201 /// # fn no_run(dev: &pci::Device<Bound>) -> Result { in request_threaded_irq()
221 // by the type invariant of `Device`.
H A Dio.rs5 use super::Device;
72 pub(crate) pdev: &'a Device<device::Bound>,
171 pdev: &'a Device<device::Bound>, in new()
180 // SAFETY: `Bar<'a, SIZE>` is covariant over `'a`; it holds `&'a Device<Bound>`, in new()
191 pdev: &'a Device<device::Bound>, in new()
204 // `pdev` is valid by the invariants of `Device`. in new()
205 // `num` is checked for validity by a previous call to `Device::resource_len`.
213 // `pdev` is valid by the invariants of `Device`. in do_release()
214 // `num` is checked for validity by a previous call to `Device::resource_len`. in do_release()
219 // `pdev` is valid by the invariants of `Device` in do_release()
156 new(pdev: &Device, num: u32, name: &CStr) -> Result<Self> new() argument
209 do_release(pdev: &Device, ioptr: usize, num: i32) do_release() argument
249 impl Device<device::Bound> { global() implementation
[all...]
/linux/Documentation/admin-guide/auxdisplay/
H A Dks0108.rst24 2. Device Information
28 :Device Name: KS0108 LCD Controller
29 :Device Code: ks0108
31 :Device Webpage: -
/linux/sound/soc/img/
H A DKconfig6 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 DKconfig30 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 Dmp2856.rst34 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/PCI/endpoint/
H A Dpci-ntb-howto.rst15 Endpoint Device
49 Creating pci-epf-ntb Device
81 Configuring pci-epf-ntb Device
108 Binding pci-epf-ntb Device to EP Controller
135 RootComplex Device
142 "Creating pci-epf-ntb Device" section above::
145 0000:00:00.0 PCI bridge: Texas Instruments Device b00d
146 0000:01:00.0 RAM memory: Texas Instruments Device b00d
149 Using ntb_hw_epf Device

12345678910>>...64