/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) */ 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 112 /* DMIC Configuration Request - SOF_IPC_DAI_DMIC_CONFIG */ [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. 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) 102 u32 nv_min_rtt; /* active min rtt. Used to determine slope */ [all …]
|
H A D | tcp_westwood.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * TCP Westwood+: end-to-end bandwidth estimation for TCP 10 * - Mascolo S, Casetti, M. Gerla et al. 13 * - A. Grieco, s. Mascolo 17 * - A. Dell'Aera, L. Grieco, S. Mascolo. 18 * "Linux 2.4 Implementation of Westwood+ TCP with Rate-Halving : 21 * Westwood+ employs end-to-end bandwidth measurement to set cwnd and 43 u8 reset_rtt_min; /* Reset RTT min to next RTT sample*/ 47 #define TCP_WESTWOOD_RTT_MIN (HZ/20) /* 50ms */ 48 #define TCP_WESTWOOD_INIT_RTT (20*HZ) /* maybe too conservative?! */ [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: 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 <--+ 34 * A BBR flow starts in STARTUP, and ramps up its sending rate quickly. [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) 23 #define min(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/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 */ 382 unsigned int rate; /* rate in Hz */ global() member [all...] |
H A D | emu10k1.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 16 #include <sound/pcm-indirect.h> 25 /* ------------------- DEFINES -------------------- */ 33 /* FIXME? - according to the OSS driver the EMU10K1 needs a 29 bit DMA mask */ 41 // This is used to define hardware bit-fields (sub-registers) by combining 44 // The non-concatenating (_NC) variant should be used directly only for 45 // sub-registers that do not follow the <register>_<field> naming pattern. 55 // Macros for manipulating values of bit-fields declared using the above macros. 59 // single sub-register at a time. 62 #define REG_MASK0(r) ((1U << REG_SIZE(r)) - 1U) [all …]
|
/linux/sound/hda/ |
H A D | hdac_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->dev; in snd_hdac_device_init() 51 dev->bus = &snd_hda_bus_type; in snd_hdac_device_init() 52 dev->release = default_release; in snd_hdac_device_init() 53 dev->groups = hdac_dev_attr_groups; in snd_hdac_device_init() 57 codec->bus = bus; in snd_hdac_device_init() 58 codec->addr = addr; in snd_hdac_device_init() [all …]
|
/linux/net/dccp/ccids/ |
H A D | ccid3.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 4 * Copyright (c) 2005-7 The University of Waikato, Hamilton, New Zealand. 5 * Copyright (c) 2005-7 Ian McDonald <ian.mcdonald@jandi.co.nz> 14 * Copyright (c) 2003 Nils-Erik Mattsson, Joacim Haggmark, Magnus Erixzon 35 * Transmitter Half-Connection Routines 54 enum ccid3_hc_tx_states oldstate = hc->tx_state; in ccid3_hc_tx_set_state() 56 ccid3_pr_debug("%s(%p) %-8.8s -> %s\n", in ccid3_hc_tx_set_state() 60 hc->tx_state = state; in ccid3_hc_tx_set_state() 64 * Compute the initial sending rate X_init in the manner of RFC 3390: 66 * X_init = min(4 * s, max(2 * s, 4380 bytes)) / RTT [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 …]
|
/linux/sound/soc/renesas/rcar/ |
H A D | adg.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Helper routines for R-Car sound ADG. 6 #include <linux/clk-provider.h> 50 (i < adg->clkin_size) && \ 51 ((pos) = adg->clkin[i]); \ 55 (i < adg->clkout_size) && \ 56 ((pos) = adg->clkout[i]); \ 58 #define rsnd_priv_to_adg(priv) ((struct rsnd_adg *)(priv)->adg) 85 for (i = 3; i >= 0; i--) { in rsnd_adg_calculate_brgx() 88 return (u32)((i << 8) | ((div / ratio) - 1)); in rsnd_adg_calculate_brgx() [all …]
|
/linux/net/dccp/ |
H A D | input.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 19 /* rate-limit for syncs in reply to sequence-invalid packets; RFC 4340, 7.5.4 */ 20 int sysctl_dccp_sync_ratelimit __read_mostly = HZ / 8; 24 __skb_pull(skb, dccp_hdr(skb)->dccph_doff * 4); in dccp_enqueue_skb() 25 __skb_queue_tail(&sk->sk_receive_queue, skb); in dccp_enqueue_skb() 27 sk->sk_data_ready(sk); in dccp_enqueue_skb() 38 sk->sk_shutdown = SHUTDOWN_MASK; in dccp_fin() 47 switch (sk->sk_state) { in dccp_rcv_close() 50 * - CLOSED (may be a late or duplicate packet) in dccp_rcv_close() 51 * - PASSIVE_CLOSEREQ (the peer has sent a CloseReq earlier) in dccp_rcv_close() [all …]
|
/linux/sound/ppc/ |
H A D | beep.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 #include <linux/dma-mapping.h> 21 int volume; /* mixer volume: 0-100 */ 23 int hz; member 35 struct pmac_beep *beep = chip->beep; in snd_pmac_beep_stop() 36 if (beep && beep->running) { in snd_pmac_beep_stop() 37 beep->running = 0; in snd_pmac_beep_stop() 43 * Stuff for outputting a beep. The values range from -327 to +327 61 58, 45, 32, 18, 3, -11, -26, -41, 62 -55, -68, -79, -88, -95, -100, -102, -102, [all …]
|
/linux/block/ |
H A D | blk-wbt.c | 1 // SPDX-License-Identifier: GPL-2.0 6 * - Monitor latencies in a defined window of time. 7 * - If the minimum latency in the above window exceeds some target, increment 10 * - For any window where we don't have solid data on what the latencies 12 * - If latencies look good, decrement scaling step. 13 * - If we're only doing writes, allow the scaling step to go negative. This 25 #include <linux/backing-dev.h> 28 #include "blk-stat.h" 29 #include "blk-wbt.h" 30 #include "blk-rq-qos.h" [all …]
|
/linux/sound/pci/rme9652/ |
H A D | hdspm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 * Modified 2006-06-01 for AES32 support by Remy Bruno 12 * Modified 2009-04-13 for proper metering by Florian Faber 15 * Modified 2009-0 1220 hdspm_round_frequency(int rate) hdspm_round_frequency() argument 1238 hdspm_rate_multiplier(struct hdspm * hdspm,int rate) hdspm_rate_multiplier() argument 1254 int syncref, rate = 0, rate_bits; hdspm_external_sample_rate() local 1593 hdspm_set_dds_value(struct hdspm * hdspm,int rate) hdspm_set_dds_value() argument 1629 hdspm_set_rate(struct hdspm * hdspm,int rate,int called_internally) hdspm_set_rate() argument 2196 unsigned int period, rate; hdspm_get_pll_freq() local 2210 unsigned int rate; hdspm_get_system_sample_rate() local 2269 int rate = ucontrol->value.integer.value[0]; snd_hdspm_put_system_sample_rate() local 2385 int rate = hdspm_external_sample_rate(hdspm); hdspm_external_rate_to_enum() local 2618 int rate; hdspm_set_clock_source() local 4753 u32 rate; snd_hdspm_proc_read_tco() local [all...] |
/linux/sound/pci/ac97/ |
H A D | ac97_pcm.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 151 if (pcm->spdif) in get_slot_reg() 153 if (pcm->stream == SNDRV_PCM_STREAM_PLAYBACK) in get_slot_reg() 154 return rate_reg_tables[dbl][pcm->r[dbl].rate_table[cidx]][slot - 3]; in get_slot_reg() 156 return rate_cregs[slot - 3]; in get_slot_reg() 159 static int set_spdif_rate(struct snd_ac97 *ac97, unsigned short rate) in set_spdif_rate() argument 164 if (! (ac97->ext_id & AC97_EI_SPDIF)) in set_spdif_rate() 165 return -ENODEV; in set_spdif_rate() 167 /* TODO: double rate support */ in set_spdif_rate() 168 if (ac97->flags & AC97_CS_SPDIF) { in set_spdif_rate() [all …]
|
/linux/sound/soc/codecs/ |
H A D | da9055.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 58 /* Input - Gain, Select and Filter Registers */ 71 /* Output - Gain, Select and Filter Registers */ 288 0x0, 0x10, TLV_DB_SCALE_ITEM(-5400, 0, 0), 289 /* -54dB to 15dB */ 290 0x11, 0x3f, TLV_DB_SCALE_ITEM(-5400, 150, 0) 295 /* -78dB to 12dB */ 296 0x08, 0x7f, TLV_DB_SCALE_ITEM(-7800, 75, 0) 305 static const DECLARE_TLV_DB_SCALE(mic_vol_tlv, -600, 600, 0); 306 static const DECLARE_TLV_DB_SCALE(mixin_gain_tlv, -450, 150, 0); [all …]
|
/linux/include/xen/interface/io/ |
H A D | sndif.h | 1 /* SPDX-License-Identifier: MIT */ 5 * Unified sound-device I/O interface for Xen guest OSes. 7 * Copyright (C) 2013-2015 GlobalLogic Inc. 8 * Copyright (C) 2016-2017 EPAM Systems Inc. 34 * Front->back notifications: when enqueuing a new request, sending a 36 * hold-off mechanism provided by the ring macros). Backends must set 39 * Back->front notifications: when enqueuing a new response, sending a 41 * hold-off mechanism provided by the ring macros). Frontends must set 44 * The two halves of a para-virtual sound card driver utilize nodes within 58 * Note: depending on the use-case backend can expose more sound cards and [all …]
|
/linux/sound/pci/ |
H A D | rme96.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 35 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 254 #define RME96_ISPLAYING(rme96) ((rme96)->wcreg & RME96_WCR_START) 255 #define RME96_ISRECORDING(rme96) ((rme96)->wcreg & RME96_WCR_START_2) 256 #define RME96_HAS_ANALOG_IN(rme96) ((rme96)->pci->devic 580 int n, rate; snd_rme96_capture_getrate() local 642 int rate, dummy; snd_rme96_playback_getrate() local 673 snd_rme96_playback_setrate(struct rme96 * rme96,int rate) snd_rme96_playback_setrate() argument 726 snd_rme96_capture_analog_setrate(struct rme96 * rme96,int rate) snd_rme96_capture_analog_setrate() argument 956 int err, rate, dummy; snd_rme96_playback_hw_params() local 1020 int err, isadat, rate; snd_rme96_capture_hw_params() local 1160 int rate, dummy; snd_rme96_playback_spdif_open() local 1198 int isadat, rate; snd_rme96_capture_spdif_open() local 1230 int rate, dummy; snd_rme96_playback_adat_open() local 1264 int isadat, rate; snd_rme96_capture_adat_open() local [all...] |
/linux/sound/drivers/ |
H A D | dummy.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 45 #define USE_MIXER_VOLUME_LEVEL_MIN -50 48 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 50 static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0}; 51 static char *model[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = NULL}; 52 static int pcm_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 1}; 53 static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8}; 54 //static int midi_devs[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 2}; 71 MODULE_PARM_DESC(pcm_devs, "PCM devices # (0-4) for dummy driver."); 73 MODULE_PARM_DESC(pcm_substreams, "PCM substreams # (1-128) for dummy driver."); [all …]
|
H A D | aloop.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 8 * More accurate positioning and full-duplex support: 9 * Copyright (c) Ahmet İnan <ainan at mathematik.uni-freiburg.de> 39 static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 41 static bool enable[SNDRV_CARDS] = {1, [1 ... (SNDRV_CARDS - 1)] = 0}; 42 static int pcm_substreams[SNDRV_CARDS] = {[0 ... (SNDRV_CARDS - 1)] = 8}; 53 MODULE_PARM_DESC(pcm_substreams, "PCM substreams # (1-8) for loopback driver."); 55 MODULE_PARM_DESC(pcm_notify, "Break capture when PCM format/rate/channels changes."); 70 * call in loopback->cable_lock 74 * call in cable->lock [all …]
|
/linux/drivers/iio/imu/inv_mpu6050/ |
H A D | inv_mpu_core.c | 1 // SPDX-License-Identifier: GPL-2.0-only 323 clock = st->chip_config.clk; in inv_mpu6050_pwr_mgmt_1_write() 325 temp_dis = !st->chip_config.temp_en; in inv_mpu6050_pwr_mgmt_1_write() 335 dev_dbg(regmap_get_device(st->map), "pwr_mgmt_1: 0x%x\n", val); in inv_mpu6050_clock_switch() 336 return regmap_write(st->map, st->reg->pwr_mgmt_ in inv_mpu6050_clock_switch() 1263 inv_mpu6050_set_lpf(struct inv_mpu6050_state * st,int rate) inv_mpu6050_set_lpf() argument 1265 static const int hz[] = {400, 200, 90, 40, 20, 10}; inv_mpu6050_set_lpf() local [all...] |
/linux/drivers/comedi/drivers/ |
H A D | usbdux.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Copyright (C) 2003-2014 Bernd Porr, mail@berndporr.me.uk 10 * Devices: [ITL] USB-DUX (usbdux) 17 * The sampling rate of the counter is approximately 500Hz. 20 * the max sampling rate. If you sample only one channel you get 8kHz 21 * sampling rate. If you sample two channels you get 4kHz and so on. 26 * wrote the driver for AT-MIO-16d. I used some parts of this 46 * | kernel | registration | usbdux-usb | usbdux-comedi | comedi | 54 * rate. 56 * Two 16 bit up/down/reset counter with a sampling rate of 1kHz [all …]
|