Home
last modified time | relevance | path

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

12345678910>>...43

/kernel/linux/linux-6.6/drivers/pmdomain/qcom/
Dcpr.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
26 #include <linux/nvmem-consumer.h>
28 /* Register Offsets for RB-CPR and Bit Definitions */
31 #define REG_RBCPR_VERSION 0
32 #define RBCPR_VER_2 0x02
33 #define FLAGS_IGNORE_1ST_IRQ_STATUS BIT(0)
36 #define REG_RBCPR_GCNT_TARGET(n) (0x60 + 4 * (n))
38 #define RBCPR_GCNT_TARGET_TARGET_SHIFT 0
39 #define RBCPR_GCNT_TARGET_TARGET_MASK GENMASK(11, 0)
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_gmac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2014-2015 Hisilicon Limited.
63 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_gmac_enable() local
67 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_TX_EN_B, 1); in hns_gmac_enable()
71 dsaf_set_dev_bit(drv, GMAC_PCS_RX_EN_REG, 0, 0); in hns_gmac_enable()
72 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_RX_EN_B, 1); in hns_gmac_enable()
78 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_gmac_disable() local
82 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_TX_EN_B, 0); in hns_gmac_disable()
86 dsaf_set_dev_bit(drv, GMAC_PCS_RX_EN_REG, 0, 1); in hns_gmac_disable()
87 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_RX_EN_B, 0); in hns_gmac_disable()
[all …]
Dhns_dsaf_xgmac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2014-2015 Hisilicon Limited.
6 #include <linux/io-64-nonatomic-hi-lo.h>
87 *hns_xgmac_tx_enable - xgmac port tx enable
88 *@drv: mac driver
91 static void hns_xgmac_tx_enable(struct mac_driver *drv, u32 value) in hns_xgmac_tx_enable() argument
93 dsaf_set_dev_bit(drv, XGMAC_MAC_ENABLE_REG, XGMAC_ENABLE_TX_B, !!value); in hns_xgmac_tx_enable()
97 *hns_xgmac_rx_enable - xgmac port rx enable
98 *@drv: mac driver
101 static void hns_xgmac_rx_enable(struct mac_driver *drv, u32 value) in hns_xgmac_rx_enable() argument
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/hisilicon/hns/
Dhns_dsaf_gmac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2014-2015 Hisilicon Limited.
63 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_gmac_enable() local
67 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_TX_EN_B, 1); in hns_gmac_enable()
71 dsaf_set_dev_bit(drv, GMAC_PCS_RX_EN_REG, 0, 0); in hns_gmac_enable()
72 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_RX_EN_B, 1); in hns_gmac_enable()
78 struct mac_driver *drv = (struct mac_driver *)mac_drv; in hns_gmac_disable() local
82 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_TX_EN_B, 0); in hns_gmac_disable()
86 dsaf_set_dev_bit(drv, GMAC_PCS_RX_EN_REG, 0, 1); in hns_gmac_disable()
87 dsaf_set_dev_bit(drv, GMAC_PORT_EN_REG, GMAC_PORT_RX_EN_B, 0); in hns_gmac_disable()
[all …]
Dhns_dsaf_xgmac.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (c) 2014-2015 Hisilicon Limited.
6 #include <linux/io-64-nonatomic-hi-lo.h>
87 *hns_xgmac_tx_enable - xgmac port tx enable
88 *@drv: mac driver
91 static void hns_xgmac_tx_enable(struct mac_driver *drv, u32 value) in hns_xgmac_tx_enable() argument
93 dsaf_set_dev_bit(drv, XGMAC_MAC_ENABLE_REG, XGMAC_ENABLE_TX_B, !!value); in hns_xgmac_tx_enable()
97 *hns_xgmac_rx_enable - xgmac port rx enable
98 *@drv: mac driver
101 static void hns_xgmac_rx_enable(struct mac_driver *drv, u32 value) in hns_xgmac_rx_enable() argument
[all …]
/kernel/linux/linux-5.10/drivers/soc/qcom/
Dcpr.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
27 #include <linux/nvmem-consumer.h>
29 /* Register Offsets for RB-CPR and Bit Definitions */
32 #define REG_RBCPR_VERSION 0
33 #define RBCPR_VER_2 0x02
34 #define FLAGS_IGNORE_1ST_IRQ_STATUS BIT(0)
37 #define REG_RBCPR_GCNT_TARGET(n) (0x60 + 4 * (n))
39 #define RBCPR_GCNT_TARGET_TARGET_SHIFT 0
40 #define RBCPR_GCNT_TARGET_TARGET_MASK GENMASK(11, 0)
[all …]
Drpmh-rsc.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
24 #include <soc/qcom/cmd-db.h>
26 #include <dt-bindings/soc/qcom,rpmh-rsc.h>
28 #include "rpmh-internal.h"
31 #include "trace-rpmh.h"
36 /* DRV HW Solver Configuration Information Register */
37 #define DRV_SOLVER_CONFIG 0x04
41 /* DRV TCS Configuration Information Register */
42 #define DRV_PRNT_CHLD_CONFIG 0x0C
[all …]
/kernel/linux/linux-5.10/drivers/cpuidle/
Dcpuidle-qcom-spm.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.
22 #include <asm/proc-fns.h>
29 #define SPM_CTL_INDEX 0x7f
31 #define SPM_CTL_EN BIT(0)
72 [SPM_REG_CFG] = 0x08,
73 [SPM_REG_SPM_CTL] = 0x30,
74 [SPM_REG_DLY] = 0x34,
75 [SPM_REG_SEQ_ENTRY] = 0x80,
81 .spm_cfg = 0x1,
[all …]
Ddriver.c2 * driver.c - driver support
4 * (C) 2006-2007 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
29 * __cpuidle_get_cpu_driver - return the cpuidle driver tied to a CPU.
41 * __cpuidle_unset_driver - unset per CPU driver variables.
42 * @drv: a valid pointer to a struct cpuidle_driver
45 * variable. If @drv is different from the registered driver, the corresponding
48 static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv) in __cpuidle_unset_driver() argument
52 for_each_cpu(cpu, drv->cpumask) { in __cpuidle_unset_driver()
54 if (drv != __cpuidle_get_cpu_driver(cpu)) in __cpuidle_unset_driver()
62 * __cpuidle_set_driver - set per CPU driver variables for the given driver.
[all …]
/kernel/linux/linux-6.6/drivers/devfreq/
Dmtk-cci-devfreq.c1 // SPDX-License-Identifier: GPL-2.0-only
39 static int mtk_ccifreq_set_voltage(struct mtk_ccifreq_drv *drv, int new_voltage) in mtk_ccifreq_set_voltage() argument
41 const struct mtk_ccifreq_platform_data *soc_data = drv->soc_data; in mtk_ccifreq_set_voltage()
42 struct device *dev = drv->dev; in mtk_ccifreq_set_voltage()
44 int retry_max = drv->vtrack_max; in mtk_ccifreq_set_voltage()
46 if (!drv->sram_reg) { in mtk_ccifreq_set_voltage()
47 ret = regulator_set_voltage(drv->proc_reg, new_voltage, in mtk_ccifreq_set_voltage()
48 drv->soc_data->proc_max_volt); in mtk_ccifreq_set_voltage()
52 pre_voltage = regulator_get_voltage(drv->proc_reg); in mtk_ccifreq_set_voltage()
53 if (pre_voltage < 0) { in mtk_ccifreq_set_voltage()
[all …]
/kernel/linux/linux-6.6/drivers/soc/qcom/
Drpmh-rsc.c1 // SPDX-License-Identifier: GPL-2.0
3 * Copyright (c) 2016-2018, The Linux Foundation. All rights reserved.
4 * Copyright (c) 2023-2024, Qualcomm Innovation Center, Inc. All rights reserved.
31 #include <soc/qcom/cmd-db.h>
33 #include <dt-bindings/soc/qcom,rpmh-rsc.h>
35 #include "rpmh-internal.h"
38 #include "trace-rpmh.h"
41 #define RSC_DRV_ID 0
43 #define MAJOR_VER_MASK 0xFF
45 #define MINOR_VER_MASK 0xFF
[all …]
Dspm.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2011-2014, The Linux Foundation. All rights reserved.
19 #define SPM_CTL_INDEX 0x7f
21 #define SPM_CTL_EN BIT(0)
40 [SPM_REG_AVS_CTL] = 0x904,
41 [SPM_REG_AVS_LIMIT] = 0x908,
46 .avs_ctl = 0x1010031,
47 .avs_limit = 0x4580458,
52 .avs_ctl = 0x101c031,
53 .avs_limit = 0x4580458,
[all …]
/kernel/linux/linux-6.6/drivers/net/wireless/intel/iwlwifi/
Diwl-drv.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
3 * Copyright (C) 2005-2014, 2018-2021 Intel Corporation
4 * Copyright (C) 2013-2015 Intel Mobile Communications GmbH
5 * Copyright (C) 2016-2017 Intel Deutschland GmbH
8 #include <linux/dma-mapping.h>
13 #include "iwl-drv.h"
14 #include "iwl-csr.h"
15 #include "iwl-debug.h"
16 #include "iwl-trans.h"
17 #include "iwl-op-mode.h"
[all …]
/kernel/linux/linux-6.6/drivers/phy/samsung/
Dphy-samsung-usb2.c1 // SPDX-License-Identifier: GPL-2.0-only
16 #include "phy-samsung-usb2.h"
21 struct samsung_usb2_phy_driver *drv = inst->drv; in samsung_usb2_phy_power_on() local
24 dev_dbg(drv->dev, "Request to power_on \"%s\" usb phy\n", in samsung_usb2_phy_power_on()
25 inst->cfg->label); in samsung_usb2_phy_power_on()
27 if (drv->vbus) { in samsung_usb2_phy_power_on()
28 ret = regulator_enable(drv->vbus); in samsung_usb2_phy_power_on()
33 ret = clk_prepare_enable(drv->clk); in samsung_usb2_phy_power_on()
36 ret = clk_prepare_enable(drv->ref_clk); in samsung_usb2_phy_power_on()
39 if (inst->cfg->power_on) { in samsung_usb2_phy_power_on()
[all …]
/kernel/linux/linux-5.10/drivers/phy/samsung/
Dphy-samsung-usb2.c1 // SPDX-License-Identifier: GPL-2.0-only
18 #include "phy-samsung-usb2.h"
23 struct samsung_usb2_phy_driver *drv = inst->drv; in samsung_usb2_phy_power_on() local
26 dev_dbg(drv->dev, "Request to power_on \"%s\" usb phy\n", in samsung_usb2_phy_power_on()
27 inst->cfg->label); in samsung_usb2_phy_power_on()
29 if (drv->vbus) { in samsung_usb2_phy_power_on()
30 ret = regulator_enable(drv->vbus); in samsung_usb2_phy_power_on()
35 ret = clk_prepare_enable(drv->clk); in samsung_usb2_phy_power_on()
38 ret = clk_prepare_enable(drv->ref_clk); in samsung_usb2_phy_power_on()
41 if (inst->cfg->power_on) { in samsung_usb2_phy_power_on()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/intel/iwlwifi/
Diwl-drv.c8 * Copyright(c) 2007 - 2014, 2018 - 2020 Intel Corporation. All rights reserved.
9 * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH
10 * Copyright(c) 2016 - 2017 Intel Deutschland GmbH
26 * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497
30 * Copyright(c) 2005 - 2014, 2018 - 2020 Intel Corporation. All rights reserved.
31 * Copyright(c) 2013 - 2015 Intel Mobile Communications GmbH
32 * Copyright(c) 2016 - 2017 Intel Deutschland GmbH
63 #include <linux/dma-mapping.h>
68 #include "iwl-drv.h"
69 #include "iwl-csr.h"
[all …]
/kernel/linux/linux-5.10/drivers/watchdog/
Dmenz69_wdt.c1 // SPDX-License-Identifier: GPL-2.0
3 * Watchdog driver for the MEN z069 IP-Core
19 #define MEN_Z069_WTR 0x10
21 #define MEN_Z069_WTR_WDET_MASK 0x7fff
22 #define MEN_Z069_WVR 0x14
26 #define MEN_Z069_WDT_COUNTER_MAX 0x7fff
30 module_param(nowayout, bool, 0);
36 struct men_z069_drv *drv = watchdog_get_drvdata(wdt); in men_z069_wdt_start() local
39 val = readw(drv->base + MEN_Z069_WTR); in men_z069_wdt_start()
41 writew(val, drv->base + MEN_Z069_WTR); in men_z069_wdt_start()
[all …]
/kernel/linux/linux-6.6/drivers/watchdog/
Dmenz69_wdt.c1 // SPDX-License-Identifier: GPL-2.0
3 * Watchdog driver for the MEN z069 IP-Core
19 #define MEN_Z069_WTR 0x10
21 #define MEN_Z069_WTR_WDET_MASK 0x7fff
22 #define MEN_Z069_WVR 0x14
26 #define MEN_Z069_WDT_COUNTER_MAX 0x7fff
30 module_param(nowayout, bool, 0);
36 struct men_z069_drv *drv = watchdog_get_drvdata(wdt); in men_z069_wdt_start() local
39 val = readw(drv->base + MEN_Z069_WTR); in men_z069_wdt_start()
41 writew(val, drv->base + MEN_Z069_WTR); in men_z069_wdt_start()
[all …]
/kernel/linux/linux-6.6/drivers/cpuidle/
Ddriver.c2 * driver.c - driver support
4 * (C) 2006-2007 Venkatesh Pallipadi <venkatesh.pallipadi@intel.com>
30 * __cpuidle_get_cpu_driver - return the cpuidle driver tied to a CPU.
42 * __cpuidle_unset_driver - unset per CPU driver variables.
43 * @drv: a valid pointer to a struct cpuidle_driver
46 * variable. If @drv is different from the registered driver, the corresponding
49 static inline void __cpuidle_unset_driver(struct cpuidle_driver *drv) in __cpuidle_unset_driver() argument
53 for_each_cpu(cpu, drv->cpumask) { in __cpuidle_unset_driver()
55 if (drv != __cpuidle_get_cpu_driver(cpu)) in __cpuidle_unset_driver()
63 * __cpuidle_set_driver - set per CPU driver variables for the given driver.
[all …]
/kernel/linux/linux-5.10/drivers/cpufreq/
Dqcom-cpufreq-nvmem.c1 // SPDX-License-Identifier: GPL-2.0
10 * defines the voltage and frequency value based on the msm-id in SMEM
12 * The qcom-cpufreq-nvmem driver reads the msm-id and efuse value from the SoC
15 * operating-points-v2 table when it is parsed by the OPP framework.
23 #include <linux/nvmem-consumer.h>
35 MSM8996V3 = 0xF6ul,
36 APQ8096V3 = 0x123ul,
37 MSM8996SG = 0x131ul,
38 APQ8096SG = 0x138ul,
53 struct qcom_cpufreq_drv *drv);
[all …]
/kernel/linux/linux-5.10/drivers/phy/renesas/
Dphy-rcar-gen2.c1 // SPDX-License-Identifier: GPL-2.0
3 * Renesas R-Car Gen2 PHY driver
21 #define USBHS_LPSTS 0x02
22 #define USBHS_UGCTRL 0x80
23 #define USBHS_UGCTRL2 0x84
24 #define USBHS_UGSTS 0x88 /* From technical update */
27 #define USBHS_LPSTS_SUSPM 0x4000
30 #define USBHS_UGCTRL_CONNECT 0x00000004
31 #define USBHS_UGCTRL_PLLRESET 0x00000001
34 #define USBHS_UGCTRL2_USB2SEL 0x80000000
[all …]
/kernel/linux/linux-6.6/drivers/phy/renesas/
Dphy-rcar-gen2.c1 // SPDX-License-Identifier: GPL-2.0
3 * Renesas R-Car Gen2 PHY driver
20 #define USBHS_LPSTS 0x02
21 #define USBHS_UGCTRL 0x80
22 #define USBHS_UGCTRL2 0x84
23 #define USBHS_UGSTS 0x88 /* From technical update */
26 #define USBHS_LPSTS_SUSPM 0x4000
29 #define USBHS_UGCTRL_CONNECT 0x00000004
30 #define USBHS_UGCTRL_PLLRESET 0x00000001
33 #define USBHS_UGCTRL2_USB2SEL 0x80000000
[all …]
/kernel/linux/linux-5.10/drivers/media/radio/
Dradio-isa.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <media/v4l2-device.h>
18 #include <media/v4l2-ioctl.h>
19 #include <media/v4l2-fh.h>
20 #include <media/v4l2-ctrls.h>
21 #include <media/v4l2-event.h>
23 #include "radio-isa.h"
37 strscpy(v->driver, isa->drv->driver.driver.name, sizeof(v->driver)); in radio_isa_querycap()
38 strscpy(v->card, isa->drv->card, sizeof(v->card)); in radio_isa_querycap()
39 snprintf(v->bus_info, sizeof(v->bus_info), "ISA:%s", isa->v4l2_dev.name); in radio_isa_querycap()
[all …]
/kernel/linux/linux-6.6/drivers/media/radio/
Dradio-isa.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <media/v4l2-device.h>
18 #include <media/v4l2-ioctl.h>
19 #include <media/v4l2-fh.h>
20 #include <media/v4l2-ctrls.h>
21 #include <media/v4l2-event.h>
23 #include "radio-isa.h"
37 strscpy(v->driver, isa->drv->driver.driver.name, sizeof(v->driver)); in radio_isa_querycap()
38 strscpy(v->card, isa->drv->card, sizeof(v->card)); in radio_isa_querycap()
39 snprintf(v->bus_info, sizeof(v->bus_info), "ISA:%s", dev_name(isa->v4l2_dev.dev)); in radio_isa_querycap()
[all …]
/kernel/linux/linux-6.6/drivers/base/
Ddriver.c1 // SPDX-License-Identifier: GPL-2.0
3 * driver.c - centralized device driver management
5 * Copyright (c) 2002-3 Patrick Mochel
6 * Copyright (c) 2002-3 Open Source Development Labs
7 * Copyright (c) 2007 Greg Kroah-Hartman <gregkh@suse.de>
28 dev = dev_prv->device; in next_device()
34 * driver_set_override() - Helper to set or clear driver override.
36 * @override: Address of string to change (e.g. &device->driver_override);
38 * @s: NUL-terminated string, new driver name to force a match, pass empty
46 * Returns: 0 on success or a negative error code on failure.
[all …]

12345678910>>...43