/Linux-v6.1/drivers/platform/surface/aggregator/ |
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> 13 #include <linux/surface_aggregator/device.h> 19 /* -- Device and bus functions. --------------------------------------------- */ 21 static ssize_t modalias_show(struct device *dev, struct device_attribute *attr, in modalias_show() 27 sdev->uid.domain, sdev->uid.category, sdev->uid.target, in modalias_show() 28 sdev->uid.instance, sdev->uid.function); in modalias_show() 38 static int ssam_device_uevent(struct device *dev, struct kobj_uevent_env *env) in ssam_device_uevent() [all …]
|
/Linux-v6.1/Documentation/ABI/testing/ |
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 …]
|
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 …]
|
D | sysfs-bus-pci | 4 Contact: linux-pci@vger.kernel.org 6 Writing a device location to this file will cause 7 the driver to attempt to bind to the device found at 10 That is Domain:Bus:Device.Function and is the same as 15 (Note: kernels before 2.6.28 may require echo -n). 20 Contact: linux-pci@vger.kernel.org 22 Writing a device location to this file will cause the 23 driver to attempt to unbind from the device found at 26 That is Domain:Bus:Device.Function and is the same as 31 (Note: kernels before 2.6.28 may require echo -n). [all …]
|
/Linux-v6.1/drivers/rapidio/ |
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-v6.1/include/linux/ |
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 45 const char *id, int index, bool shared, 47 struct reset_control *__reset_control_get(struct device *dev, const char *id, 51 int __reset_control_bulk_get(struct device *dev, int num_rstcs, 56 int __device_reset(struct device *dev, bool optional); 57 struct reset_control *__devm_reset_control_get(struct device *dev, [all …]
|
D | mod_devicetable.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Device tables which are exported to userspace via 24 * struct pci_device_id - PCI device ID structure 25 * @vendor: Vendor ID to match (or PCI_ANY_ID) 26 * @device: Device ID to match (or PCI_ANY_ID) 27 * @subvendor: Subsystem vendor ID to match (or PCI_ANY_ID) 28 * @subdevice: Subsystem device ID to match (or PCI_ANY_ID) 29 * @class: Device class, subclass, and "interface" to match. 33 * as vendor/device is normally sufficient. 34 * @class_mask: Limit which sub-fields of the class field are compared. [all …]
|
D | hid-sensor-hub.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 10 #include <linux/hid-sensor-ids.h> 15 * struct hid_sensor_hub_attribute_info - Attribute info 16 * @usage_id: Parent usage id of a physical device. 17 * @attrib_id: Attribute id for this attribute. 18 * @report_id: Report id in which this information resides. 39 * struct sensor_hub_pending - Synchronous read pending information 42 * @usage_id: Usage id for physical device, E.g. Gyro usage id. 43 * @attr_usage_id: Usage Id of a field, E.g. X-AXIS for a gyro. 57 * struct hid_sensor_hub_device - Stores the hub instance data [all …]
|
/Linux-v6.1/sound/ |
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-v6.1/drivers/regulator/ |
D | devres.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * devres.c -- Voltage/Current Regulator framework devres implementation. 17 static void devm_regulator_release(struct device *dev, void *res) in devm_regulator_release() 22 static struct regulator *_devm_regulator_get(struct device *dev, const char *id, in _devm_regulator_get() argument 29 return ERR_PTR(-ENOMEM); in _devm_regulator_get() 31 regulator = _regulator_get(dev, id, get_type); in _devm_regulator_get() 43 * devm_regulator_get - Resource managed regulator_get() 44 * @dev: device to supply 45 * @id: supply name or regulator ID. 51 struct regulator *devm_regulator_get(struct device *dev, const char *id) in devm_regulator_get() argument [all …]
|
/Linux-v6.1/drivers/ipack/ |
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-v6.1/drivers/pnp/pnpacpi/ |
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-v6.1/drivers/tc/ |
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-v6.1/Documentation/userspace-api/media/ |
D | videodev2.h.rst.exceptions | 1 # SPDX-License-Identifier: GPL-2.0 14 # Those symbols should not be used by uAPI - don't document them 166 replace define V4L2_CAP_VIDEO_CAPTURE device-capabilities 167 replace define V4L2_CAP_VIDEO_CAPTURE_MPLANE device-capabilities 168 replace define V4L2_CAP_VIDEO_OUTPUT device-capabilities 169 replace define V4L2_CAP_VIDEO_OUTPUT_MPLANE device-capabilities 170 replace define V4L2_CAP_VIDEO_M2M device-capabilities 171 replace define V4L2_CAP_VIDEO_M2M_MPLANE device-capabilities 172 replace define V4L2_CAP_VIDEO_OVERLAY device-capabilities 173 replace define V4L2_CAP_VBI_CAPTURE device-capabilities [all …]
|
/Linux-v6.1/drivers/pci/ |
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-v6.1/drivers/clk/ |
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-v6.1/include/linux/regulator/ |
D | consumer.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 3 * consumer.h -- SoC Regulator consumer support. 12 * Features:- 19 * Dynamic Regulator operating Mode Switching (DRMS) - allows regulators 23 * e.g. Devices x,y,z share regulator r. Device x and y draw 20mA each during 24 * IO and 1mA at idle. Device z draws 100mA when under load and 5mA when 37 struct device; 157 * struct pre_voltage_change_data - Data sent with PRE_VOLTAGE_CHANGE event 172 * struct regulator_bulk_data - Data used for bulk regulator operations. 198 struct regulator *__must_check regulator_get(struct device *dev, [all …]
|
/Linux-v6.1/drivers/infiniband/core/ |
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. 65 [RDMA_CM_EVENT_DEVICE_REMOVAL] = "device removal", 84 const char *__attribute_const__ rdma_reject_msg(struct rdma_cm_id *id, in rdma_reject_msg() argument 87 if (rdma_ib_or_roce(id->device, id->port_num)) in rdma_reject_msg() 90 if (rdma_protocol_iwarp(id->device, id->port_num)) in rdma_reject_msg() 99 * rdma_is_consumer_reject - return true if the consumer rejected the connect 101 * @id: Communication identifier that received the REJECT event. [all …]
|
/Linux-v6.1/drivers/dio/ |
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-v6.1/drivers/usb/core/ |
D | driver.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * drivers/usb/core/driver.c - most of the driver model stuff for usb 5 * (C) Copyright 2005 Greg Kroah-Hartman <gregkh@suse.de> 9 * (C) Copyright Johannes Erdfelt 1999-2001 14 * (C) Copyright David Brownell 2000-2004 17 * (C) Copyright Greg Kroah-Hartman 2002-2003 28 #include <linux/device.h> 39 * Adds a new dynamic USBdevice ID to this driver, 58 return -EINVAL; in usb_store_new_id() 62 return -ENOMEM; in usb_store_new_id() [all …]
|
/Linux-v6.1/drivers/zorro/ |
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-v6.1/drivers/firmware/arm_scmi/ |
D | bus.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2018-2021 ARM Ltd. 14 #include <linux/device.h> 25 const struct scmi_device_id *id = scmi_drv->id_table; in scmi_dev_match_id() local 27 if (!id) in scmi_dev_match_id() 30 for (; id->protocol_id; id++) in scmi_dev_match_id() 31 if (id->protocol_id == scmi_dev->protocol_id) { in scmi_dev_match_id() 32 if (!id->name) in scmi_dev_match_id() 33 return id; in scmi_dev_match_id() 34 else if (!strcmp(id->name, scmi_dev->name)) in scmi_dev_match_id() [all …]
|
/Linux-v6.1/drivers/extcon/ |
D | extcon.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * drivers/extcon/extcon.c - External Connector (extcon) framework. 20 #include <linux/device.h> 33 unsigned int id; member 39 .id = EXTCON_NONE, 46 .id = EXTCON_USB, 51 .id = EXTCON_USB_HOST, 52 .name = "USB-HOST", 58 .id = EXTCON_CHG_USB_SDP, 63 .id = EXTCON_CHG_USB_DCP, [all …]
|
/Linux-v6.1/drivers/fpga/ |
D | dfl.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Driver for FPGA Device Feature List (DFL) Support 5 * Copyright (C) 2017-2018 Intel Corporation, Inc. 14 #include <linux/fpga-dfl.h> 26 * platform device creation (define name strings in dfl.h, as they could be 27 * reused by platform device drivers). 43 "dfl-fme-pdata", 44 "dfl-port-pdata", 48 * dfl_dev_info - dfl feature device information. 49 * @name: name string of the feature platform device. [all …]
|
/Linux-v6.1/drivers/base/ |
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, 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 …]
|