/linux-6.12.1/drivers/clk/actions/ |
D | owl-composite.c | 1 // 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-6.12.1/sound/soc/codecs/ |
D | wcd-clsh-v2.c | 1 // 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 …]
|
D | wcd934x.c | 1 // 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 …]
|
D | wsa881x.c | 1 // 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 …]
|
D | rt9120.c | 1 // 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 …]
|
D | max98090.c | 1 // 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 …]
|
/linux-6.12.1/drivers/vfio/pci/pds/ |
D | cmds.c | 1 // 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-6.12.1/drivers/clk/ti/ |
D | composite.c | 1 // 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-6.12.1/drivers/media/platform/mediatek/mdp3/ |
D | mtk-mdp3-comp.c | 1 // 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-6.12.1/sound/soc/fsl/ |
D | fsl_micfil.c | 1 // 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 …]
|
/linux-6.12.1/drivers/regulator/ |
D | twl6030-regulator.c | 1 // 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 …]
|
D | twl-regulator.c | 1 // 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-6.12.1/drivers/staging/media/atomisp/pci/ |
D | atomisp_subdev.c | 1 // SPDX-License-Identifier: GPL-2.0 26 #include <media/v4l2-event.h> 27 #include <media/v4l2-mediabus.h> 28 #include <media/videobuf2-vmalloc.h> 90 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_subdev_is_compressed() 102 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_find_in_fmt_conv() 114 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_find_in_fmt_conv_by_atomisp_in_fmt() 125 sink = atomisp_subdev_get_ffmt(&asd->subdev, NULL, in atomisp_subdev_format_conversion() 127 src = atomisp_subdev_get_ffmt(&asd->subdev, NULL, in atomisp_subdev_format_conversion() 130 return atomisp_is_mbuscode_raw(sink->code) in atomisp_subdev_format_conversion() [all …]
|
/linux-6.12.1/drivers/net/ethernet/cavium/common/ |
D | cavium_ptp.c | 1 // 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 …]
|
/linux-6.12.1/drivers/media/platform/qcom/camss/ |
D | camss-vfe.h | 1 /* 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-6.12.1/drivers/scsi/bfa/ |
D | bfa_svc.h | 1 /* 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. 19 * Scatter-gather DMA related defines 27 #define BFA_SGPG_ROUNDUP(_l) (((_l) + (sizeof(struct bfi_sgpg_s) - 1)) \ 28 & ~(sizeof(struct bfi_sgpg_s) - 1)) 64 #define BFA_SGPG_MOD(__bfa) (&(__bfa)->modules.sgpg_mod) 65 #define BFA_MEM_SGPG_KVA(__bfa) (&(BFA_SGPG_MOD(__bfa)->kva_seg)) 106 #define BFA_FCXP_MOD(__bfa) (&(__bfa)->modules.fcxp_mod) [all …]
|
D | bfad.c | 1 // 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 …]
|
D | bfad_attr.c | 1 // 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. 28 u32 fc_id = -1; in bfad_im_get_starget_port_id() 31 shost = dev_to_shost(starget->dev.parent); in bfad_im_get_starget_port_id() 32 im_port = (struct bfad_im_port_s *) shost->hostdata[0]; in bfad_im_get_starget_port_id() 33 bfad = im_port->bfad; in bfad_im_get_starget_port_id() 34 spin_lock_irqsave(&bfad->bfad_lock, flags); in bfad_im_get_starget_port_id() 36 itnim = bfad_get_itnim(im_port, starget->id); in bfad_im_get_starget_port_id() [all …]
|
/linux-6.12.1/drivers/net/ethernet/marvell/octeontx2/af/ |
D | ptp.c | 1 // 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-6.12.1/drivers/gpu/drm/xe/ |
D | xe_gsc_proxy.c | 1 // 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 101 struct i915_gsc_proxy_component *comp = gsc->proxy.component; in proxy_send_to_csme() local 104 ret = comp->ops->send(comp->mei_dev, gsc->proxy.to_csme, size); in proxy_send_to_csme() 110 ret = comp->ops->recv(comp->mei_dev, gsc->proxy.from_csme, GSC_PROXY_BUFFER_SIZE); in proxy_send_to_csme() [all …]
|
/linux-6.12.1/drivers/gpu/drm/mediatek/ |
D | mtk_crtc.c | 1 // 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-6.12.1/include/linux/ |
D | ppp-comp.h | 1 /* 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-6.12.1/drivers/gpu/drm/mcde/ |
D | mcde_display.c | 1 // 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-6.12.1/drivers/staging/greybus/ |
D | audio_codec.c | 1 // 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-6.12.1/include/uapi/linux/ |
D | ppp-ioctl.h | 1 /* 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 */
|