Home
last modified time | relevance | path

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

12345678910>>...15

/kernel/linux/linux-5.10/drivers/clk/actions/
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 …]
/kernel/linux/linux-6.6/drivers/clk/actions/
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 …]
/kernel/linux/linux-6.6/sound/soc/codecs/
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 …]
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 …]
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 …]
/kernel/linux/linux-5.10/sound/soc/codecs/
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 */
109 struct snd_soc_component *comp = ctrl->comp; in wcd_enable_clsh_block() local
111 if ((enable && ++ctrl->clsh_users == 1) || in wcd_enable_clsh_block()
112 (!enable && --ctrl->clsh_users == 0)) in wcd_enable_clsh_block()
113 snd_soc_component_update_bits(comp, WCD9XXX_A_CDC_CLSH_CRC, in wcd_enable_clsh_block()
[all …]
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"
416 COMPANDER_5, /* LO3_SE - not used in Tavil */
417 COMPANDER_6, /* LO4_SE - not used in Tavil */
497 .name = "WCD9335-IFC-DEV",
554 static const DECLARE_TLV_DB_SCALE(digital_gain, -8400, 100, -8400);
570 "Class H Invalid", "Class-H Hi-Fi", "Class-H Low Power", "Class-AB",
571 "Class-H Hi-Fi Low Power"
[all …]
Dwsa881x.c1 // SPDX-License-Identifier: GPL-2.0
2 // Copyright (c) 2015-2017, The Linux Foundation.
399 /* COMP */
687 struct regmap *rm = wsa881x->regmap; in wsa881x_init()
690 regmap_read(rm, WSA881X_CHIP_ID1, &wsa881x->version); in wsa881x_init()
691 regmap_register_patch(wsa881x->regmap, wsa881x_rev_2_0, in wsa881x_init()
730 static int wsa881x_component_probe(struct snd_soc_component *comp) in wsa881x_component_probe() argument
732 struct wsa881x_priv *wsa881x = snd_soc_component_get_drvdata(comp); in wsa881x_component_probe()
734 snd_soc_component_init_regmap(comp, wsa881x->regmap); in wsa881x_component_probe()
742 struct snd_soc_component *comp = snd_soc_kcontrol_component(kc); in wsa881x_put_pa_gain() local
[all …]
/kernel/linux/linux-6.6/drivers/media/platform/mediatek/mdp3/
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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/omapdrm/dss/
Dbase.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright (C) 2015-2017 Texas Instruments Incorporated - http://www.ti.com/
35 return dss->dispc; in dispc_get_dispc()
41 return dss->dispc_ops; in dispc_get_ops()
46 /* -----------------------------------------------------------------------------
56 list_add_tail(&dssdev->list, &omapdss_devices_list); in omapdss_device_register()
64 list_del(&dssdev->list); in omapdss_device_unregister()
77 if (dssdev->dev->of_node == node) { in omapdss_device_is_registered()
89 if (!try_module_get(dssdev->owner)) in omapdss_device_get()
92 if (get_device(dssdev->dev) == NULL) { in omapdss_device_get()
[all …]
/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/
Dintel_hdcp.c1 /* SPDX-License-Identifier: MIT */
4 * Copyright _ 2017-2019, Intel Corporation.
46 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_hdcp_read_valid_bksv()
51 ret = shim->read_bksv(dig_port, bksv); in intel_hdcp_read_valid_bksv()
58 drm_dbg_kms(&i915->drm, "Bksv is invalid\n"); in intel_hdcp_read_valid_bksv()
59 return -ENODEV; in intel_hdcp_read_valid_bksv()
69 const struct intel_hdcp_shim *shim = connector->hdcp.shim; in intel_hdcp_capable()
76 if (shim->hdcp_capable) { in intel_hdcp_capable()
77 shim->hdcp_capable(dig_port, &capable); in intel_hdcp_capable()
90 struct drm_i915_private *dev_priv = to_i915(connector->base.dev); in intel_hdcp2_capable()
[all …]
/kernel/linux/linux-6.6/drivers/vfio/pci/pds/
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 …]
/kernel/linux/linux-5.10/drivers/gpu/drm/mediatek/
Dmtk_disp_rdma.c1 // SPDX-License-Identifier: GPL-2.0-only
12 #include <linux/soc/mediatek/mtk-cmdq.h>
48 #define RDMA_FIFO_SIZE(rdma) ((rdma)->data->fifo_size)
58 * struct mtk_disp_rdma - DISP_RDMA driver structure
59 * @ddp_comp - structure containing type enum and hardware resources
60 * @crtc - associated crtc to report irq events to
68 static inline struct mtk_disp_rdma *comp_to_rdma(struct mtk_ddp_comp *comp) in comp_to_rdma() argument
70 return container_of(comp, struct mtk_disp_rdma, ddp_comp); in comp_to_rdma()
76 struct mtk_ddp_comp *rdma = &priv->ddp_comp; in mtk_disp_rdma_irq_handler()
79 writel(0x0, rdma->regs + DISP_REG_RDMA_INT_STATUS); in mtk_disp_rdma_irq_handler()
[all …]
/kernel/linux/linux-6.6/drivers/clk/ti/
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 …]
/kernel/linux/linux-5.10/drivers/clk/ti/
Dcomposite.c6 * Tero Kristo <t-kristo@ti.com>
18 #include <linux/clk-provider.h>
40 return -EINVAL; in ti_composite_round_rate()
46 return -EINVAL; in ti_composite_set_rate()
57 .disable = &omap2_dflt_clk_disable,
81 rc = of_parse_phandle_with_args(node, "clocks", "#clock-cells", i, in _get_component_node()
91 struct component_clk *comp; in _lookup_component() local
93 list_for_each_entry(comp, &component_clks, link) { in _lookup_component()
94 if (comp->node == node) in _lookup_component()
95 return comp; in _lookup_component()
[all …]
/kernel/linux/linux-6.6/sound/soc/fsl/
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()
160 return -EINVAL; in micfil_set_quality()
163 return regmap_update_bits(micfil->regmap, REG_MICFIL_CTRL2, in micfil_set_quality()
174 ucontrol->value.integer.value[0] = micfil->quality; in micfil_quality_get()
185 micfil->quality = ucontrol->value.integer.value[0]; in micfil_quality_set()
[all …]
/kernel/linux/linux-6.6/drivers/staging/media/atomisp/pci/
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 …]
/kernel/linux/linux-6.6/drivers/gpu/drm/mediatek/
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 …]
/kernel/linux/linux-6.6/drivers/regulator/
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 …]
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 …]
/kernel/linux/linux-5.10/drivers/regulator/
Dtwl6030-regulator.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Split TWL6030 logic from twl-regulator.c:
94 &value, info->base + offset); in twlreg_read()
103 value, info->base + offset); in twlreg_write()
114 * Enable/disable regulators by joining/leaving the P1 (processor) group.
127 if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) { in twl6030reg_is_enabled()
153 if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) in twl6030reg_enable()
170 if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) in twl6030reg_disable()
192 if (info->features & TWL6032_SUBCLASS) in twl6030reg_get_status()
219 if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) in twl6030reg_set_mode()
[all …]
Dtwl-regulator.c1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * twl-regulator.c -- support regulators in twl4030/twl6030 family chips
26 * These chips are often used in OMAP-based systems.
28 * This driver implements software-based resource control for various
40 /* voltage in mV = table[VSEL]; table_len must be a power-of-two */
82 &value, info->base + offset); in twlreg_read()
91 value, info->base + offset); in twlreg_write()
94 /*----------------------------------------------------------------------*/
105 * Enable/disable regulators by joining/leaving the P1 (processor) group.
148 timeout--; in twl4030_wait_pb_ready()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/
Dptp.c1 // SPDX-License-Identifier: GPL-2.0
45 /* To get the input clock frequency with which PTP co-processor in get_clock_rate()
84 return ERR_PTR(-ENODEV); in ptp_get()
88 ptp = ERR_PTR(-EPROBE_DEFER); in ptp_get()
100 pci_dev_put(ptp->pdev); in ptp_put()
106 u64 comp; in ptp_adjfine() local
112 scaled_ppm = -scaled_ppm; in ptp_adjfine()
118 * convention compensation value is in 64 bit fixed-point in ptp_adjfine()
125 * comp = tbase + tbase * scaled_ppm / (1M * 2^16) in ptp_adjfine()
129 comp = ((u64)1000000000ull << 32) / ptp->clock_rate; in ptp_adjfine()
[all …]
/kernel/linux/linux-6.6/drivers/net/ethernet/cavium/common/
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 …]
/kernel/linux/linux-5.10/drivers/net/ethernet/cavium/common/
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 …]

12345678910>>...15