| /Linux-v5.15/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-v5.15/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 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 …]
|
| D | wsa881x.c | 1 // SPDX-License-Identifier: GPL-2.0 2 // Copyright (c) 2015-2017, The Linux Foundation. 399 /* COMP */ 688 struct regmap *rm = wsa881x->regmap; in wsa881x_init() 691 regmap_read(rm, WSA881X_CHIP_ID1, &wsa881x->version); in wsa881x_init() 692 regmap_register_patch(wsa881x->regmap, wsa881x_rev_2_0, in wsa881x_init() 731 static int wsa881x_component_probe(struct snd_soc_component *comp) in wsa881x_component_probe() argument 733 struct wsa881x_priv *wsa881x = snd_soc_component_get_drvdata(comp); in wsa881x_component_probe() 735 snd_soc_component_init_regmap(comp, wsa881x->regmap); in wsa881x_component_probe() 743 struct snd_soc_component *comp = snd_soc_kcontrol_component(kc); in wsa881x_put_pa_gain() local [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 280 /* Reset the codec by writing to this write-only reset register */ in max98090_reset() 281 ret = regmap_write(max98090->regmap, M98090_REG_SOFTWARE_RESET, in max98090_reset() 284 dev_err(max98090->component->dev, in max98090_reset() 301 -600, 600, 0); 304 0, 3, TLV_DB_SCALE_ITEM(-600, 300, 0), 309 static const DECLARE_TLV_DB_SCALE(max98090_av_tlv, -1200, 100, 0); 312 static const DECLARE_TLV_DB_SCALE(max98090_dv_tlv, -1500, 100, 0); [all …]
|
| D | wcd9335.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 18 #include <sound/soc-dapm.h> 25 #include "wcd-clsh-v2.h" 96 #define WCD9335_CALCULATE_VOUT_D(req_mv) (((req_mv - 650) * 10) / 25) 418 {24000, -EINVAL},/* 24K */ 560 "Class H Invalid", "Class-H Hi-Fi", "Class-H Low Power", "Class-AB", 561 "Class-H Hi-Fi Low Power" 621 static const DECLARE_TLV_DB_SCALE(digital_gain, -8400, 100, -8400); [all …]
|
| D | es8316.c | 1 // 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> 51 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(dac_vol_tlv, -9600, 50, 1); 52 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(adc_vol_tlv, -9600, 50, 1); 53 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_max_gain_tlv, -650, 150, 0); 54 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_min_gain_tlv, -1200, 150, 0); 55 static const SNDRV_CTL_TLVD_DECLARE_DB_SCALE(alc_target_tlv, -1650, 150, 0); 57 0, 4, TLV_DB_SCALE_ITEM(-1200, 150, 0), [all …]
|
| /Linux-v5.15/drivers/gpu/drm/i915/display/ |
| D | intel_hdcp.c | 1 /* SPDX-License-Identifier: MIT */ 4 * Copyright _ 2017-2019, Intel Corporation. 33 return connector->port ? connector->port->vcpi.vcpi : 0; in intel_conn_to_vcpi() 39 const struct intel_hdcp_shim *shim = connector->hdcp.shim; in intel_streams_type1_capable() 45 if (shim->streams_type1_capable) in intel_streams_type1_capable() 46 shim->streams_type1_capable(connector, &capable); in intel_streams_type1_capable() 67 struct drm_i915_private *i915 = to_i915(dig_port->base.base.dev); in intel_hdcp_required_content_stream() 68 struct hdcp_port_data *data = &dig_port->hdcp_port_data; in intel_hdcp_required_content_stream() 72 data->k = 0; in intel_hdcp_required_content_stream() 74 if (dig_port->hdcp_auth_status) in intel_hdcp_required_content_stream() [all …]
|
| /Linux-v5.15/drivers/clk/ti/ |
| D | composite.c | 6 * 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 …]
|
| /Linux-v5.15/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() 151 if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) in twl6030reg_enable() 168 if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) in twl6030reg_disable() 212 if (!(twl_class_is_6030() && (info->features & TWL6032_SUBCLASS))) in twl6030reg_set_mode() 230 return -EINVAL; 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 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 …]
|
| /Linux-v5.15/drivers/net/ethernet/marvell/octeontx2/af/ |
| D | ptp.c | 1 // SPDX-License-Identifier: GPL-2.0 51 /* To get the input clock frequency with which PTP co-processor in get_clock_rate() 84 return ERR_PTR(-ENODEV); in ptp_get() 87 ptp = ERR_PTR(-EPROBE_DEFER); in ptp_get() 97 pci_dev_put(ptp->pdev); in ptp_put() 103 u64 comp; in ptp_adjfine() local 109 scaled_ppm = -scaled_ppm; in ptp_adjfine() 115 * convention compensation value is in 64 bit fixed-point in ptp_adjfine() 122 * comp = tbase + tbase * scaled_ppm / (1M * 2^16) in ptp_adjfine() 126 comp = ((u64)1000000000ull << 32) / ptp->clock_rate; in ptp_adjfine() [all …]
|
| /Linux-v5.15/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-v5.15/include/media/davinci/ |
| D | isif.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (C) 2008-2009 Texas Instruments Inc 62 * Defect level subtraction. Horizontal interpolation ((i-2)+(i+2))/2 66 /* Horizontal interpolation (((i-2)+(i+2))/2) */ 70 /* 0 - whole line corrected, 1 - not pixels upper than the defect */ 109 * 0 - limit disabled 110 * 1 - pixel value limited to 1023 119 /* Window count per color for calculation. range 1-32 */ 121 /* Window start position - horizontal for calculation. 0 - 8191 */ 123 /* Window start position - vertical for calculation 0 - 8191 */ [all …]
|
| /Linux-v5.15/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> 87 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_subdev_is_compressed() 99 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_find_in_fmt_conv() 111 for (i = 0; i < ARRAY_SIZE(atomisp_in_fmt_conv) - 1; i++) in atomisp_find_in_fmt_conv_by_atomisp_in_fmt() 123 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() 130 && !atomisp_is_mbuscode_raw(src->code); in atomisp_subdev_format_conversion() [all …]
|
| /Linux-v5.15/drivers/scsi/bfa/ |
| 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-v5.15/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-v5.15/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-v5.15/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> 79 mispp = readl(mcde->regs + MCDE_MISPP); in mcde_display_irq() 80 misovl = readl(mcde->regs + MCDE_MISOVL); in mcde_display_irq() 81 mischnl = readl(mcde->regs + MCDE_MISCHNL); in mcde_display_irq() 91 if (!mcde->dpi_output && mcde_dsi_irq(mcde->mdsi)) { in mcde_display_irq() 97 * the update function is called, then we disable the in mcde_display_irq() 100 if (mcde->flow_mode == MCDE_COMMAND_ONESHOT_FLOW) { in mcde_display_irq() [all …]
|
| /Linux-v5.15/drivers/staging/media/atomisp/pci/runtime/isys/src/ |
| D | rx.c | 1 // 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 …]
|
| /Linux-v5.15/drivers/mtd/nand/raw/ |
| D | tmio_nand.c | 4 * Slightly murky pre-git history of the driver: 37 #include <linux/mtd/nand-ecc-sw-hamming.h> 42 /*--------------------------------------------------------------------------*/ 73 #define FCR_MODE_HWECC_CALC 0xB4 /* HW-ECC Data */ 74 #define FCR_MODE_HWECC_RESULT 0xD4 /* HW-ECC Calc result Read_Mode */ 75 #define FCR_MODE_HWECC_RESET 0xF4 /* HW-ECC Reset */ 103 /*--------------------------------------------------------------------------*/ 108 struct completion comp; member 129 /*--------------------------------------------------------------------------*/ 155 tmio_iowrite8(mode, tmio->fcr + FCR_MODE); in tmio_nand_hwcontrol() [all …]
|
| /Linux-v5.15/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 */
|
| /Linux-v5.15/drivers/gpu/drm/hisilicon/kirin/ |
| D | kirin_drm_ade.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 * Copyright (c) 2014-2016 HiSilicon Limited. 118 void __iomem *base = ctx->base; in ade_init() 145 struct ade_hw_ctx *ctx = kcrtc->hw_ctx; in ade_crtc_mode_fixup() 147 adjusted_mode->clock = in ade_crtc_mode_fixup() 148 clk_round_rate(ctx->ade_pix_clk, mode->clock * 1000) / 1000; in ade_crtc_mode_fixup() 157 u32 clk_Hz = mode->clock * 1000; in ade_set_pix_clk() 164 ret = clk_set_rate(ctx->ade_pix_clk, clk_Hz); in ade_set_pix_clk() 167 adj_mode->clock = clk_get_rate(ctx->ade_pix_clk) / 1000; in ade_set_pix_clk() 174 void __iomem *base = ctx->base; in ade_ldi_set_mode() [all …]
|
| /Linux-v5.15/sound/soc/ |
| D | soc-topology.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 // soc-topology.c -- ALSA SoC Topology 29 #include <sound/soc-dapm.h> 30 #include <sound/soc-topology.h> 65 struct snd_soc_component *comp; member 87 const u8 *end = tplg->pos + elem_size * count; in soc_tplg_check_elem_count() 89 if (end > tplg->fw->data + tplg->fw->size) { in soc_tplg_check_elem_count() 90 dev_err(tplg->dev, "ASoC: %s overflow end of data\n", in soc_tplg_check_elem_count() 92 return -EINVAL; in soc_tplg_check_elem_count() 98 dev_err(tplg->dev, in soc_tplg_check_elem_count() [all …]
|