Home
last modified time | relevance | path

Searched +full:dev +full:- +full:ctrl (Results 1 – 25 of 1050) sorted by relevance

12345678910>>...42

/kernel/linux/linux-5.10/drivers/tty/serdev/
Dcore.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2016-2017 Linaro Ltd., Rob Herring <robh@kernel.org>
6 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
26 static ssize_t modalias_show(struct device *dev, in modalias_show() argument
31 len = acpi_device_modalias(dev, buf, PAGE_SIZE - 1); in modalias_show()
32 if (len != -ENODEV) in modalias_show()
35 return of_device_modalias(dev, buf, PAGE_SIZE); in modalias_show()
45 static int serdev_device_uevent(struct device *dev, struct kobj_uevent_env *env) in serdev_device_uevent() argument
51 rc = acpi_device_uevent_modalias(dev, env); in serdev_device_uevent()
52 if (rc != -ENODEV) in serdev_device_uevent()
[all …]
/kernel/linux/linux-6.6/drivers/tty/serdev/
Dcore.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (C) 2016-2017 Linaro Ltd., Rob Herring <robh@kernel.org>
6 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
26 static ssize_t modalias_show(struct device *dev, in modalias_show() argument
31 len = acpi_device_modalias(dev, buf, PAGE_SIZE - 1); in modalias_show()
32 if (len != -ENODEV) in modalias_show()
35 return of_device_modalias(dev, buf, PAGE_SIZE); in modalias_show()
45 static int serdev_device_uevent(const struct device *dev, struct kobj_uevent_env *env) in serdev_device_uevent() argument
51 rc = acpi_device_uevent_modalias(dev, env); in serdev_device_uevent()
52 if (rc != -ENODEV) in serdev_device_uevent()
[all …]
/kernel/linux/linux-6.6/drivers/slimbus/
Dqcom-ngd-ctrl.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
11 #include <linux/dma-mapping.h>
26 /* NGD (Non-ported Generic Device) registers */
104 #define to_ngd(d) container_of(d, struct qcom_slim_ngd, dev)
136 struct qcom_slim_ngd_ctrl *ctrl; member
151 struct slim_controller ctrl; member
154 struct device *dev; member
348 static int qcom_slim_qmi_send_select_inst_req(struct qcom_slim_ngd_ctrl *ctrl, in qcom_slim_qmi_send_select_inst_req() argument
355 rc = qmi_txn_init(ctrl->qmi.handle, &txn, in qcom_slim_qmi_send_select_inst_req()
[all …]
Dqcom-ctrl.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2011-2017, The Linux Foundation
88 /* Resource group info for manager, and non-ported generic device-components */
103 struct slim_controller ctrl; member
105 struct device *dev; member
120 static void qcom_slim_queue_tx(struct qcom_slim_ctrl *ctrl, void *buf, in qcom_slim_queue_tx() argument
125 __iowrite32_copy(ctrl->base + tx_reg, buf, count); in qcom_slim_queue_tx()
131 static void *slim_alloc_rxbuf(struct qcom_slim_ctrl *ctrl) in slim_alloc_rxbuf() argument
136 spin_lock_irqsave(&ctrl->rx.lock, flags); in slim_alloc_rxbuf()
137 if ((ctrl->rx.tail + 1) % ctrl->rx.n == ctrl->rx.head) { in slim_alloc_rxbuf()
[all …]
Dcore.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2011-2017, The Linux Foundation
22 while (id->manf_id != 0 || id->prod_code != 0) { in slim_match()
23 if (id->manf_id == sbdev->e_addr.manf_id && in slim_match()
24 id->prod_code == sbdev->e_addr.prod_code && in slim_match()
25 id->dev_index == sbdev->e_addr.dev_index && in slim_match()
26 id->instance == sbdev->e_addr.instance) in slim_match()
33 static int slim_device_match(struct device *dev, struct device_driver *drv) in slim_device_match() argument
35 struct slim_device *sbdev = to_slim_device(dev); in slim_device_match()
39 if (of_driver_match_device(dev, drv)) in slim_device_match()
[all …]
/kernel/linux/linux-5.10/drivers/slimbus/
Dqcom-ngd-ctrl.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2011-2017, The Linux Foundation. All rights reserved.
11 #include <linux/dma-mapping.h>
22 /* NGD (Non-ported Generic Device) registers */
100 #define to_ngd(d) container_of(d, struct qcom_slim_ngd, dev)
132 struct qcom_slim_ngd_ctrl *ctrl; member
147 struct slim_controller ctrl; member
150 struct device *dev; member
337 static int qcom_slim_qmi_send_select_inst_req(struct qcom_slim_ngd_ctrl *ctrl, in qcom_slim_qmi_send_select_inst_req() argument
344 rc = qmi_txn_init(ctrl->qmi.handle, &txn, in qcom_slim_qmi_send_select_inst_req()
[all …]
Dqcom-ctrl.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2011-2017, The Linux Foundation
88 /* Resource group info for manager, and non-ported generic device-components */
103 struct slim_controller ctrl; member
105 struct device *dev; member
120 static void qcom_slim_queue_tx(struct qcom_slim_ctrl *ctrl, void *buf, in qcom_slim_queue_tx() argument
125 __iowrite32_copy(ctrl->base + tx_reg, buf, count); in qcom_slim_queue_tx()
131 static void *slim_alloc_rxbuf(struct qcom_slim_ctrl *ctrl) in slim_alloc_rxbuf() argument
136 spin_lock_irqsave(&ctrl->rx.lock, flags); in slim_alloc_rxbuf()
137 if ((ctrl->rx.tail + 1) % ctrl->rx.n == ctrl->rx.head) { in slim_alloc_rxbuf()
[all …]
Dcore.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2011-2017, The Linux Foundation
22 while (id->manf_id != 0 || id->prod_code != 0) { in slim_match()
23 if (id->manf_id == sbdev->e_addr.manf_id && in slim_match()
24 id->prod_code == sbdev->e_addr.prod_code && in slim_match()
25 id->dev_index == sbdev->e_addr.dev_index && in slim_match()
26 id->instance == sbdev->e_addr.instance) in slim_match()
33 static int slim_device_match(struct device *dev, struct device_driver *drv) in slim_device_match() argument
35 struct slim_device *sbdev = to_slim_device(dev); in slim_device_match()
39 if (of_driver_match_device(dev, drv)) in slim_device_match()
[all …]
/kernel/linux/linux-5.10/drivers/spi/
Dspi-qcom-qspi.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2017-2018, The Linux foundation. All rights reserved.
14 #include <linux/spi/spi-mem.h>
141 struct device *dev; member
151 static u32 qspi_buswidth_to_iomode(struct qcom_qspi *ctrl, in qspi_buswidth_to_iomode() argument
162 dev_warn_once(ctrl->dev, in qspi_buswidth_to_iomode()
168 static void qcom_qspi_pio_xfer_cfg(struct qcom_qspi *ctrl) in qcom_qspi_pio_xfer_cfg() argument
173 xfer = &ctrl->xfer; in qcom_qspi_pio_xfer_cfg()
174 pio_xfer_cfg = readl(ctrl->base + PIO_XFER_CFG); in qcom_qspi_pio_xfer_cfg()
176 pio_xfer_cfg |= xfer->dir; in qcom_qspi_pio_xfer_cfg()
[all …]
/kernel/linux/linux-6.6/drivers/spi/
Dspi-qcom-qspi.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2017-2018, The Linux foundation. All rights reserved.
6 #include <linux/dma-mapping.h>
17 #include <linux/spi/spi-mem.h>
160 * Number of entries in sgt returned from spi framework that-
169 struct device *dev; member
182 static u32 qspi_buswidth_to_iomode(struct qcom_qspi *ctrl, in qspi_buswidth_to_iomode() argument
193 dev_warn_once(ctrl->dev, in qspi_buswidth_to_iomode()
199 static void qcom_qspi_pio_xfer_cfg(struct qcom_qspi *ctrl) in qcom_qspi_pio_xfer_cfg() argument
205 xfer = &ctrl->xfer; in qcom_qspi_pio_xfer_cfg()
[all …]
/kernel/linux/linux-6.6/drivers/soundwire/
Dqcom.c1 // SPDX-License-Identifier: GPL-2.0
101 #define SWRM_DP_PORT_CTRL_BANK(n, m) (0x1124 + 0x100 * (n - 1) + 0x40 * m)
102 #define SWRM_DP_PORT_CTRL_2_BANK(n, m) (0x1128 + 0x100 * (n - 1) + 0x40 * m)
103 #define SWRM_DP_BLOCK_CTRL_1(n) (0x112C + 0x100 * (n - 1))
104 #define SWRM_DP_BLOCK_CTRL2_BANK(n, m) (0x1130 + 0x100 * (n - 1) + 0x40 * m)
105 #define SWRM_DP_PORT_HCTRL_BANK(n, m) (0x1134 + 0x100 * (n - 1) + 0x40 * m)
106 #define SWRM_DP_BLOCK_CTRL3_BANK(n, m) (0x1138 + 0x100 * (n - 1) + 0x40 * m)
107 #define SWRM_DP_SAMPLECTRL2_BANK(n, m) (0x113C + 0x100 * (n - 1) + 0x40 * m)
108 #define SWRM_DIN_DPn_PCM_PORT_CTRL(n) (0x1054 + 0x100 * (n - 1))
124 #define SWRM_REG_VAL_PACK(data, dev, id, reg) \ argument
[all …]
/kernel/linux/linux-5.10/drivers/pci/hotplug/
Dpciehp_core.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2003-2004 Intel Corporation
16 * Greg Kroah-Hartman <greg@kroah.com>
42 MODULE_PARM_DESC(pciehp_poll_mode, "Using polling mechanism for hot-plug events or not");
50 static int init_slot(struct controller *ctrl) in init_slot() argument
59 return -ENOMEM; in init_slot()
61 ops->enable_slot = pciehp_sysfs_enable_slot; in init_slot()
62 ops->disable_slot = pciehp_sysfs_disable_slot; in init_slot()
63 ops->get_power_status = get_power_status; in init_slot()
[all …]
/kernel/linux/linux-6.6/drivers/pci/hotplug/
Dpciehp_core.c1 // SPDX-License-Identifier: GPL-2.0+
6 * Copyright (C) 2001 Greg Kroah-Hartman (greg@kroah.com)
8 * Copyright (C) 2003-2004 Intel Corporation
16 * Greg Kroah-Hartman <greg@kroah.com>
42 MODULE_PARM_DESC(pciehp_poll_mode, "Using polling mechanism for hot-plug events or not");
50 static int init_slot(struct controller *ctrl) in init_slot() argument
59 return -ENOMEM; in init_slot()
61 ops->enable_slot = pciehp_sysfs_enable_slot; in init_slot()
62 ops->disable_slot = pciehp_sysfs_disable_slot; in init_slot()
63 ops->get_power_status = get_power_status; in init_slot()
[all …]
/kernel/linux/linux-5.10/drivers/spmi/
Dspmi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
16 #include <dt-bindings/spmi/spmi.h>
23 static void spmi_dev_release(struct device *dev) in spmi_dev_release() argument
25 struct spmi_device *sdev = to_spmi_device(dev); in spmi_dev_release()
33 static void spmi_ctrl_release(struct device *dev) in spmi_ctrl_release() argument
35 struct spmi_controller *ctrl = to_spmi_controller(dev); in spmi_ctrl_release() local
36 ida_simple_remove(&ctrl_ida, ctrl->nr); in spmi_ctrl_release()
37 kfree(ctrl); in spmi_ctrl_release()
44 static int spmi_device_match(struct device *dev, struct device_driver *drv) in spmi_device_match() argument
[all …]
/kernel/linux/linux-6.6/drivers/nvme/host/
Dsysfs.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (c) 2011-2014, Intel Corporation.
8 #include <linux/nvme-auth.h>
13 static ssize_t nvme_sysfs_reset(struct device *dev, in nvme_sysfs_reset() argument
17 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_reset() local
20 ret = nvme_reset_ctrl_sync(ctrl); in nvme_sysfs_reset()
27 static ssize_t nvme_sysfs_rescan(struct device *dev, in nvme_sysfs_rescan() argument
31 struct nvme_ctrl *ctrl = dev_get_drvdata(dev); in nvme_sysfs_rescan() local
33 nvme_queue_scan(ctrl); in nvme_sysfs_rescan()
38 static inline struct nvme_ns_head *dev_to_ns_head(struct device *dev) in dev_to_ns_head() argument
[all …]
Dpci.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2011-2014, Intel Corporation.
10 #include <linux/blk-mq.h>
11 #include <linux/blk-mq-pci.h>
12 #include <linux/blk-integrity.h>
25 #include <linux/t10-pi.h>
27 #include <linux/io-64-nonatomic-lo-hi.h>
28 #include <linux/io-64-nonatomic-hi-lo.h>
29 #include <linux/sed-opal.h>
30 #include <linux/pci-p2pdma.h>
[all …]
/kernel/linux/linux-6.6/drivers/spmi/
Dspmi.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2012-2015, The Linux Foundation. All rights reserved.
16 #include <dt-bindings/spmi/spmi.h>
23 static void spmi_dev_release(struct device *dev) in spmi_dev_release() argument
25 struct spmi_device *sdev = to_spmi_device(dev); in spmi_dev_release()
34 static void spmi_ctrl_release(struct device *dev) in spmi_ctrl_release() argument
36 struct spmi_controller *ctrl = to_spmi_controller(dev); in spmi_ctrl_release() local
38 ida_free(&ctrl_ida, ctrl->nr); in spmi_ctrl_release()
39 kfree(ctrl); in spmi_ctrl_release()
46 static int spmi_device_match(struct device *dev, struct device_driver *drv) in spmi_device_match() argument
[all …]
/kernel/linux/linux-6.6/drivers/staging/vc04_services/bcm2835-camera/
Dcontrols.c1 // SPDX-License-Identifier: GPL-2.0
18 #include <media/videobuf2-vmalloc.h>
19 #include <media/v4l2-device.h>
20 #include <media/v4l2-ioctl.h>
21 #include <media/v4l2-ctrls.h>
22 #include <media/v4l2-fh.h>
23 #include <media/v4l2-event.h>
24 #include <media/v4l2-common.h>
26 #include "../vchiq-mmal/mmal-common.h"
27 #include "../vchiq-mmal/mmal-vchiq.h"
[all …]
/kernel/linux/linux-5.10/drivers/staging/vc04_services/bcm2835-camera/
Dcontrols.c1 // SPDX-License-Identifier: GPL-2.0
18 #include <media/videobuf2-vmalloc.h>
19 #include <media/v4l2-device.h>
20 #include <media/v4l2-ioctl.h>
21 #include <media/v4l2-ctrls.h>
22 #include <media/v4l2-fh.h>
23 #include <media/v4l2-event.h>
24 #include <media/v4l2-common.h>
26 #include "mmal-common.h"
27 #include "mmal-vchiq.h"
[all …]
/kernel/linux/linux-5.10/drivers/soundwire/
Dqcom.c1 // SPDX-License-Identifier: GPL-2.0
56 #define SWRM_DP_PORT_CTRL_BANK(n, m) (0x1124 + 0x100 * (n - 1) + 0x40 * m)
57 #define SWRM_DP_BLOCK_CTRL3_BANK(n, m) (0x1138 + 0x100 * (n - 1) + 0x40 * m)
66 #define SWRM_REG_VAL_PACK(data, dev, id, reg) \ argument
67 ((reg) | ((id) << 16) | ((dev) << 20) | ((data) << 24))
86 struct device *dev; member
109 int (*reg_read)(struct qcom_swrm_ctrl *ctrl, int reg, u32 *val);
110 int (*reg_write)(struct qcom_swrm_ctrl *ctrl, int reg, int val);
130 static int qcom_swrm_ahb_reg_read(struct qcom_swrm_ctrl *ctrl, int reg, in qcom_swrm_ahb_reg_read() argument
133 struct regmap *wcd_regmap = ctrl->regmap; in qcom_swrm_ahb_reg_read()
[all …]
/kernel/linux/linux-5.10/sound/soc/atmel/
Dmchp-spdiftx.c1 // SPDX-License-Identifier: GPL-2.0
20 * ---- S/PDIF Transmitter Controller Register map ----
37 * ---- Control Register (Write-only) ----
43 * ---- Mode Register (Read/Write) ----
91 ((((bytes) - 1) << 28) & SPDIFTX_MR_BPS_MASK)
94 * ---- Interrupt Enable/Disable/Mask/Status Register (Write/Read-only) ----
109 static bool mchp_spdiftx_readable_reg(struct device *dev, unsigned int reg) in mchp_spdiftx_readable_reg() argument
133 static bool mchp_spdiftx_writeable_reg(struct device *dev, unsigned int reg) in mchp_spdiftx_writeable_reg() argument
159 static bool mchp_spdiftx_precious_reg(struct device *dev, unsigned int reg) in mchp_spdiftx_precious_reg() argument
194 struct device *dev; member
[all …]
/kernel/linux/linux-6.6/drivers/watchdog/
Drealtek_otto_wdt.c1 // SPDX-License-Identifier: GPL-2.0-only
10 * - Base prescale of (2 << 25), providing tick duration T_0: 168ms @ 200MHz
11 * - PRESCALE: logarithmic prescaler adding a factor of {1, 2, 4, 8}
12 * - Phase 1: Times out after (PHASE1 + 1) × PRESCALE × T_0
14 * - Phase 2: starts after phase 1, times out after (PHASE2 + 1) × PRESCALE × T_0
68 struct device *dev; member
76 struct otto_wdt_ctrl *ctrl = watchdog_get_drvdata(wdev); in otto_wdt_start() local
79 v = ioread32(ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_start()
81 iowrite32(v, ctrl->base + OTTO_WDT_REG_CTRL); in otto_wdt_start()
88 struct otto_wdt_ctrl *ctrl = watchdog_get_drvdata(wdev); in otto_wdt_stop() local
[all …]
/kernel/linux/linux-5.10/drivers/nvme/host/
Dpci.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2011-2014, Intel Corporation.
11 #include <linux/blk-mq.h>
12 #include <linux/blk-mq-pci.h>
23 #include <linux/t10-pi.h>
25 #include <linux/io-64-nonatomic-lo-hi.h>
26 #include <linux/io-64-nonatomic-hi-lo.h>
27 #include <linux/sed-opal.h>
28 #include <linux/pci-p2pdma.h>
33 #define SQ_SIZE(q) ((q)->q_depth << (q)->sqes)
[all …]
/kernel/linux/linux-6.6/drivers/mtd/nand/raw/
Dtegra_nand.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (C) 2014-2015 Lucas Stach <dev@lynxeye.de>
10 #include <linux/dma-mapping.h>
34 #define COMMAND_TRANS_SIZE(size) ((((size) - 1) & 0xf) << 20)
40 #define COMMAND_CLE_SIZE(size) ((((size) - 1) & 0x3) << 4)
41 #define COMMAND_ALE_SIZE(size) ((((size) - 1) & 0xf) << 0)
156 #define OFFSET(val, off) ((val) < (off) ? 0 : (val) - (off))
171 struct device *dev; member
207 int bytes_per_step = DIV_ROUND_UP(BITS_PER_STEP_RS * chip->ecc.strength, in tegra_nand_ooblayout_rs_ecc()
211 return -ERANGE; in tegra_nand_ooblayout_rs_ecc()
[all …]
/kernel/linux/linux-5.10/drivers/gpio/
Dgpio-ath79.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (C) 2010-2011 Jaiganesh Narayanan <jnarayanan@atheros.com>
7 * Copyright (C) 2008-2011 Gabor Juhos <juhosg@openwrt.org>
12 #include <linux/platform_data/gpio-ath79.h>
43 static u32 ath79_gpio_read(struct ath79_gpio_ctrl *ctrl, unsigned reg) in ath79_gpio_read() argument
45 return readl(ctrl->base + reg); in ath79_gpio_read()
48 static void ath79_gpio_write(struct ath79_gpio_ctrl *ctrl, in ath79_gpio_write() argument
51 writel(val, ctrl->base + reg); in ath79_gpio_write()
55 struct ath79_gpio_ctrl *ctrl, unsigned reg, u32 mask, u32 bits) in ath79_gpio_update_bits() argument
59 old_val = ath79_gpio_read(ctrl, reg); in ath79_gpio_update_bits()
[all …]

12345678910>>...42