Home
last modified time | relevance | path

Searched refs:DeviceId (Results 1 – 21 of 21) sorted by relevance

/linux/rust/kernel/
H A Dpci.rs121 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct pci_device_id` and in probe_callback()
123 let id = unsafe { &*id.cast::<DeviceId>() }; in remove_callback()
179 pub struct DeviceId(bindings::pci_device_id); in from_id()
181 impl DeviceId { in from_id()
186 /// Create a new `pci::DeviceId` from a vendor and device ID.
192 subvendor: DeviceId::PCI_ANY_ID, in from_class()
193 subdevice: DeviceId::PCI_ANY_ID, in from_class()
203 /// Create a new `pci::DeviceId` from a class number and mask.
207 vendor: DeviceId::PCI_ANY_ID,
208 device: DeviceId
164 pub struct DeviceId(bindings::pci_device_id); global() struct
166 impl DeviceId { global() implementation
229 unsafe impl RawDeviceId for DeviceId { global() implementation
234 unsafe impl RawDeviceIdIndex for DeviceId { global() implementation
[all...]
H A Dusb.rs85 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct usb_device_id` and in probe_callback()
87 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
124 pub struct DeviceId(bindings::usb_device_id);
126 impl DeviceId { struct
228 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `usb_device_id` and does not add in from_device_and_interface_info()
230 unsafe impl RawDeviceId for DeviceId { in from_device_and_interface_info()
235 unsafe impl RawDeviceIdIndex for DeviceId { in from_device_and_interface_info()
240 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>; implementation
246 $crate::module_device_table!("usb", $crate::usb::DeviceId, $($tt)*);
264 /// (usb::DeviceId
128 impl DeviceId { global() implementation
245 unsafe impl RawDeviceIdIndex for DeviceId { global() implementation
318 probe( interface: &Interface<device::Core>, id: &DeviceId, id_info: &Self::IdInfo, ) -> impl PinInit<Self, Error> probe() argument
[all...]
H A Dauxiliary.rs94 // SAFETY: `DeviceId` is a `#[repr(transparent)`] wrapper of `struct auxiliary_device_id` in probe_callback()
96 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
136 pub struct DeviceId(bindings::auxiliary_device_id); in new()
138 impl DeviceId { in new()
139 /// Create a new [`DeviceId`] from name. in new()
173 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `auxiliary_device_id` and does not add
175 unsafe impl RawDeviceId for DeviceId {
180 unsafe impl RawDeviceIdIndex for DeviceId {
186 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
192 $crate::module_device_table!("auxiliary", $crate::auxiliary::DeviceId,
127 pub struct DeviceId(bindings::auxiliary_device_id); global() struct
129 impl DeviceId { global() implementation
158 unsafe impl RawDeviceId for DeviceId { global() implementation
163 unsafe impl RawDeviceIdIndex for DeviceId { global() implementation
[all...]
H A Ddriver.rs94 //! Besides the common device ID types, such as [`of::DeviceId`] and [`acpi::DeviceId`], most buses
H A Di2c.rs37 pub struct DeviceId(bindings::i2c_device_id);
39 impl DeviceId {
58 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `i2c_device_id` and does not add
60 unsafe impl RawDeviceId for DeviceId {
65 unsafe impl RawDeviceIdIndex for DeviceId {
70 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
76 $crate::module_device_table!("i2c", $crate::i2c::DeviceId, $($tt)*);
208 // SAFETY: `DeviceId` is a `#[repr(transparent)` wrapper of `struct i2c_device_id` and in i2c_id_info()
210 let id = unsafe { &*raw_id.cast::<DeviceId>() }; in i2c_id_info()
264 /// (acpi::DeviceId
38 pub struct DeviceId(bindings::i2c_device_id); global() struct
40 impl DeviceId { global() implementation
61 unsafe impl RawDeviceId for DeviceId { global() implementation
66 unsafe impl RawDeviceIdIndex for DeviceId { global() implementation
[all...]
/linux/samples/rust/
H A Drust_driver_i2c.rs18 [(acpi::DeviceId::new(c"LNUXBEEF"), 0)]
24 [(i2c::DeviceId::new(c"rust_driver_i2c"), 0)]
30 [(of::DeviceId::new(c"test,rust_driver_i2c"), 0)]
H A Drust_driver_usb.rs23 [(usb::DeviceId::from_id(0x1234, 0x5678), ()),] in probe()
33 _id: &usb::DeviceId,
25 probe( intf: &usb::Interface<Core>, _id: &usb::DeviceId, _info: &Self::IdInfo, ) -> impl PinInit<Self, Error> probe() argument
H A Drust_i2c_client.rs91 [(of::DeviceId::new(c"test,rust-device"), ())]
97 [(acpi::DeviceId::new(c"LNUXBEEF"), ())]
H A Drust_driver_auxiliary.rs35 [(auxiliary::DeviceId::new(MODULE_NAME, AUXILIARY_NAME), ())]
90 [(pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), ())] in connect()
H A Drust_driver_platform.rs91 [(of::DeviceId::new(c"test,rust-device"), Info(42))]
97 [(acpi::DeviceId::new(c"LNUXBEEF"), Info(0))]
H A Drust_driver_pci.rs81 pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), in config_space()
H A Drust_dma.rs69 [(pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), ())] in probe()
H A Drust_debugfs.rs114 [(acpi::DeviceId::new(c"LNUXBEEF"), ())] in probe()
/linux/rust/kernel/net/
H A Dphy.rs574 const PHY_DEVICE_ID: DeviceId = DeviceId::new_with_custom_mask(0, 0);
687 pub struct DeviceId(bindings::mdio_device_id); struct
689 impl DeviceId { impl
746 unsafe impl RawDeviceId for DeviceId { implementation
815 "mdio", $crate::net::phy::DeviceId,
/linux/Documentation/ABI/testing/
H A Ddebugfs-amd-iommu106 DeviceId QWORD[3] QWORD[2] QWORD[1] QWORD[0] iommu
122 DeviceId 0000:01:00.0
/linux/drivers/usb/serial/
H A Dio_usbvend.h222 #define MAKE_USB_PRODUCT_ID(OemId, DeviceId) \ argument
223 ((__u16) (((OemId) << 10) || (DeviceId)))
/linux/fs/smb/client/
H A Dsmb2pdu.h260 __le32 DeviceId;
257 __le32 DeviceId; global() member
H A Dreaddir.c283 le32_to_cpu(info->DeviceId), in cifs_posix_to_fattr()
/linux/fs/smb/server/
H A Dsmb2pdu.h365 __le32 DeviceId; member
H A Dsmb2pdu.c6253 posix_info->DeviceId = cpu_to_le32(ksmbd_kstat->kstat->dev); in smb2_query_dir()
7840 file_info->DeviceId = cpu_to_le32(stat.dev); in smb2_close()
/linux/fs/smb/common/
H A Dsmb2pdu.h1681 __le32 DeviceId; member