/linux/drivers/platform/surface/aggregator/ |
H A D | bus.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * Surface System Aggregator Module bus and device integration. 5 * Copyright (C) 2019-2022 Maximilian Luz <luzmaximilian@gmail.com> 8 #include <linux/device.h> 14 #include <linux/surface_aggregator/device.h> 20 /* -- Device and bus functions. --------------------------------------------- */ 22 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, in modalias_show() 28 sdev->uid.domain, sdev->uid.category, sdev->uid.target, in modalias_show() 29 sdev->uid.instance, sdev->uid.function); in modalias_show() 41 static int ssam_device_uevent(const struct device *dev, struct kobj_uevent_env *env) in ssam_device_uevent() [all …]
|
/linux/include/linux/ |
H A D | reset.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 struct device; 14 * struct reset_control_bulk_data - Data used for bulk reset control operations. 16 * @id: reset control consumer ID 24 const char *id; member 34 * enum reset_control_flags - Flags that can be passed to the reset_control_get functions 87 const char *id, int index, enum reset_control_flags flags); 88 struct reset_control *__reset_control_get(struct device *dev, const char *id, 91 int __reset_control_bulk_get(struct device *dev, int num_rstcs, 96 int __device_reset(struct device *dev, bool optional); [all …]
|
H A D | mod_devicetable.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Device tables which are exported to userspace via 25 * struct pci_device_id - PCI device ID structure 26 * @vendor: Vendor ID to match (or PCI_ANY_ID) 27 * @device: Device ID to match (or PCI_ANY_ID) 28 * @subvendor: Subsystem vendor ID to match (or PCI_ANY_ID) 29 * @subdevice: Subsystem device ID to match (or PCI_ANY_ID) 30 * @class: Device class, subclass, and "interface" to match. 34 * as vendor/device is normally sufficient. 35 * @class_mask: Limit which sub-fields of the class field are compared. [all …]
|
/linux/drivers/rapidio/ |
H A D | rio-driver.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 18 * rio_match_device - Tell if a RIO device has a matching RIO device id structure 19 * @id: the RIO device id structure to match against 20 * @rdev: the RIO device structure to match against 22 * Used from driver probe and bus matching to check whether a RIO device 23 * matches a device id structure provided by a RIO driver. Returns the 27 *id, in rio_match_device() 30 while (id->vid || id->asm_vid) { in rio_match_device() 31 if (((id->vid == RIO_ANY_ID) || (id->vid == rdev->vid)) && in rio_match_device() 32 ((id->did == RIO_ANY_ID) || (id->did == rdev->did)) && in rio_match_device() [all …]
|
/linux/Documentation/ABI/testing/ |
H A D | sysfs-bus-i3c | 1 What: /sys/bus/i3c/devices/i3c-<bus-id> 3 Contact: linux-i3c@vger.kernel.org 5 An I3C bus. This directory will contain one sub-directory per 6 I3C device present on the bus. 8 What: /sys/bus/i3c/devices/i3c-<bus-id>/current_master 10 Contact: linux-i3c@vger.kernel.org 12 Expose the master that owns the bus (<bus-id>-<master-pid>) at 17 What: /sys/bus/i3c/devices/i3c-<bus-id>/mode 19 Contact: linux-i3c@vger.kernel.org 21 I3C bus mode. Can be "pure", "mixed-fast" or "mixed-slow". See [all …]
|
H A D | sysfs-bus-cdx | 18 Vendor ID for this CDX device, in hexadecimal. Vendor ID is 19 16 bit identifier which is specific to the device manufacturer. 20 Combination of Vendor ID and Device ID identifies a device. 22 What: /sys/bus/cdx/devices/.../device 26 Device ID for this CDX device, in hexadecimal. Device ID is 27 16 bit identifier to identify a device type within the range 28 of a device manufacturer. 29 Combination of Vendor ID and Device ID identifies a device. 35 Subsystem Vendor ID for this CDX device, in hexadecimal. 36 Subsystem Vendor ID is 16 bit identifier specific to the [all …]
|
H A D | sysfs-bus-vfio-mdev | 1 What: /sys/.../<device>/mdev_supported_types/ 6 supported mediated device types and their details for 7 <device>. Supported type attributes are defined by the 8 vendor driver who registers with Mediated device framework. 10 by adding the device driver string as a prefix to the 13 What: /sys/.../<device>/mdev_supported_types/<type-id>/ 24 What: /sys/.../mdev_supported_types/<type-id>/create 28 Writing UUID to this file will create mediated device of 29 type <type-id> for parent device <device>. This is a 30 write-only file. [all …]
|
/linux/sound/ |
H A D | ac97_bus.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <linux/device.h> 17 * snd_ac97_check_id() - Reads and checks the vendor ID of the device 18 * @ac97: The AC97 device to check 19 * @id: The ID to compare to 20 * @id_mask: Mask that is applied to the device ID before comparing to @id 22 * If @id is 0 this function returns true if the read device vendor ID is 23 * a valid ID. If @id is non 0 this functions returns true if @id 24 * matches the read vendor ID. Otherwise the function returns false. 26 static bool snd_ac97_check_id(struct snd_ac97 *ac97, unsigned int id, in snd_ac97_check_id() argument [all …]
|
/linux/drivers/ipack/ |
H A D | ipack.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Industry-pack bus support functions. 5 * Copyright (C) 2011-2012 CERN (www.cern.ch) 15 #define to_ipack_dev(device) container_of(device, struct ipack_device, dev) argument 20 static void ipack_device_release(struct device *dev) in ipack_device_release() 22 struct ipack_device *device = to_ipack_dev(dev); in ipack_device_release() local 23 kfree(device->id); in ipack_device_release() 24 device->release(device); in ipack_device_release() 28 ipack_match_one_device(const struct ipack_device_id *id, in ipack_match_one_device() argument 29 const struct ipack_device *device) in ipack_match_one_device() argument [all …]
|
/linux/drivers/pnp/pnpacpi/ |
H A D | core.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pnpacpi -- PnP ACPI driver 21 * Compatible Device IDs 29 static int __init ispnpidacpi(const char *id) in ispnpidacpi() argument 31 TEST_ALPHA(id[0]); in ispnpidacpi() 32 TEST_ALPHA(id[1]); in ispnpidacpi() 33 TEST_ALPHA(id[2]); in ispnpidacpi() 34 TEST_HEX(id[3]); in ispnpidacpi() 35 TEST_HEX(id[4]); in ispnpidacpi() 36 TEST_HEX(id[5]); in ispnpidacpi() [all …]
|
/linux/drivers/gpu/drm/nouveau/nvkm/engine/fifo/ |
H A D | ga100.c | 39 return (chan->cgrp->runl->doorbell << 16) | chan->id; in ga100_chan_doorbell_handle() 45 struct nvkm_runl *runl = chan->cgrp->runl; in ga100_chan_stop() 47 nvkm_wr32(runl->fifo->engine.subdev.device, runl->chan + (chan->id * 4), 0x00000003); in ga100_chan_stop() 53 struct nvkm_runl *runl = chan->cgrp->runl; in ga100_chan_start() 54 struct nvkm_device *device = runl->fifo->engine.subdev.device; in ga100_chan_start() local 57 nvkm_wr32(device, runl->chan + (chan->id * 4), 0x00000002); in ga100_chan_start() 58 nvkm_wr32(device, runl->addr + 0x0090, (gfid << 16) | chan->id); /* INTERNAL_DOORBELL. */ in ga100_chan_start() 64 struct nvkm_runl *runl = chan->cgrp->runl; in ga100_chan_unbind() 66 nvkm_wr32(runl->fifo->engine.subdev.device, runl->chan + (chan->id * 4), 0xffffffff); in ga100_chan_unbind() 74 nvkm_kmap(chan->inst); in ga100_chan_ramfc_write() [all …]
|
/linux/drivers/pci/ |
H A D | search.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 1993 -- 1997 Drew Eckhardt, Frederic Potter, 6 * David Mosberger-Tang 7 * Copyright (C) 1997 -- 2000 Martin Mares <mj@ucw.cz> 8 * Copyright (C) 2003 -- 2004 Greg Kroah-Hartman <greg@kroah.com> 20 * pci_for_each_dma_alias - Iterate over DMA aliases for a device 21 * @pdev: starting downstream device 36 * The device may have an explicit alias requester ID for DMA where the in pci_for_each_dma_alias() 46 * If the device is broken and uses an alias requester ID for in pci_for_each_dma_alias() 49 if (unlikely(pdev->dma_alias_mask)) { in pci_for_each_dma_alias() [all …]
|
/linux/drivers/tc/ |
H A D | tc-driver.c | 7 * Loosely based on drivers/dio/dio-driver.c and 8 * drivers/pci/pci-driver.c. 20 * tc_register_driver - register a new TC driver 26 * no device was claimed during registration. 30 return driver_register(&tdrv->driver); in tc_register_driver() 35 * tc_unregister_driver - unregister a TC driver 40 * each device it was responsible for, and marks those devices as 45 driver_unregister(&tdrv->driver); in tc_unregister_driver() 50 * tc_match_device - tell if a TC device structure has a matching 51 * TC device ID structure [all …]
|
/linux/drivers/infiniband/core/ |
H A D | cma.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 4 * Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved. 5 * Copyright (c) 1999-2019, Mellanox Technologies, Inc. All rights reserved. 6 * Copyright (c) 2005-2006 Intel Corporation. All rights reserved. 64 [RDMA_CM_EVENT_DEVICE_REMOVAL] = "device removal", 85 const char *__attribute_const__ rdma_reject_msg(struct rdma_cm_id *id, in rdma_reject_msg() argument 88 if (rdma_ib_or_roce(id->device, id->port_num)) in rdma_reject_msg() 91 if (rdma_protocol_iwarp(id->device, id->port_num)) in rdma_reject_msg() 100 * rdma_is_consumer_reject - return true if the consumer rejected the connect 102 * @id: Communication identifier that received the REJECT event. [all …]
|
/linux/Documentation/devicetree/bindings/pci/ |
H A D | pci-ep.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/pci/pci-ep.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 13 - Kishon Vijay Abraham I <kishon@kernel.org> 14 - Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org> 18 pattern: "^pcie-ep@" 20 iommu-map: 21 $ref: /schemas/types.yaml#/definitions/uint32-matrix 24 - description: Device ID (see msi-map) base [all …]
|
/linux/drivers/extcon/ |
H A D | extcon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/extcon/extcon.c - External Connector (extcon) framework. 21 #include <linux/device.h> 34 unsigned int id; member 40 .id = EXTCON_NONE, 47 .id = EXTCON_USB, 52 .id = EXTCON_USB_HOST, 53 .name = "USB-HOST", 59 .id = EXTCON_CHG_USB_SDP, 64 .id = EXTCON_CHG_USB_DCP, [all …]
|
/linux/rust/kernel/ |
H A D | cpu.rs | 1 // SPDX-License-Identifier: GPL-2.0 7 use crate::{bindings, device::Device, error::Result, prelude::ENODEV}; 11 pub fn nr_cpu_ids() -> u32 { in nr_cpu_ids() 24 /// The CPU ID. 30 /// The CPU ID lies within the range `[0, nr_cpu_ids())`. 40 /// let id = unsafe { CpuId::from_u32_unchecked(cpu) }; 42 /// assert_eq!(id.as_u32(), cpu); 44 /// assert!(CpuId::from_i32(-1).is_none()); 50 /// Creates a new [`CpuId`] from the given `id` without checking bounds. 54 /// The caller must ensure that `id` is a valid CPU ID (i.e., `0 <= id < nr_cpu_ids()`). [all …]
|
/linux/drivers/clk/ |
H A D | clk-devres.c | 1 // SPDX-License-Identifier: GPL-2.0 3 #include <linux/device.h> 12 static void devm_clk_release(struct device *dev, void *res) in devm_clk_release() 16 if (state->exit) in devm_clk_release() 17 state->exit(state->clk); in devm_clk_release() 19 clk_put(state->clk); in devm_clk_release() 22 static struct clk *__devm_clk_get(struct device *dev, const char *id, in __devm_clk_get() argument 23 struct clk *(*get)(struct device *dev, const char *id), in __devm_clk_get() argument 33 return ERR_PTR(-ENOMEM); in __devm_clk_get() 35 clk = get(dev, id); in __devm_clk_get() [all …]
|
/linux/drivers/dio/ |
H A D | dio-driver.c | 6 * Loosely based on drivers/pci/pci-driver.c and drivers/zorro/zorro-driver.c 19 * dio_match_device - Tell if a DIO device structure has a matching DIO device id structure 20 * @ids: array of DIO device id structures to search in 21 * @d: the DIO device structure to match against 23 * Used by a driver to check whether a DIO device present in the 32 while (ids->id) { in dio_match_device() 33 if (ids->id == DIO_WILDCARD) in dio_match_device() 35 if (DIO_NEEDSSECID(ids->id & 0xff)) { in dio_match_device() 36 if (ids->id == d->id) in dio_match_device() 39 if ((ids->id & 0xff) == (d->id & 0xff)) in dio_match_device() [all …]
|
/linux/drivers/pnp/ |
H A D | driver.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * driver.c - device id matching, driver model, etc. 29 int compare_pnp_id(struct pnp_id *pos, const char *id) in compare_pnp_id() argument 31 if (!pos || !id || (strlen(id) != 7)) in compare_pnp_id() 33 if (memcmp(id, "ANYDEVS", 7) == 0) in compare_pnp_id() 36 if (memcmp(pos->id, id, 3) == 0) in compare_pnp_id() 37 if (compare_func(pos->id, id) == 1) in compare_pnp_id() 39 pos = pos->next; in compare_pnp_id() 47 const struct pnp_device_id *drv_id = drv->id_table; in match_device() 52 while (*drv_id->id) { in match_device() [all …]
|
/linux/include/linux/cdx/ |
H A D | cdx_bus.h | 1 /* SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2022-2023, Advanced Micro Devices, Inc. 12 #include <linux/device.h> 57 * CDX_DEVICE - macro used to describe a specific CDX device 58 * @vend: the 16 bit CDX Vendor ID 59 * @dev: the 16 bit CDX Device ID 62 * specific device. The subvendor and subdevice fields will be set to 66 .vendor = (vend), .device = (dev), \ 70 * CDX_DEVICE_DRIVER_OVERRIDE - macro used to describe a CDX device with 72 * @vend: the 16 bit CDX Vendor ID [all …]
|
/linux/drivers/zorro/ |
H A D | zorro-driver.c | 6 * Loosely based on drivers/pci/pci-driver.c 21 * zorro_match_device - Tell if a Zorro device structure has a matching 22 * Zorro device id structure 23 * @ids: array of Zorro device id structures to search in 24 * @dev: the Zorro device structure to match against 26 * Used by a driver to check whether a Zorro device present in the 35 while (ids->id) { in zorro_match_device() 36 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) in zorro_match_device() 44 static int zorro_device_probe(struct device *dev) in zorro_device_probe() 47 struct zorro_driver *drv = to_zorro_driver(dev->driver); in zorro_device_probe() [all …]
|
/linux/Documentation/netlink/specs/ |
H A D | dpll.yaml | 1 # SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause) 8 - 16 - 20 - 23 render-max: true 24 - 26 name: lock-status 28 provides information of dpll device lock status, valid values for 31 - 37 - [all …]
|
/linux/arch/parisc/kernel/ |
H A D | drivers.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 7 * Copyright (c) 2001-2023 Helge Deller <deller@gmx.de> 9 * Copyright (c) 2004-2005 Thibaut VARENE <varenet@parisc-linux.org> 16 * - 715/Mirage device paths have a dummy device between Lasi and its children 17 * - The EISA adapter may show up as a sibling or child of Wax 18 * - Dino has an optionally functional serial port. If firmware enables it, 21 * - Dino has both parisc and pci devices as children 22 * - parisc devices are discovered in a random order, including children 33 #include <linux/dma-map-ops.h> 37 #include <asm/parisc-device.h> [all …]
|
/linux/drivers/base/ |
H A D | isa.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include <linux/device.h> 11 #include <linux/dma-mapping.h> 14 static struct device isa_bus = { 19 struct device dev; 20 struct device *next; 21 unsigned int id; member 26 static int isa_bus_match(struct device *dev, const struct device_driver *driver) in isa_bus_match() 30 if (dev->platform_data == isa_driver) { in isa_bus_match() 31 if (!isa_driver->match || in isa_bus_match() [all …]
|