Home
last modified time | relevance | path

Searched +full:comp +full:- +full:disable (Results 1 – 25 of 224) sorted by relevance

123456789

/openbmc/linux/drivers/clk/actions/
H A Dowl-composite.c1 // SPDX-License-Identifier: GPL-2.0+
6 // Author: David Liu <liuwei@actions-semi.com>
11 #include <linux/clk-provider.h>
14 #include "owl-composite.h"
18 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_get_parent() local
20 return owl_mux_helper_get_parent(&comp->common, &comp->mux_hw); in owl_comp_get_parent()
25 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_set_parent() local
27 return owl_mux_helper_set_parent(&comp->common, &comp->mux_hw, index); in owl_comp_set_parent()
32 struct owl_composite *comp = hw_to_owl_comp(hw); in owl_comp_disable() local
33 struct owl_clk_common *common = &comp->common; in owl_comp_disable()
[all …]
/openbmc/linux/sound/soc/codecs/
H A Dwcd-clsh-v2.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
3 // Copyright (c) 2017-2018, Linaro Limited
10 #include "wcd-clsh-v2.h"
19 struct snd_soc_component *comp; member
22 /* Class-H registers for codecs from and above WCD9335 */
122 struct snd_soc_component *comp = ctrl->comp; in wcd_enable_clsh_block() local
124 if ((enable && ++ctrl->clsh_users == 1) || in wcd_enable_clsh_block()
125 (!enable && --ctrl->clsh_users == 0)) in wcd_enable_clsh_block()
126 snd_soc_component_update_bits(comp, WCD9XXX_A_CDC_CLSH_CRC, in wcd_enable_clsh_block()
[all …]
H A Dwcd934x.c1 // SPDX-License-Identifier: GPL-2.0
5 #include <linux/clk-provider.h>
21 #include <sound/soc-dapm.h>
23 #include "wcd-clsh-v2.h"
24 #include "wcd-mbhc-v2.h"
430 COMPANDER_5, /* LO3_SE - not used in Tavil */
431 COMPANDER_6, /* LO4_SE - not used in Tavil */
520 .name = "WCD9335-IFC-DEV",
589 static const DECLARE_TLV_DB_SCALE(digital_gain, -8400, 100, -8400);
605 "Class H Invalid", "Class-H Hi-Fi", "Class-H Low Power", "Class-AB",
[all …]
H A Dwsa881x.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2015-2017, The Linux Foundation.
398 /* COMP */
691 struct regmap *rm = wsa881x->regmap; in wsa881x_init()
694 regmap_read(rm, WSA881X_CHIP_ID1, &wsa881x->version); in wsa881x_init()
695 regmap_register_patch(wsa881x->regmap, wsa881x_rev_2_0, in wsa881x_init()
734 static int wsa881x_component_probe(struct snd_soc_component *comp) in wsa881x_component_probe() argument
736 struct wsa881x_priv *wsa881x = snd_soc_component_get_drvdata(comp); in wsa881x_component_probe()
738 snd_soc_component_init_regmap(comp, wsa881x->regmap); in wsa881x_component_probe()
746 struct snd_soc_component *comp = snd_soc_kcontrol_component(kc); in wsa881x_put_pa_gain() local
[all …]
H A Drt9120.c1 // SPDX-License-Identifier: GPL-2.0
83 /* 11bit [min,max,step] = [-103.9375dB, 24dB, 0.0625dB] */
84 static const DECLARE_TLV_DB_SCALE(digital_tlv, -1039375, 625, 1);
110 struct snd_soc_component *comp = snd_soc_dapm_to_component(w->dapm); in internal_power_event() local
114 snd_soc_component_write(comp, RT9120_REG_ERRRPT, 0); in internal_power_event()
159 static int rt9120_codec_probe(struct snd_soc_component *comp) in rt9120_codec_probe() argument
161 struct rt9120_data *data = snd_soc_component_get_drvdata(comp); in rt9120_codec_probe()
163 snd_soc_component_init_regmap(comp, data->regmap); in rt9120_codec_probe()
165 pm_runtime_get_sync(comp->dev); in rt9120_codec_probe()
168 if (data->chip_idx == CHIP_IDX_RT9120S) { in rt9120_codec_probe()
[all …]
H A Dmax98090.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * max98090.c -- MAX98090 ALSA SoC Audio driver
5 * Copyright 2011-2012 Maxim Integrated Products
279 /* Reset the codec by writing to this write-only reset register */ in max98090_reset()
280 ret = regmap_write(max98090->regmap, M98090_REG_SOFTWARE_RESET, in max98090_reset()
283 dev_err(max98090->component->dev, in max98090_reset()
300 -600, 600, 0);
303 0, 3, TLV_DB_SCALE_ITEM(-600, 300, 0),
308 static const DECLARE_TLV_DB_SCALE(max98090_av_tlv, -1200, 100, 0);
311 static const DECLARE_TLV_DB_SCALE(max98090_dv_tlv, -1500, 100, 0);
[all …]
/openbmc/linux/drivers/media/platform/mediatek/mdp3/
H A Dmtk-mdp3-comp.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Author: Ping-Hsun Wu <ping-hsun.wu@mediatek.com>
11 #include "mtk-mdp3-cfg.h"
12 #include "mtk-mdp3-comp.h"
13 #include "mtk-mdp3-core.h"
14 #include "mtk-mdp3-regs.h"
31 return ctx->comp->mdp_dev->mdp_data->mdp_cfg; in __get_plat_cfg()
39 rdma0 = mdp_cfg_get_id_inner(ctx->comp->mdp_dev, MDP_COMP_RDMA0); in get_comp_flag()
40 rsz1 = mdp_cfg_get_id_inner(ctx->comp->mdp_dev, MDP_COMP_RSZ1); in get_comp_flag()
44 if (mdp_cfg && mdp_cfg->rdma_rsz1_sram_sharing) in get_comp_flag()
[all …]
H A Dmtk-mdp3-cmdq.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Author: Ping-Hsun Wu <ping-hsun.wu@mediatek.com>
9 #include "mtk-mdp3-cmdq.h"
10 #include "mtk-mdp3-comp.h"
11 #include "mtk-mdp3-core.h"
12 #include "mtk-mdp3-m2m.h"
13 #include "mtk-img-ipi.h"
28 ((ctx)->comp->ops && (ctx)->comp->ops->op)
30 (has_op(ctx, op) ? (ctx)->comp->ops->op(ctx, ##__VA_ARGS__) : 0)
51 const int p_id = path->mdp_dev->mdp_data->mdp_plat_id; in mdp_path_subfrm_require()
[all …]
/openbmc/linux/drivers/vfio/pci/pds/
H A Dcmds.c1 // SPDX-License-Identifier: GPL-2.0
30 cmd.client_request.client_id = cpu_to_le16(pds_vfio->client_id); in pds_vfio_client_adminq_cmd()
39 if (err && err != -EAGAIN) in pds_vfio_client_adminq_cmd()
53 snprintf(devname, sizeof(devname), "%s.%d-%u", PDS_VFIO_LM_DEV_NAME, in pds_vfio_register_client_cmd()
54 pci_domain_nr(pdev->bus), in pds_vfio_register_client_cmd()
55 PCI_DEVID(pdev->bus->number, pdev->devfn)); in pds_vfio_register_client_cmd()
65 pds_vfio->client_id = ci; in pds_vfio_register_client_cmd()
80 err = pds_client_unregister(pdsc, pds_vfio->client_id); in pds_vfio_unregister_client_cmd()
82 dev_err(&pdev->dev, "unregister from DSC failed: %pe\n", in pds_vfio_unregister_client_cmd()
85 pds_vfio->client_id = 0; in pds_vfio_unregister_client_cmd()
[all …]
/openbmc/linux/drivers/clk/ti/
H A Dcomposite.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * Tero Kristo <t-kristo@ti.com>
10 #include <linux/clk-provider.h>
32 return -EINVAL; in ti_composite_round_rate()
38 return -EINVAL; in ti_composite_set_rate()
49 .disable = &omap2_dflt_clk_disable,
73 rc = of_parse_phandle_with_args(node, "clocks", "#clock-cells", i, in _get_component_node()
83 struct component_clk *comp; in _lookup_component() local
85 list_for_each_entry(comp, &component_clks, link) { in _lookup_component()
86 if (comp->node == node) in _lookup_component()
[all …]
/openbmc/linux/sound/soc/fsl/
H A Dfsl_micfil.c1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause
19 #include <linux/dma/imx-dma.h>
114 { .compatible = "fsl,imx8mm-micfil", .data = &fsl_micfil_imx8mm },
115 { .compatible = "fsl,imx8mp-micfil", .data = &fsl_micfil_imx8mp },
116 { .compatible = "fsl,imx93-micfil", .data = &fsl_micfil_imx93 },
140 switch (micfil->quality) { in micfil_set_quality()
161 return regmap_update_bits(micfil->regmap, REG_MICFIL_CTRL2, in micfil_set_quality()
172 ucontrol->value.integer.value[0] = micfil->quality; in micfil_quality_get()
183 micfil->quality = ucontrol->value.integer.value[0]; in micfil_quality_set()
189 "Disable (Record only)",
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Datomisp_subdev.c1 // SPDX-License-Identifier: GPL-2.0
26 #include <media/v4l2-event.h>
27 #include <media/v4l2-mediabus.h>
28 #include <media/videobuf2-vmalloc.h>
89 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_subdev_is_compressed()
101 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_find_in_fmt_conv()
113 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_find_in_fmt_conv_by_atomisp_in_fmt()
124 sink = atomisp_subdev_get_ffmt(&asd->subdev, NULL, in atomisp_subdev_format_conversion()
126 src = atomisp_subdev_get_ffmt(&asd->subdev, NULL, in atomisp_subdev_format_conversion()
129 return atomisp_is_mbuscode_raw(sink->code) in atomisp_subdev_format_conversion()
[all …]
/openbmc/linux/drivers/regulator/
H A Dtwl6030-regulator.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Split TWL6030 logic from twl-regulator.c:
93 &value, info->base + offset); in twlreg_read()
102 value, info->base + offset); in twlreg_write()
113 * Enable/disable regulators by joining/leaving the P1 (processor) group.
126 if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) { in twl6030reg_is_enabled()
152 if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) in twl6030reg_enable()
169 if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) in twl6030reg_disable()
191 if (info->features & TWL6032_SUBCLASS) in twl6030reg_get_status()
218 if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) in twl6030reg_set_mode()
[all …]
H A Dtwl-regulator.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * twl-regulator.c -- support regulators in twl4030/twl6030 family chips
25 * These chips are often used in OMAP-based systems.
27 * This driver implements software-based resource control for various
39 /* voltage in mV = table[VSEL]; table_len must be a power-of-two */
81 &value, info->base + offset); in twlreg_read()
90 value, info->base + offset); in twlreg_write()
93 /*----------------------------------------------------------------------*/
104 * Enable/disable regulators by joining/leaving the P1 (processor) group.
147 timeout--; in twl4030_wait_pb_ready()
[all …]
/openbmc/linux/drivers/gpu/drm/mediatek/
H A Dmtk_drm_crtc.c1 // SPDX-License-Identifier: GPL-2.0-only
7 #include <linux/dma-mapping.h>
11 #include <linux/soc/mediatek/mtk-cmdq.h>
12 #include <linux/soc/mediatek/mtk-mmsys.h>
13 #include <linux/soc/mediatek/mtk-mutex.h>
29 * struct mtk_drm_crtc - MediaTek specific crtc structure.
95 struct drm_crtc *crtc = &mtk_crtc->base; in mtk_drm_crtc_finish_page_flip()
98 if (mtk_crtc->event) { in mtk_drm_crtc_finish_page_flip()
99 spin_lock_irqsave(&crtc->dev->event_lock, flags); in mtk_drm_crtc_finish_page_flip()
100 drm_crtc_send_vblank_event(crtc, mtk_crtc->event); in mtk_drm_crtc_finish_page_flip()
[all …]
/openbmc/linux/drivers/net/ethernet/cavium/common/
H A Dcavium_ptp.c1 // SPDX-License-Identifier: GPL-2.0
2 /* cavium_ptp.c - PTP 1588 clock on Cavium hardware
3 * Copyright (c) 2003-2015, 2017 Cavium, Inc.
67 return ERR_PTR(-ENODEV); in cavium_ptp_get()
71 ptp = ERR_PTR(-EPROBE_DEFER); in cavium_ptp_get()
83 pci_dev_put(ptp->pdev); in cavium_ptp_put()
88 * cavium_ptp_adjfine() - Adjust ptp frequency
98 u64 comp; in cavium_ptp_adjfine() local
104 scaled_ppm = -scaled_ppm; in cavium_ptp_adjfine()
110 * convention compensation value is in 64 bit fixed-point in cavium_ptp_adjfine()
[all …]
/openbmc/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dptp.c1 // SPDX-License-Identifier: GPL-2.0
66 #define is_rev_A0(ptp) (((ptp)->pdev->revision & 0x0F) == 0x0)
67 #define is_rev_A1(ptp) (((ptp)->pdev->revision & 0x0F) == 0x1)
81 return ptp->pdev->subsystem_device == PCI_SUBSYS_DEVID_CNF10K_A_PTP; in is_ptp_dev_cnf10ka()
86 return ptp->pdev->subsystem_device == PCI_SUBSYS_DEVID_CN10K_A_PTP; in is_ptp_dev_cn10ka()
100 struct ptp *ptp = rvu->ptp; in is_tstmp_atomic_update_supported()
123 delta_ns = ktime_to_ns(ktime_sub(curr_ts, ptp->last_ts)); in ptp_reset_thresh()
129 ptp_clock_hi = readq(ptp->reg_base + PTP_CLOCK_HI); in ptp_reset_thresh()
131 period_ns = ktime_set(0, (NSEC_PER_SEC + 100 - ptp_clock_hi)); in ptp_reset_thresh()
133 writeq(500000000, ptp->reg_base + PTP_PPS_THRESH_HI); in ptp_reset_thresh()
[all …]
/openbmc/u-boot/drivers/net/
H A Dbcm6368-eth.c1 // SPDX-License-Identifier: GPL-2.0+
19 #define ETH_PORT_STR "brcm,enetsw-port"
150 writel_be(0, priv->base + MII_SC_REG); in bcm6368_mdio_read()
159 writel_be(val, priv->base + MII_SC_REG); in bcm6368_mdio_read()
162 return readw_be(priv->base + MII_DAT_REG); in bcm6368_mdio_read()
170 writel_be(0, priv->base + MII_SC_REG); in bcm6368_mdio_write()
181 writel_be(val, priv->base + MII_SC_REG); in bcm6368_mdio_write()
191 return dma_prepare_rcv_buf(&priv->rx_dma, packet, len); in bcm6368_eth_free_pkt()
198 return dma_receive(&priv->rx_dma, (void**)packetp, NULL); in bcm6368_eth_recv()
207 memset(packet + length, 0, ETH_ZLEN - length); in bcm6368_eth_send()
[all …]
/openbmc/linux/include/linux/
H A Dppp-comp.h1 /* SPDX-License-Identifier: GPL-2.0-only */
3 * ppp-comp.h - Definitions for doing PPP packet compression.
5 * Copyright 1994-1998 Paul Mackerras.
10 #include <uapi/linux/ppp-comp.h>
21 #define DO_BSD_COMPRESS 1 /* by default, include BSD-Compress */
91 * We need to make this distinction so that we can disable certain
92 * useful functionality, namely sending a CCP reset-request as a result
98 #define DECOMP_ERROR -1 /* error detected before decomp. */
99 #define DECOMP_FATALERROR -2 /* error detected after decomp. */
/openbmc/u-boot/include/
H A Dbootm.h1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * (C) Copyright 2000-2009
13 #define BOOTM_ERR_RESET (-1)
14 #define BOOTM_ERR_OVERLAP (-2)
15 #define BOOTM_ERR_UNIMPLEMENTED (-3)
19 * - copied image header to global variable `header'
20 * - checked header magic number, checksums (both header & image),
21 * - verified image architecture (PPC) and type (KERNEL or MULTI),
22 * - loaded (first part of) image to header load address,
23 * - disabled interrupts.
[all …]
/openbmc/linux/drivers/gpu/drm/mcde/
H A Dmcde_display.c1 // SPDX-License-Identifier: GPL-2.0
5 * (C) ST-Ericsson SA 2013
9 #include <linux/dma-buf.h>
11 #include <linux/media-bus-format.h>
80 mispp = readl(mcde->regs + MCDE_MISPP); in mcde_display_irq()
81 misovl = readl(mcde->regs + MCDE_MISOVL); in mcde_display_irq()
82 mischnl = readl(mcde->regs + MCDE_MISCHNL); in mcde_display_irq()
92 if (!mcde->dpi_output && mcde_dsi_irq(mcde->mdsi)) { in mcde_display_irq()
98 * the update function is called, then we disable the in mcde_display_irq()
101 if (mcde->flow_mode == MCDE_COMMAND_ONESHOT_FLOW) { in mcde_display_irq()
[all …]
/openbmc/linux/drivers/staging/greybus/
H A Daudio_codec.c1 // SPDX-License-Identifier: GPL-2.0
26 list_for_each_entry(data, &module->data_list, list) { in find_data()
27 if (id == data->id) in find_data()
38 list_for_each_entry(dai, &codec->dai_list, list) { in find_dai_stream_params()
39 if (dai->id == id) in find_dai_stream_params()
40 return &dai->params[stream]; in find_dai_stream_params()
58 dev_err(module->dev, "%d:DATA connection missing\n", id); in gbaudio_module_enable_tx()
59 return -ENODEV; in gbaudio_module_enable_tx()
61 module_state = data->state[SNDRV_PCM_STREAM_PLAYBACK]; in gbaudio_module_enable_tx()
65 dev_err(codec->dev, "Failed to fetch dai_stream pointer\n"); in gbaudio_module_enable_tx()
[all …]
/openbmc/linux/drivers/staging/media/atomisp/pci/runtime/isys/src/
H A Drx.c1 // SPDX-License-Identifier: GPL-2.0
4 * Copyright (c) 2010 - 2015, Intel Corporation.
252 return -EINVAL; in ia_css_isys_convert_stream_format_to_mipi_format()
260 * MW: For some reason the mapping is not 1-to-1 in ia_css_isys_convert_stream_format_to_mipi_format()
354 return -EINVAL; in ia_css_isys_convert_stream_format_to_mipi_format()
367 predictor = MIPI_PREDICTOR_TYPE1 - 1; in sh_css_csi2_compression_type_2_mipi_predictor()
370 predictor = MIPI_PREDICTOR_TYPE2 - 1; in sh_css_csi2_compression_type_2_mipi_predictor()
379 struct ia_css_csi2_compression *comp, in ia_css_isys_convert_compressed_format() argument
384 assert(comp); in ia_css_isys_convert_compressed_format()
387 if (comp->type != IA_CSS_CSI2_COMPRESSION_TYPE_NONE) { in ia_css_isys_convert_compressed_format()
[all …]
/openbmc/linux/include/uapi/linux/
H A Dppp-ioctl.h1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
3 * ppp-ioctl.h - PPP ioctl definitions.
5 * Copyright 1999-2002 Paul Mackerras.
24 #define SC_NO_TCP_CCID 0x00000008 /* disable VJ connection-id comp. */
25 #define SC_REJ_COMP_AC 0x00000010 /* reject adrs/ctrl comp. on input */
26 #define SC_REJ_COMP_TCP 0x00000020 /* reject TCP (VJ) comp. on input */
52 #define SC_DC_ERROR 0x00400000 /* non-fatal decomp error detected */
107 #define PPPIOCGIDLE32 _IOR('t', 63, struct ppp_idle32) /* 32-bit times */
108 #define PPPIOCGIDLE64 _IOR('t', 63, struct ppp_idle64) /* 64-bit times */
/openbmc/linux/drivers/scsi/bfa/
H A Dbfad.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (c) 2005-2014 Brocade Communications Systems, Inc.
4 * Copyright (c) 2014- QLogic Corporation.
8 * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter.
47 int bfa_linkup_delay = -1;
59 #define BFAD_FW_FILE_CB "cbfw-3.2.5.1.bin"
60 #define BFAD_FW_FILE_CT "ctfw-3.2.5.1.bin"
61 #define BFAD_FW_FILE_CT2 "ct2fw-3.2.5.1.bin"
126 MODULE_PARM_DESC(msix_disable_cb, "Disable Message Signaled Interrupts for QLogic-415/425/815/825 c…
128 MODULE_PARM_DESC(msix_disable_ct, "Disable Message Signaled Interrupts if possible for QLogic-1010/…
[all …]

123456789