/linux/net/ipv4/ |
H A D | tcp_bbr.c | 21 * +---> STARTUP ----+ 24 * | DRAIN ----+ 27 * +---> PROBE_BW ----+ 30 * | +----+ | 32 * +---- PROBE_RTT <--+ 37 * A long-lived BBR flow spends the vast majority of its time remaining 42 * it briefly enters PROBE_RTT to cut inflight to a minimum value to re-probe 43 * the path's two-way propagation delay (min_rtt). When exiting PROBE_RTT, if 48 * "BBR: Congestion-Based Congestion Control", 50 * Van Jacobson. ACM Queue, Vol. 14 No. 5, September-October 2016. [all …]
|
H A D | tcp_vegas.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * IEEE Journal on Selected Areas in Communication, 13(8):1465--1480, 17 * using fine-grained timers, NewReno, and FACK. 19 * only every-other RTT during slow start, we increase during 29 * o When the sender re-starts from idle, it waits until it has 55 /* There are several situations when we must "re-start" Vegas: 65 * stale info -- both the saved cwnd and congestion feedback are 77 vegas->doing_vegas_now = 1; in vegas_enable() 80 vegas->beg_snd_nxt = tp->snd_nxt; in vegas_enable() 82 vegas->cntRTT = 0; in vegas_enable() [all …]
|
/linux/Documentation/admin-guide/hw-vuln/ |
H A D | gather_data_sampling.rst | 1 .. SPDX-License-Identifier: GPL-2.0 3 GDS - Gather Data Sampling 6 Gather Data Sampling is a hardware vulnerability which allows unprivileged 10 ------- 17 attacks. GDS is a purely sampling-based attack. 24 Because the buffers are shared between Hyper-Threads cross Hyper-Thread attacks 28 ---------------- 32 Non-enclaves can infer SGX enclave data 39 lower-privilege contexts like guests and when running outside SGX enclaves. 44 attack, and re-enable it. [all …]
|
/linux/sound/usb/ |
H A D | card.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 16 unsigned int fmt_type; /* USB audio format type (1-3) */ 19 unsigned int frame_size; /* samples per frame for non-audio */ 69 int opened; /* open refcount; protect with chip->mutex */ 112 unsigned int freqn; /* nominal sampling rate in fs/fps in Q16.16 format */ 113 unsigned int freqm; /* momentary sampling rate in fs/fps in Q16.16 format */ 115 unsigned int freqmax; /* maximum sampling rate, used for buffer management */ 132 bool lowlatency_playback; /* low-latency playback mode */ 133 bool need_setup; /* (re-)need for hw_params? */ 134 bool need_prepare; /* (re-)need for prepare? */ [all …]
|
/linux/sound/soc/tegra/ |
H A D | Kconfig | 1 # SPDX-License-Identifier: GPL-2.0-only 5 tristate "SoC Audio for the Tegra System-on-Chip" 85 Config to enable the Inter-IC Sound (I2S) Controller which 86 implements full-duplex and bidirectional and single direction 87 point-to-point serial interfaces. It can interface with I2S 104 which converts the sampling frequency of the input signal from 116 converts the multi-bit Pulse Code Modulation (PCM) audio input to 117 oversampled 1-bit Pulse Density Modulation (PDM) output. From the 119 that up-samples the input to the desired sampling rate by 121 the desired 1-bit output via Delta Sigma Modulation (DSM). [all …]
|
/linux/sound/aoa/soundbus/ |
H A D | soundbus.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 22 * The constants here are codec-point of view, so when we switch 23 * the soundbus to master we tell the codec we're going to switch 54 * what we're going to drive the bus with */ 71 * to be used (master clock speed = sysclock_factor * sampling freq) 76 /* Bus factor, bus clock speed = bus_factor * sampling freq) 89 * That can depend on other user-switchable controls.
|
/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 26 /* Perf PMU definitions for the 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 */ 32 #define PERF_CPUM_SF_FREQ_MODE 0x0008 /* Sampling with frequency */ 34 #define OVERFLOW_REG(hwc) ((hwc)->extra_reg.config) 35 #define SFB_ALLOC_REG(hwc) ((hwc)->extra_reg.alloc) [all …]
|
/linux/Documentation/devicetree/bindings/mmc/ |
H A D | marvell,xenon-sdhci.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/mmc/marvell,xenon-sdhci.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 mmc-controller.yaml and the properties used by the Xenon implementation. 20 - Ulf Hansson <ulf.hansson@linaro.org> 25 - enum: 26 - marvell,armada-cp110-sdhci 27 - marvell,armada-ap806-sdhci 29 - items: [all …]
|
/linux/include/linux/ |
H A D | psi_types.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 67 /* Only per-CPU, to weigh the CPU in the global average: */ 75 /* Flag whether to re-arm avgs_work, see details in get_recent_times() */ 94 /* Period time sampling buckets for each state of interest (ns) */ 102 /* Delta detection against the sampling buckets */ 126 /* User-spacified threshold in ns */ 148 * Time last event was generated. Used for rate-limiting 156 /* Trigger type - PSI_AVGS for unprivileged, PSI_POLL for RT */ 167 /* Per-cpu task state & time tracking */ 171 u64 avg_total[NR_PSI_STATES - 1]; [all …]
|
/linux/sound/firewire/dice/ |
H A D | dice-stream.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * dice_stream.c - a part of driver for DICE based devices 6 * Copyright (c) 2014 Takashi Sakamoto <o-takashi@sakamocchi.jp> 48 if (!(dice->clock_caps & BIT(i))) in snd_dice_stream_get_rate_mode() 57 return -EINVAL; in snd_dice_stream_get_rate_mode() 80 return -EINVAL; in select_clock() 83 if (completion_done(&dice->clock_accepted)) in select_clock() 84 reinit_completion(&dice->clock_accepted); in select_clock() 92 if (wait_for_completion_timeout(&dice->clock_accepted, in select_clock() 95 return -ETIMEDOUT; in select_clock() [all …]
|
/linux/drivers/iio/pressure/ |
H A D | zpa2326.c | 1 // SPDX-License-Identifier: GPL-2.0-only 18 * ZPA2326 hardware supports 2 sampling mode: one shot and continuous. 20 * A complete one shot sampling cycle gets device out of low power mode, 22 * back to low power mode. It is meant for on demand sampling with optimal power 23 * saving at the cost of lower sampling rate and higher software overhead. 34 * - get device out of low power mode, 35 * - setup hardware sampling period, 36 * - at end of period, upon data ready interrupt: pop pressure samples out of 38 * - when no longer needed, stop sampling process by putting device into 44 * Note that hardware sampling frequency is taken into account only when [all …]
|
/linux/Documentation/admin-guide/mm/damon/ |
H A D | reclaim.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 DAMON-based Reclamation 7 DAMON-based Reclamation (DAMON_RECLAIM) is a static kernel module that aimed to 9 It doesn't aim to replace the LRU-list based page_granularity reclamation, but 15 On general memory over-committed systems, proactively reclaiming cold pages 20 Free Pages Reporting [3]_ based memory over-commit virtualization systems are 24 guests could be not so memory-frugal, mainly because some kernel subsystems and 25 user-space applications are designed to use as much memory as available. Then, 54 ------- 60 no real monitoring and reclamation due to the watermarks-based activation [all …]
|
H A D | lru_sort.rst | 1 .. SPDX-License-Identifier: GPL-2.0 4 DAMON-based LRU-lists Sorting 7 DAMON-based LRU-lists Sorting (DAMON_LRU_SORT) is a static kernel module that 9 (de)prioritization of pages on their LRU-lists for making LRU-lists a more 12 Where Proactive LRU-lists Sorting is Required? 15 As page-granularity access checking overhead could be significant on huge 23 Because DAMON can identify access patterns of best-effort accuracy while 24 inducing only user-specified range of overhead, proactively running 32 rates that higher than a user-specified threshold) and cold pages (pages of 34 user-specified threshold) using DAMON, and prioritizes hot pages while [all …]
|
/linux/sound/soc/ti/ |
H A D | omap-dmic.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * omap-dmic.c -- OMAP ASoC DMIC DAI driver 5 * Copyright (C) 2010 - 2011 Texas Instruments 30 #include "omap-dmic.h" 31 #include "sdma-pcm.h" 53 writel_relaxed(val, dmic->io_base + reg); in omap_dmic_write() 58 return readl_relaxed(dmic->io_base + reg); in omap_dmic_read() 69 omap_dmic_write(dmic, OMAP_DMIC_CTRL_REG, ctrl | dmic->ch_enabled); in omap_dmic_start() 96 mutex_lock(&dmic->mutex); in omap_dmic_dai_startup() 99 dmic->active = 1; in omap_dmic_dai_startup() [all …]
|
/linux/drivers/gpu/drm/i915/ |
H A D | i915_perf.c | 2 * Copyright © 2015-2016 Intel Corporation 44 * without special privileges. Access to system-wide metrics requires root 58 * might sample sets of tightly-coupled counters, depending on the 70 * interleaved with event-type specific members. 76 * would be acceptable to expose them to unprivileged applications - to hide 96 * side-band OA data captured via MI_REPORT_PERF_COUNT commands; we're 102 * For posterity, in case we might re-visit trying to adapt core perf to be 106 * - The perf based OA PMU driver broke some significant design assumptions: 110 * implications, the need to fake cpu-related data (such as user/kernel 112 * as a way to forward device-specific status records. [all …]
|
H A D | i915_pmu.c | 2 * SPDX-License-Identifier: MIT 4 * Copyright © 2017-2018 Intel Corporation 22 /* Frequency for the sampling timer for events which need it. */ 33 return container_of(event->pmu, struct i915_pmu, base); in event_to_pmu() 48 return engine_config_sample(event->attr.config); in engine_event_sample() 53 return (event->attr.config >> I915_PMU_CLASS_SHIFT) & 0xff; in engine_event_class() 58 return (event->attr.config >> I915_PMU_SAMPLE_BITS) & 0xff; in engine_event_instance() 92 * Events that do not require sampling, or tracking state in other_bit() 95 return -1; in other_bit() 118 enable)) - 1); in config_mask() [all …]
|
/linux/tools/perf/Documentation/ |
H A D | perf-record.txt | 1 perf-record(1) 5 ---- 6 perf-record - Run a command and record its profile into perf.data 9 -------- 11 'perf record' [-e <EVENT> | --event=EVENT] [-a] <command> 12 'perf record' [-e <EVENT> | --event=EVENT] [-a] \-- <command> [<options>] 15 ----------- 17 from it, into perf.data - without displaying anything. 23 ------- 27 -e:: [all …]
|
/linux/drivers/mmc/host/ |
H A D | sdhci-xenon-phy.c | 1 // SPDX-License-Identifier: GPL-2.0-only 8 * Date: 2016-8-24 17 #include "sdhci-pltfm.h" 18 #include "sdhci-xenon.h" 195 /* Nr of consecutive Sampling Points of a Valid Sampling Window */ 209 params = devm_kzalloc(mmc_dev(host->mmc), sizeof(*params), GFP_KERNEL); in xenon_alloc_emmc_phy() 211 return -ENOMEM; in xenon_alloc_emmc_phy() 213 priv->phy_params = params; in xenon_alloc_emmc_phy() 214 if (priv->phy_type == EMMC_5_0_PHY) in xenon_alloc_emmc_phy() 215 priv->emmc_phy_regs = &xenon_emmc_5_0_phy_regs; in xenon_alloc_emmc_phy() [all …]
|
/linux/drivers/watchdog/ |
H A D | riowd.c | 1 // SPDX-License-Identifier: GPL-2.0-only 2 /* riowd.c - driver for hw watchdog inside Super I/O of RIO 28 * trigger a power-on reset when the signal is asserted. The BBC 32 * 0x05 (WDTO_INDEX) which is the watchdog time-out in minutes (1-255). 35 * re-set the watchdog else it will trigger. 39 * the watchdog control and can be used to make the watchdog timer re-set 41 * index 0x07 is merely a sampling of the line from the watchdog to the 71 spin_lock_irqsave(&p->lock, flags); in riowd_writereg() 72 writeb(index, p->regs + 0); in riowd_writereg() 73 writeb(val, p->regs + 1); in riowd_writereg() [all …]
|
/linux/kernel/sched/ |
H A D | psi.c | 1 // SPDX-License-Identifier: GPL-2.0 34 * In the FULL state of a given resource, all non-idle tasks are 44 * CPU, productive means an on-CPU task. 48 * FULL means all non-idle tasks in the cgroup are delayed on the CPU 64 * unrealized due to resource contention *also* scales with non-idle 83 * we have to base our calculation on the number of non-idle tasks in 91 * FULL = (threads - min(nr_productive_tasks, threads)) / threads 97 * FULL = (256 - min(256, 256)) / 256 = 0% 99 * For the 1 out of 4 memory-delayed tasks, this yields: 103 * FULL = (4 - min(3, 4)) / 4 = 25% [all …]
|
/linux/drivers/platform/x86/ |
H A D | winmate-fm07-keys.c | 1 // SPDX-License-Identifier: GPL-2.0 3 // Driver for the Winmate FM07 front-panel keys 15 #define DRV_NAME "winmate-fm07keys" 26 /* Typically we're done in fewer than 10 iterations */ 72 dev_warn_ratelimited(&input->dev, "timeout polling IO memory\n"); in fm07keys_poll() 77 struct device *dev = &pdev->dev; in fm07keys_probe() 85 return -ENOMEM; in fm07keys_probe() 89 return -EBUSY; in fm07keys_probe() 91 return -EBUSY; in fm07keys_probe() 93 input->name = "Winmate FM07 front-panel keys"; in fm07keys_probe() [all …]
|
/linux/include/uapi/linux/can/ |
H A D | netlink.h | 1 /* SPDX-License-Identifier: GPL-2.0-only WITH Linux-syscall-note */ 25 * CAN bit-timing parameters 32 __u32 bitrate; /* Bit-rate in bits/second */ 33 __u32 sample_point; /* Sample point in one-tenth of a percent */ 39 __u32 brp; /* Bit-rate prescaler */ 43 * CAN hardware-dependent bit-timing constant 45 * Used for calculating and checking bit-timing parameters 54 __u32 brp_min; /* Bit-rate prescaler */ 96 #define CAN_CTRLMODE_LISTENONLY 0x02 /* Listen-only mode */ 97 #define CAN_CTRLMODE_3_SAMPLES 0x04 /* Triple sampling mode */ [all …]
|
/linux/drivers/media/dvb-frontends/ |
H A D | lgdt3306a.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Support for LGDT3306A - 8VSB/QAM-B 6 * - driver structure based on lgdt3305.[ch] by Michael Krufky 7 * - code based on LG3306_V0.35 API by LG Electronics Inc. 17 #include <linux/i2c-mux.h> 22 MODULE_PARM_DESC(debug, "set debug level (info=1, reg=2 (or-able))"); 37 #define DBG_DUMP 4 /* FGR - comment out to remove dump code */ 80 * 0000 -> 00FF Common control and status 81 * 1000 -> 10FF Synchronizer control and status 82 * 1F00 -> 1FFF Smart Antenna control and status [all …]
|
/linux/kernel/trace/ |
H A D | trace_osnoise.c | 1 // SPDX-License-Identifier: GPL-2.0 7 * Copyright (C) 2008-2009 Jon Masters, Red Hat, Inc. <jcm@redhat.com> 8 * Copyright (C) 2013-2016 Steven Rostedt, Red Hat, Inc. <srostedt@redhat.com> 12 * DE OLIVEIRA, Daniel Bristot, et al. Demystifying the real-time linux 13 * scheduling latency. In: 32nd Euromicro Conference on Real-Time Systems 14 * (ECRTS 2020). Schloss Dagstuhl-Leibniz-Zentrum fur Informatik, 2020. 91 * osnoise_instance_registered - check if a tr is already registered 100 if (inst->tr == tr) in osnoise_instance_registered() 109 * osnoise_register_instance - register a new trace instance 126 return -ENOMEM; in osnoise_register_instance() [all …]
|
/linux/drivers/iio/adc/ |
H A D | pac1934.c | 1 // SPDX-License-Identifier: GPL-2.0+ 3 * IIO driver for PAC1934 Multi-Channel DC Power/Energy Monitor 5 * Copyright (C) 2017-2024 Microchip Technology Inc. and its subsidiaries 12 …oads/aemDocuments/documents/OTH/ProductDocuments/DataSheets/PAC1931-Family-Data-Sheet-DS20005850E.… 46 * (2^31 - 1) * 10^8 + 99999999 51 * -(2^31) * 10^8 - 99999999 53 #define PAC_193X_MIN_POWER_ACC -214748364899999999LL 118 * relative offsets when using multi-byte reads/writes even though these 147 /* Scale constant = (10^3 * 3.2 * 10^9 / 2^28) for mili Watt-second */ 187 * 033771E0-1705-47B4-9535-D1BBE14D9A09, [all …]
|