| /linux/rust/kernel/ |
| H A D | pci.rs | 121 // 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 D | usb.rs | 85 // 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 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() 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 D | driver.rs | 94 //! Besides the common device ID types, such as [`of::DeviceId`] and [`acpi::DeviceId`], most buses
|
| H A D | i2c.rs | 37 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 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 | 81 pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), in config_space()
|
| H A D | rust_dma.rs | 69 [(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/rust/kernel/net/ |
| H A D | phy.rs | 574 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 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/client/ |
| H A D | smb2pdu.h | 260 __le32 DeviceId; 257 __le32 DeviceId; global() member
|
| H A D | readdir.c | 283 le32_to_cpu(info->DeviceId), in cifs_posix_to_fattr()
|
| /linux/fs/smb/server/ |
| H A D | smb2pdu.h | 365 __le32 DeviceId; member
|
| H A D | smb2pdu.c | 6253 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 D | smb2pdu.h | 1681 __le32 DeviceId; member
|