| /linux/drivers/md/dm-vdo/ |
| H A D | data-vio.c | 1 // SPDX-License-Identifier: GPL-2.0-only 6 #include "data-vio.h" 12 #include <linux/device-mapper.h> 24 #include "memory-alloc.h" 28 #include "block-map.h" 31 #include "int-map.h" 32 #include "io-submitter.h" 33 #include "logical-zone.h" 35 #include "recovery-journal.h" 36 #include "slab-depot.h" [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | max98373.c | 1 // SPDX-License-Identifier: GPL-2.0 23 struct snd_soc_component *component = snd_soc_dapm_to_component(w->dapm); in max98373_dac_event() 28 regmap_update_bits(max98373->regmap, in max98373_dac_event() 34 regmap_update_bits(max98373->regmap, in max98373_dac_event() 38 max98373->tdm_mode = false; in max98373_dac_event() 72 SND_SOC_DAPM_AIF_OUT("Current Sense", "HiFi Capture", 0, 85 static DECLARE_TLV_DB_SCALE(max98373_digital_tlv, -6350, 50, 1); 101 0, 1, TLV_DB_SCALE_ITEM(-300 [all...] |
| H A D | wm8940.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * wm8940.c -- WM8940 ALSA Soc Audio driver 14 * No means to obtain current gain if alc enabled. 155 static const char *wm8940_companding[] = { "Off", "NC", "u-law", "A-law" }; 161 static const char *wm8940_alc_mode_text[] = {"ALC", "Limiter"}; [all...] |
| H A D | cs42l52.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * cs42l52.c -- CS42L52 ALSA SoC audio driver 29 #include <sound/soc-dapm.h> 43 /* MICA mode selection Differential or Single-ended */ 46 /* MICB mode selection Differential or Single-ended */ 110 { CS42L52_LIMITER_AT_RATE, 0xC0 }, /* r29 Limiter Attac [all...] |
| H A D | tas2764.c | 1 // SPDX-License-Identifier: GPL-2.0 49 #include "tas2764-quirks.h" 53 "fault: over current", 55 "limiter active", 56 "fault: PVDD below limiter inflection point", 57 "fault: limiter max attenuation", 79 latched[i] = snd_soc_component_read(tas2764->component, in tas2764_irq() 84 dev_crit_ratelimited(tas2764->dev, "%s\n", in tas2764_irq() 91 dev_err_ratelimited(tas2764->dev, "other context to the fault: %02x,%02x,%02x,%02x,%02x", in tas2764_irq() 93 snd_soc_component_update_bits(tas2764->component, in tas2764_irq() [all …]
|
| H A D | ssm3515.c | 1 // SPDX-License-Identifier: GPL-2.0-only OR MIT 101 // The specced range is -71.25...24.00 dB with step size of 0.375 dB, 102 // and a mute item below that. This is represented by -71.62...24.00 dB 104 static DECLARE_TLV_DB_MINMAX_MUTE(ssm3515_dac_volume, -7162, 2400); 141 dev_err(component->dev, "device reports:%s%s%s%s%s%s%s\n", in ssm3515_read_faults() 143 FIELD_GET(SSM3515_STATUS_LIM_EG, ret) ? " limiter engaged" : "", in ssm3515_read_faults() 145 FIELD_GET(SSM3515_STATUS_AMP_OC, ret) ? " amp over-current fault" : "", in ssm3515_read_faults() 161 /* Disable the 'master power-down' */ in ssm3515_probe() 174 ret = snd_soc_component_update_bits(dai->component, in ssm3515_mute() 187 struct snd_soc_component *component = dai->component; in ssm3515_hw_params() [all …]
|
| H A D | max98926.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * max98926.c -- ALSA SoC MAX98926 driver 4 * Copyright 2013-15 Maxim Integrated Products 24 "Current", "Voltage", 79 { 0x3A, 0x00 }, /* Boost Limiter */ 159 {"PDM CH1 Source", "Current", "DAI_OUT"}, 161 {"PDM CH0 Source", "Current", "DAI_OUT"}, 205 static DECLARE_TLV_DB_SCALE(max98926_spk_tlv, -600, 100, 0); 222 (1<<MAX98926_SPK_GAIN_WIDTH)-1, 0, 232 (1<<MAX98926_ALC_TH_WIDTH)-1, 0), [all …]
|
| H A D | max98396.c | 1 // SPDX-License-Identifier: GPL-2.0 349 struct snd_soc_component *component = codec_dai->component; in max98396_dai_set_fmt() 360 dev_dbg(component->dev, "%s: fmt 0x%08X\n", __func__, fmt); in max98396_dai_set_fmt() 377 dev_err(component->dev, "DAI invert mode %d unsupported\n", in max98396_dai_set_fmt() 379 return -EINVAL; in max98396_dai_set_fmt() 397 dev_err(component->dev, "DAI format %d unsupported\n", in max98396_dai_set_fmt() 399 return -EINVAL; in max98396_dai_set_fmt() 402 ret = regmap_read(max98396->regma in max98396_dai_set_fmt() [all...] |
| H A D | nau8821.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 // nau8821.c -- Nuvoton NAU88L21 audio codec driver 7 // Co-author: Seven Lee <wtli@nuvoton.com> 33 static int quirk_override = -1; 35 MODULE_PARM_DESC(quirk, "Board-specific quirk override"); 286 struct soc_bytes_ext *params = (void *)kcontrol->private_value; in nau8821_biq_coeff_get() 288 if (!component->regmap) in nau8821_biq_coeff_get() 289 return -EINVAL; in nau8821_biq_coeff_get() 291 return regmap_raw_read(component->regmap, NAU8821_R21_BIQ0_COF1, in nau8821_biq_coeff_get() 292 ucontrol->value.bytes.data, params->max); in nau8821_biq_coeff_get() [all …]
|
| /linux/drivers/interconnect/qcom/ |
| H A D | icc-rpm.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 9 #include <linux/soc/qcom/smd-rpm.h> 11 #include <dt-bindings/interconnect/qcom,rpm-icc.h> 13 #include <linux/interconnect-provider.h> 29 * struct rpm_clk_resource - RPM bus clock resource 41 * struct qcom_icc_provider - Qualcomm specific interconnect provider 47 * @ab_coeff: a percentage-based coefficient for compensating the AB calculations 48 * @ib_coeff: an inverse-percentage-based coefficient for compensating the IB calculations 51 * @bus_clk: a pointer to a HLOS-owned bus clock 73 * struct qcom_icc_qos - Qualcomm specific interconnect QoS parameters [all …]
|
| /linux/sound/pci/emu10k1/ |
| H A D | p17v.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk> 8 /* Audigy2Value Tina (P17V) pointer-offset register set, */ 12 /* 00 - 07: Not used */ 13 #define P17V_PLAYBACK_FIFO_PTR 0x08 /* Current playback fifo pointer 16 /* 09 - 12: Not used */ 17 #define P17V_CAPTURE_FIFO_PTR 0x13 /* Current capture fifo pointer 20 /* 14 - 17: Not used */ 24 /* 1b - 1f: Not used */ 25 /* 20 - 2f: Not used */ [all …]
|
| /linux/include/linux/habanalabs/ |
| H A D | hl_boot_if.h | 1 /* SPDX-License-Identifier: GPL-2.0 3 * Copyright 2018-2023 HabanaLabs, Ltd. 11 #define LKD_HARD_RESET_MAGIC 0xED7BD694 /* deprecated - do not use */ 47 * will clear the non-relevant ones. 89 * started, but is not ready yet - chip 226 * Initialized in: u-boot 231 * Initialized in: u-boot 235 * Initialized in: u-boot 239 * Initialized in: u-boot 241 * CPU_BOOT_DEV_STS0_RL_EN Rate limiter initialized. [all …]
|
| /linux/arch/arm/boot/dts/marvell/ |
| H A D | armada-385-clearfog-gtr.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 5 * Rabeeh Khoury <rabeeh@solid-run.com>, based on Russell King clearfog work 9 SERDES mapping - 10 0. SATA1 on CON18, or optionally mini PCIe CON3 - PCIe0 12 2. SATA0 on CON17, or optionally mini PCIe CON4 - PCIe1 14 4. mini PCIe CON2 - PCIe2 17 USB 2.0 mapping - 18 0. USB 2.0 - 0 USB pins header CON12 19 1. USB 2.0 - 1 mini PCIe CON2 20 2. USB 2.0 - 2 to USB 3.0 connector (used with SERDES #3) [all …]
|
| /linux/drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/ |
| H A D | smu13_driver_if_v13_0_0.h | 503 uint8_t SnapToDiscrete; // 0 - Fine grained DPM, 1 - Discrete DPM 506 LinearInt_t ConversionToAvfsClk; // Transfer function to AVFS Clock (GHz->GHz) 966 …uint16_t VrTdcLimit[TDC_THROTTLER_COUNT]; // In Amperes. Current limit associated with… 968 …TLER_COUNT]; // In Amperes. Current limit associated with platform maximum temperature… 983 …t will be deducted from the controller output to before it goes through the SOC Vset limiter block. 1007 …uint16_t Vmin_Hot_T0[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) Initial (pre-aging) Vse… 1008 …uint16_t Vmin_Cold_T0[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) Initial (pre-aging) Vse… 1009 …uint16_t Vmin_Hot_Eol[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) End-of-life Vset to be … 1010 …uint16_t Vmin_Cold_Eol[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) End-of-life Vset to be … 1011 uint16_t Vmin_Aging_Offset[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) Worst-case aging margin [all …]
|
| H A D | smu13_driver_if_v13_0_7.h | 504 uint8_t SnapToDiscrete; // 0 - Fine grained DPM, 1 - Discrete DPM 507 LinearInt_t ConversionToAvfsClk; // Transfer function to AVFS Clock (GHz->GHz) 975 …uint16_t VrTdcLimit[TDC_THROTTLER_COUNT]; // In Amperes. Current limit associated with… 977 …TLER_COUNT]; // In Amperes. Current limit associated with platform maximum temperature… 992 …t will be deducted from the controller output to before it goes through the SOC Vset limiter block. 1016 …uint16_t Vmin_Hot_T0[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) Initial (pre-aging) Vse… 1017 …uint16_t Vmin_Cold_T0[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) Initial (pre-aging) Vse… 1018 …uint16_t Vmin_Hot_Eol[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) End-of-life Vset to be … 1019 …uint16_t Vmin_Cold_Eol[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) End-of-life Vset to be … 1020 uint16_t Vmin_Aging_Offset[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) Worst-case aging margin [all …]
|
| H A D | smu14_driver_if_v14_0.h | 517 uint8_t SnapToDiscrete; // 0 - Fine grained DPM, 1 - Discrete DPM 520 LinearInt_t ConversionToAvfsClk; // Transfer function to AVFS Clock (GHz->GHz) 1084 …t will be deducted from the controller output to before it goes through the SOC Vset limiter block. 1106 …uint16_t Vmin_Hot_T0[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) Initial (pre-aging) Vse… 1107 …uint16_t Vmin_Cold_T0[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) Initial (pre-aging) Vse… 1108 …uint16_t Vmin_Hot_Eol[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) End-of-life Vset to be … 1109 …uint16_t Vmin_Cold_Eol[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) End-of-life Vset to be … 1110 uint16_t Vmin_Aging_Offset[PMFW_VOLT_PLANE_COUNT]; //In mV(Q2) Worst-case aging margin 1116 …//Linear offset or GB term to account for mis-correlation between PSM and Vmin shift trends across… 1221 … FreqTableUclkDiv [NUM_UCLK_DPM_LEVELS]; // 0:Div-1, 1:Div-1/2, 2:Div-1/4, 3:Div-1/8 [all …]
|
| /linux/sound/pci/ca0106/ |
| H A D | ca0106.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) 2004 James Courtier-Dutton <James@superbug.demon.co.uk> 50 * Implement support for Line-in capture on SB Live 24bit. 73 #define IPR_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 74 #define IPR_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ 87 #define IPR_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */ 88 #define IPR_MIDI_TX_A 0x00000002 /* MIDI UART-A Transmit buffer empty */ 93 #define INTE_MIDI_RX_B 0x00020000 /* MIDI UART-B Receive buffer non-empty */ 94 #define INTE_MIDI_TX_B 0x00010000 /* MIDI UART-B Transmit buffer empty */ 107 #define INTE_MIDI_RX_A 0x00000004 /* MIDI UART-A Receive buffer non-empty */ [all …]
|
| /linux/drivers/media/radio/si4713/ |
| H A D | si4713.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * drivers/media/radio/si4713-i2c.c 19 #include <media/v4l2-device.h> 20 #include <media/v4l2-ioctl.h> 21 #include <media/v4l2-common.h> 28 MODULE_PARM_DESC(debug, "Debug level (0 - 2)"); 46 #define DEFAULT_ACOMP_THRESHOLD (-0x28) 105 * Values for limiter release time (sorted by second column) 160 int rval = -EINVAL; in usecs_to_dev() 176 v4l2_dbg(2, debug, &sdev->sd, in si4713_handler() [all …]
|
| /linux/include/linux/ |
| H A D | mmzone.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 19 #include <linux/pageblock-flags.h> 20 #include <linux/page-flags-layout.h> 23 #include <linux/page-flags.h> 28 /* Free memory management - zoned buddy allocator. */ 99 * __dump_folio() in mm/debug.c passes a folio pointer to on-stack struct folio, 103 (get_pfnblock_migratetype(&folio->page, pfn) == MIGRATE_CMA) 136 get_pageblock_migratetype(&folio->page) 220 NR_KERNEL_MISC_RECLAIMABLE, /* reclaimable non-slab kernel pages */ 244 * Not rate-limited (NRL) candidate pages for those can be promoted [all …]
|
| /linux/drivers/vfio/pci/virtio/ |
| H A D | migrate.c | 1 // SPDX-License-Identifier: GPL-2.0-only 24 (((struct virtio_admin_cmd_dev_parts_metadata_result *)0)->parts_size.size)) - 1) 42 if (offset < buf->last_offset || !buf->last_offset_sg) { in virtiovf_get_migration_page() 43 buf->last_offset = 0; in virtiovf_get_migration_page() 44 buf->last_offset_sg = buf->table.sgt.sgl; in virtiovf_get_migration_page() 45 buf->sg_last_entry = 0; in virtiovf_get_migration_page() 48 cur_offset = buf->last_offset; in virtiovf_get_migration_page() 50 for_each_sg(buf->last_offset_sg, sg, in virtiovf_get_migration_page() 51 buf->table.sgt.orig_nents - buf->sg_last_entry, i) { in virtiovf_get_migration_page() 52 if (offset < sg->length + cur_offset) { in virtiovf_get_migration_page() [all …]
|
| /linux/sound/usb/ |
| H A D | mixer.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 17 * - support for UAC2 effect units 18 * - support for graphical equalizers 19 * - RANGE and MEM set commands (UAC2) 20 * - RANGE and MEM interrupt dispatchers (UAC2) 21 * - audio channel clustering (UAC2) 22 * - audio sample rate converter units (UAC2) 23 * - proper handling of clock multipliers (UAC2) 24 * - dispatch clock change notifications (UAC2) 25 * - stop PCM streams which use a clock that became invalid [all …]
|
| /linux/drivers/net/ethernet/broadcom/bnx2x/ |
| H A D | bnx2x_reg.h | 3 * Copyright (c) 2007-2013 Broadcom Corporation 13 * R - Read only 14 * RC - Clear on read 15 * RW - Read/Write 16 * ST - Statistics register (clear on read) 17 * W - Write only 18 * WB - Wide bus register - the size is over 32 bits and it should be 20 * WR - Write Clear (write 1 to clear the bit) 32 /* [RW 1] Initiate the ATC array - reset all the valid bits */ 56 * BRB1_IND_FREE_LIST_PRS_CRDT+2 initialize parser initial credit. Warning - [all …]
|
| /linux/drivers/net/ethernet/qlogic/qed/ |
| H A D | qed_dev.c | 1 // SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) 3 * Copyright (c) 2015-2017 QLogic Corporation 4 * Copyright (c) 2019-2020 Marvell International Ltd. 11 #include <linux/dma-mapping.h> 72 db_entry->db_addr, in qed_db_recovery_dp_entry() 73 db_entry->db_data, in qed_db_recovery_dp_entry() 74 db_entry->db_width == DB_REC_WIDTH_32B ? "32b" : "64b", in qed_db_recovery_dp_entry() 75 db_entry->db_space == DB_REC_USER ? "user" : "kernel", in qed_db_recovery_dp_entry() 76 db_entry->hwfn_idx); in qed_db_recovery_dp_entry() 88 if (db_addr < cdev->doorbells || in qed_db_rec_sanity() [all …]
|