Home
last modified time | relevance | path

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

/linux/rust/kernel/
H A Dpci.rs112 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct pci_device_id` and in probe_callback()
114 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
170 pub struct DeviceId(bindings::pci_device_id);
172 impl DeviceId {
177 /// Create a new `pci::DeviceId` from a vendor and device ID. in from_id()
183 subvendor: DeviceId::PCI_ANY_ID, in from_id()
184 subdevice: DeviceId::PCI_ANY_ID, in from_id()
194 /// Create a new `pci::DeviceId` from a class number and mask. in from_class()
198 vendor: DeviceId::PCI_ANY_ID, in from_class()
199 device: DeviceId in from_class()
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.rs88 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct usb_device_id` and in probe_callback()
90 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
127 pub struct DeviceId(bindings::usb_device_id);
129 impl DeviceId {
239 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `usb_device_id` and does not add
241 unsafe impl RawDeviceId for DeviceId {
246 unsafe impl RawDeviceIdIndex for DeviceId {
251 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
257 $crate::module_device_table!("usb", $crate::usb::DeviceId, $($tt)*);
275 /// (usb::DeviceId
126 pub struct DeviceId(bindings::usb_device_id); global() struct
128 impl DeviceId { global() implementation
240 unsafe impl RawDeviceId for 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()
165 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `auxiliary_device_id` and does not add
167 unsafe impl RawDeviceId for DeviceId { in index()
172 unsafe impl RawDeviceIdIndex for DeviceId {
178 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
184 $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.rs38 pub struct DeviceId(bindings::i2c_device_id); struct
40 impl DeviceId { implementation
61 unsafe impl RawDeviceId for DeviceId { implementation
66 unsafe impl RawDeviceIdIndex for DeviceId { implementation
71 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
77 $crate::module_device_table!("i2c", $crate::i2c::DeviceId, $($tt)*);
211 let id = unsafe { &*raw_id.cast::<DeviceId>() }; in i2c_id_info()
/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.rs79 pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), in config_space()
H A Drust_dma.rs65 [(pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), ())] in probe()
H A Drust_debugfs.rs114 [(acpi::DeviceId::new(c"LNUXBEEF"), ())] in probe()
/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/server/
H A Dsmb2pdu.h366 __le32 DeviceId; member
H A Dsmb2pdu.c5684 posix_info->DeviceId = cpu_to_le32(ksmbd_kstat->kstat->rdev); in smb2_populate_readdir_entry()
7123 file_info->DeviceId = cpu_to_le32(stat.rdev); in find_file_posix_info()
/linux/fs/smb/client/
H A Dreaddir.c280 le32_to_cpu(info->DeviceId), in cifs_posix_to_fattr()
/linux/fs/smb/common/
H A Dsmb2pdu.h1681 __le32 DeviceId; member