| /linux/rust/kernel/ |
| H A D | pci.rs | 110 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct pci_device_id` and in probe_callback() 112 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback() 164 pub struct DeviceId(bindings::pci_device_id); 166 impl DeviceId { in from_id() 171 /// Create a new `pci::DeviceId` from a vendor and device ID. in from_id() 177 subvendor: DeviceId::PCI_ANY_ID, in from_id() 178 subdevice: DeviceId::PCI_ANY_ID, 188 /// Create a new `pci::DeviceId` from a class number and mask. in from_class() 192 vendor: DeviceId::PCI_ANY_ID, in from_class() 193 device: DeviceId in from_class() 157 pub struct DeviceId(bindings::pci_device_id); global() struct 159 impl DeviceId { global() implementation 222 unsafe impl RawDeviceId for DeviceId { global() implementation 227 unsafe impl RawDeviceIdIndex for DeviceId { global() implementation [all...] |
| H A D | usb.rs | 90 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct usb_device_id` and in probe_callback() 92 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback() 126 pub struct DeviceId(bindings::usb_device_id); in from_id() 128 impl DeviceId { in from_id() 238 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `usb_device_id` and does not add 240 unsafe impl RawDeviceId for DeviceId { in index() 245 unsafe impl RawDeviceIdIndex for DeviceId { 254 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>; 261 $crate::usb::DeviceId, 285 /// (usb::DeviceId 117 pub struct DeviceId(bindings::usb_device_id); global() struct 119 impl DeviceId { global() implementation 231 unsafe impl RawDeviceId for DeviceId { global() implementation 236 unsafe impl RawDeviceIdIndex for DeviceId { global() implementation 309 probe( interface: &Interface<device::Core>, id: &DeviceId, id_info: &Self::IdInfo, ) -> impl PinInit<Self, Error> probe() argument [all...] |
| H A D | i2c.rs | 39 pub struct DeviceId(bindings::i2c_device_id); struct 41 impl DeviceId { implementation 60 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `i2c_device_id` and does not add 62 unsafe impl RawDeviceId for DeviceId { implementation 67 unsafe impl RawDeviceIdIndex for DeviceId { implementation 76 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>; 83 $crate::i2c::DeviceId, 218 // SAFETY: `DeviceId` is a `#[repr(transparent)` wrapper of `struct i2c_device_id` and in i2c_id_info() 220 let id = unsafe { &*raw_id.cast::<DeviceId>() }; in i2c_id_info() 222 Some(table.info(<DeviceId a in i2c_id_info() [all...] |
| H A D | auxiliary.rs | 87 // SAFETY: `DeviceId` is a `#[repr(transparent)`] wrapper of `struct auxiliary_device_id` in probe_callback() 89 let id = unsafe { &*id.cast::<DeviceId>() }; in remove_callback() 127 pub struct DeviceId(bindings::auxiliary_device_id); in new() 129 impl DeviceId { in new() 130 /// Create a new [`DeviceId`] from name. in new() 156 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `auxiliary_device_id` and does not add 158 unsafe impl RawDeviceId for DeviceId { 163 unsafe impl RawDeviceIdIndex for DeviceId { in index() 173 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>; 180 $crate::auxiliary::DeviceId, 116 pub struct DeviceId(bindings::auxiliary_device_id); global() struct 118 impl DeviceId { global() implementation 152 unsafe impl RawDeviceId for DeviceId { global() implementation 157 unsafe impl RawDeviceIdIndex for DeviceId { global() implementation [all...] |
| H A D | driver.rs | 84 //! Besides the common device ID types, such as [`of::DeviceId`] and [`acpi::DeviceId`], most buses 316 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct acpi_device_id` in acpi_id_info() 318 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))) 350 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct of_device_id` in of_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/fs/nfs/ |
| H A D | pnfs_dev.c | 87 !memcmp(&d->deviceid, id, sizeof(*id))) { in _lookup_deviceid() 164 * Lookup a deviceid in cache and get a reference count on it if found 166 * @clp nfs_client associated with deviceid 167 * @id deviceid to look up 220 * Remove a deviceid from cache 222 * @clp nfs_client associated with deviceid 223 * @id the deviceid to unhash 259 d->deviceid = *id; in nfs4_init_deviceid_node() 265 * Dereference a deviceid node and delete it when its reference count drops 268 * @d deviceid node to put [all …]
|
| /linux/drivers/acpi/riscv/ |
| H A D | rimt.c | 250 static int rimt_iommu_xlate(struct device *dev, struct acpi_rimt_node *node, u32 deviceid) in rimt_iommu_xlate() argument 266 return acpi_iommu_fwspec_init(dev, deviceid, rimt_fwnode); in rimt_iommu_xlate() 421 u32 deviceid; in rimt_pci_iommu_init() local 423 parent = rimt_node_map_id(info->node, alias, &deviceid, RIMT_IOMMU_TYPE); in rimt_pci_iommu_init() 424 return rimt_iommu_xlate(info->dev, parent, deviceid); in rimt_pci_iommu_init() 431 u32 deviceid = 0; in rimt_plat_iommu_map() local 434 parent = rimt_node_map_platform_id(node, &deviceid, in rimt_plat_iommu_map() 439 err = rimt_iommu_xlate(dev, parent, deviceid); in rimt_plat_iommu_map() 450 u32 deviceid; in rimt_plat_iommu_map_id() local 452 parent = rimt_node_map_id(node, *in_id, &deviceid, RIMT_IOMMU_TYPE); in rimt_plat_iommu_map_id() [all …]
|
| /linux/drivers/parport/ |
| H A D | daisy.c | 13 * 13-02-1999: Move DeviceID technique from parport_probe. 14 * 13-03-1999: Get DeviceID from non-IEEE 1284.3 devices too. 107 char *deviceid; in parport_daisy_init() local 175 deviceid = kmalloc(1024, GFP_KERNEL); in parport_daisy_init() 176 if (deviceid) { in parport_daisy_init() 177 if (parport_device_id(numdevs - 1, deviceid, 1024) > 2) in parport_daisy_init() 180 kfree(deviceid); in parport_daisy_init() 433 char *deviceid; in assign_addrs() local 498 deviceid = kmalloc(1024, GFP_KERNEL); in assign_addrs() 499 if (!deviceid) return 0; in assign_addrs() [all …]
|
| /linux/samples/rust/ |
| H A D | rust_driver_i2c.rs | 19 [(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 D | rust_driver_auxiliary.rs | 31 [(auxiliary::DeviceId::new(MODULE_NAME, AUXILIARY_NAME), ())] 65 [(pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), ())] 90 "Connect auxiliary {} with parent: VendorID={}, DeviceID={:#x}\n", in connect()
|
| H A D | rust_driver_usb.rs | 24 [(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 | 92 [(of::DeviceId::new(c"test,rust-device"), ())] 99 [(acpi::DeviceId::new(c"LNUXBEEF"), ())]
|
| H A D | rust_driver_platform.rs | 92 [(of::DeviceId::new(c"test,rust-device"), Info(42))] 99 [(acpi::DeviceId::new(c"LNUXBEEF"), Info(0))]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | pci.c | 1804 u16 deviceid; in _rtl_pci_find_adapter() local 1811 deviceid = pdev->device; in _rtl_pci_find_adapter() 1821 if (deviceid == RTL_PCI_8192SE_DID && in _rtl_pci_find_adapter() 1825 if (deviceid == RTL_PCI_8192_DID || in _rtl_pci_find_adapter() 1826 deviceid == RTL_PCI_0044_DID || in _rtl_pci_find_adapter() 1827 deviceid == RTL_PCI_0047_DID || in _rtl_pci_find_adapter() 1828 deviceid == RTL_PCI_8192SE_DID || in _rtl_pci_find_adapter() 1829 deviceid == RTL_PCI_8174_DID || in _rtl_pci_find_adapter() 1830 deviceid == RTL_PCI_8173_DID || in _rtl_pci_find_adapter() 1831 deviceid == RTL_PCI_8172_DID || in _rtl_pci_find_adapter() [all …]
|
| /linux/Documentation/filesystems/nfs/ |
| H A D | pnfs.rst | 38 RCU is used because the deviceid is basically a write once, read many 41 deviceid's per filesystem, and multiple filesystems per nfs_client. 51 level cache. Its reference is held over the lifetime of the deviceid
|
| /linux/drivers/staging/rtl8723bs/hal/ |
| H A D | hal_sdio.c | 82 u32 deviceId, max_len; in rtw_hal_get_sdio_tx_max_length() local 85 deviceId = ffaddr2deviceId(pdvobjpriv, queue_idx); in rtw_hal_get_sdio_tx_max_length() 86 switch (deviceId) { in rtw_hal_get_sdio_tx_max_length()
|
| /linux/fs/nfs/flexfilelayout/ |
| H A D | flexfilelayoutdev.c | 34 nfs4_print_deviceid(&mirror_ds->id_node.deviceid); in nfs4_ff_layout_free_deviceid() 213 ret = memcmp(&e1->deviceid, &e2->deviceid, sizeof(e1->deviceid)); in ff_ds_error_match() 275 memcpy(&dserr->deviceid, &mirror->dss[dss_id].mirror_ds->id_node.deviceid, in ff_layout_track_ds_error() 495 * + array length + deviceid(NFS4_DEVICEID4_SIZE) in ff_layout_encode_ds_ioerr() 508 p = xdr_encode_opaque_fixed(p, &err->deviceid, in ff_layout_encode_ds_ioerr()
|
| H A D | flexfilelayout.h | 38 /* chained in global deviceid hlist */ 53 struct nfs4_deviceid deviceid; member
|
| /linux/drivers/dio/ |
| H A D | dio.c | 7 * int dio_find(u_int deviceid) 10 * Note that the deviceid parameter should be the encoded ID. 118 int __init dio_find(int deviceid) in dio_find() argument 158 if (id == deviceid) { in dio_find()
|
| /linux/Documentation/PCI/endpoint/ |
| H A D | pci-ntb-howto.rst | 66 baseclass_code deviceid msi_interrupts pci-epf-ntb.0 85 to change the vendorid and the deviceid, the following 89 # echo 0xb00d > functions/pci_epf_ntb/func1/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/fs/nfs/filelayout/ |
| H A D | filelayout.c | 546 /* Is the deviceid already set? If so, we're good. */ in filelayout_check_deviceid() 550 /* find and reference the deviceid */ in filelayout_check_deviceid() 551 d = nfs4_find_get_deviceid(NFS_SERVER(lo->plh_inode), &fl->deviceid, in filelayout_check_deviceid() 557 /* Found deviceid is unavailable */ in filelayout_check_deviceid() 669 memcpy(&fl->deviceid, p, sizeof(fl->deviceid)); in filelayout_decode_layout() 671 nfs4_print_deviceid(&fl->deviceid); in filelayout_decode_layout()
|
| /linux/fs/nfsd/ |
| H A D | flexfilelayoutxdr.h | 40 struct nfsd4_deviceid deviceid; member
|
| /linux/Documentation/devicetree/bindings/virtio/ |
| H A D | virtio-device.yaml | 21 "virtio,deviceID", where ID is the virtio device id. The textual
|
| /linux/drivers/usb/storage/ |
| H A D | sddr55.c | 520 unsigned char *deviceID) { in sddr55_read_deviceID() argument 544 *deviceID = content[1]; in sddr55_read_deviceID() 564 unsigned char deviceID; in sddr55_get_capacity() local 572 &deviceID); in sddr55_get_capacity() 579 usb_stor_dbg(us, "Device ID = %02X\n", deviceID); in sddr55_get_capacity() 588 switch (deviceID) { in sddr55_get_capacity()
|