| /linux/tools/testing/selftests/tc-testing/tc-tests/actions/ |
| H A D | sample.json | 4 "name": "Add valid sample action with mandatory arguments", 7 "sample" 14 "$TC actions flush action sample", 20 "cmdUnderTest": "$TC actions add action sample rate 10 group 1 index 2", 22 "verifyCmd": "$TC actions get action sample index 2", 23 "matchPattern": "action order [0-9]+: sample rate 1/10 group 1.*index 2 ref", 26 "$TC actions flush action sample" 31 "name": "Add valid sample action with mandatory arguments and continue control action", 34 "sample" 41 "$TC actions flush action sample", [all …]
|
| /linux/sound/usb/ |
| H A D | format.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 9 #include <linux/usb/audio-v2.h> 10 #include <linux/usb/audio-v3.h> 39 switch (fp->protocol) { in parse_audio_format_i_type() 46 fp->iface, fp->altsetting, format); in parse_audio_format_i_type() 49 sample_width = fmt->bBitResolution; in parse_audio_format_i_type() 50 sample_bytes = fmt->bSubframeSize; in parse_audio_format_i_type() 57 sample_width = fmt->bBitResolution; in parse_audio_format_i_type() 58 sample_bytes = fmt->bSubslotSize; in parse_audio_format_i_type() 63 fp->dsd_raw = true; in parse_audio_format_i_type() [all …]
|
| H A D | clock.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * Clock domain and sample rate management functions 11 #include <linux/usb/audio-v2.h> 12 #include <linux/usb/audio-v3.h> 42 ((p)->v3.bLength >= sizeof((p)->v3)) : \ 43 ((p)->v2.bLength >= sizeof((p)->v2))) 46 ((proto) == UAC_VERSION_3 ? (p)->v3.field : (p)->v2.field) 54 while ((cs = snd_usb_find_csint_desc(iface->extra, iface->extralen, in find_uac_clock_desc() 84 return cs->v3.bLength >= sizeof(cs->v3) + cs->v3.bNrInPins + in validate_clock_selector() 87 return cs->v2.bLength >= sizeof(cs->v2) + cs->v2.bNrInPins + in validate_clock_selector() [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_matchall.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 2 /* Copyright (c) 2017-2020 Mellanox Technologies. All rights reserved */ 18 list_for_each_entry(mall_entry, &block->mall.list, list) in mlxsw_sp_mall_entry_find() 19 if (mall_entry->cookie == cookie) in mlxsw_sp_mall_entry_find() 30 struct mlxsw_sp *mlxsw_sp = mlxsw_sp_port->mlxsw_sp; in mlxsw_sp_mall_port_mirror_add() 36 if (!mall_entry->mirror.to_dev) { in mlxsw_sp_mall_port_mirror_add() 38 return -EINVAL; in mlxsw_sp_mall_port_mirror_add() 41 agent_parms.to_dev = mall_entry->mirror.to_dev; in mlxsw_sp_mall_port_mirror_add() 42 err = mlxsw_sp_span_agent_get(mlxsw_sp, &mall_entry->mirror.span_id, in mlxsw_sp_mall_port_mirror_add() 50 mall_entry->ingress); in mlxsw_sp_mall_port_mirror_add() [all …]
|
| /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 …]
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | tc_restrictions.sh | 2 # SPDX-License-Identifier: GPL-2.0 41 # It is forbidden in mlxsw driver to have mixed-bound 90 # egress-bound block. 171 # It is forbidden in mlxsw driver to have matchall with sample action 172 # bound on egress. Spectrum-1 specific restriction 178 matchall skip_sw action sample rate 100 group 1 179 check_err $? "Failed to add rule with sample action on ingress" 184 matchall skip_sw action sample rate 100 group 1 185 check_fail $? "Incorrect success to add rule with sample action on egress" 189 log_test "matchall sample egress" [all …]
|
| /linux/tools/perf/Documentation/ |
| H A D | intel-acr.txt | 2 --------------------------------- 7 upon overflow of chosen counters. By taking a sample only if the rate of 8 one event exceeds some threshold relative to the rate of another event, 9 this feature enables software to sample based on the relative rate of 10 two or more events. To enable this, the user must provide a sample period 12 counters in an event group to reload if the event's specified sample 18 perf record -e {cpu_atom/instructions,period=200000,acr_mask=0x2/, \ 19 cpu_atom/cycles,period=100000,acr_mask=0x3/} -- true 21 In this case, if the "instructions" counter exceeds the sample period of 22 200000, the second counter, "cycles", will be reset and a sample will be [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 */ 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 */ [all …]
|
| /linux/net/sched/ |
| H A D | act_sample.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * net/sched/act_sample.c - Packet sampling tc action 45 u32 psample_group_num, rate, index; in tcf_sample_init() local 53 return -EINVAL; in tcf_sample_init() 60 return -EINVAL; in tcf_sample_init() 63 index = parm->index; in tcf_sample_init() 81 return -EEXIST; in tcf_sample_init() 85 NL_SET_ERR_MSG(extack, "sample rate and group are required"); in tcf_sample_init() 86 err = -EINVAL; in tcf_sample_init() 90 err = tcf_action_check_ctrlact(parm->action, tp, &goto_ch, extack); in tcf_sample_init() [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 27 #define PERF_EVENT_CPUM_SF 0xB0000UL /* Event: Basic-sampling */ 28 #define PERF_EVENT_CPUM_SF_DIAG 0xBD000UL /* Event: Combined-sampling */ 29 #define PERF_CPUM_SF_BASIC_MODE 0x0001 /* Basic-sampling flag */ 30 #define PERF_CPUM_SF_DIAG_MODE 0x0002 /* Diagnostic-sampling flag */ 33 #define OVERFLOW_REG(hwc) ((hwc)->extra_reg.config) 34 #define SFB_ALLOC_REG(hwc) ((hwc)->extra_reg.alloc) 35 #define TEAR_REG(hwc) ((hwc)->last_tag) 36 #define SAMPL_RATE(hwc) ((hwc)->event_base) [all …]
|
| /linux/include/linux/ |
| H A D | wm97xx.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 49 #define WM97XX_CM_RATE_93 0x0000 /* 93.75Hz continuous rate */ 50 #define WM97XX_CM_RATE_187 0x0100 /* 187.5Hz continuous rate */ 51 #define WM97XX_CM_RATE_375 0x0200 /* 375Hz continuous rate */ 52 #define WM97XX_CM_RATE_750 0x0300 /* 750Hz continuous rate */ 53 #define WM97XX_CM_RATE_8K 0x00f0 /* 8kHz continuous rate */ 54 #define WM97XX_CM_RATE_12K 0x01f0 /* 12kHz continuous rate */ 55 #define WM97XX_CM_RATE_24K 0x02f0 /* 24kHz continuous rate */ 56 #define WM97XX_CM_RATE_48K 0x03f0 /* 48kHz continuous rate */ 59 #define WM97XX_DELAY(i) ((i << 4) & 0x00f0) /* sample delay times */ [all …]
|
| /linux/Documentation/userspace-api/media/drivers/ |
| H A D | max2175.rst | 1 .. SPDX-License-Identifier: GPL-2.0 6 The MAX2175 driver implements the following driver-specific controls: 9 ------------------------------- 12 Refer to Documentation/driver-api/media/v4l2-controls.rst for more details. 14 .. flat-table:: 15 :header-rows: 0 16 :stub-columns: 0 19 * - ``(0)`` 20 - I2S output is disabled. 21 * - ``(1)`` [all …]
|
| /linux/tools/testing/selftests/bpf/benchs/ |
| H A D | run_bench_ringbufs.sh | 5 set -eufo pipefail 7 RUN_RB_BENCH="$RUN_BENCH -c1" 9 header "Single-producer, parallel producer" 10 for b in rb-libbpf rb-custom pb-libbpf pb-custom; do 14 header "Single-producer, parallel producer, sampled notification" 15 for b in rb-libbpf rb-custo [all...] |
| /linux/Documentation/sound/soc/ |
| H A D | dai.rst | 30 usually varies depending on the sample rate and the master system clock 31 (SYSCLK). LRCLK is the same as the sample rate. A few devices support separate 33 different sample rates. 35 I2S has several different operating modes:- 45 MSB is transmitted sample size BCLKs before LRC transition. 53 receive the audio data. Bit clock usually varies depending on sample rate 54 while sync runs at the sample rate. PCM also supports Time Division 58 Common PCM operating modes:-
|
| /linux/sound/pci/emu10k1/ |
| H A D | p16v.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * Copyright (c) by James Courtier-Dutton <James@superbug.demon.co.uk> 11 /* Audigy2 P16V pointer-offset register set, accessed through the PTR2 and DATA2 registers … 14 /* The sample rate of the SPDIF outputs is set by modifying a register in the EMU10K2 PTR register … 15 …* The sample rate is also controlled by the same registers that control the rate of the EMU10K2 sa… 25 #define PLAYBACK_LIST_SIZE 0x01 /* Size of list in bytes << 16. E.g. 8 periods -> 0x00380000 */ 36 #define CAPTURE_POINTER 0x12 /* Capture buffer pointer. Sample currently in ADC */ 75 * [26:24] FX engine channel capture 0 = 0x60-0x67. 76 * 1 = 0x68-0x6f. 77 * 2 = 0x70-0x77. [all …]
|
| /linux/drivers/mmc/host/ |
| H A D | dw_mmc-rockchip.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 12 #include <linux/mmc/slot-gpio.h> 17 #include "dw_mmc-pltfm.h" 44 * Each fine delay is between 44ps-77ps. Assume each fine delay is 60ps to 47 static int rockchip_mmc_get_internal_phase(struct dw_mci *host, bool sample) in rockchip_mmc_get_internal_phase() argument 49 unsigned long rate = clk_get_rate(host->ciu_clk) / RK3288_CLKGEN_DIV; in rockchip_mmc_get_internal_phase() local 55 if (!rate) in rockchip_mmc_get_internal_phase() 58 if (sample) in rockchip_mmc_get_internal_phase() 69 36 * (rate / 10000); in rockchip_mmc_get_internal_phase() 79 static int rockchip_mmc_get_phase(struct dw_mci *host, bool sample) in rockchip_mmc_get_phase() argument [all …]
|
| /linux/tools/testing/selftests/drivers/net/netdevsim/ |
| H A D | ethtool-coalesce.sh | 2 # SPDX-License-Identifier: GPL-2.0-only 4 source ethtool-common.sh 9 echo $(ethtool -c $NSIM_NETDEV | \ 10 awk -F':' -v pattern="$query:" '$0 ~ pattern {gsub(/[ \t]/, "", $2); print $2}') 20 if ! ethtool -h | grep -q coalesce; then 21 echo "SKIP: No --coalesce support in ethtool" 27 set -o pipefail 29 declare -A SETTINGS_MAP=( 30 ["rx-frames-low"]="rx-frame-low" 31 ["tx-frames-low"]="tx-frame-low" [all …]
|
| /linux/sound/pci/ |
| H A D | ad1889.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 3 * Copyright (C) 2004, Kyle McMartin <kyle@parisc-linux.org> 37 #define AD_DS_WAS 0x08 /* wave channel sample rate */ 38 #define AD_DS_WAS_WAS 0xffff /* sample rate mask */ 40 #define AD_DS_RES 0x0a /* resampler channel sample rate */ 41 #define AD_DS_RES_RES 0xffff /* sample rate mask */ 48 /* bits 4 -> 7, 9, 11 -> 14 reserved */ 87 /* bits 24 -> 31 reserved */ 105 /* bits 8 -> 15 reserved */ 114 /* bits 7 -> 13 reserved */ [all …]
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/tc/act/ |
| H A D | sample.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 7 #include "en/tc/act/sample.h" 15 struct mlx5e_sample_attr *sample_attr = &attr->sample_attr; in tc_act_parse_sample() 17 sample_attr->rate = act->sample.rate; in tc_act_parse_sample() 18 sample_attr->group_num = act->sample.psample_group->group_num; in tc_act_parse_sample() 20 if (act->sample.truncate) in tc_act_parse_sample() 21 sample_attr->trunc_size = act->sample.trunc_size; in tc_act_parse_sample() 23 attr->flags |= MLX5_ATTR_FLAG_SAMPLE; in tc_act_parse_sample() 24 flow_flag_set(parse_state->flow, SAMPLE); in tc_act_parse_sample() 34 attr->action & MLX5_FLOW_CONTEXT_ACTION_DECAP) in mlx5e_tc_act_sample_is_multi_table() [all …]
|
| /linux/drivers/acpi/ |
| H A D | nhlt.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright(c) 2023-2024 Intel Corporation 28 * acpi_nhlt_get_gbl_table - Retrieve a pointer to the first NHLT table. 47 * acpi_nhlt_put_gbl_table - Release the global NHLT table. 56 * acpi_nhlt_endpoint_match - Verify if an endpoint matches criteria. 72 (link_type < 0 || ep->link_type == link_type) && in acpi_nhlt_endpoint_match() 73 (dev_type < 0 || ep->device_type == dev_type) && in acpi_nhlt_endpoint_match() 74 (bus_id < 0 || ep->virtual_bus_id == bus_id) && in acpi_nhlt_endpoint_match() 75 (dir < 0 || ep->direction == dir); in acpi_nhlt_endpoint_match() 80 * acpi_nhlt_tb_find_endpoint - Search a NHLT table for an endpoint. [all …]
|
| /linux/sound/usb/usx2y/ |
| H A D | us144mkii_controls.c | 1 // SPDX-License-Identifier: GPL-2.0-only 9 * Used by ALSA kcontrol elements to provide user-friendly names for 10 * the playback routing options (e.g., "Playback 1-2", "Playback 3-4"). 12 static const char *const playback_source_texts[] = { "Playback 1-2", 13 "Playback 3-4" }; 18 * Used by ALSA kcontrol elements to provide user-friendly names for 24 * tascam_playback_source_info() - ALSA control info callback for playback 30 * control, including its type, count, and available items (Playback 1-2, 31 * Playback 3-4). 42 * tascam_line_out_get() - ALSA control get callback for Line Outputs Source. [all …]
|
| /linux/Documentation/sound/cards/ |
| H A D | hdspm.rst | 2 Software Interface ALSA-DSP MADI Driver 5 (translated from German, so no good English ;-), 7 2004 - winfried ritsch 11 the Controls and startup-options are ALSA-Standard and only the 19 ------------------ 21 * number of channels -- depends on transmission mode 29 * Single Speed -- 1..64 channels 37 * Double Speed -- 1..32 channels 40 Note: Choosing the 56-channel mode for 41 transmission/receive-mode , only 28 are transmitted/received [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/tools/perf/pmu-events/arch/x86/broadwellde/ |
| H A D | bdwde-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 11 "MetricExpr": "cstate_core@c3\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", 25 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 39 "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / msr@tsc@", 59 "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)", 78 …sible; which incur a few cycles load re-issue. However; the short re-issue duration is often hidde… 95 …-cases for operations that cannot be handled natively by the execution pipeline. For example; when… [all …]
|
| /linux/tools/perf/pmu-events/arch/x86/broadwell/ |
| H A D | bdw-metrics.json | 4 "MetricExpr": "cstate_pkg@c2\\-residency@ / msr@tsc@", 11 "MetricExpr": "cstate_core@c3\\-residency@ / msr@tsc@", 18 "MetricExpr": "cstate_pkg@c3\\-residency@ / msr@tsc@", 25 "MetricExpr": "cstate_core@c6\\-residency@ / msr@tsc@", 32 "MetricExpr": "cstate_pkg@c6\\-residency@ / msr@tsc@", 39 "MetricExpr": "cstate_core@c7\\-residency@ / msr@tsc@", 46 "MetricExpr": "cstate_pkg@c7\\-residency@ / msr@tsc@", 59 "MetricExpr": "((msr@aperf@ - cycles) / msr@aperf@ if msr@smi@ > 0 else 0)", 78 …sible; which incur a few cycles load re-issue. However; the short re-issue duration is often hidde… 95 …-cases for operations that cannot be handled natively by the execution pipeline. For example; when… [all …]
|