| /linux/Documentation/devicetree/bindings/iio/adc/ |
| H A D | atmel,sama5d2-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/atmel,sama5d2-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Eugen Hristev <eugen.hristev@microchip.com> 15 - atmel,sama5d2-adc 16 - microchip,sam9x60-adc 17 - microchip,sama7g5-adc 28 clock-names: 31 vref-supply: true [all …]
|
| H A D | st,stm32-adc.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/iio/adc/st,stm32-adc.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 STM32 ADC is a successive approximation analog-to-digital converter. 13 stored in a left-aligned or right-aligned 32-bit data register. 17 voltage goes beyond the user-defined, higher or lower thresholds. 22 - Fabrice Gasnier <fabrice.gasnier@foss.st.com> 27 - st,stm32f4-adc-core 28 - st,stm32h7-adc-core [all …]
|
| /linux/include/sound/sof/ |
| H A D | dai-intel.h | 1 /* SPDX-License-Identifier: (GPL-2.0-only OR BSD-3-Clause) */ 58 /* DMIC max. four controllers for eight microphone channels */ 61 /* SSP Configuration Request - SOF_IPC_DAI_SSP_CONFIG */ 67 uint32_t mclk_rate; /* mclk frequency in Hz */ 68 uint32_t fsync_rate; /* fsync frequency in Hz */ 69 uint32_t bclk_rate; /* bclk frequency in Hz */ 93 /* HDA Configuration Request - SOF_IPC_DAI_HDA_CONFIG */ 97 uint32_t rate; member 101 /* ALH Configuration Request - SOF_IPC_DAI_ALH_CONFIG */ 105 uint32_t rate; member [all …]
|
| /linux/tools/perf/util/ |
| H A D | record.c | 1 // SPDX-License-Identifier: GPL-2.0 6 #include "parse-events.h" 11 #include <subcmd/parse-options.h> 16 #include "../perf-sys.h" 19 #include "mem-events.h" 23 * However, if the leader is an AUX area event, then assume the event to sample 44 struct list_head *config_terms = &evsel->config_terms; in evsel__config_term_mask() 48 term_types |= 1 << term->typ in evsel__config_term_mask() 145 get_max_rate(unsigned int * rate) get_max_rate() argument [all...] |
| /linux/net/ipv4/ |
| H A D | tcp_nv.c | 1 // SPDX-License-Identifier: GPL-2.0-only 5 * TCP-NV is a successor of TCP-Vegas that has been developed to 7 * Like TCP-Vegas, TCP-NV supports true congestion avoidance, 9 * When congestion (queue buildup) starts to occur, TCP-NV 22 * seen issues with rx-frames values greater than 8. 35 * nv_pad Max number of queued packets allowed in network 46 * slow-start due to congestion 47 * nv_stop_rtt_cnt Only grow cwnd for this many RTTs after non-congestion 51 * How quickly to double growth rate (not rate) of cwnd when not 53 * rate < 1 pkt/RTT (after losses). The other (nv_cwnd_growth_rate_pos) [all …]
|
| H A D | tcp_bbr.c | 3 * BBR congestion control computes the sending rate based on the delivery 4 * rate (throughput) estimated from ACKs. In a nutshell: 10 * cwnd = max(cwnd_gain * bottleneck_bandwidth * min_rtt, 4) 14 * observed, or adjust the sending rate if it estimates there is a 15 * traffic policer, in order to keep the drop rate reasonable. 21 * +---> STARTUP ----+ 24 * | DRAIN ----+ 27 * +---> PROBE_BW ----+ 30 * | +----+ | 32 * +---- PROBE_RTT <--+ [all …]
|
| /linux/tools/testing/selftests/bpf/progs/ |
| H A D | bpf_cubic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 13 * "while (ca->ack_cnt > delta)" loop is changed to the equivalent 14 * "ca->ack_cnt / delta" operation. 22 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi) 24 #define max(a, b) ((a) > (b) ? (a) : (b)) macro 27 return (__s32)(seq1-seq2) < 0; in before() 37 #define BICTCP_HZ 10 /* BIC HZ 2^10 = 1024 */ 62 / (BICTCP_BETA_SCALE - beta); 63 /* calculate the "K" for (wmax-cwnd) = c/rtt * K^3 64 * so K = cubic_root( (wmax-cwnd)*rtt/c ) [all …]
|
| /linux/drivers/input/touchscreen/ |
| H A D | lpc32xx_ts.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * LPC32xx built-in touchscreen driver 43 #define LPC32XX_TSC_ADCCON_X_SAMPLE_SIZE(s) ((10 - (s)) << 7) 44 #define LPC32XX_TSC_ADCCON_Y_SAMPLE_SIZE(s) ((10 - (s)) << 4) 57 #define MOD_NAME "ts-lpc32xx" 60 __raw_readl((dev)->tsc_base + (reg)) 62 __raw_writel((val), (dev)->tsc_base + (reg)) 83 struct input_dev *input = tsc->dev; in lpc32xx_ts_interrupt() 88 /* FIFO overflow - throw away samples */ in lpc32xx_ts_interrupt() 94 * Gather and normalize 4 samples. Pen-up events may have less in lpc32xx_ts_interrupt() [all …]
|
| /linux/include/sound/ |
| H A D | pcm.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 8 * Abramo Bagnara <abramo@alsa-project.org> 21 #define snd_pcm_substream_chip(substream) ((substream)->private_data) 22 #define snd_pcm_chip(pcm) ((pcm)->private_data) 37 unsigned int rate_min; /* min rate */ 38 unsigned int rate_max; /* max rate */ 40 unsigned int channels_max; /* max channels */ 41 size_t buffer_bytes_max; /* max buffer size */ 43 size_t period_bytes_max; /* max period size */ 45 unsigned int periods_max; /* max # of periods */ [all …]
|
| H A D | emu10k1.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 16 #include <sound/pcm-indirect.h> 25 /* ---- 1568 int max; /* maximum range */ global() member [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> 40 * Implement 192000 sample rate. 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 */ 85 #define IPR_TIMER2 0x00000010 /* 192000Hz Timer */ 86 #define IPR_TIMER1 0x00000008 /* 44100Hz Timer */ 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 */ [all …]
|
| /linux/sound/soc/codecs/ |
| H A D | sta32x.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Codec driver for ST STA32x 2.1-channel high-efficiency digital audio system 34 #include <sound/soc-dapm.h> 54 /* Power-up register defaults */ 132 "Vcc" /* power amp spply, 10V - 36V */ 153 static const DECLARE_TLV_DB_SCALE(mvol_tlv, -12700, 50, 1); 154 static const DECLARE_TLV_DB_SCALE(chvol_tlv, -7950, 50, 1); 155 static const DECLARE_TLV_DB_SCALE(tone_tlv, -120, 200, 0); 158 "Anti-Clipping", "Dynamic Range Compression" }; 165 "User", "80Hz", "100Hz", "120Hz", "140Hz", "160Hz", "180Hz", "200Hz", [all …]
|
| H A D | sta350.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Codec driver for ST STA350 2.1-channel high-efficiency digital audio system 34 #include <sound/soc-dapm.h> 54 /* Power-up register defaults */ 155 "vdd-dig", /* digital supply, 3.3V */ 156 "vdd-pll", /* pll supply, 3.3V */ 157 "vcc" /* power amp supply, 5V - 26V */ 178 static const DECLARE_TLV_DB_SCALE(mvol_tlv, -12750, 50, 1); 179 static const DECLARE_TLV_DB_SCALE(chvol_tlv, -7950, 50, 1); 180 static const DECLARE_TLV_DB_SCALE(tone_tlv, -1200, 200, 0); [all …]
|
| /linux/arch/s390/kernel/ |
| H A D | perf_cpum_sf.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Performance event support for the System z CPU-measurement Sampling Facility 28 #define PERF_EVENT_CPUM_SF 0xB0000UL /* Event: Basic-sampling */ 29 #define PERF_EVENT_CPUM_SF_DIAG 0xBD000UL /* Event: Combined-sampling */ 30 #define PERF_CPUM_SF_BASIC_MODE 0x0001 /* Basic-sampling flag */ 31 #define PERF_CPUM_SF_DIAG_MODE 0x0002 /* Diagnostic-sampling flag */ 34 #define OVERFLOW_REG(hwc) ((hwc)->extra_reg.config) 35 #define SFB_ALLOC_REG(hwc) ((hwc)->extra_reg.alloc) 36 #define TEAR_REG(hwc) ((hwc)->last_tag) 37 #define SAMPL_RATE(hwc) ((hwc)->event_base) [all …]
|
| /linux/net/dccp/ccids/ |
| H A D | ccid3.c | |
| /linux/sound/hda/core/ |
| H A D | device.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * HD-audio codec core device 28 * snd_hdac_device_init - initialize the HD-audio codec base device 48 dev = &codec->dev; in snd_hdac_device_init() 50 dev->parent = bus->de in snd_hdac_device_init() 695 unsigned int hz; global() member 788 snd_hdac_stream_format(unsigned int channels,unsigned int bits,unsigned int rate) snd_hdac_stream_format() argument 841 snd_hdac_spdif_stream_format(unsigned int channels,unsigned int bits,unsigned int rate,unsigned short spdif_ctls) snd_hdac_spdif_stream_format() argument 1004 unsigned int val = 0, rate, stream; snd_hdac_is_supported_format() local [all...] |
| /linux/sound/soc/ |
| H A D | soc-dai.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // soc-dai.c 10 #include <sound/soc-dai.h> 11 #include <sound/soc-link.h> 17 return snd_soc_ret(dai->dev, ret, in _soc_dai_ret() 18 "at %s() on %s\n", func, dai->name); in _soc_dai_ret() 25 #define soc_dai_mark_push(dai, substream, tgt) ((dai)->mark_##tgt = substream) 26 #define soc_dai_mark_pop(dai, tgt) ((dai)->mark 126 int i, max = 0; snd_soc_dai_get_fmt_max_priority() local 159 int i, max = 0, until = priority; snd_soc_dai_get_fmt() local [all...] |
| /linux/Documentation/devicetree/bindings/display/bridge/ |
| H A D | ite,it6505.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Allen Chen <allen.chen@ite.com.tw> 13 - $ref: /schemas/sound/dai-common.yaml# 16 The IT6505 is a high-performance DisplayPort 1.1a transmitter, 19 and ensures robust transmission of high-quality uncompressed video 24 with sampling rate up to 192kHz and sample size up to 24 bits. 26 192kHz frame rate. 30 transmission of high-definition content. Users of the IT6505 need not [all …]
|
| /linux/include/linux/soundwire/ |
| H A D | sdw.h | 1 /* SPDX-License-Identifier: (GPL-2.0 OR BSD-3-Clause) */ 2 /* Copyright(c) 2015-17 Intel Corporation. */ 83 /* sample packaging for block. It can be per port or per channel */ 88 * enum sdw_slave_status - Slave status 106 * @SDW_CLK_PRE_DEPREPARE: pre clock stop de-prepare 107 * @SDW_CLK_POST_DEPREPARE: post clock stop de-prepar 943 unsigned int rate; global() member [all...] |
| /linux/sound/pci/echoaudio/ |
| H A D | echoaudio_dsp.h | 3 Copyright Echo Digital Audio Corporation (c) 1998 - 2004 21 Foundation, Inc., 59 Temple Place - Suite 330, Boston, 22 MA 02111-1307, USA. 26 Translation from C++ and adaptation for use in ALSA-Driver 41 /**** Echo24: Gina24, Layla24, Mona, Mia, Mia-midi ****/ 70 * Max inputs and outputs 74 #define DSP_MAXAUDIOINPUTS 16 /* Max audio input channels */ 75 #define DSP_MAXAUDIOOUTPUTS 16 /* Max audio output channels */ 76 #define DSP_MAXPIPES 32 /* Max total pipes (input + output) */ 81 * These are the offsets for the memory-mapped DSP registers; the DSP base [all …]
|
| /linux/sound/synth/emux/ |
| H A D | soundfont.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * Copyright (c) 1999-2000 Takashi Iwai <tiwai@suse.de> 69 scoped_guard(spinlock_irqsave, &sflist->lock) { in lock_preset() 70 if (sflist->open_client != client) in lock_preset() 82 * the actual driver to write sample data to the board or whatever in unlock_preset() 94 dev_err(card->de 656 struct snd_sf_sample *sample; set_sample() local 875 calc_rate_offset(int hz) calc_rate_offset() argument 883 calc_gus_envelope_time(int rate,int start,int end) calc_gus_envelope_time() argument 1134 int rate = (patch.tremolo_rate * 1000 / 38) / 42; load_guspatch() local 1139 int rate = (patch.vibrato_rate * 1000 / 38) / 42; load_guspatch() local [all...] |
| /linux/drivers/net/wireless/ath/ath9k/ |
| H A D | dynack.c | 22 #define COMPUTE_TO (5 * HZ) 23 #define LATEACK_DELAY (10 * HZ) 28 * ath_dynack_get_max_to - set max timeout according to channel width 34 const struct ath9k_channel *chan = ah->curchan; in ath_dynack_get_max_to() 49 * ath_dynack_ewma - EWMA (Exponentially Weighted Moving Average) calculation 54 return (new * (EWMA_DIV - EWMA_LEVEL) + in ath_dynack_ewma() 61 * ath_dynack_get_sifs - get sifs time based on phy used 71 if (IS_CHAN_QUARTER_RATE(ah->curchan)) in ath_dynack_get_sifs() 73 else if (IS_CHAN_HALF_RATE(ah->curchan)) in ath_dynack_get_sifs() 82 * ath_dynack_bssidmask - filter out ACK frames based on BSSID mask [all …]
|
| /linux/include/uapi/linux/ |
| H A D | ultrasound.h | 1 /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 5 * ultrasound.h - Macros for programming the Gravis Ultrasound 10 * Copyright (C) by Hannu Savolainen 1993-1997 22 * byte 0 - SEQ_PRIVATE (0xfe) 23 * byte 1 - Synthesizer device number (0-N) 24 * byte 2 - Command (see below) 25 * byte 3 - Voice number (0-31) 26 * bytes 4 and 5 - parameter P1 (unsigned short) 27 * bytes 6 and 7 - parameter P2 (unsigned short) 32 * _GUS_NUMVOICES - Sets max. number of concurrent voices (P1=14-31, default 16) [all …]
|
| /linux/drivers/iio/adc/ |
| H A D | ad7944.c | 1 // SPDX-License-Identifier: GPL-2.0-only 26 #include <linux/iio/buffer-dmaengine.h> 33 /* Normal mode max conversion time (t_{CONV}). */ 35 /* TURBO mode max conversion time (t_{CONV}). */ 40 /* datasheet calls this "4-wire mode" */ 42 /* datasheet calls this "3-wire mode" (not related to SPI_3WIRE!) */ 48 /* maps adi,spi-mode property value to enum */ 67 /* Chip-specific timing specifications. */ 73 /* Indicates TURBO is hard-wired to be always enabled. */ 88 } sample __aligned(IIO_DMA_MINALIGN); [all …]
|
| /linux/sound/core/ |
| H A D | pcm_lib.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 5 * Abramo Bagnara <abramo@alsa-project.org> 43 delta = new_ptr - ptr; in update_silence_vars() 47 delta += runtime->boundary; in update_silence_vars() 48 if ((snd_pcm_uframes_t)delta < runtime->silence_filled) in update_silence_vars() 49 runtime->silence_filled -= delta; in update_silence_vars() 51 runtime->silence_filled = 0; in update_silence_vars() 52 runtime->silence_start = new_ptr; in update_silence_vars() 57 * runtime->silence_start: starting pointer to silence area 58 * runtime->silence_filled: size filled with silence [all …]
|