| /linux/rust/kernel/ |
| H A D | pci.rs | 112 // 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 D | usb.rs | 88 // 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 D | auxiliary.rs | 94 // 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 D | driver.rs | 94 //! Besides the common device ID types, such as [`of::DeviceId`] and [`acpi::DeviceId`], most buses
|
| H A D | i2c.rs | 38 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 D | rust_driver_i2c.rs | 18 [(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 D | rust_driver_usb.rs | 23 [(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 D | rust_i2c_client.rs | 91 [(of::DeviceId::new(c"test,rust-device"), ())] 97 [(acpi::DeviceId::new(c"LNUXBEEF"), ())]
|
| H A D | rust_driver_auxiliary.rs | 35 [(auxiliary::DeviceId::new(MODULE_NAME, AUXILIARY_NAME), ())] 90 [(pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), ())] in connect()
|
| H A D | rust_driver_platform.rs | 91 [(of::DeviceId::new(c"test,rust-device"), Info(42))] 97 [(acpi::DeviceId::new(c"LNUXBEEF"), Info(0))]
|
| H A D | rust_driver_pci.rs | 79 pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), in config_space()
|
| H A D | rust_dma.rs | 65 [(pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), ())] in probe()
|
| H A D | rust_debugfs.rs | 114 [(acpi::DeviceId::new(c"LNUXBEEF"), ())] in probe()
|
| /linux/Documentation/ABI/testing/ |
| H A D | debugfs-amd-iommu | 106 DeviceId QWORD[3] QWORD[2] QWORD[1] QWORD[0] iommu 122 DeviceId 0000:01:00.0
|
| /linux/drivers/usb/serial/ |
| H A D | io_usbvend.h | 222 #define MAKE_USB_PRODUCT_ID(OemId, DeviceId) \ argument 223 ((__u16) (((OemId) << 10) || (DeviceId)))
|
| /linux/fs/smb/server/ |
| H A D | smb2pdu.h | 366 __le32 DeviceId; member
|
| H A D | smb2pdu.c | 5684 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 D | readdir.c | 280 le32_to_cpu(info->DeviceId), in cifs_posix_to_fattr()
|
| /linux/fs/smb/common/ |
| H A D | smb2pdu.h | 1681 __le32 DeviceId; member
|