Home
last modified time | relevance | path

Searched +full:static +full:- +full:enable (Results 1 – 25 of 1159) sorted by relevance

12345678910>>...47

/OK3568_Linux_fs/kernel/arch/mips/bcm63xx/
H A Dclk.c28 static DEFINE_MUTEX(clocks_mutex);
31 static void clk_enable_unlocked(struct clk *clk) in clk_enable_unlocked()
33 if (clk->set && (clk->usage++) == 0) in clk_enable_unlocked()
34 clk->set(clk, 1); in clk_enable_unlocked()
37 static void clk_disable_unlocked(struct clk *clk) in clk_disable_unlocked()
39 if (clk->set && (--clk->usage) == 0) in clk_disable_unlocked()
40 clk->set(clk, 0); in clk_disable_unlocked()
43 static void bcm_hwclock_set(u32 mask, int enable) in bcm_hwclock_set() argument
48 if (enable) in bcm_hwclock_set()
58 static void enet_misc_set(struct clk *clk, int enable) in enet_misc_set() argument
[all …]
/OK3568_Linux_fs/kernel/arch/mips/alchemy/common/
H A Dusb.c1 // SPDX-License-Identifier: GPL-2.0-only
20 #include <asm/mach-au1x00/au1000.h>
28 #define USBHEN_RD (1 << 4) /* OHCI reset-done indicator */
29 #define USBHEN_CE (1 << 3) /* OHCI block clock enable */
30 #define USBHEN_E (1 << 2) /* OHCI block enable */
32 #define USBHEN_BE (1 << 0) /* OHCI Big-Endian */
35 #define USBCFG_PFEN (1 << 31) /* prefetch enable (undoc) */
40 #define USBCFG_UCE (1 << 18) /* UDC clock enable */
41 #define USBCFG_ECE (1 << 17) /* EHCI clock enable */
42 #define USBCFG_OCE (1 << 16) /* OHCI clock enable */
[all …]
/OK3568_Linux_fs/u-boot/drivers/power/regulator/
H A Dlp873x_regulator.c5 * Keerthy <j-keerthy@ti.com>
7 * SPDX-License-Identifier: GPL-2.0+
21 static const char lp873x_buck_ctrl[LP873X_BUCK_NUM] = {0x2, 0x4};
22 static const char lp873x_buck_volt[LP873X_BUCK_NUM] = {0x6, 0x7};
23 static const char lp873x_ldo_ctrl[LP873X_LDO_NUM] = {0x8, 0x9};
24 static const char lp873x_ldo_volt[LP873X_LDO_NUM] = {0xA, 0xB};
26 static int lp873x_buck_enable(struct udevice *dev, int op, bool *enable) in lp873x_buck_enable() argument
33 adr = uc_pdata->ctrl_reg; in lp873x_buck_enable()
35 ret = pmic_reg_read(dev->parent, adr); in lp873x_buck_enable()
43 *enable = true; in lp873x_buck_enable()
[all …]
H A Dpalmas_regulator.c5 * Keerthy <j-keerthy@ti.com>
7 * SPDX-License-Identifier: GPL-2.0+
29 static const char palmas_smps_ctrl[][PALMAS_SMPS_NUM] = {
35 static const char palmas_smps_volt[][PALMAS_SMPS_NUM] = {
41 static const char palmas_ldo_ctrl[][PALMAS_LDO_NUM] = {
47 static const char palmas_ldo_volt[][PALMAS_LDO_NUM] = {
53 static int palmas_smps_enable(struct udevice *dev, int op, bool *enable) in palmas_smps_enable() argument
60 adr = uc_pdata->ctrl_reg; in palmas_smps_enable()
62 ret = pmic_reg_read(dev->parent, adr); in palmas_smps_enable()
70 *enable = true; in palmas_smps_enable()
[all …]
H A Drk8xx.c7 * zyw <zyw@rock-chips.com>
9 * SPDX-License-Identifier: GPL-2.0+
24 #define NA -1
44 #define RK817_BUCK_ON_VSEL(n) (0xbb + 3 * (n - 1))
45 #define RK817_BUCK_SLP_VSEL(n) (0xbc + 3 * (n - 1))
50 #define RK817_LDO_ON_VSEL(n) (0xcc + 2 * (n - 1))
51 #define RK817_LDO_SLP_VSEL(n) (0xcd + 2 * (n - 1))
54 /* RK817 ENABLE */
95 static const struct rk8xx_reg_info rk808_buck[] = {
102 static const struct rk8xx_reg_info rk816_buck[] = {
[all …]
H A Dfixed.c6 * SPDX-License-Identifier: GPL-2.0+
20 struct gpio_desc gpio; /* GPIO for regulator enable control */
24 static int fixed_regulator_ofdata_to_platdata(struct udevice *dev) in fixed_regulator_ofdata_to_platdata()
35 return -ENXIO; in fixed_regulator_ofdata_to_platdata()
38 uc_pdata->type = REGULATOR_TYPE_FIXED; in fixed_regulator_ofdata_to_platdata()
39 if (!dev_read_bool(dev, "enable-active-high")) in fixed_regulator_ofdata_to_platdata()
41 if (dev_read_bool(dev, "regulator-boot-on")) in fixed_regulator_ofdata_to_platdata()
44 /* Get fixed regulator optional enable GPIO desc */ in fixed_regulator_ofdata_to_platdata()
45 gpio = &dev_pdata->gpio; in fixed_regulator_ofdata_to_platdata()
50 debug("Fixed regulator optional enable GPIO - not found! Error: %d\n", ret); in fixed_regulator_ofdata_to_platdata()
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/rockchip/hdmirx/
H A Drk_hdmirx_hdcp.c1 // SPDX-License-Identifier: GPL-2.0
5 * Author: Shunqing Chen <csq@rock-chips.com>
28 static struct rk_hdmirx_hdcp *g_hdmirx_hdcp;
30 static void hdmirx_hdcp_write(struct rk_hdmirx_hdcp *hdcp, int reg, u32 val) in hdmirx_hdcp_write()
32 hdcp->write(hdcp->hdmirx, reg, val); in hdmirx_hdcp_write()
35 static u32 hdmirx_hdcp_read(struct rk_hdmirx_hdcp *hdcp, int reg) in hdmirx_hdcp_read()
37 return hdcp->read(hdcp->hdmirx, reg); in hdmirx_hdcp_read()
40 static void hdmirx_hdcp_update_bits(struct rk_hdmirx_hdcp *hdcp, int reg, in hdmirx_hdcp_update_bits()
49 static int hdcp_load_keys_cb(struct rk_hdmirx_hdcp *hdcp) in hdcp_load_keys_cb()
59 dev_dbg(hdcp->dev, "HDCP: read size %d\n", size); in hdcp_load_keys_cb()
[all …]
/OK3568_Linux_fs/buildroot/package/tslib/
H A Dtslib.mk9 TSLIB_SOURCE = tslib-$(TSLIB_VERSION).tar.xz
10 TSLIB_LICENSE = GPL-2.0+ (programs), LGPL-2.1+ (libraries)
14 TSLIB_INSTALL_STAGING_OPTS = DESTDIR=$(STAGING_DIR) LDFLAGS=-L$(STAGING_DIR)/usr/lib install
17 TSLIB_CONF_OPTS += --disable-tools
22 --enable-input=static \
23 --enable-linear=static \
24 --enable-median=static \
25 --enable-pthres=static \
26 --enable-iir=static \
27 --enable-dejitter=static \
[all …]
/OK3568_Linux_fs/kernel/arch/powerpc/kernel/
H A Dsecurity.c1 // SPDX-License-Identifier: GPL-2.0+
14 #include <asm/asm-prototypes.h>
15 #include <asm/code-patching.h>
29 static enum branch_cache_flush_type count_cache_flush_type = BRANCH_CACHE_FLUSH_NONE;
30 static enum branch_cache_flush_type link_stack_flush_type = BRANCH_CACHE_FLUSH_NONE;
33 static bool no_nospec;
34 static bool btb_flush_enabled;
36 static bool no_spectrev2;
39 static void enable_barrier_nospec(bool enable) in enable_barrier_nospec() argument
41 barrier_nospec_enabled = enable; in enable_barrier_nospec()
[all …]
/OK3568_Linux_fs/kernel/sound/soc/codecs/
H A Dab8500-codec.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) ST-Ericsson SA 2012
8 * for ST-Ericsson.
14 * for ST-Ericsson.
31 #include <linux/mfd/abx500/ab8500-sysctrl.h>
32 #include <linux/mfd/abx500/ab8500-codec.h>
41 #include <sound/soc-dapm.h>
44 #include "ab8500-codec.h"
58 /* Nr of FIR/IIR-coeff banks in ANC-block */
79 static const char * const enum_sid_state[] = {
[all …]
H A Dmt6358.c1 // SPDX-License-Identifier: GPL-2.0
3 // mt6358.c -- mt6358 ALSA SoC audio codec driver
107 priv->mtkaif_protocol = mtkaif_protocol; in mt6358_set_mtkaif_protocol()
112 static void playback_gpio_set(struct mt6358_priv *priv) in playback_gpio_set()
115 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_set()
117 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_SET, in playback_gpio_set()
119 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_set()
123 static void playback_gpio_reset(struct mt6358_priv *priv) in playback_gpio_reset()
130 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2_CLR, in playback_gpio_reset()
132 regmap_update_bits(priv->regmap, MT6358_GPIO_MODE2, in playback_gpio_reset()
[all …]
H A Dak4535.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * ak4535.c -- AK4535 ALSA Soc Audio driver
37 static const struct reg_default ak4535_reg_defaults[] = {
55 static bool ak4535_volatile(struct device *dev, unsigned int reg) in ak4535_volatile()
65 static const char *ak4535_mono_gain[] = {"+6dB", "-17dB"};
66 static const char *ak4535_mono_out[] = {"(L + R)/2", "Hi-Z"};
67 static const char *ak4535_hp_out[] = {"Stereo", "Mono"};
68 static const char *ak4535_deemp[] = {"44.1kHz", "Off", "48kHz", "32kHz"};
69 static const char *ak4535_mic_select[] = {"Internal", "External"};
71 static const struct soc_enum ak4535_enum[] = {
[all …]
/OK3568_Linux_fs/u-boot/arch/arm/mach-exynos/
H A Dpower.c5 * SPDX-License-Identifier: GPL-2.0+
12 static void exynos4_mipi_phy_control(unsigned int dev_index, in exynos4_mipi_phy_control()
13 unsigned int enable) in exynos4_mipi_phy_control() argument
20 addr = (unsigned int)&pmu->mipi_phy0_control; in exynos4_mipi_phy_control()
22 addr = (unsigned int)&pmu->mipi_phy1_control; in exynos4_mipi_phy_control()
26 if (enable) in exynos4_mipi_phy_control()
34 void set_mipi_phy_ctrl(unsigned int dev_index, unsigned int enable) in set_mipi_phy_ctrl() argument
37 exynos4_mipi_phy_control(dev_index, enable); in set_mipi_phy_ctrl()
40 void exynos5_set_usbhost_phy_ctrl(unsigned int enable) in exynos5_set_usbhost_phy_ctrl() argument
45 if (enable) { in exynos5_set_usbhost_phy_ctrl()
[all …]
/OK3568_Linux_fs/kernel/drivers/clk/bcm/
H A Dclk-sr.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/clk-provider.h>
11 #include <dt-bindings/clock/bcm-sr.h>
12 #include "clk-iproc.h"
34 static const struct iproc_pll_ctrl sr_genpll0 = {
47 static const struct iproc_clk_ctrl sr_genpll0_clk[] = {
51 .enable = ENABLE_VAL(0x4, 6, 0, 12),
57 .enable = ENABLE_VAL(0x4, 7, 1, 13),
63 .enable = ENABLE_VAL(0x4, 8, 2, 14),
69 .enable = ENABLE_VAL(0x4, 9, 3, 15),
[all …]
H A Dclk-cygnus.c16 #include <linux/clk-provider.h>
23 #include <dt-bindings/clock/bcm-cygnus.h>
24 #include "clk-iproc.h"
51 static void __init cygnus_armpll_init(struct device_node *node) in cygnus_armpll_init()
55 CLK_OF_DECLARE(cygnus_armpll, "brcm,cygnus-armpll", cygnus_armpll_init);
57 static const struct iproc_pll_ctrl genpll = {
71 static const struct iproc_clk_ctrl genpll_clk[] = {
75 .enable = ENABLE_VAL(0x4, 6, 0, 12),
81 .enable = ENABLE_VAL(0x4, 7, 1, 13),
87 .enable = ENABLE_VAL(0x4, 8, 2, 14),
[all …]
H A Dclk-ns2.c16 #include <linux/clk-provider.h>
21 #include <dt-bindings/clock/bcm-ns2.h>
22 #include "clk-iproc.h"
41 static const struct iproc_pll_ctrl genpll_scr = {
53 static const struct iproc_clk_ctrl genpll_scr_clk[] = {
61 .enable = ENABLE_VAL(0x0, 18, 12, 0),
67 .enable = ENABLE_VAL(0x0, 19, 13, 0),
73 .enable = ENABLE_VAL(0x0, 20, 14, 0),
79 .enable = ENABLE_VAL(0x0, 21, 15, 0),
85 .enable = ENABLE_VAL(0x0, 22, 16, 0),
[all …]
/OK3568_Linux_fs/buildroot/dl/sox/git/
H A Dcygbuild3 # This script will automates the steps used to producing a static win32
12 # in wget-1.11.4 directory. If not found, it will distribute the
17 # Script makes use of "-static" option to tell compiler to prefer static
22 # well as static libraries (but usually only if that library
24 # Libtool may ignore -static option or it may link first external
25 # library as static but other dependent libraries as shared (usually
26 # because it follows $dependency_libs and that ignores -static option).
28 # Work arounds include to only install static libraries, delete the lib*.la
32 # The following command lines were used to generate the static external
38 # cd libpng-1.2.41
[all …]
H A Dmingwbuild10 # ../wget-1.11.4.
19 # cd libtool-2.4.2
20 # mingw32-configure --disable-shared --enable-static;mingw32-make;sudo mingw32-make install
22 # yum install ming32-libpng mingw32-libpng-static
24 # cd libpng-1.6.15
25 # mingw32-configure --disable-shared --enable-static;mingw32-make;sudo mingw32-make install
27 # yum install mingw32-wavpack
29 # cd ../wavpack-4.70.0
30 # mingw32-configure --disable-shared --enable-static;mingw32-make;sudo mingw32-make install
32 # yum install mingw32-flac
[all …]
/OK3568_Linux_fs/kernel/drivers/fpga/
H A Daltera-hps2fpga.c1 // SPDX-License-Identifier: GPL-2.0
5 * Copyright (C) 2013-2016 Altera Corporation, All Rights Reserved.
8 * fpga: altera-hps2fpga: fix HPS2FPGA bridge visibility to L3 masters
9 * Signed-off-by: Anatolij Gustschin <agust@denx.de>
19 * reprogramming the FPGA and re-enabled after the FPGA has been programmed.
23 #include <linux/fpga/fpga-bridge.h>
49 static int alt_hps2fpga_enable_show(struct fpga_bridge *bridge) in alt_hps2fpga_enable_show()
51 struct altera_hps2fpga_data *priv = bridge->priv; in alt_hps2fpga_enable_show()
53 return reset_control_status(priv->bridge_reset); in alt_hps2fpga_enable_show()
57 static unsigned int l3_remap_shadow;
[all …]
/OK3568_Linux_fs/kernel/drivers/media/platform/davinci/
H A Dvpif.h4 * Copyright (C) 2009 Texas Instruments Incorporated - https://www.ti.com/
137 static inline void vpif_set_bit(u32 reg, u32 bit) in vpif_set_bit()
142 static inline void vpif_clr_bit(u32 reg, u32 bit) in vpif_clr_bit()
153 ((((0xFFFFFFFF) << (32 - bits)) >> (32 - bits)) << pos)
191 /* bit position of clock and channel enable in vpif_chn_ctrl register */
270 /* inline function to enable/disable channel0 */
271 static inline void enable_channel0(int enable) in enable_channel0() argument
273 if (enable) in enable_channel0()
279 /* inline function to enable/disable channel1 */
280 static inline void enable_channel1(int enable) in enable_channel1() argument
[all …]
/OK3568_Linux_fs/kernel/drivers/acpi/
H A Dosi.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * osi.c - _OSI implementation
27 bool enable; member
30 static struct acpi_osi_config {
40 static struct acpi_osi_config osi_config;
41 static struct acpi_osi_entry
48 * Linux-Dell-Video is used by BIOS to disable RTD3 for NVidia graphics
55 {"Linux-Dell-Video", true},
57 * Linux-Lenovo-NV-HDMI-Audio is used by BIOS to power on NVidia's HDMI
58 * audio device which is turned off for power-saving in Windows OS.
[all …]
/OK3568_Linux_fs/u-boot/drivers/serial/
H A Dserial_mxc.c4 * SPDX-License-Identifier: GPL-2.0+
11 #include <asm/arch/imx-regs.h>
27 #define UCR1_TRDYEN (1<<13) /* Transmitter ready interrupt enable */
29 #define UCR1_RRDYEN (1<<9) /* Recv ready interrupt enable */
30 #define UCR1_RDMAEN (1<<8) /* Recv ready DMA enable */
31 #define UCR1_IREN (1<<7) /* Infrared interface enable */
32 #define UCR1_TXMPTYEN (1<<6) /* Transimitter empty interrupt enable */
33 #define UCR1_RTSDEN (1<<5) /* RTS delta interrupt enable */
35 #define UCR1_TDMAEN (1<<3) /* Transmitter ready DMA enable */
39 #define UCR2_ESCI (1<<15) /* Escape seq interrupt enable */
[all …]
/OK3568_Linux_fs/kernel/drivers/media/rc/
H A Drc-loopback.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Loopback driver for rc-core,
8 * which is useful for (scripted) debugging of rc-core without
16 #include <media/rc-core.h>
18 #define DRIVER_NAME "rc-loopback"
23 static bool debug;
37 static struct loopback_dev loopdev;
39 static int loop_set_tx_mask(struct rc_dev *dev, u32 mask) in loop_set_tx_mask()
41 struct loopback_dev *lodev = dev->priv; in loop_set_tx_mask()
49 lodev->txmask = mask; in loop_set_tx_mask()
[all …]
/OK3568_Linux_fs/kernel/net/rfkill/
H A Drfkill-bt.c14 /* Rock-chips rfkill driver for bluetooth
25 #include <linux/rfkill-bt.h>
26 #include <linux/rfkill-wlan.h>
35 #include <dt-bindings/gpio/gpio.h>
74 static struct rfkill_rk_data *g_rfkill = NULL;
76 static const char bt_name[] =
116 static irqreturn_t rfkill_rk_wake_host_irq(int irq, void *dev) in rfkill_rk_wake_host_irq()
124 wake_lock_timeout(&rfkill->bt_irq_wl, in rfkill_rk_wake_host_irq()
130 static int rfkill_rk_setup_gpio(struct platform_device *pdev, in rfkill_rk_setup_gpio()
134 if (gpio_is_valid(gpio->io)) { in rfkill_rk_setup_gpio()
[all …]
/OK3568_Linux_fs/kernel/drivers/gpu/drm/i915/display/
H A Dintel_fifo_underrun.c54 static bool ivb_can_enable_err_int(struct drm_device *dev) in ivb_can_enable_err_int()
60 lockdep_assert_held(&dev_priv->irq_lock); in ivb_can_enable_err_int()
65 if (crtc->cpu_fifo_underrun_disabled) in ivb_can_enable_err_int()
72 static bool cpt_can_enable_serr_int(struct drm_device *dev) in cpt_can_enable_serr_int()
78 lockdep_assert_held(&dev_priv->irq_lock); in cpt_can_enable_serr_int()
83 if (crtc->pch_fifo_underrun_disabled) in cpt_can_enable_serr_int()
90 static void i9xx_check_fifo_underruns(struct intel_crtc *crtc) in i9xx_check_fifo_underruns()
92 struct drm_i915_private *dev_priv = to_i915(crtc->base.dev); in i9xx_check_fifo_underruns()
93 i915_reg_t reg = PIPESTAT(crtc->pipe); in i9xx_check_fifo_underruns()
96 lockdep_assert_held(&dev_priv->irq_lock); in i9xx_check_fifo_underruns()
[all …]

12345678910>>...47