| /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 | 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() 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 | i2c.rs | 38 pub struct DeviceId(bindings::i2c_device_id); struct 40 impl DeviceId { implementation 59 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `i2c_device_id` and does not add 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)*); 209 // SAFETY: `DeviceId` is a `#[repr(transparent)` wrapper of `struct i2c_device_id` and in i2c_id_info() 211 let id = unsafe { &*raw_id.cast::<DeviceId>() }; in i2c_id_info() 265 /// (acpi::DeviceId::new(c"LNUXBEEF"), ()) [all …]
|
| H A D | driver.rs | 94 //! Besides the common device ID types, such as [`of::DeviceId`] and [`acpi::DeviceId`], most buses
|
| /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 …]
|
| H A D | nfs4trace.h | 2122 const struct nfs4_deviceid *deviceid 2125 TP_ARGS(clp, deviceid), 2129 __array(unsigned char, deviceid, NFS4_DEVICEID4_SIZE) 2134 memcpy(__entry->deviceid, deviceid->data, 2139 "deviceid=%s, dstaddr=%s", 2140 __print_hex(__entry->deviceid, NFS4_DEVICEID4_SIZE), 2147 const struct nfs4_deviceid *deviceid \ 2149 TP_ARGS(clp, deviceid)) 2155 const struct nfs4_deviceid *deviceid, 2159 TP_ARGS(server, deviceid, status), [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/drivers/acpi/riscv/ |
| H A D | rimt.c | 251 static int rimt_iommu_xlate(struct device *dev, struct acpi_rimt_node *node, u32 deviceid) in rimt_iommu_xlate() argument 274 return acpi_iommu_fwspec_init(dev, deviceid, rimt_fwnode); in rimt_iommu_xlate() 429 u32 deviceid; in rimt_pci_iommu_init() local 431 parent = rimt_node_map_id(info->node, alias, &deviceid, RIMT_IOMMU_TYPE); in rimt_pci_iommu_init() 432 return rimt_iommu_xlate(info->dev, parent, deviceid); in rimt_pci_iommu_init() 439 u32 deviceid = 0; in rimt_plat_iommu_map() local 442 parent = rimt_node_map_platform_id(node, &deviceid, in rimt_plat_iommu_map() 447 err = rimt_iommu_xlate(dev, parent, deviceid); in rimt_plat_iommu_map() 458 u32 deviceid; in rimt_plat_iommu_map_id() local 460 parent = rimt_node_map_id(node, *in_id, &deviceid, RIMT_IOMMU_TYPE); in rimt_plat_iommu_map_id() [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_auxiliary.rs | 35 [(auxiliary::DeviceId::new(MODULE_NAME, AUXILIARY_NAME), ())] 90 [(pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), ())] in connect() 149 "Connect auxiliary {} with parent: VendorID={}, DeviceID={:#x}\n",
|
| 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_platform.rs | 91 [(of::DeviceId::new(c"test,rust-device"), Info(42))] 97 [(acpi::DeviceId::new(c"LNUXBEEF"), Info(0))]
|
| /linux/drivers/net/wireless/realtek/rtlwifi/ |
| H A D | pci.c | 1823 u16 deviceid; in _rtl_pci_find_adapter() local 1830 deviceid = pdev->device; in _rtl_pci_find_adapter() 1840 if (deviceid == RTL_PCI_8192SE_DID && in _rtl_pci_find_adapter() 1844 if (deviceid == RTL_PCI_8192_DID || in _rtl_pci_find_adapter() 1845 deviceid == RTL_PCI_0044_DID || in _rtl_pci_find_adapter() 1846 deviceid == RTL_PCI_0047_DID || in _rtl_pci_find_adapter() 1847 deviceid == RTL_PCI_8192SE_DID || in _rtl_pci_find_adapter() 1848 deviceid == RTL_PCI_8174_DID || in _rtl_pci_find_adapter() 1849 deviceid == RTL_PCI_8173_DID || in _rtl_pci_find_adapter() 1850 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/fs/nfs/flexfilelayout/ |
| H A D | flexfilelayoutdev.c | 34 nfs4_print_deviceid(&mirror_ds->id_node.deviceid); in nfs4_ff_layout_free_deviceid() 218 ret = memcmp(&e1->deviceid, &e2->deviceid, sizeof(e1->deviceid)); in ff_ds_error_match() 280 memcpy(&dserr->deviceid, &mirror->dss[dss_id].mirror_ds->id_node.deviceid, in ff_layout_track_ds_error() 501 * + array length + deviceid(NFS4_DEVICEID4_SIZE) in ff_layout_encode_ds_ioerr() 514 p = xdr_encode_opaque_fixed(p, &err->deviceid, in ff_layout_encode_ds_ioerr()
|
| /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 744 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct mdio_device_id` 746 unsafe impl RawDeviceId for DeviceId { implementation 782 /// use kernel::net::phy::{self, DeviceId}; 788 /// DeviceId::new_with_driver::<PhySample>() 801 /// const PHY_DEVICE_ID: phy::DeviceId = phy::DeviceId::new_with_exact_mask(0x00000001); 815 "mdio", $crate::net::phy::DeviceId,
|
| /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/nfsd/ |
| H A D | flexfilelayoutxdr.c | 38 /* data server entry: deviceid + efficiency + stateid + fh list + in nfsd4_ff_encode_layoutget() 62 p = svcxdr_encode_deviceid4(p, &fl->deviceid); in nfsd4_ff_encode_layoutget()
|
| H A D | flexfilelayoutxdr.h | 40 struct nfsd4_deviceid deviceid; member
|
| /linux/drivers/irqchip/ |
| H A D | irq-gic-v5-its.c | 473 pr_err("Supplied DeviceID (%u) outside of Device Table range (%u)!", in gicv5_its_device_register() 555 pr_debug("Device table entry for DeviceID 0x%x is not valid. Nothing to clean up!", in gicv5_its_device_unregister() 582 * deviceID bits to support a 2-level device table. If that's not in gicv5_its_alloc_devtab_linear() 638 * device table memory to cover deviceID space; cap the in gicv5_its_alloc_devtab_two_level() 639 * deviceID space if we encounter such set-up. in gicv5_its_alloc_devtab_two_level() 641 * behind level 2 size selection to reduce level-1 deviceID bits. in gicv5_its_alloc_devtab_two_level() 754 pr_err("A device with this DeviceID (0x%x) has already been registered.\n", in gicv5_its_alloc_device() 956 * Store eventid and deviceid into the hwirq for later use. in gicv5_its_irq_domain_alloc()
|
| /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()
|
| /linux/drivers/gpu/drm/nouveau/nvkm/subdev/gsp/rm/r570/nvrm/ |
| H A D | gsp.h | 208 NvU16 deviceID; // deviceID member 210 NvU16 subdeviceID; // subsystem deviceID
|