Home
last modified time | relevance | path

Searched +full:counter +full:- +full:0 (Results 1 – 25 of 1199) sorted by relevance

12345678910>>...48

/Linux-v6.1/drivers/net/ethernet/marvell/prestera/
Dprestera_counter.c1 // 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 …]
/Linux-v6.1/tools/testing/selftests/netfilter/
Dnft_meta.sh5 # 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 …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/broadwellx/
Duncore-other.json4 "Counter": "0,1", string
5 "EventCode": "0x12",
8 "UMask": "0x1",
13 "Counter": "0,1", string
14 "EventCode": "0x12",
17 "UMask": "0x2",
22 "Counter": "0,1", string
29 "Counter": "0,1", string
30 "EventCode": "0x13",
33 "UMask": "0x1",
[all …]
Duncore-memory.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x1",
8 "UMask": "0x1",
13 "Counter": "0,1,2,3", string
14 "EventCode": "0x1",
17 "UMask": "0x2",
22 "Counter": "0,1,2,3", string
23 "EventCode": "0x1",
26 "UMask": "0x8",
31 "Counter": "0,1,2,3", string
[all …]
Duncore-cache.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0xA",
12 "Counter": "0,1,2,3", string
18 "BriefDescription": "Counter 0 Occupancy",
19 "Counter": "0,1,2,3", string
20 "EventCode": "0x1F",
27 "Counter": "0,1", string
28 "EventCode": "0x9",
35 "Counter": "0,1,2,3", string
36 "EventCode": "0x34",
[all …]
Duncore-interconnect.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x14",
12 "Counter": "0,1,2,3", string
13 "EventCode": "0x38",
21 "Counter": "0,1,2,3", string
22 "EventCode": "0x13",
25 "UMask": "0x1",
29 "BriefDescription": "Direct 2 Core Spawning; Spawn Failure - Egress Credits",
30 "Counter": "0,1,2,3", string
31 "EventCode": "0x13",
[all …]
/Linux-v6.1/drivers/comedi/drivers/
Dni_tio.c1 // 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 …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/haswellx/
Duncore-other.json4 "Counter": "0,1", string
5 "EventCode": "0x12",
8 "UMask": "0x1",
13 "Counter": "0,1", string
14 "EventCode": "0x12",
17 "UMask": "0x2",
22 "Counter": "0,1", string
29 "Counter": "0,1", string
30 "EventCode": "0x13",
33 "UMask": "0x1",
[all …]
Duncore-power.json4 "Counter": "0,1,2,3", string
11 "Counter": "0,1,2,3", string
12 "EventCode": "0x60",
19 "Counter": "0,1,2,3", string
20 "EventCode": "0x6A",
27 "Counter": "0,1,2,3", string
28 "EventCode": "0x6B",
35 "Counter": "0,1,2,3", string
36 "EventCode": "0x6C",
43 "Counter": "0,1,2,3", string
[all …]
Duncore-memory.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x1",
8 "UMask": "0x1",
13 "Counter": "0,1,2,3", string
14 "EventCode": "0x1",
17 "UMask": "0x2",
22 "Counter": "0,1,2,3", string
23 "EventCode": "0x1",
26 "UMask": "0x8",
31 "Counter": "0,1,2,3", string
[all …]
Duncore-cache.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0xA",
12 "Counter": "0,1,2,3", string
18 "BriefDescription": "Counter 0 Occupancy",
19 "Counter": "0,1,2,3", string
20 "EventCode": "0x1F",
27 "Counter": "0,1", string
28 "EventCode": "0x9",
35 "Counter": "0,1,2,3", string
36 "EventCode": "0x34",
[all …]
Duncore-interconnect.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x14",
12 "Counter": "0,1,2,3", string
13 "EventCode": "0x38",
21 "Counter": "0,1,2,3", string
22 "EventCode": "0x13",
25 "UMask": "0x1",
29 "BriefDescription": "Direct 2 Core Spawning; Spawn Failure - Egress Credits",
30 "Counter": "0,1,2,3", string
31 "EventCode": "0x13",
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/cascadelakex/
Duncore-memory.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x1",
8 "UMask": "0x2",
13 "Counter": "0,1,2,3", string
14 "EventCode": "0x4",
17 "UMask": "0x1",
22 "Counter": "0,1,2,3", string
23 "EventCode": "0x4",
26 "UMask": "0x2",
31 "Counter": "0,1,2,3", string
[all …]
Duncore-other.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x22",
8 "UMask": "0x2",
13 "Counter": "0,1,2,3", string
14 "EventCode": "0x24",
21 "Counter": "0,1,2,3", string
22 "EventCode": "0x23",
29 "Counter": "0,1,2,3", string
30 "EventCode": "0x25",
36 "BriefDescription": "Multi-socket cacheline Directory lookups (any state found)",
[all …]
/Linux-v6.1/drivers/counter/
Dcounter-core.c1 // 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 …]
Dcounter-chrdev.c1 // 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 …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/skylakex/
Duncore-memory.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x1",
8 "UMask": "0x2",
13 "Counter": "0,1,2,3", string
14 "EventCode": "0x4",
17 "UMask": "0x1",
22 "Counter": "0,1,2,3", string
23 "EventCode": "0x4",
26 "UMask": "0x2",
31 "Counter": "0,1,2,3", string
[all …]
Duncore-other.json4 "Counter": "0,1,2,3", string
12 "Counter": "0,1,2,3", string
13 "EventCode": "0x33",
16 "UMask": "0x42",
21 "Counter": "0,1,2,3", string
22 "EventCode": "0x33",
25 "UMask": "0x82",
29 "BriefDescription": "Multi-socket cacheline Directory state lookups; Snoop Needed",
30 "Counter": "0,1,2,3", string
31 "EventCode": "0x53",
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/westmereep-sp/
Dpipeline.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x14",
8 "UMask": "0x1"
12 "Counter": "0,1,2,3", string
15 "EventCode": "0x14",
19 "UMask": "0x1"
23 "Counter": "0,1,2,3", string
24 "EventCode": "0x14",
27 "UMask": "0x2"
31 "Counter": "0,1,2,3", string
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/westmereex/
Dpipeline.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x14",
8 "UMask": "0x1"
12 "Counter": "0,1,2,3", string
15 "EventCode": "0x14",
19 "UMask": "0x1"
23 "Counter": "0,1,2,3", string
24 "EventCode": "0x14",
27 "UMask": "0x2"
31 "Counter": "0,1,2,3", string
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/westmereep-dp/
Dpipeline.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x14",
8 "UMask": "0x1"
12 "Counter": "0,1,2,3", string
15 "EventCode": "0x14",
19 "UMask": "0x1"
23 "Counter": "0,1,2,3", string
24 "EventCode": "0x14",
27 "UMask": "0x2"
31 "Counter": "0,1,2,3", string
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/icelakex/
Duncore-memory.json4 "Counter": "0,1,2,3", string
6 "EventCode": "0xD3",
9 "UMask": "0x01",
14 "Counter": "0,1,2,3", string
16 "EventCode": "0xD3",
19 "UMask": "0x02",
24 "Counter": "0,1,2,3", string
26 "EventCode": "0xD3",
29 "UMask": "0x04",
34 "Counter": "0,1,2,3", string
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/nehalemex/
Dpipeline.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x14",
8 "UMask": "0x1"
12 "Counter": "0,1,2,3", string
15 "EventCode": "0x14",
19 "UMask": "0x1"
23 "Counter": "0,1,2,3", string
24 "EventCode": "0x14",
27 "UMask": "0x2"
31 "Counter": "0,1,2,3", string
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/nehalemep/
Dpipeline.json4 "Counter": "0,1,2,3", string
5 "EventCode": "0x14",
8 "UMask": "0x1"
12 "Counter": "0,1,2,3", string
15 "EventCode": "0x14",
19 "UMask": "0x1"
23 "Counter": "0,1,2,3", string
24 "EventCode": "0x14",
27 "UMask": "0x2"
31 "Counter": "0,1,2,3", string
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/snowridgex/
Duncore-other.json4 "Counter": "0,1,2,3", string
12 "Counter": "0,1,2,3", string
14 "EventCode": "0x59",
17 "UMask": "0x01",
21 "BriefDescription": "CHA to iMC Full Line Writes Issued : Full Line Non-ISOCH",
22 "Counter": "0,1,2,3", string
24 "EventCode": "0x5B",
27 "UMask": "0x01",
32 "Counter": "0,1,2,3", string
34 "EventCode": "0x37",
[all …]

12345678910>>...48