| /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); struct 166 impl DeviceId { impl 171 /// Create a new `pci::DeviceId` from a vendor and device ID. 177 subvendor: DeviceId::PCI_ANY_ID, in from_id() 178 subdevice: DeviceId::PCI_ANY_ID, in from_id() 188 /// Create a new `pci::DeviceId` from a class number and mask. 192 vendor: DeviceId::PCI_ANY_ID, in from_class() 193 device: DeviceId::PCI_ANY_ID, in from_class() [all …]
|
| H A D | usb.rs | 88 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `struct usb_device_id` and in probe_callback() 90 let id = unsafe { &*id.cast::<DeviceId>() }; in probe_callback() 124 pub struct DeviceId(bindings::usb_device_id); 126 impl DeviceId { struct 236 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `usb_device_id` and does not add 238 unsafe impl RawDeviceId for DeviceId { 243 unsafe impl RawDeviceIdIndex for DeviceId { 252 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>; 259 $crate::usb::DeviceId, 283 /// (usb::DeviceId 128 impl DeviceId { global() implementation 240 unsafe impl RawDeviceId for 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 | i2c.rs | 38 pub struct DeviceId(bindings::i2c_device_id); 40 impl DeviceId { 59 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `i2c_device_id` and does not add 61 unsafe impl RawDeviceId for DeviceId { 66 unsafe impl RawDeviceIdIndex for DeviceId { 75 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>; 82 $crate::i2c::DeviceId, 217 // SAFETY: `DeviceId` is a `#[repr(transparent)` wrapper of `struct i2c_device_id` and in i2c_id_info() 219 let id = unsafe { &*raw_id.cast::<DeviceId>() }; in i2c_id_info() 221 Some(table.info(<DeviceId a in i2c_id_info() 39 pub struct DeviceId(bindings::i2c_device_id); global() struct 41 impl DeviceId { global() implementation 62 unsafe impl RawDeviceId for DeviceId { global() implementation 67 unsafe impl RawDeviceIdIndex for DeviceId { global() implementation [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 probe_callback() 127 pub struct DeviceId(bindings::auxiliary_device_id); struct 129 impl DeviceId { implementation 130 /// Create a new [`DeviceId`] from name. 156 // SAFETY: `DeviceId` is a `#[repr(transparent)]` wrapper of `auxiliary_device_id` and does not add 158 unsafe impl RawDeviceId for DeviceId { implementation 163 unsafe impl RawDeviceIdIndex for DeviceId { implementation 173 pub type IdTable<T> = &'static dyn kernel::device_id::IdTable<DeviceId, T>; 180 $crate::auxiliary::DeviceId,
|
| 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))) in acpi_id_info() 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/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 | 250 static int rimt_iommu_xlate(struct device *dev, struct acpi_rimt_node *node, u32 deviceid) in rimt_iommu_xlate() argument 273 return acpi_iommu_fwspec_init(dev, deviceid, rimt_fwnode); in rimt_iommu_xlate() 428 u32 deviceid; in rimt_pci_iommu_init() local 430 parent = rimt_node_map_id(info->node, alias, &deviceid, RIMT_IOMMU_TYPE); in rimt_pci_iommu_init() 431 return rimt_iommu_xlate(info->dev, parent, deviceid); in rimt_pci_iommu_init() 438 u32 deviceid = 0; in rimt_plat_iommu_map() local 441 parent = rimt_node_map_platform_id(node, &deviceid, in rimt_plat_iommu_map() 446 err = rimt_iommu_xlate(dev, parent, deviceid); in rimt_plat_iommu_map() 457 u32 deviceid; in rimt_plat_iommu_map_id() local 459 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 | 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/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() 217 ret = memcmp(&e1->deviceid, &e2->deviceid, sizeof(e1->deviceid)); in ff_ds_error_match() 279 memcpy(&dserr->deviceid, &mirror->dss[dss_id].mirror_ds->id_node.deviceid, in ff_layout_track_ds_error() 499 * + array length + deviceid(NFS4_DEVICEID4_SIZE) in ff_layout_encode_ds_ioerr() 512 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/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() 966 * 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/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/Documentation/PCI/endpoint/function/binding/ |
| H A D | pci-test.rst | 13 deviceid should be 0xb500 for DRA74x and 0xb501 for DRA72x
|