| /kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/ |
| D | prestera_counter.c | 1 // SPDX-License-Identifier: BSD-3-Clause OR GPL-2.0 40 COUNTER_FLAG_READY = 0, 47 return block->counter_flag[id - block->offset] == COUNTER_FLAG_READY; in prestera_counter_is_ready() 50 static void prestera_counter_lock(struct prestera_counter *counter) in prestera_counter_lock() argument 52 mutex_lock(&counter->mtx); in prestera_counter_lock() 55 static void prestera_counter_unlock(struct prestera_counter *counter) in prestera_counter_unlock() argument 57 mutex_unlock(&counter->mtx); in prestera_counter_unlock() 62 mutex_lock(&block->mtx); in prestera_counter_block_lock() 67 mutex_unlock(&block->mtx); in prestera_counter_block_unlock() 72 return refcount_inc_not_zero(&block->refcnt); in prestera_counter_block_incref() [all …]
|
| /kernel/linux/linux-6.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 …]
|
| /kernel/linux/linux-5.10/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 …]
|
| /kernel/linux/linux-6.6/drivers/comedi/drivers/ |
| 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 42 #define NI_M_TIMEBASE_1_CLK 0x0 /* 20MHz */ 43 #define NI_M_PFI_CLK(x) (((x) < 10) ? (1 + (x)) : (0xb + (x))) 44 #define NI_M_RTSI_CLK(x) (((x) == 7) ? 0x1b : (0xb + (x))) [all …]
|
| D | ni_tiocmd.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 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 38 static void ni_tio_configure_dma(struct ni_gpct *counter, in ni_tio_configure_dma() argument 41 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_configure_dma() 42 unsigned int cidx = counter->counter_index; in ni_tio_configure_dma() 47 bits = 0; in ni_tio_configure_dma() [all …]
|
| /kernel/linux/linux-5.10/drivers/staging/comedi/drivers/ |
| 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 42 #define NI_M_TIMEBASE_1_CLK 0x0 /* 20MHz */ 43 #define NI_M_PFI_CLK(x) (((x) < 10) ? (1 + (x)) : (0xb + (x))) 44 #define NI_M_RTSI_CLK(x) (((x) == 7) ? 0x1b : (0xb + (x))) [all …]
|
| D | ni_tiocmd.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 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 38 static void ni_tio_configure_dma(struct ni_gpct *counter, in ni_tio_configure_dma() argument 41 struct ni_gpct_device *counter_dev = counter->counter_dev; in ni_tio_configure_dma() 42 unsigned int cidx = counter->counter_index; in ni_tio_configure_dma() 47 bits = 0; in ni_tio_configure_dma() [all …]
|
| /kernel/linux/linux-6.6/drivers/counter/ |
| D | counter-core.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Generic Counter interface 7 #include <linux/counter.h> 22 #include "counter-chrdev.h" 23 #include "counter-sysfs.h" 25 #define COUNTER_NAME "counter" 27 /* Provides a unique ID for each counter device */ 31 struct counter_device counter; member 42 struct counter_device *const counter = in counter_device_release() local 45 counter_chrdev_remove(counter); in counter_device_release() [all …]
|
| D | counter-chrdev.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Generic Counter character device interface 7 #include <linux/counter.h> 24 #include "counter-chrdev.h" 68 struct counter_device *const counter = filp->private_data; in counter_chrdev_read() local 72 if (!counter->ops) in counter_chrdev_read() 73 return -ENODEV; in counter_chrdev_read() 76 return -EINVAL; in counter_chrdev_read() 79 if (kfifo_is_empty(&counter->events)) { in counter_chrdev_read() 80 if (filp->f_flags & O_NONBLOCK) in counter_chrdev_read() [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 36 #define RZ_MTU3_TMDR1_PH_CNT_MODE_MASK (0xf) 40 * 0: 16-bit, 1: 32-bit 42 #define RZ_MTU3_TMDR3_LWA (0) 46 * 0: MTCLKA and MTCLKB, 1: MTCLKC and MTCLKD [all …]
|
| D | ti-ecap-capture.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 10 #include <linux/counter.h> 24 #define ECAP_CEVT1 0 37 #define ECAP_TSCNT_REG 0x00 39 #define ECAP_CAP_REG(i) (((i) << 2) + 0x08) 41 #define ECAP_ECCTL_REG 0x28 43 #define ECAP_EV_MODE_MASK GENMASK(7, 0) 55 #define ECAP_ECINT_EN_FLG_REG 0x2c 59 #define ECAP_ECINT_CLR_FRC_REG 0x30 60 #define ECAP_INT_CLR_BIT BIT(0) [all …]
|
| D | interrupt-cnt.c | 1 // SPDX-License-Identifier: GPL-2.0 7 #include <linux/counter.h> 17 #define INTERRUPT_CNT_NAME "interrupt-cnt" 32 struct counter_device *counter = dev_id; in interrupt_cnt_isr() local 33 struct interrupt_cnt_priv *priv = counter_priv(counter); in interrupt_cnt_isr() 35 atomic_inc(&priv->count); in interrupt_cnt_isr() 37 counter_push_event(counter, COUNTER_EVENT_CHANGE_OF_STATE, 0); in interrupt_cnt_isr() 42 static int interrupt_cnt_enable_read(struct counter_device *counter, in interrupt_cnt_enable_read() argument 45 struct interrupt_cnt_priv *priv = counter_priv(counter); in interrupt_cnt_enable_read() 47 guard(mutex)(&priv->lock); in interrupt_cnt_enable_read() [all …]
|
| /kernel/linux/linux-5.10/tools/perf/pmu-events/arch/x86/westmereex/ |
| D | pipeline.json | 3 "EventCode": "0x14", 4 "Counter": "0,1,2,3", string 5 "UMask": "0x1", 11 "EventCode": "0x14", 13 "Counter": "0,1,2,3", string 14 "UMask": "0x1", 22 "EventCode": "0x14", 23 "Counter": "0,1,2,3", string 24 "UMask": "0x2", 30 "EventCode": "0xE6", [all …]
|
| /kernel/linux/linux-5.10/tools/perf/pmu-events/arch/x86/westmereep-dp/ |
| D | pipeline.json | 3 "EventCode": "0x14", 4 "Counter": "0,1,2,3", string 5 "UMask": "0x1", 11 "EventCode": "0x14", 13 "Counter": "0,1,2,3", string 14 "UMask": "0x1", 22 "EventCode": "0x14", 23 "Counter": "0,1,2,3", string 24 "UMask": "0x2", 30 "EventCode": "0xE6", [all …]
|
| /kernel/linux/linux-5.10/tools/perf/pmu-events/arch/x86/westmereep-sp/ |
| D | pipeline.json | 3 "EventCode": "0x14", 4 "Counter": "0,1,2,3", string 5 "UMask": "0x1", 11 "EventCode": "0x14", 13 "Counter": "0,1,2,3", string 14 "UMask": "0x1", 22 "EventCode": "0x14", 23 "Counter": "0,1,2,3", string 24 "UMask": "0x2", 30 "EventCode": "0xE6", [all …]
|
| /kernel/linux/linux-5.10/tools/perf/pmu-events/arch/x86/nehalemex/ |
| D | pipeline.json | 3 "EventCode": "0x14", 4 "Counter": "0,1,2,3", string 5 "UMask": "0x1", 11 "EventCode": "0x14", 13 "Counter": "0,1,2,3", string 14 "UMask": "0x1", 22 "EventCode": "0x14", 23 "Counter": "0,1,2,3", string 24 "UMask": "0x2", 30 "EventCode": "0xE6", [all …]
|
| /kernel/linux/linux-5.10/tools/perf/pmu-events/arch/x86/nehalemep/ |
| D | pipeline.json | 3 "EventCode": "0x14", 4 "Counter": "0,1,2,3", string 5 "UMask": "0x1", 11 "EventCode": "0x14", 13 "Counter": "0,1,2,3", string 14 "UMask": "0x1", 22 "EventCode": "0x14", 23 "Counter": "0,1,2,3", string 24 "UMask": "0x2", 30 "EventCode": "0xE6", [all …]
|
| /kernel/linux/linux-5.10/drivers/infiniband/core/ |
| D | counters.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 19 (curr->mode != RDMA_COUNTER_MODE_NONE))) in __counter_set_mode() 20 return -EINVAL; in __counter_set_mode() 22 curr->mode = new_mode; in __counter_set_mode() 23 curr->mask = new_mask; in __counter_set_mode() 24 return 0; in __counter_set_mode() 28 * rdma_counter_set_auto_mode() - Turn on/off per-port auto mode 31 * into manual mode if there's any counter, so that the user is able to 40 port_counter = &dev->port_data[port].port_counter; in rdma_counter_set_auto_mode() 41 if (!port_counter->hstats) in rdma_counter_set_auto_mode() [all …]
|
| /kernel/linux/linux-6.6/drivers/infiniband/core/ |
| D | counters.c | 1 // SPDX-License-Identifier: GPL-2.0 OR Linux-OpenIB 19 return -EINVAL; in __counter_set_mode() 20 if (port_counter->num_counters) in __counter_set_mode() 21 return -EBUSY; in __counter_set_mode() 24 port_counter->mode.mode = new_mode; in __counter_set_mode() 25 port_counter->mode.mask = new_mask; in __counter_set_mode() 26 return 0; in __counter_set_mode() 30 * rdma_counter_set_auto_mode() - Turn on/off per-port auto mode 37 * Return 0 on success. If counter mode wasn't changed then it is considered 39 * Return -EBUSY when changing to auto mode while there are bounded counters. [all …]
|
| /kernel/linux/linux-5.10/tools/perf/pmu-events/arch/x86/bonnell/ |
| D | pipeline.json | 3 "EventCode": "0x2", 4 "Counter": "0,1", string 5 "UMask": "0x83", 11 "EventCode": "0x2", 12 "Counter": "0,1", string 13 "UMask": "0x81", 19 "EventCode": "0x3", 20 "Counter": "0,1", string 21 "UMask": "0x7f", 24 "BriefDescription": "Micro-op reissues for any cause" [all …]
|
| D | other.json | 3 "EventCode": "0x6", 4 "Counter": "0,1", string 5 "UMask": "0x80", 11 "EventCode": "0x9", 12 "Counter": "0,1", string 13 "UMask": "0x20", 16 "BriefDescription": "Memory cluster signals to block micro-op dispatch for any reason" 19 "EventCode": "0x3A", 20 "Counter": "0,1", string 21 "UMask": "0x0", [all …]
|
| D | floating-point.json | 3 "EventCode": "0x10", 4 "Counter": "0,1", string 5 "UMask": "0x1", 8 "BriefDescription": "Floating point computational micro-ops executed." 12 "EventCode": "0x10", 13 "Counter": "0,1", string 14 "UMask": "0x81", 17 "BriefDescription": "Floating point computational micro-ops retired." 20 "EventCode": "0x10", 21 "Counter": "0,1", string [all …]
|
| /kernel/linux/linux-5.10/tools/perf/pmu-events/arch/x86/knightslanding/ |
| D | pipeline.json | 4 "EventCode": "0xC4", 5 "Counter": "0,1", string 6 "UMask": "0x0", 13 "EventCode": "0xC4", 14 "Counter": "0,1", string 15 "UMask": "0x7e", 22 "EventCode": "0xC4", 23 "Counter": "0,1", string 24 "UMask": "0xfe", 31 "EventCode": "0xC4", [all …]
|
| /kernel/linux/linux-5.10/tools/perf/util/ |
| D | stat-display.c | 27 if (config->csv_output) { in print_running() 28 fprintf(config->output, "%s%" PRIu64 "%s%.2f", in print_running() 29 config->csv_sep, in print_running() 31 config->csv_sep, in print_running() 34 fprintf(config->output, " (%.2f%%)", 100.0 * run / ena); in print_running() 43 if (config->csv_output) in print_noise_pct() 44 fprintf(config->output, "%s%.2f%%", config->csv_sep, pct); in print_noise_pct() 46 fprintf(config->output, " ( +-%6.2f%% )", pct); in print_noise_pct() 54 if (config->run_count == 1) in print_noise() 57 ps = evsel->stats; in print_noise() [all …]
|
| /kernel/linux/linux-5.10/arch/arm/include/asm/ |
| D | atomic.h | 1 /* SPDX-License-Identifier: GPL-2.0-only */ 25 #define atomic_read(v) READ_ONCE((v)->counter) 26 #define atomic_set(v,i) WRITE_ONCE(((v)->counter), (i)) 42 prefetchw(&v->counter); \ 44 "1: ldrex %0, [%3]\n" \ 45 " " #asm_op " %0, %0, %4\n" \ 46 " strex %1, %0, [%3]\n" \ 47 " teq %1, #0\n" \ 49 : "=&r" (result), "=&r" (tmp), "+Qo" (v->counter) \ 50 : "r" (&v->counter), "Ir" (i) \ [all …]
|