Home
last modified time | relevance | path

Searched full:deviceid (Results 1 – 25 of 115) sorted by relevance

12345

/linux/rust/kernel/
H A Dpci.rs94 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct pci_device_id` and in probe_callback()
96 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
148 pub struct DeviceId(bindings::pci_device_id); struct
150 impl DeviceId { impl
155 /// Create a new `pci::DeviceId` from a vendor and device ID.
161 subvendor: DeviceId::PCI_ANY_ID, in from_id()
162 subdevice: DeviceId::PCI_ANY_ID, in from_id()
172 /// Create a new `pci::DeviceId` from a class number and mask.
176 vendor: DeviceId::PCI_ANY_ID, in from_class()
177 device: DeviceId::PCI_ANY_ID, in from_class()
[all …]
H A Dusb.rs72 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct usb_device_id` and in probe_callback()
74 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
108 pub struct DeviceId(bindings::usb_device_id); struct
110 impl DeviceId { implementation
220 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `usb_device_id` and does not add
222 unsafe impl RawDeviceId for DeviceId { implementation
227 unsafe impl RawDeviceIdIndex for DeviceId { implementation
236 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
243 $crate::usb::DeviceId,
267 /// (usb::DeviceId::from_id(0x1234, 0x5678), ()),
[all …]
H A Dauxiliary.rs67 // SAFETY: `DeviceId` is a `#[repr(transparent)`] wrapper of `struct auxiliary_device_id` in probe_callback()
69 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
105 pub struct DeviceId(bindings::auxiliary_device_id); struct
107 impl DeviceId { implementation
108 /// Create a new [`DeviceId`] from name.
139 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `auxiliary_device_id` and does not add
141 unsafe impl RawDeviceId for DeviceId { implementation
146 unsafe impl RawDeviceIdIndex for DeviceId { implementation
156 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
163 $crate::auxiliary::DeviceId,
H A Di2c.rs39 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,
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()
213 Some(table.info(<DeviceId as RawDeviceIdIndex>::index(id))) in i2c_id_info()
[all …]
H A Ddriver.rs77 //! Besides the common device ID types, such as [`of::DeviceId`] and [`acpi::DeviceId`], most buses
254 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct acpi_device_id` in acpi_id_info()
256 let id = unsafe { &*raw_id.cast::<acpi::DeviceId>() }; in acpi_id_info()
258 Some(table.info(<acpi::DeviceId as crate::device_id::RawDeviceIdIndex>::index(id))) in acpi_id_info()
288 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct of_device_id` in of_id_info()
290 let id = unsafe { &*raw_id.cast::<of::DeviceId>() }; in of_id_info()
293 table.info(<of::DeviceId as crate::device_id::RawDeviceIdIndex>::index( in of_id_info()
/linux/fs/nfs/
H A Dpnfs_dev.c87 !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 Dnfs4trace.h2084 const struct nfs4_deviceid *deviceid
2087 TP_ARGS(clp, deviceid),
2091 __array(unsigned char, deviceid, NFS4_DEVICEID4_SIZE)
2096 memcpy(__entry->deviceid, deviceid->data,
2101 "deviceid=%s, dstaddr=%s",
2102 __print_hex(__entry->deviceid, NFS4_DEVICEID4_SIZE),
2109 const struct nfs4_deviceid *deviceid \
2111 TP_ARGS(clp, deviceid))
2117 const struct nfs4_deviceid *deviceid,
2121 TP_ARGS(server, deviceid, status),
[all …]
/linux/drivers/acpi/riscv/
H A Drimt.c250 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 Ddaisy.c13 * 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/net/wireless/realtek/rtlwifi/
H A Dpci.c1804 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/samples/rust/
H A Drust_driver_i2c.rs20 [(acpi::DeviceId::new(c_str!("LNUXBEEF")), 0)]
27 [(i2c::DeviceId::new(c_str!("rust_driver_i2c")), 0)]
34 [(of::DeviceId::new(c_str!("test,rust_driver_i2c")), 0)]
H A Drust_driver_auxiliary.rs30 [(auxiliary::DeviceId::new(MODULE_NAME, AUXILIARY_NAME), ())]
64 [(pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), ())]
89 "Connect auxiliary {} with parent: VendorID={}, DeviceID={:#x}\n", in connect()
H A Drust_driver_usb.rs16 [(usb::DeviceId::from_id(0x1234, 0x5678), ()),]
25 _id: &usb::DeviceId, in probe() argument
H A Drust_i2c_client.rs93 [(of::DeviceId::new(c_str!("test,rust-device")), ())]
100 [(acpi::DeviceId::new(c_str!("LNUXBEEF")), ())]
/linux/Documentation/filesystems/nfs/
H A Dpnfs.rst38 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 Dhal_sdio.c82 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 Dflexfilelayoutdev.c34 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 Dflexfilelayout.h38 /* chained in global deviceid hlist */
53 struct nfs4_deviceid deviceid; member
/linux/drivers/dio/
H A Ddio.c7 * 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 Dpci-ntb-howto.rst66 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
H A Dpci-vntb-howto.rst62 baseclass_code deviceid msi_interrupts pci-epf-ntb.0
81 to change the vendorid and the deviceid, the following
85 # echo 0x0809 > functions/pci_epf_vntb/func1/deviceid
/linux/drivers/gpu/nova-core/
H A Ddriver.rs50 pci::DeviceId::from_class_and_vendor(
58 pci::DeviceId::from_class_and_vendor(
/linux/drivers/irqchip/
H A Dirq-gic-v5-its.c471 pr_err("Supplied DeviceID (%u) outside of Device Table range (%u)!", in gicv5_its_device_register()
553 pr_debug("Device table entry for DeviceID 0x%x is not valid. Nothing to clean up!", in gicv5_its_device_unregister()
580 * deviceID bits to support a 2-level device table. If that's not in gicv5_its_alloc_devtab_linear()
636 * device table memory to cover deviceID space; cap the in gicv5_its_alloc_devtab_two_level()
637 * deviceID space if we encounter such set-up. in gicv5_its_alloc_devtab_two_level()
639 * behind level 2 size selection to reduce level-1 deviceID bits. in gicv5_its_alloc_devtab_two_level()
752 pr_err("A device with this DeviceID (0x%x) has already been registered.\n", in gicv5_its_alloc_device()
964 * Store eventid and deviceid into the hwirq for later use. in gicv5_its_irq_domain_alloc()
/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/hwmon/
H A Dftsteutates.c592 s8 deviceid; in fts_detect()
599 deviceid = i2c_smbus_read_byte_data(client, FTS_DEVICE_ID_REG); in fts_detect()
600 if (deviceid > 0 && (deviceid & 0xF0) == 0x10) { in fts_detect()
601 switch (deviceid & 0x0F) { in fts_detect()
624 s8 deviceid; fts_probe() local

12345