Home
last modified time | relevance | path

Searched +full:device +full:- +full:id (Results 1 – 25 of 1121) sorted by relevance

12345678910>>...45

/kernel/linux/linux-5.10/include/linux/
Dreset.h1 /* SPDX-License-Identifier: GPL-2.0 */
9 struct device;
23 const char *id, int index, bool shared,
25 struct reset_control *__reset_control_get(struct device *dev, const char *id,
29 int __device_reset(struct device *dev, bool optional);
30 struct reset_control *__devm_reset_control_get(struct device *dev,
31 const char *id, int index, bool shared,
34 struct reset_control *devm_reset_control_array_get(struct device *dev,
40 int reset_control_get_count(struct device *dev);
77 static inline int __device_reset(struct device *dev, bool optional) in __device_reset()
[all …]
/kernel/linux/linux-4.19/include/linux/
Dreset.h1 /* SPDX-License-Identifier: GPL-2.0 */
7 struct device;
19 const char *id, int index, bool shared,
21 struct reset_control *__reset_control_get(struct device *dev, const char *id,
25 int __device_reset(struct device *dev, bool optional);
26 struct reset_control *__devm_reset_control_get(struct device *dev,
27 const char *id, int index, bool shared,
30 struct reset_control *devm_reset_control_array_get(struct device *dev,
61 static inline int __device_reset(struct device *dev, bool optional) in __device_reset()
63 return optional ? 0 : -ENOTSUPP; in __device_reset()
[all …]
/kernel/linux/linux-5.10/Documentation/ABI/testing/
Dsysfs-bus-i3c1 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 …]
Dsysfs-bus-vfio-mdev1 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 …]
/kernel/linux/linux-5.10/sound/
Dac97_bus.c1 // 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 …]
/kernel/linux/linux-5.10/drivers/regulator/
Ddevres.c1 // 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 …]
/kernel/linux/linux-4.19/sound/
Dac97_bus.c16 #include <linux/device.h>
21 * snd_ac97_check_id() - Reads and checks the vendor ID of the device
22 * @ac97: The AC97 device to check
23 * @id: The ID to compare to
24 * @id_mask: Mask that is applied to the device ID before comparing to @id
26 * If @id is 0 this function returns true if the read device vendor ID is
27 * a valid ID. If @id is non 0 this functions returns true if @id
28 * matches the read vendor ID. Otherwise the function returns false.
30 static bool snd_ac97_check_id(struct snd_ac97 *ac97, unsigned int id, in snd_ac97_check_id() argument
33 ac97->id = ac97->bus->ops->read(ac97, AC97_VENDOR_ID1) << 16; in snd_ac97_check_id()
[all …]
/kernel/linux/linux-5.10/drivers/rapidio/
Drio-driver.c1 // 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 …]
/kernel/linux/linux-4.19/drivers/rapidio/
Drio-driver.c21 * rio_match_device - Tell if a RIO device has a matching RIO device id structure
22 * @id: the RIO device id structure to match against
23 * @rdev: the RIO device structure to match against
25 * Used from driver probe and bus matching to check whether a RIO device
26 * matches a device id structure provided by a RIO driver. Returns the
30 *id, in rio_match_device()
33 while (id->vid || id->asm_vid) { in rio_match_device()
34 if (((id->vid == RIO_ANY_ID) || (id->vid == rdev->vid)) && in rio_match_device()
35 ((id->did == RIO_ANY_ID) || (id->did == rdev->did)) && in rio_match_device()
36 ((id->asm_vid == RIO_ANY_ID) in rio_match_device()
[all …]
/kernel/linux/linux-4.19/drivers/regulator/
Ddevres.c2 * devres.c -- Voltage/Current Regulator framework devres implementation.
22 static void devm_regulator_release(struct device *dev, void *res) in devm_regulator_release()
27 static struct regulator *_devm_regulator_get(struct device *dev, const char *id, in _devm_regulator_get() argument
34 return ERR_PTR(-ENOMEM); in _devm_regulator_get()
36 regulator = _regulator_get(dev, id, get_type); in _devm_regulator_get()
48 * devm_regulator_get - Resource managed regulator_get()
49 * @dev: device for regulator "consumer"
50 * @id: Supply name or regulator ID.
56 struct regulator *devm_regulator_get(struct device *dev, const char *id) in devm_regulator_get() argument
58 return _devm_regulator_get(dev, id, NORMAL_GET); in devm_regulator_get()
[all …]
/kernel/linux/linux-4.19/Documentation/ABI/testing/
Dsysfs-bus-vfio-mdev1 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 …]
/kernel/linux/linux-5.10/drivers/ipack/
Dipack.c1 // 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 …]
/kernel/linux/linux-4.19/drivers/ipack/
Dipack.c2 * Industry-pack bus support functions.
4 * Copyright (C) 2011-2012 CERN (www.cern.ch)
18 #define to_ipack_dev(device) container_of(device, struct ipack_device, dev) argument
23 static void ipack_device_release(struct device *dev) in ipack_device_release()
25 struct ipack_device *device = to_ipack_dev(dev); in ipack_device_release() local
26 kfree(device->id); in ipack_device_release()
27 device->release(device); in ipack_device_release()
31 ipack_match_one_device(const struct ipack_device_id *id, in ipack_match_one_device() argument
32 const struct ipack_device *device) in ipack_match_one_device() argument
34 if ((id->format == IPACK_ANY_FORMAT || in ipack_match_one_device()
[all …]
/kernel/linux/linux-5.10/Documentation/userspace-api/media/
Dvideodev2.h.rst.exceptions1 # SPDX-License-Identifier: GPL-2.0
14 # Those symbols should not be used by uAPI - don't document them
150 replace define V4L2_CAP_VIDEO_CAPTURE device-capabilities
151 replace define V4L2_CAP_VIDEO_CAPTURE_MPLANE device-capabilities
152 replace define V4L2_CAP_VIDEO_OUTPUT device-capabilities
153 replace define V4L2_CAP_VIDEO_OUTPUT_MPLANE device-capabilities
154 replace define V4L2_CAP_VIDEO_M2M device-capabilities
155 replace define V4L2_CAP_VIDEO_M2M_MPLANE device-capabilities
156 replace define V4L2_CAP_VIDEO_OVERLAY device-capabilities
157 replace define V4L2_CAP_VBI_CAPTURE device-capabilities
[all …]
/kernel/linux/linux-5.10/drivers/pnp/pnpacpi/
Dcore.c1 // 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 …]
/kernel/linux/linux-4.19/drivers/tc/
Dtc-driver.c7 * 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 …]
/kernel/linux/linux-5.10/drivers/tc/
Dtc-driver.c7 * 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 …]
/kernel/linux/linux-4.19/Documentation/media/
Dvideodev2.h.rst.exceptions12 # Those symbols should not be used by uAPI - don't document them
136 replace define V4L2_CAP_VIDEO_CAPTURE device-capabilities
137 replace define V4L2_CAP_VIDEO_CAPTURE_MPLANE device-capabilities
138 replace define V4L2_CAP_VIDEO_OUTPUT device-capabilities
139 replace define V4L2_CAP_VIDEO_OUTPUT_MPLANE device-capabilities
140 replace define V4L2_CAP_VIDEO_M2M device-capabilities
141 replace define V4L2_CAP_VIDEO_M2M_MPLANE device-capabilities
142 replace define V4L2_CAP_VIDEO_OVERLAY device-capabilities
143 replace define V4L2_CAP_VBI_CAPTURE device-capabilities
144 replace define V4L2_CAP_VBI_OUTPUT device-capabilities
[all …]
/kernel/linux/linux-4.19/drivers/pnp/pnpacpi/
Dcore.c2 * pnpacpi -- PnP ACPI driver
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
34 * Compatible Device IDs
42 static int __init ispnpidacpi(const char *id) in ispnpidacpi() argument
44 TEST_ALPHA(id[0]); in ispnpidacpi()
45 TEST_ALPHA(id[1]); in ispnpidacpi()
46 TEST_ALPHA(id[2]); in ispnpidacpi()
47 TEST_HEX(id[3]); in ispnpidacpi()
48 TEST_HEX(id[4]); in ispnpidacpi()
49 TEST_HEX(id[5]); in ispnpidacpi()
[all …]
/kernel/linux/linux-4.19/drivers/zorro/
Dzorro-driver.c6 * 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()
45 static int zorro_device_probe(struct device *dev) in zorro_device_probe()
48 struct zorro_driver *drv = to_zorro_driver(dev->driver); in zorro_device_probe()
[all …]
/kernel/linux/linux-5.10/drivers/infiniband/core/
Dcma.c1 // 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",
83 const char *__attribute_const__ rdma_reject_msg(struct rdma_cm_id *id, in rdma_reject_msg() argument
86 if (rdma_ib_or_roce(id->device, id->port_num)) in rdma_reject_msg()
89 if (rdma_protocol_iwarp(id->device, id->port_num)) in rdma_reject_msg()
98 * rdma_is_consumer_reject - return true if the consumer rejected the connect
100 * @id: Communication identifier that received the REJECT event.
[all …]
/kernel/linux/linux-4.19/drivers/infiniband/core/
Dcma.c3 * Copyright (c) 2002-2005, Network Appliance, Inc. All rights reserved.
4 * Copyright (c) 1999-2005, Mellanox Technologies, Inc. All rights reserved.
5 * Copyright (c) 2005-2006 Intel Corporation. All rights reserved.
17 * - Redistributions of source code must retain the above
21 * - Redistributions in binary form must reproduce the above
90 [RDMA_CM_EVENT_DEVICE_REMOVAL] = "device removal",
106 const char *__attribute_const__ rdma_reject_msg(struct rdma_cm_id *id, in rdma_reject_msg() argument
109 if (rdma_ib_or_roce(id->device, id->port_num)) in rdma_reject_msg()
112 if (rdma_protocol_iwarp(id->device, id->port_num)) in rdma_reject_msg()
120 bool rdma_is_consumer_reject(struct rdma_cm_id *id, int reason) in rdma_is_consumer_reject() argument
[all …]
/kernel/linux/linux-4.19/drivers/misc/mic/bus/
Dscif_bus.c20 #include <linux/dma-mapping.h>
24 static ssize_t device_show(struct device *d, in device_show()
29 return sprintf(buf, "0x%04x\n", dev->id.device); in device_show()
31 static DEVICE_ATTR_RO(device);
33 static ssize_t vendor_show(struct device *d, in vendor_show()
38 return sprintf(buf, "0x%04x\n", dev->id.vendor); in vendor_show()
42 static ssize_t modalias_show(struct device *d, in modalias_show()
48 dev->id.device, dev->id.vendor); in modalias_show()
61 const struct scif_hw_dev_id *id) in scif_id_match() argument
63 if (id->device != dev->id.device && id->device != SCIF_DEV_ANY_ID) in scif_id_match()
[all …]
Dvop_bus.c23 #include <linux/dma-mapping.h>
27 static ssize_t device_show(struct device *d, in device_show()
32 return sprintf(buf, "0x%04x\n", dev->id.device); in device_show()
34 static DEVICE_ATTR_RO(device);
36 static ssize_t vendor_show(struct device *d, in vendor_show()
41 return sprintf(buf, "0x%04x\n", dev->id.vendor); in vendor_show()
45 static ssize_t modalias_show(struct device *d, in modalias_show()
51 dev->id.device, dev->id.vendor); in modalias_show()
64 const struct vop_device_id *id) in vop_id_match() argument
66 if (id->device != dev->id.device && id->device != VOP_DEV_ANY_ID) in vop_id_match()
[all …]
Dmic_bus.c28 static ssize_t device_show(struct device *d, in device_show()
32 return sprintf(buf, "0x%04x\n", dev->id.device); in device_show()
34 static DEVICE_ATTR_RO(device);
36 static ssize_t vendor_show(struct device *d, in vendor_show()
40 return sprintf(buf, "0x%04x\n", dev->id.vendor); in vendor_show()
44 static ssize_t modalias_show(struct device *d, in modalias_show()
49 dev->id.device, dev->id.vendor); in modalias_show()
62 const struct mbus_device_id *id) in mbus_id_match() argument
64 if (id->device != dev->id.device && id->device != MBUS_DEV_ANY_ID) in mbus_id_match()
67 return id->vendor == MBUS_DEV_ANY_ID || id->vendor == dev->id.vendor; in mbus_id_match()
[all …]

12345678910>>...45