/openbmc/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 …]
|
/openbmc/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 …]
|
/openbmc/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->type; in evsel__config_term_mask() 55 struct perf_event_attr *attr = &evsel->core.attr; in evsel__config_leader_sampling() 60 if (!leader->sample_read) in evsel__config_leader_sampling() [all …]
|
/openbmc/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_cubic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * "CUBIC: A New TCP-Friendly High-Speed TCP Variant" 37 #define BICTCP_HZ 10 /* BIC HZ 2^10 = 1024 */ 64 /* Note parameters that are used for precomputing scale factors are read-only */ 79 " 1: packet-train 2: delay 3: both packet-train and delay"); 110 ca->found = 0; in bictcp_reset() 115 return tcp_sk(sk)->tcp_mstamp; in bictcp_clock_us() 123 ca->round_start = ca->last_ack = bictcp_clock_us(sk); in bictcp_hystart_reset() 124 ca->end_seq = tp->snd_nxt; in bictcp_hystart_reset() 125 ca->curr_rtt = ~0U; in bictcp_hystart_reset() [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 …]
|
/openbmc/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 …]
|
/openbmc/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. 24 #define clamp(val, lo, hi) min((typeof(val))max(val, lo), hi) 29 #define BICTCP_HZ 10 /* BIC HZ 2^10 = 1024 */ 54 / (BICTCP_BETA_SCALE - beta); 55 /* calculate the "K" for (wmax-cwnd) = c/rtt * K^3 56 * so K = cubic_root( (wmax-cwnd)*rtt/c ) 57 * the unit of K is bictcp_HZ=2^10, not HZ 65 * HZ < 1,000,00 (corresponding to 10 nano-second) [all …]
|
/openbmc/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) 36 unsigned int rate_min; /* min rate */ 37 unsigned int rate_max; /* max rate */ 39 unsigned int channels_max; /* max channels */ 40 size_t buffer_bytes_max; /* max buffer size */ 42 size_t period_bytes_max; /* max period size */ 44 unsigned int periods_max; /* max # of periods */ [all …]
|
/openbmc/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 …]
|
/openbmc/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. */ 70 /* sample packaging for block. It can be per port or per channel */ 75 * enum sdw_slave_status - Slave status 93 * @SDW_CLK_PRE_DEPREPARE: pre clock stop de-prepare 94 * @SDW_CLK_POST_DEPREPARE: post clock stop de-prepare 104 * enum sdw_command_response - Command response as defined by SDW spec 190 * enum sdw_p15_behave - Slave Port 15 behaviour when the Master attempts a 201 * enum sdw_dpn_type - Data port types 216 * enum sdw_clk_stop_mode - Clock Stop modes [all …]
|
/openbmc/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 35 #include <sound/soc-dapm.h> 55 /* Power-up register defaults */ 133 "Vcc" /* power amp spply, 10V - 36V */ 154 static const DECLARE_TLV_DB_SCALE(mvol_tlv, -12700, 50, 1); 155 static const DECLARE_TLV_DB_SCALE(chvol_tlv, -7950, 50, 1); 156 static const DECLARE_TLV_DB_SCALE(tone_tlv, -120, 200, 0); 159 "Anti-Clipping", "Dynamic Range Compression" }; 166 "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 35 #include <sound/soc-dapm.h> 55 /* Power-up register defaults */ 156 "vdd-dig", /* digital supply, 3.3V */ 157 "vdd-pll", /* pll supply, 3.3V */ 158 "vcc" /* power amp supply, 5V - 26V */ 179 static const DECLARE_TLV_DB_SCALE(mvol_tlv, -12750, 50, 1); 180 static const DECLARE_TLV_DB_SCALE(chvol_tlv, -7950, 50, 1); 181 static const DECLARE_TLV_DB_SCALE(tone_tlv, -1200, 200, 0); [all …]
|
/openbmc/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 …]
|
/openbmc/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 27 /* Minimum number of sample-data-block-tables: 29 * A single table contains up to 511 pointers to sample-data-blocks. 33 /* Number of sample-data-blocks per sample-data-block-table (SDBT): 34 * A table contains SDB pointers (8 bytes) and one table-link entry 37 #define CPUM_SF_SDB_PER_TABLE ((PAGE_SIZE - 8) / 8) 39 /* Maximum page offset for an SDBT table-link entry: 40 * If this page offset is reached, a table-link entry to the next SDBT 52 * the number of sample-data-block-tables into account. Note that these [all …]
|
/openbmc/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 The IT6505 is a high-performance DisplayPort 1.1a transmitter, 16 and ensures robust transmission of high-quality uncompressed video 21 with sampling rate up to 192kHz and sample size up to 24 bits. 23 192kHz frame rate. 27 transmission of high-definition content. Users of the IT6505 need not 37 ovdd-supply: [all …]
|
/openbmc/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 …]
|
/openbmc/linux/net/mac80211/ |
H A D | rc80211_minstrel_ht.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (C) 2010-2013 Felix Fietkau <nbd@openwrt.org> 4 * Copyright (C) 2019-2022 Intel Corporation 15 #include "rate.h" 44 * Define group sort order: HT40 -> SGI -> #streams 50 _streams - 1 55 _MAX(0, 16 - __builtin_clz(duration)) 57 /* MCS rate information for an MCS group */ 90 (_streams) - 1) 203 * To enable sufficiently targeted rate sampling, MCS rates are divided into [all …]
|
/openbmc/linux/drivers/iio/imu/ |
H A D | adis16475.c | 1 // SPDX-License-Identifier: GPL-2.0 64 /* spi max speed in brust mode */ 130 struct adis16475 *st = file->private_data; in adis16475_show_firmware_revision() 136 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_FIRM_REV, &rev); in adis16475_show_firmware_revision() 156 struct adis16475 *st = file->private_data; in adis16475_show_firmware_date() 162 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_FIRM_Y, &year); in adis16475_show_firmware_date() 166 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_FIRM_DM, &md); in adis16475_show_firmware_date() 170 len = snprintf(buf, sizeof(buf), "%.2x-%.2x-%.4x\n", md >> 8, md & 0xff, in adis16475_show_firmware_date() 189 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_SERIAL_NUM, &serial); in adis16475_show_serial_number() 206 ret = adis_read_reg_16(&st->adis, ADIS16475_REG_PROD_ID, &prod_id); in adis16475_show_product_id() [all …]
|
/openbmc/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> 23 case -EPROBE_DEFER: in _soc_dai_ret() 24 case -ENOTSUPP: in _soc_dai_ret() 27 dev_err(dai->dev, in _soc_dai_ret() 29 func, dai->name, ret); in _soc_dai_ret() 39 #define soc_dai_mark_push(dai, substream, tgt) ((dai)->mark_##tgt = substream) 40 #define soc_dai_mark_pop(dai, substream, tgt) ((dai)->mark_##tgt = NULL) [all …]
|
/openbmc/linux/drivers/iio/adc/ |
H A D | ti-tsc2046.c | 1 // SPDX-License-Identifier: GPL-2.0 28 * - rate limiting: 30 * - hrtimer: 38 /* This driver doesn't aim at the peak continuous sample rate */ 60 * conversion has 12-bit resolution, whereas with this bit high, the next 61 * conversion has 8-bit resolution. This driver is optimized for 12-bit mode. 67 * SER/DFR - The SER/DFR bit controls the reference mode, either single-ended 74 * auto-wake/suspend mode. In most case this bits should stay zero. 93 /* Represents a HW sample */ 230 bit_count = DIV_ROUND_UP(time * NSEC_PER_USEC, priv->time_per_bit_ns); in tsc2046_adc_time_to_count() [all …]
|
/openbmc/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 …]
|
/openbmc/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 mutex_lock(&sflist->presets_mutex); in lock_preset() 70 spin_lock_irqsave(&sflist->lock, flags); in lock_preset() 71 sflist->presets_locked = 1; in lock_preset() 72 spin_unlock_irqrestore(&sflist->lock, flags); in lock_preset() 83 spin_lock_irqsave(&sflist->lock, flags); in unlock_preset() 84 sflist->presets_locked = 0; in unlock_preset() 85 spin_unlock_irqrestore(&sflist->lock, flags); in unlock_preset() 86 mutex_unlock(&sflist->presets_mutex); in unlock_preset() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath9k/ |
H A D | dynack.c | 21 #define COMPUTE_TO (5 * HZ) 22 #define LATEACK_DELAY (10 * HZ) 27 * ath_dynack_get_max_to - set max timeout according to channel width 33 const struct ath9k_channel *chan = ah->curchan; in ath_dynack_get_max_to() 48 * ath_dynack_ewma - EWMA (Exponentially Weighted Moving Average) calculation 53 return (new * (EWMA_DIV - EWMA_LEVEL) + in ath_dynack_ewma() 60 * ath_dynack_get_sifs - get sifs time based on phy used 70 if (IS_CHAN_QUARTER_RATE(ah->curchan)) in ath_dynack_get_sifs() 72 else if (IS_CHAN_HALF_RATE(ah->curchan)) in ath_dynack_get_sifs() 81 * ath_dynack_bssidmask - filter out ACK frames based on BSSID mask [all …]
|