Home
last modified time | relevance | path

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

12345

/linux/rust/kernel/
H A Dacpi.rs12 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
17 pub struct DeviceId(bindings::acpi_device_id); struct
19 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `acpi_device_id` and does not add
21 unsafe impl RawDeviceId for DeviceId { implementation
26 unsafe impl RawDeviceIdIndex for DeviceId { implementation
34 impl DeviceId { implementation
60 $crate::acpi::DeviceId,
H A Dof.rs12 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
17 pub struct DeviceId(bindings::of_device_id); struct
19 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct of_device_id` and
21 unsafe impl RawDeviceId for DeviceId { implementation
26 unsafe impl RawDeviceIdIndex for DeviceId { implementation
34 impl DeviceId { implementation
58 $crate::of::DeviceId,
H A Dpci.rs75 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct pci_device_id` and in probe_callback()
77 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
129 pub struct DeviceId(bindings::pci_device_id);
131 impl DeviceId {
136 /// Create a new `pci::DeviceId` from a vendor and device ID. in from_id()
142 subvendor: DeviceId::PCI_ANY_ID, in from_id()
143 subdevice: DeviceId::PCI_ANY_ID, in from_id()
153 /// Create a new `pci::DeviceId` from a class number and mask. in from_class()
157 vendor: DeviceId::PCI_ANY_ID, in from_class()
158 device: DeviceId in from_class()
124 pub struct DeviceId(bindings::pci_device_id); global() struct
126 impl DeviceId { global() implementation
164 unsafe impl RawDeviceId for DeviceId { global() implementation
169 unsafe impl RawDeviceIdIndex for DeviceId { global() implementation
[all...]
H A Dauxiliary.rs65 // SAFETY: `DeviceId` is a `#[repr(transparent)`] wrapper of `struct auxiliary_device_id` in probe_callback()
67 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback()
103 pub struct DeviceId(bindings::auxiliary_device_id); struct
105 impl DeviceId { implementation
106 /// Create a new [`DeviceId`] from name.
137 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `auxiliary_device_id` and does not add
139 unsafe impl RawDeviceId for DeviceId { implementation
144 unsafe impl RawDeviceIdIndex for DeviceId { implementation
154 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>;
161 $crate::auxiliary::DeviceId,
[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/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/rust/kernel/net/
H A Dphy.rs576 const PHY_DEVICE_ID: DeviceId = DeviceId::new_with_custom_mask(0, 0);
685 pub struct DeviceId(bindings::mdio_device_id);
687 impl DeviceId {
742 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct mdio_device_id` in mdio_device_id()
744 unsafe impl RawDeviceId for DeviceId {
781 /// use kernel::net::phy::{self, DeviceId};
787 /// DeviceId::new_with_driver::<PhySample>()
800 /// const PHY_DEVICE_ID: phy::DeviceId = phy::DeviceId
688 pub struct DeviceId(bindings::mdio_device_id); global() struct
690 impl DeviceId { global() implementation
747 unsafe impl RawDeviceId for DeviceId { global() implementation
[all...]
/linux/drivers/irqchip/
H A Dirq-gic-its-msi-parent.c85 /* ITS specific DeviceID, as the core ITS ignores dev. */ in its_pci_msi_prepare()
129 /* ITS specific DeviceID */ in its_v5_pci_msi_prepare()
150 /* Suck the DeviceID out of the msi-parent property */ in of_pmsi_get_dev_id()
182 * Retrieve the DeviceID and the ITS translate frame node pointer in of_v5_pmsi_get_msi_info()
243 /* ITS specific DeviceID, as the core ITS ignores dev. */ in its_pmsi_prepare()
269 /* ITS specific DeviceID */ in its_v5_pmsi_prepare()
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/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/samples/rust/
H A Drust_driver_auxiliary.rs22 [(auxiliary::DeviceId::new(MODULE_NAME, AUXILIARY_NAME), ())]
53 [(pci::DeviceId::from_id(pci::Vendor::REDHAT, 0x5), ())]
84 "Connect auxiliary {} with parent: VendorID={}, DeviceID={:#x}\n", in connect()
H A Drust_driver_platform.rs88 [(of::DeviceId::new(c_str!("test,rust-device")), Info(42))]
95 [(acpi::DeviceId::new(c_str!("LNUXBEEF")), Info(0))]
/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/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.c624 s8 deviceid; in fts_probe() local
631 deviceid = i2c_smbus_read_byte_data(client, FTS_DEVICE_ID_REG); in fts_probe()
632 if (deviceid > 0 && (deviceid & 0xF0) == 0x10) { in fts_probe()
633 switch (deviceid & 0x0F) { in fts_probe()
/linux/fs/nfs/filelayout/
H A Dfilelayout.c546 /* 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 Dflexfilelayoutxdr.h40 struct nfsd4_deviceid deviceid; member

12345