Home
last modified time | relevance | path

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

12345678910>>...44

/kernel/linux/linux-6.6/drivers/soundwire/
Dbus_type.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright(c) 2015-17 Intel Corporation.
14 * sdw_get_device_id - find the matching SoundWire device id
16 * @drv: SoundWire Slave Driver
22 sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) in sdw_get_device_id() argument
24 const struct sdw_device_id *id; in sdw_get_device_id() local
26 for (id = drv->id_table; id && id->mfg_id; id++) in sdw_get_device_id()
27 if (slave->id.mfg_id == id->mfg_id && in sdw_get_device_id()
28 slave->id.part_id == id->part_id && in sdw_get_device_id()
29 (!id->sdw_version || in sdw_get_device_id()
[all …]
/kernel/linux/linux-5.10/drivers/soundwire/
Dbus_type.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright(c) 2015-17 Intel Corporation.
13 * sdw_get_device_id - find the matching SoundWire device id
15 * @drv: SoundWire Slave Driver
21 sdw_get_device_id(struct sdw_slave *slave, struct sdw_driver *drv) in sdw_get_device_id() argument
23 const struct sdw_device_id *id; in sdw_get_device_id() local
25 for (id = drv->id_table; id && id->mfg_id; id++) in sdw_get_device_id()
26 if (slave->id.mfg_id == id->mfg_id && in sdw_get_device_id()
27 slave->id.part_id == id->part_id && in sdw_get_device_id()
28 (!id->sdw_version || in sdw_get_device_id()
[all …]
/kernel/linux/linux-5.10/drivers/pnp/
Dcard.c1 // SPDX-License-Identifier: GPL-2.0
3 * card.c - contains functions for managing groups of PnP devices
13 #include <linux/dma-mapping.h>
19 static const struct pnp_card_device_id *match_card(struct pnp_card_driver *drv, in match_card() argument
22 const struct pnp_card_device_id *drv_id = drv->id_table; in match_card()
24 while (*drv_id->id) { in match_card()
25 if (compare_pnp_id(card->id, drv_id->id)) { in match_card()
33 !*drv_id->devs[i].id) in match_card()
37 if (compare_pnp_id(dev->id, in match_card()
38 drv_id->devs[i].id)) { in match_card()
[all …]
Ddriver.c1 // 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()
44 static const struct pnp_device_id *match_device(struct pnp_driver *drv, in match_device() argument
47 const struct pnp_device_id *drv_id = drv->id_table; in match_device()
[all …]
/kernel/linux/linux-6.6/drivers/pnp/
Dcard.c1 // SPDX-License-Identifier: GPL-2.0
3 * card.c - contains functions for managing groups of PnP devices
13 #include <linux/dma-mapping.h>
19 static const struct pnp_card_device_id *match_card(struct pnp_card_driver *drv, in match_card() argument
22 const struct pnp_card_device_id *drv_id = drv->id_table; in match_card()
24 while (*drv_id->id) { in match_card()
25 if (compare_pnp_id(card->id, drv_id->id)) { in match_card()
33 !*drv_id->devs[i].id) in match_card()
37 if (compare_pnp_id(dev->id, in match_card()
38 drv_id->devs[i].id)) { in match_card()
[all …]
Ddriver.c1 // 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()
44 static const struct pnp_device_id *match_device(struct pnp_driver *drv, in match_device() argument
47 const struct pnp_device_id *drv_id = drv->id_table; in match_device()
[all …]
/kernel/linux/linux-5.10/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
35 while (ids->id) { in zorro_match_device()
36 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) in zorro_match_device()
47 struct zorro_driver *drv = to_zorro_driver(dev->driver); in zorro_device_probe() local
50 if (!z->driver && drv->probe) { in zorro_device_probe()
51 const struct zorro_device_id *id; in zorro_device_probe() local
53 id = zorro_match_device(drv->id_table, z); in zorro_device_probe()
[all …]
/kernel/linux/linux-5.10/drivers/dio/
Ddio-driver.c6 * 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
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()
50 struct dio_driver *drv = to_dio_driver(dev->driver); in dio_device_probe() local
53 if (!d->driver && drv->probe) { in dio_device_probe()
[all …]
/kernel/linux/linux-6.6/drivers/dio/
Ddio-driver.c6 * 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
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()
50 struct dio_driver *drv = to_dio_driver(dev->driver); in dio_device_probe() local
53 if (!d->driver && drv->probe) { in dio_device_probe()
[all …]
/kernel/linux/linux-6.6/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
35 while (ids->id) { in zorro_match_device()
36 if (ids->id == ZORRO_WILDCARD || ids->id == z->id) in zorro_match_device()
47 struct zorro_driver *drv = to_zorro_driver(dev->driver); in zorro_device_probe() local
50 if (drv->probe) { in zorro_device_probe()
51 const struct zorro_device_id *id; in zorro_device_probe() local
53 id = zorro_match_device(drv->id_table, z); in zorro_device_probe()
[all …]
/kernel/linux/linux-6.6/drivers/phy/samsung/
Dphy-exynos4x12-usb2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Samsung SoC USB 1.1/2.0 PHY driver - Exynos 4x12 support
13 #include "phy-samsung-usb2.h"
114 /* Mode switching SUB Device <-> Host */
159 return -EINVAL; in exynos4x12_rate_to_clk()
167 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_isol() local
171 switch (inst->cfg->id) { in exynos4x12_isol()
189 regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); in exynos4x12_isol()
194 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_setup_clk() local
197 clk = readl(drv->reg_phy + EXYNOS_4x12_UPHYCLK); in exynos4x12_setup_clk()
[all …]
Dphy-exynos5250-usb2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Samsung SoC USB 1.1/2.0 PHY driver - Exynos 5250 support
13 #include "phy-samsung-usb2.h"
168 return -EINVAL; in exynos5250_rate_to_clk()
176 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos5250_isol() local
180 if (drv->cfg == &exynos5250_usb2_phy_config && in exynos5250_isol()
181 inst->cfg->id == EXYNOS5250_DEVICE) in exynos5250_isol()
183 else if (drv->cfg == &exynos5250_usb2_phy_config && in exynos5250_isol()
184 inst->cfg->id == EXYNOS5250_HOST) in exynos5250_isol()
186 else if (drv->cfg == &exynos5420_usb2_phy_config && in exynos5250_isol()
[all …]
/kernel/linux/linux-5.10/drivers/phy/samsung/
Dphy-exynos4x12-usb2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Samsung SoC USB 1.1/2.0 PHY driver - Exynos 4x12 support
13 #include "phy-samsung-usb2.h"
114 /* Mode switching SUB Device <-> Host */
159 return -EINVAL; in exynos4x12_rate_to_clk()
167 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_isol() local
171 switch (inst->cfg->id) { in exynos4x12_isol()
189 regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); in exynos4x12_isol()
194 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos4x12_setup_clk() local
197 clk = readl(drv->reg_phy + EXYNOS_4x12_UPHYCLK); in exynos4x12_setup_clk()
[all …]
Dphy-exynos5250-usb2.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Samsung SoC USB 1.1/2.0 PHY driver - Exynos 5250 support
13 #include "phy-samsung-usb2.h"
169 return -EINVAL; in exynos5250_rate_to_clk()
177 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos5250_isol() local
181 switch (inst->cfg->id) { in exynos5250_isol()
194 regmap_update_bits(drv->reg_pmu, offset, mask, on ? 0 : mask); in exynos5250_isol()
199 struct samsung_usb2_phy_driver *drv = inst->drv; in exynos5250_power_on() local
206 switch (inst->cfg->id) { in exynos5250_power_on()
208 regmap_update_bits(drv->reg_sys, in exynos5250_power_on()
[all …]
/kernel/linux/linux-5.10/drivers/input/serio/
Dserio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 1999-2004 Vojtech Pavlik
40 static void serio_attach_driver(struct serio_driver *drv);
42 static int serio_connect_driver(struct serio *serio, struct serio_driver *drv) in serio_connect_driver() argument
46 mutex_lock(&serio->drv_mutex); in serio_connect_driver()
47 retval = drv->connect(serio, drv); in serio_connect_driver()
48 mutex_unlock(&serio->drv_mutex); in serio_connect_driver()
55 int retval = -1; in serio_reconnect_driver()
57 mutex_lock(&serio->drv_mutex); in serio_reconnect_driver()
58 if (serio->drv && serio->drv->reconnect) in serio_reconnect_driver()
[all …]
/kernel/linux/linux-6.6/drivers/input/serio/
Dserio.c1 // SPDX-License-Identifier: GPL-2.0-or-later
5 * Copyright (c) 1999-2004 Vojtech Pavlik
37 static void serio_attach_driver(struct serio_driver *drv);
39 static int serio_connect_driver(struct serio *serio, struct serio_driver *drv) in serio_connect_driver() argument
43 mutex_lock(&serio->drv_mutex); in serio_connect_driver()
44 retval = drv->connect(serio, drv); in serio_connect_driver()
45 mutex_unlock(&serio->drv_mutex); in serio_connect_driver()
52 int retval = -1; in serio_reconnect_driver()
54 mutex_lock(&serio->drv_mutex); in serio_reconnect_driver()
55 if (serio->drv && serio->drv->reconnect) in serio_reconnect_driver()
[all …]
/kernel/linux/linux-5.10/arch/mips/sgi-ip22/
Dip22-gio.c1 // SPDX-License-Identifier: GPL-2.0-only
19 __u8 id; member
21 { .name = "SGI Impact", .id = 0x10 },
22 { .name = "Phobos G160", .id = 0x35 },
23 { .name = "Phobos G130", .id = 0x36 },
24 { .name = "Phobos G100", .id = 0x37 },
25 { .name = "Set Engineering GFE", .id = 0x38 },
27 { .name = "SGI Newport", .id = 0x7e },
28 { .name = "SGI GR2/GR3", .id = 0x7f },
42 * gio_match_device - Tell if an of_device structure has a matching
[all …]
/kernel/linux/linux-6.6/arch/mips/sgi-ip22/
Dip22-gio.c1 // SPDX-License-Identifier: GPL-2.0-only
19 __u8 id; member
21 { .name = "SGI Impact", .id = 0x10 },
22 { .name = "Phobos G160", .id = 0x35 },
23 { .name = "Phobos G130", .id = 0x36 },
24 { .name = "Phobos G100", .id = 0x37 },
25 { .name = "Set Engineering GFE", .id = 0x38 },
27 { .name = "SGI Newport", .id = 0x7e },
28 { .name = "SGI GR2/GR3", .id = 0x7f },
42 * gio_match_device - Tell if an of_device structure has a matching
[all …]
/kernel/linux/linux-5.10/drivers/sh/superhyway/
Dsuperhyway.c6 * Copyright (C) 2004, 2005 Paul Mundt <lethal@linux-sh.org>
32 kfree(sdev->resource); in superhyway_device_release()
37 * superhyway_add_device - Add a SuperHyway module
46 * top-down of the memory map), and are assigned an ID based on the order that
47 * they are added. Any manual addition of a module will thus get the ID after
61 return -ENOMEM; in superhyway_add_device()
65 dev->bus = bus; in superhyway_add_device()
66 superhyway_read_vcr(dev, base, &dev->vcr); in superhyway_add_device()
68 if (!dev->resource) { in superhyway_add_device()
69 dev->resource = kzalloc(sizeof(struct resource), GFP_KERNEL); in superhyway_add_device()
[all …]
/kernel/linux/linux-6.6/drivers/sh/superhyway/
Dsuperhyway.c6 * Copyright (C) 2004, 2005 Paul Mundt <lethal@linux-sh.org>
32 kfree(sdev->resource); in superhyway_device_release()
37 * superhyway_add_device - Add a SuperHyway module
46 * top-down of the memory map), and are assigned an ID based on the order that
47 * they are added. Any manual addition of a module will thus get the ID after
61 return -ENOMEM; in superhyway_add_device()
65 dev->bus = bus; in superhyway_add_device()
66 superhyway_read_vcr(dev, base, &dev->vcr); in superhyway_add_device()
68 if (!dev->resource) { in superhyway_add_device()
69 dev->resource = kzalloc(sizeof(struct resource), GFP_KERNEL); in superhyway_add_device()
[all …]
/kernel/linux/linux-5.10/drivers/virtio/
Dvirtio.c1 // SPDX-License-Identifier: GPL-2.0-only
16 return sprintf(buf, "0x%04x\n", dev->id.device); in device_show()
24 return sprintf(buf, "0x%04x\n", dev->id.vendor); in vendor_show()
32 return sprintf(buf, "0x%08x\n", dev->config->get_status(dev)); in status_show()
41 dev->id.device, dev->id.vendor); in modalias_show()
54 for (i = 0; i < sizeof(dev->features)*8; i++) in features_show()
73 const struct virtio_device_id *id) in virtio_id_match() argument
75 if (id->device != dev->id.device && id->device != VIRTIO_DEV_ANY_ID) in virtio_id_match()
78 return id->vendor == VIRTIO_DEV_ANY_ID || id->vendor == dev->id.vendor; in virtio_id_match()
89 ids = drv_to_virtio(_dr)->id_table; in virtio_dev_match()
[all …]
/kernel/linux/linux-6.6/Documentation/devicetree/bindings/soc/qcom/
Dqcom,rpmh-rsc.yaml1 # SPDX-License-Identifier: GPL-2.0-only
3 ---
4 $id: http://devicetree.org/schemas/soc/qcom/qcom,rpmh-rsc.yaml#
5 $schema: http://devicetree.org/meta-schemas/core.yaml#
10 - Bjorn Andersson <bjorn.andersson@linaro.org>
19 The hardware block (Direct Resource Voter or DRV) is a part of the h/w entity
22 be written to from Linux. The structure of each DRV follows the same template
27 ACTIVE - Triggered by Linux
28 SLEEP - Triggered by F/W
29 WAKE - Triggered by F/W
[all …]
/kernel/linux/linux-5.10/Documentation/devicetree/bindings/soc/qcom/
Drpmh-rsc.txt2 ------------
10 The hardware block (Direct Resource Voter or DRV) is a part of the h/w entity
13 be written to from Linux. The structure of each DRV follows the same template
17 have powered off to facilitate idle power saving. TCS could be classified as -
35 - compatible:
38 Definition: Should be "qcom,rpmh-rsc".
40 - reg:
42 Value type: <prop-encoded-array>
44 DRV(s). The number of DRVs in the dependent on the RSC.
45 The tcs-offset specifies the start address of the
[all …]
/kernel/linux/linux-5.10/drivers/usb/common/
Dulpi.c1 // SPDX-License-Identifier: GPL-2.0
3 * ulpi.c - USB ULPI PHY bus
18 #include <linux/clk/clk-conf.h>
20 /* -------------------------------------------------------------------------- */
24 return ulpi->ops->read(ulpi->dev.parent, addr); in ulpi_read()
30 return ulpi->ops->write(ulpi->dev.parent, addr, val); in ulpi_write()
34 /* -------------------------------------------------------------------------- */
38 struct ulpi_driver *drv = to_ulpi_driver(driver); in ulpi_match() local
40 const struct ulpi_device_id *id; in ulpi_match() local
43 * Some ULPI devices don't have a vendor id in ulpi_match()
[all …]
/kernel/linux/linux-6.6/drivers/pci/
Dpci-driver.c1 // SPDX-License-Identifier: GPL-2.0
3 * (C) Copyright 2002-2004, 2007 Greg Kroah-Hartman <greg@kroah.com>
22 #include <linux/dma-map-ops.h>
29 struct pci_device_id id; member
33 * pci_add_dynid - add a new PCI device ID to this driver and re-probe devices
34 * @drv: target pci driver
35 * @vendor: PCI vendor ID
36 * @device: PCI device ID
37 * @subvendor: PCI subvendor ID
38 * @subdevice: PCI subdevice ID
[all …]

12345678910>>...44