Home
last modified time | relevance | path

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

1234567

/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 …]
/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
6 #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 */
515 .name = "WCD9335-IFC-DEV",
581 static const DECLARE_TLV_DB_SCALE(digital_gain, -8400, 100, -8400);
597 "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.
692 struct regmap *rm = wsa881x->regmap; 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
748 (struct soc_mixer_control *)kc->private_value; in wsa881x_put_pa_gain()
749 int max = mc->max; in wsa881x_put_pa_gain()
[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 …]
H A Des8316.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * es8316.c -- es8316 ALSA SoC audio driver
6 * Authors: David Yang <yangxiaohua@everest-semi.com>,
21 #include <sound/soc-dapm.h>
50 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1);
51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1);
52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0);
53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0);
56 0, 10, TLV_DB_SCALE_ITEM(-1650, 150, 0),
57 11, 11, TLV_DB_SCALE_ITEM(-150, 0, 0),
[all …]
/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 …]
/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 …]
/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"
39 return ctx->comp->mdp_dev->mdp_data->mdp_cfg; in __get_plat_cfg()
47 rdma0 = mdp_cfg_get_id_inner(ctx->comp->mdp_dev, MDP_COMP_RDMA0); in get_comp_flag()
48 rsz1 = mdp_cfg_get_id_inner(ctx->comp->mdp_dev, MDP_COMP_RSZ1); in get_comp_flag()
52 if (mdp_cfg && mdp_cfg->rdma_rsz1_sram_sharing) in get_comp_flag()
[all …]
/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>
115 { .compatible = "fsl,imx8mm-micfil", .data = &fsl_micfil_imx8mm },
116 { .compatible = "fsl,imx8mp-micfil", .data = &fsl_micfil_imx8mp },
117 { .compatible = "fsl,imx93-micfil", .data = &fsl_micfil_imx93 },
141 switch (micfil->quality) { in micfil_set_quality()
162 return regmap_update_bits(micfil->regmap, REG_MICFIL_CTRL2, in micfil_set_quality()
173 ucontrol->value.integer.value[0] = micfil->quality; in micfil_quality_get()
184 micfil->quality = ucontrol->value.integer.value[0]; in micfil_quality_set()
190 "Disable (Record only)",
[all …]
/linux/drivers/staging/media/atomisp/pci/
H A Datomisp_subdev.c1 // SPDX-License-Identifier: GPL-2.0
15 #include <media/v4l2-event.h>
16 #include <media/v4l2-mediabus.h>
17 #include <media/videobuf2-vmalloc.h>
79 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_subdev_is_compressed()
91 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_find_in_fmt_conv()
103 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_find_in_fmt_conv_by_atomisp_in_fmt()
114 sink = atomisp_subdev_get_ffmt(&asd->subdev, NULL, in atomisp_subdev_format_conversion()
116 src = atomisp_subdev_get_ffmt(&asd->subdev, NULL, in atomisp_subdev_format_conversion()
119 return atomisp_is_mbuscode_raw(sink->code) in atomisp_subdev_format_conversion()
[all …]
/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 …]
/linux/drivers/media/platform/qcom/camss/
H A Dcamss-vfe.h1 /* SPDX-License-Identifier: GPL-2.0 */
3 * camss-vfe.h
5 * Qualcomm MSM Camera Subsystem - VFE (Video Front End) Module
7 * Copyright (c) 2013-2015, The Linux Foundation. All rights reserved.
8 * Copyright (C) 2015-2018 Linaro Ltd.
15 #include <media/media-entity.h>
16 #include <media/v4l2-device.h>
17 #include <media/v4l2-subdev.h>
19 #include "camss-video.h"
20 #include "camss-vfe-gen1.h"
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_gsc_proxy.c1 // SPDX-License-Identifier: MIT
37 * 1 - Xe submits a request to GSC asking for the message to CSME
38 * 2 - GSC replies with the proxy header + payload for CSME
39 * 3 - Xe sends the reply from GSC as-is to CSME via the mei proxy component
40 * 4 - CSME replies with the proxy header + payload for GSC
41 * 5 - Xe submits a request to GSC with the reply from CSME
42 * 6 - GSC replies either with a new header + payload (same as step 2, so we
68 u32 fwsts1 = xe_mmio_read32(&gt->mmio, HECI_FWSTS1(MTL_GSC_HECI1_BASE)); in xe_gsc_proxy_init_done()
81 xe_mmio_rmw32(&gt->mmio, HECI_H_CSR(MTL_GSC_HECI2_BASE), clr, set); in __gsc_proxy_irq_rmw()
101 struct i915_gsc_proxy_component *comp = gsc->proxy.component; in proxy_send_to_csme() local
[all …]
/linux/drivers/net/ethernet/marvell/octeontx2/af/
H A Dptp.c1 // SPDX-License-Identifier: GPL-2.0
67 #define is_rev_A0(ptp) (((ptp)->pdev->revision & 0x0F) == 0x0)
68 #define is_rev_A1(ptp) (((ptp)->pdev->revision & 0x0F) == 0x1)
82 return ptp->pdev->subsystem_device == PCI_SUBSYS_DEVID_CNF10K_A_PTP; in is_ptp_dev_cnf10ka()
87 return ptp->pdev->subsystem_device == PCI_SUBSYS_DEVID_CN10K_A_PTP; in is_ptp_dev_cn10ka()
101 struct ptp *ptp = rvu->ptp; in is_tstmp_atomic_update_supported()
124 delta_ns = ktime_to_ns(ktime_sub(curr_ts, ptp->last_ts)); in ptp_reset_thresh()
130 ptp_clock_hi = readq(ptp->reg_base + PTP_CLOCK_HI); in ptp_reset_thresh()
132 period_ns = ktime_set(0, (NSEC_PER_SEC + 100 - ptp_clock_hi)); in ptp_reset_thresh()
134 writeq(500000000, ptp->reg_base + PTP_PPS_THRESH_HI); in ptp_reset_thresh()
[all …]
/linux/drivers/gpu/drm/mediatek/
H A Dmtk_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_crtc - MediaTek specific crtc structure.
97 struct drm_crtc *crtc = &mtk_crtc->base; in mtk_crtc_finish_page_flip()
100 if (mtk_crtc->event) { in mtk_crtc_finish_page_flip()
101 spin_lock_irqsave(&crtc->dev->event_lock, flags); in mtk_crtc_finish_page_flip()
102 drm_crtc_send_vblank_event(crtc, mtk_crtc->event); in mtk_crtc_finish_page_flip()
[all …]
/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 …]
/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. */
/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 …]
/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 */
/linux/sound/pci/hda/
H A Dcs35l56_hda.c1 // SPDX-License-Identifier: GPL-2.0-only
17 #include <sound/cs-amp-lib.h>
30 * ASP1_DOUT_HIZ_CONTROL = Hi-Z during unused timeslots
35 * Override any Windows-specific mixer settings applied by the firmware.
56 flush_work(&cs35l56->dsp_work); in cs35l56_hda_wait_dsp_ready()
66 pm_runtime_get_sync(cs35l56->bas in cs35l56_hda_play()
710 struct hda_component *comp; cs35l56_hda_bind() local
742 struct hda_component *comp; cs35l56_hda_unbind() local
[all...]
/linux/drivers/gpu/drm/i915/gt/uc/
H A Dintel_gsc_proxy.c1 // SPDX-License-Identifier: MIT
29 * 1 - i915 submits a request to GSC asking for the message to CSME
30 * 2 - GSC replies with the proxy header + payload for CSME
31 * 3 - i915 sends the reply from GSC as-is to CSME via the mei proxy component
32 * 4 - CSME replies with the proxy header + payload for GSC
33 * 5 - i915 submits a request to GSC with the reply from CSME
34 * 6 - GSC replies either with a new header + payload (same as step 2, so we
47 #define GSC_PROXY_MAX_MSG_SIZE (GSC_PROXY_BUFFER_SIZE - sizeof(struct intel_gsc_mtl_header))
49 /* FW-defined proxy header */
53 * Bits 0-7: type of the proxy message (see enum intel_gsc_proxy_type)
[all …]
/linux/sound/soc/atmel/
H A Dmchp-pdmc.c1 // SPDX-License-Identifier: GPL-2.0
5 // Copyright (C) 2019-2022 Microchip Technology Inc. and its subsidiaries
9 #include <dt-bindings/sound/microchip,pdmc.h>
24 * ---- PDMC Register map ----
31 #define MCHP_PDMC_IDR 0x18 /* Interrupt Disable Register */
37 * ---- Control Register (Write-only) ----
42 * ---- Mode Register (Read/Write) ----
66 * ---- Configuration Register (Read/Write) ----
75 * ---- Interrupt Enable/Disable/Mask/Status Registers ----
85 * ---- Version Register (Read-only) ----
[all …]

1234567