/Linux-v6.6/tools/testing/selftests/netfilter/ |
D | nft_meta.sh | 5 # Kselftest framework requirement - SKIP code is 4. 7 sfx=$(mktemp -u "XXXXXXXX") 8 ns0="ns0-$sfx" 10 if ! nft --version > /dev/null 2>&1; then 21 ip -net "$ns0" link set lo up 22 ip -net "$ns0" addr add 127.0.0.1 dev lo 27 lastyear=$((currentyear-1)) 28 ip netns exec "$ns0" nft -f /dev/stdin <<EOF 30 counter iifcount {} 31 counter iifnamecount {} [all …]
|
D | conntrack_icmp_related.sh | 3 # check that ICMP df-needed/pkttoobig icmp are set are set as related 8 # nsclient1 -> nsrouter1 -> nsrouter2 -> nsclient2 9 # MTU 1500, except for nsrouter2 <-> nsclient2 link (1280). 15 # nat of "established" icmp-echo "connection". 17 # Kselftest framework requirement - SKIP code is 4. 21 nft --version > /dev/null 2>&1 22 if [ $? -ne 0 ];then 27 ip -Version > /dev/null 2>&1 28 if [ $? -ne 0 ];then 34 for i in 1 2;do ip netns del nsclient$i;done [all …]
|
D | conntrack_vrf.sh | 38 sfx=$(mktemp -u "XXXXXXXX") 39 ns0="ns0-$sfx" 40 ns1="ns1-$sfx" 44 ip netns pids $ns0 | xargs kill 2>/dev/null 45 ip netns pids $ns1 | xargs kill 2>/dev/null 50 nft --version > /dev/null 2>&1 51 if [ $? -ne 0 ];then 56 ip -Version > /dev/null 2>&1 57 if [ $? -ne 0 ];then 63 if [ $? -ne 0 ];then [all …]
|
D | nft_nat.sh | 6 # Kselftest framework requirement - SKIP code is 4. 11 sfx=$(mktemp -u "XXXXXXXX") 12 ns0="ns0-$sfx" 13 ns1="ns1-$sfx" 14 ns2="ns2-$sfx" 18 for i in 0 1 2; do ip netns del ns$i-"$sfx";done 21 nft --version > /dev/null 2>&1 22 if [ $? -ne 0 ];then 27 ip -Version > /dev/null 2>&1 28 if [ $? -ne 0 ];then [all …]
|
/Linux-v6.6/drivers/counter/ |
D | i8254.c | 1 // SPDX-License-Identifier: GPL-2.0 8 #include <linux/counter.h> 33 #define I8254_MODE_RATE_GENERATOR 2 44 * struct i8254 - I8254 device private data structure 46 * @preset: array of Counter Register states 57 static int i8254_count_read(struct counter_device *const counter, struct counter_count *const count, in i8254_count_read() argument 60 struct i8254 *const priv = counter_priv(counter); in i8254_count_read() 62 u8 value[2]; in i8254_count_read() 64 mutex_lock(&priv->lock); in i8254_count_read() 66 ret = regmap_write(priv->map, I8254_CONTROL_REG, I8254_COUNTER_LATCH(count->id)); in i8254_count_read() [all …]
|
D | 104-quad-8.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Counter driver for the ACCES 104-QUAD-8 6 * This driver supports the ACCES 104-QUAD-8 and ACCES 104-QUAD-4. 10 #include <linux/counter.h> 32 MODULE_PARM_DESC(base, "ACCES 104-QUAD-8 base addresses"); 37 MODULE_PARM_DESC(irq, "ACCES 104-QUAD-8 interrupt line numbers"); 41 #define QUAD8_DATA(_channel) ((_channel) * 2) 50 * struct quad8 - device private data structure 52 * @cmr: array of Counter Mode Register states 105 /* Counter Mode Register */ [all …]
|
D | intel-qep.c | 1 // SPDX-License-Identifier: GPL-2.0 5 * Copyright (C) 2019-2021 Intel Corporation 11 #include <linux/counter.h> 32 #define INTEL_QEPCON_EDGE_A BIT(2) 43 #define INTEL_QEPCON_INDX_PAH_PBL INTEL_QEPCON_INDX_GATING(2) 47 #define INTEL_QEPCON_FIFO_THRE(n) ((((n) - 1) & 7) << 12) 57 #define INTEL_QEPINT_QEPRST_UP BIT(2) 78 return readl(qep->regs + offset); in intel_qep_readl() 84 writel(value, qep->regs + offset); in intel_qep_writel() 94 qep->enabled = false; in intel_qep_init() [all …]
|
D | rz-mtu3-cnt.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Renesas RZ/G2L MTU3a Counter driver 9 #include <linux/counter.h> 10 #include <linux/mfd/rz-mtu3.h> 23 * TCNT: Timer Counter 25 * TCNTLW: Timer Longword Counter 32 #define RZ_MTU3_TMDR1_PH_CNT_MODE_2 (5) /* Phase counting mode 2 */ 40 * 0: 16-bit, 1: 32-bit 52 #define RZ_MTU3_32_BIT_CH (2) 59 #define SIGNAL_C_ID (2) [all …]
|
/Linux-v6.6/arch/arm/include/asm/ |
D | atomic.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 25 #define arch_atomic_read(v) READ_ONCE((v)->counter) 26 #define arch_atomic_set(v,i) WRITE_ONCE(((v)->counter), (i)) 42 prefetchw(&v->counter); \ 49 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \ 50 : "r" (&v->counter), "Ir" (i) \ 60 prefetchw(&v->counter); \ 68 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \ 69 : "r" (&v->counter), "Ir" (i) \ 81 prefetchw(&v->counter); \ [all …]
|
/Linux-v6.6/arch/powerpc/include/asm/ |
D | atomic.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 13 #include <asm/asm-const.h> 17 * a "bne-" instruction at the end, so an isync is enough as a acquire barrier 30 /* -mprefixed can generate offsets beyond range, fall back hack */ in arch_atomic_read() 32 __asm__ __volatile__("lwz %0,0(%1)" : "=r"(t) : "b"(&v->counter)); in arch_atomic_read() 34 __asm__ __volatile__("lwz%U1%X1 %0,%1" : "=r"(t) : "m<>"(v->counter)); in arch_atomic_read() 41 /* -mprefixed can generate offsets beyond range, fall back hack */ in arch_atomic_set() 43 __asm__ __volatile__("stw %1,0(%2)" : "=m"(v->counter) : "r"(i), "b"(&v->counter)); in arch_atomic_set() 45 __asm__ __volatile__("stw%U0%X0 %1,%0" : "=m<>"(v->counter) : "r"(i)); in arch_atomic_set() 55 #asm_op "%I2" suffix " %0,%0,%2\n" \ [all …]
|
/Linux-v6.6/drivers/comedi/drivers/ |
D | comedi_8254.c | 1 // SPDX-License-Identifier: GPL-2.0+ 4 * Generic 8254 timer/counter support 9 * COMEDI - Linux Control and Measurement Device Interface 15 * Description: Generic 8254 timer/counter support 20 * This module is not used directly by end-users. Rather, it is used by other 31 * comedi_device dev->pacer and will be freed by the comedi core during 42 * I8254_MODE1 Hardware retriggerable one-shot 53 * Writes an initial value to a counter. 55 * The largest possible initial count is 0; this is equivalent to 2^16 58 * NOTE: The counter does not stop when it reaches zero. In Mode 0, 1, 4, [all …]
|
D | ni_tio.c | 1 // SPDX-License-Identifier: GPL-2.0+ 11 * Author: J.P. Mellor <jpmellor@rose-hulman.edu>, 19 * This module is not used directly by end-users. Rather, it 22 * originally based on the counter code from ni_660x.c and 26 * DAQ 660x Register-Level Programmer Manual (NI 370505A-01) 27 * DAQ 6601/6602 User Manual (NI 322137B-01) 28 * 340934b.pdf DAQ-STC reference manual 133 switch (counter_dev->variant) { in ni_tio_has_gate2_registers() 144 * ni_tio_write() - Write a TIO register using the driver provided callback. 145 * @counter: struct ni_gpct counter. [all …]
|
D | amplc_dio200.c | 1 // SPDX-License-Identifier: GPL-2.0+ 7 * Copyright (C) 2005-2013 MEV Ltd. <https://www.mev.co.uk/> 9 * COMEDI - Linux Control and Measurement Device Interface 24 * [0] - I/O port base address 25 * [1] - IRQ (optional, but commands won't work without it) 32 * ------------- ------------- ------------- 34 * 0 PPI-X PPI-X PPI-X 35 * 1 CTR-Y1 PPI-Y PPI-Y 36 * 2 CTR-Y2 CTR-Z1* CTR-Z1 37 * 3 CTR-Z1 INTERRUPT* CTR-Z2 [all …]
|
D | ni_660x.c | 1 // SPDX-License-Identifier: GPL-2.0+ 8 * Description: National Instruments 660x counter/timer boards 9 * Devices: [National Instruments] PCI-6601 (ni_660x), PCI-6602, PXI-6602, 10 * PCI-6608, PXI-6608, PCI-6624, PXI-6624 11 * Author: J.P. Mellor <jpmellor@rose-hulman.edu>, 23 * DAQ 660x Register-Level Programmer Manual (NI 370505A-01) 24 * DAQ 6601/6602 User Manual (NI 322137B-01) 35 /* See Register-Level Programmer Manual page 3.1 */ 86 #define NI660X_IO_CFG(x) (NI660X_IO_CFG_0_1 + ((x) / 2)) 87 #define NI660X_IO_CFG_OUT_SEL(_c, _s) (((_s) & 0x3) << (((_c) % 2) ? 0 : 8)) [all …]
|
D | amplc_dio200_pci.c | 1 // SPDX-License-Identifier: GPL-2.0+ 6 * Copyright (C) 2005-2013 MEV Ltd. <https://www.mev.co.uk/> 8 * COMEDI - Linux Control and Measurement Device Interface 30 * ------------- ------------- ------------- 32 * 0 PPI-X PPI-X PPI-X 33 * 1 PPI-Y UNUSED UNUSED 34 * 2 CTR-Z1 PPI-Y UNUSED 35 * 3 CTR-Z2 UNUSED UNUSED 36 * 4 INTERRUPT CTR-Z1 CTR-Z1 37 * 5 CTR-Z2 CTR-Z2 [all …]
|
/Linux-v6.6/drivers/net/fddi/skfp/h/ |
D | fddimib.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 19 typedef u_long Counter ; typedef 29 Counter count ; 38 #define MIB_PATH_L (1<<2) 45 #define MIB_P_PATH_PRIM_ALTER (1<<2) 57 #define MIB_PATH_SECONDARY 2 67 #define MIB_PMDCLASS_SINGLE2 2 79 #define MIB_SMT_STASTA_THRU 2 96 u_long fddiESSMaxTNeg ; /* maximum of T-NEG */ 195 Counter fddiMACFrame_Ct ; [all …]
|
/Linux-v6.6/tools/perf/ |
D | design.txt | 3 ------------------------------ 7 as instructions executed, cachemisses suffered, or branches mis-predicted - 9 trigger interrupts when a threshold number of events have passed - and can 12 The Linux Performance Counter subsystem provides an abstraction of these 13 hardware capabilities. It provides per task and per CPU counters, counter 15 provides "virtual" 64-bit counters, regardless of the width of the 19 There's one file descriptor per virtual counter used. 29 VFS system calls: read() can be used to read the counter, fcntl() 35 When creating a new counter fd, 'perf_event_attr' is: 40 * specific (raw) counter configuration data, if unset, the next [all …]
|
/Linux-v6.6/Documentation/devicetree/bindings/counter/ |
D | interrupt-counter.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 4 $id: http://devicetree.org/schemas/counter/interrupt-counter.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: Interrupt counter 10 - Oleksij Rempel <o.rempel@pengutronix.de> 13 A generic interrupt counter to measure interrupt frequency. It was developed 22 const: interrupt-counter 31 - compatible 34 - required: [ interrupts-extended ] [all …]
|
/Linux-v6.6/arch/alpha/include/asm/ |
D | atomic.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 21 * Avoid redundant back-to-back fences in the _acquire and _fence 29 #define arch_atomic_read(v) READ_ONCE((v)->counter) 30 #define arch_atomic64_read(v) READ_ONCE((v)->counter) 32 #define arch_atomic_set(v,i) WRITE_ONCE((v)->counter, (i)) 33 #define arch_atomic64_set(v,i) WRITE_ONCE((v)->counter, (i)) 47 " " #asm_op " %0,%2,%0\n" \ 49 " beq %0,2f\n" \ 50 ".subsection 2\n" \ 51 "2: br 1b\n" \ [all …]
|
/Linux-v6.6/arch/openrisc/include/asm/ |
D | atomic.h | 5 * version 2. This program is licensed "as is" without any warranty of any 14 /* Atomically perform op with v->counter and i */ 22 " l." #op " %0,%0,%2 \n" \ 27 : "r"(&v->counter), "r"(i) \ 31 /* Atomically perform op with v->counter and i, return the result */ 39 " l." #op " %0,%0,%2 \n" \ 44 : "r"(&v->counter), "r"(i) \ 50 /* Atomically perform op with v->counter and i, return orig v->counter */ 57 "1: l.lwa %0,0(%2) \n" \ 59 " l.swa 0(%2),%1 \n" \ [all …]
|
/Linux-v6.6/arch/loongarch/include/asm/ |
D | atomic.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * Copyright (C) 2020-2022 Loongson Technology Corporation Limited 32 #define arch_atomic_read(v) READ_ONCE((v)->counter) 33 #define arch_atomic_set(v, i) WRITE_ONCE((v)->counter, (i)) 40 : "+ZB" (v->counter) \ 51 "am"#asm_op"_db.w" " %1, %2, %0 \n" \ 52 : "+ZB" (v->counter), "=&r" (result) \ 65 "am"#asm_op"_db.w" " %1, %2, %0 \n" \ 66 : "+ZB" (v->counter), "=&r" (result) \ 79 ATOMIC_OPS(sub, -i, add, +) [all …]
|
/Linux-v6.6/drivers/net/wireguard/selftest/ |
D | counter.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Copyright (C) 2015-2019 Jason A. Donenfeld <Jason@zx2c4.com>. All Rights Reserved. 9 struct noise_replay_counter *counter; in wg_packet_counter_selftest() local 13 counter = kmalloc(sizeof(*counter), GFP_KERNEL); in wg_packet_counter_selftest() 14 if (unlikely(!counter)) { in wg_packet_counter_selftest() 15 pr_err("nonce counter self-test malloc: FAIL\n"); in wg_packet_counter_selftest() 20 memset(counter, 0, sizeof(*counter)); \ in wg_packet_counter_selftest() 21 spin_lock_init(&counter->lock); \ in wg_packet_counter_selftest() 26 if (counter_validate(counter, n) != (v)) { \ in wg_packet_counter_selftest() 27 pr_err("nonce counter self-test %u: FAIL\n", \ in wg_packet_counter_selftest() [all …]
|
/Linux-v6.6/include/linux/comedi/ |
D | comedi_8254.h | 1 /* SPDX-License-Identifier: GPL-2.0+ */ 4 * Generic 8254 timer/counter support 7 * COMEDI - Linux Control and Measurement Device Interface 36 #define I8254_IO16 2 50 #define I8254_CTRL_READBACK_SEL_CTR(x) (2 << (x)) 54 #define I8254_CTRL_MSB_ONLY I8254_CTRL_RW(2) 57 /* counter maps zero to 0x10000 */ 61 * struct comedi_8254 - private data used by this module 67 * @divisor: divisor for single counter 68 * @divisor1: divisor loaded into first cascaded counter [all …]
|
/Linux-v6.6/drivers/net/wan/ |
D | hd64572.h | 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 3 * hd64572.h Description of the Hitachi HD64572 (SCA-II), valid for 4 * CPU modes 0 & 2. 8 * Copyright: (c) 2000-2001 Cyclades Corp. 15 * PC300 initial CVS version (3.4.0-pre1) 48 #define DTX_REG(reg, chan) (reg + 0x20*(2*chan + 1)) /* DMA Tx */ 50 #define TTX_REG(reg, chan) (reg + 0x10*(2*chan + 1)) /* Timer Tx */ 53 #define IR0_DTX(val, chan) ((val)<<(4*(2*chan + 1))) /* Int DMA Tx */ 62 #define MD2 0x13a /* Mode reg 2 */ 73 #define ST2 0x11a /* Status reg 2 */ [all …]
|
/Linux-v6.6/drivers/md/ |
D | md-bitmap.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 5 * additions: Copyright (C) 2003-2004, Paul Clements, SteelEye Technology, Inc. 11 /* version 4 insists the bitmap is in little-endian order 12 * with version 3, it is host-endian which is non-portable 20 * in-memory bitmap: 23 * The 2 high order bits are special-purpose, the first is a flag indicating 26 * This means that the counter is actually 14 bits: 28 * +--------+--------+------------------------------------------------+ 29 * | resync | resync | counter | 31 * | (0-1) | (0-1) | (0-16383) | [all …]
|