Home
last modified time | relevance | path

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

/linux/rust/kernel/
H A Dpci.rs112 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
164 pub struct DeviceId(bindings::pci_device_id); struct
166 impl DeviceId { impl
177 subvendor: DeviceId::PCI_ANY_ID, in from_id()
178 subdevice: DeviceId::PCI_ANY_ID, in from_id()
192 vendor: DeviceId::PCI_ANY_ID, in from_class()
193 device: DeviceId::PCI_ANY_ID, in from_class()
194 subvendor: DeviceId::PCI_ANY_ID, in from_class()
195 subdevice: DeviceId::PCI_ANY_ID, in from_class()
216 device: DeviceId::PCI_ANY_ID, in from_class_and_vendor()
[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()
124 pub struct DeviceId(bindings::usb_device_id);
126 impl DeviceId { struct
236 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `usb_device_id` and does not add
238 unsafe impl RawDeviceId for DeviceId {
243 unsafe impl RawDeviceIdIndex for DeviceId {
252 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
259 $crate::usb::DeviceId,
283 /// (usb::DeviceId
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.rs89 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
127 pub struct DeviceId(bindings::auxiliary_device_id); struct
129 impl DeviceId { impl
158 unsafe impl RawDeviceId for DeviceId { implementation
163 unsafe impl RawDeviceIdIndex for DeviceId { implementation
173 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
180 $crate::auxiliary::DeviceId,
H A Di2c.rs38 pub struct DeviceId(bindings::i2c_device_id);
40 impl DeviceId {
59 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `i2c_device_id` and does not add
61 unsafe impl RawDeviceId for DeviceId {
66 unsafe impl RawDeviceIdIndex for DeviceId {
75 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
82 $crate::i2c::DeviceId,
217 // SAFETY: `DeviceId` is a `#[repr(transparent)` wrapper of `struct i2c_device_id` and in i2c_id_info()
219 let id = unsafe { &*raw_id.cast::<DeviceId>() }; in i2c_id_info()
221 Some(table.info(<DeviceId a in i2c_id_info()
39 pub struct DeviceId(bindings::i2c_device_id); global() struct
41 impl DeviceId { global() implementation
62 unsafe impl RawDeviceId for DeviceId { global() implementation
67 unsafe impl RawDeviceIdIndex for DeviceId { global() implementation
[all...]
H A Ddriver.rs318 let id = unsafe { &*raw_id.cast::<acpi::DeviceId>() }; in acpi_id_info()
320 Some(table.info(<acpi::DeviceId as crate::device_id::RawDeviceIdIndex>::index(id))) in acpi_id_info()
352 let id = unsafe { &*raw_id.cast::<of::DeviceId>() }; in of_id_info()
355 table.info(<of::DeviceId as crate::device_id::RawDeviceIdIndex>::index( in of_id_info()
/linux/samples/rust/
H A Drust_driver_i2c.rs19 [(acpi::DeviceId::new(c"LNUXBEEF"), 0)]
26 [(i2c::DeviceId::new(c"rust_driver_i2c"), 0)]
33 [(of::DeviceId::new(c"test,rust_driver_i2c"), 0)]
H A Drust_driver_usb.rs24 [(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.rs92 [(of::DeviceId::new(c"test,rust-device"), ())]
99 [(acpi::DeviceId::new(c"LNUXBEEF"), ())]
H A Drust_driver_auxiliary.rs31 [(auxiliary::DeviceId::new(MODULE_NAME, AUXILIARY_NAME), ())]
65 [(pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), ())]
H A Drust_driver_platform.rs92 [(of::DeviceId::new(c"test,rust-device"), Info(42))]
99 [(acpi::DeviceId::new(c"LNUXBEEF"), Info(0))]
H A Drust_driver_pci.rs82 pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), in config_space()
H A Drust_dma.rs56 [(pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), ())]
H A Drust_debugfs.rs115 [(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/client/
H A Dsmb2pdu.h285 __le32 DeviceId; member
H A Dreaddir.c281 le32_to_cpu(info->DeviceId), in cifs_posix_to_fattr()
/linux/fs/smb/server/
H A Dsmb2pdu.h292 __le32 DeviceId; member
H A Dsmb2pdu.c4099 posix_info->DeviceId = cpu_to_le32(ksmbd_kstat->kstat->rdev); in smb2_populate_readdir_entry()
5375 file_info->DeviceId = cpu_to_le32(stat.rdev); in find_file_posix_info()
/linux/fs/smb/common/
H A Dsmb2pdu.h1629 __le32 DeviceId; member