Home
last modified time | relevance | path

Searched full:counter (Results 1 – 25 of 2427) sorted by relevance

12345678910>>...98

/Linux-v6.1/drivers/counter/
Dcounter-core.c3 * 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()
48 kfree(container_of(counter, struct counter_device_allochelper, counter)); in counter_device_release()
[all …]
Dcounter-chrdev.c3 * 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()
79 if (kfifo_is_empty(&counter->events)) { in counter_chrdev_read()
83 err = wait_event_interruptible(counter->events_wait, in counter_chrdev_read()
84 !kfifo_is_empty(&counter->events) || in counter_chrdev_read()
85 !counter->ops); in counter_chrdev_read()
88 if (!counter->ops) in counter_chrdev_read()
[all …]
/Linux-v6.1/drivers/net/ethernet/marvell/prestera/
Dprestera_counter.c50 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()
89 prestera_counter_block_lookup_not_full(struct prestera_counter *counter, in prestera_counter_block_lookup_not_full() argument
94 prestera_counter_lock(counter); in prestera_counter_block_lookup_not_full()
95 for (i = 0; i < counter->block_list_len; i++) { in prestera_counter_block_lookup_not_full()
96 if (counter->block_list[i] && in prestera_counter_block_lookup_not_full()
97 counter->block_list[i]->client == client && in prestera_counter_block_lookup_not_full()
98 !counter->block_list[i]->full && in prestera_counter_block_lookup_not_full()
[all …]
/Linux-v6.1/tools/testing/selftests/netfilter/
Dnft_meta.sh30 counter iifcount {}
31 counter iifnamecount {}
32 counter iifgroupcount {}
33 counter iiftypecount {}
34 counter infproto4count {}
35 counter il4protocounter {}
36 counter imarkcounter {}
37 counter icpu0counter {}
38 counter ilastyearcounter {}
39 counter icurrentyearcounter {}
[all …]
/Linux-v6.1/drivers/infiniband/core/
Dcounters.c37 * Return 0 on success. If counter mode wasn't changed then it is considered
78 static void auto_mode_init_counter(struct rdma_counter *counter, in auto_mode_init_counter() argument
82 struct auto_mode_param *param = &counter->mode.param; in auto_mode_init_counter()
84 counter->mode.mode = RDMA_COUNTER_MODE_AUTO; in auto_mode_init_counter()
85 counter->mode.mask = new_mask; in auto_mode_init_counter()
91 static int __rdma_counter_bind_qp(struct rdma_counter *counter, in __rdma_counter_bind_qp() argument
96 if (qp->counter) in __rdma_counter_bind_qp()
102 mutex_lock(&counter->lock); in __rdma_counter_bind_qp()
103 ret = qp->device->ops.counter_bind_qp(counter, qp); in __rdma_counter_bind_qp()
104 mutex_unlock(&counter->lock); in __rdma_counter_bind_qp()
[all …]
/Linux-v6.1/Documentation/ABI/testing/
Dsysfs-bus-counter1 What: /sys/bus/counter/devices/counterX/countY/count
7 What: /sys/bus/counter/devices/counterX/countY/capture
13 What: /sys/bus/counter/devices/counterX/countY/ceiling
18 respective counter.
20 What: /sys/bus/counter/devices/counterX/countY/floor
25 respective counter.
27 What: /sys/bus/counter/devices/counterX/countY/count_mode
42 to the Count Y floor value. The counter freezes at
49 The counter is disabled whenever a counter overflow or
50 underflow takes place. The counter is re-enabled when a
[all …]
/Linux-v6.1/drivers/comedi/drivers/
Dni_tio.c22 * originally based on the counter code from ni_660x.c and
145 * @counter: struct ni_gpct counter.
149 void ni_tio_write(struct ni_gpct *counter, unsigned int value, in ni_tio_write() argument
153 counter->counter_dev->write(counter, value, reg); in ni_tio_write()
159 * @counter: struct ni_gpct counter.
162 unsigned int ni_tio_read(struct ni_gpct *counter, enum ni_gpct_register reg) in ni_tio_read() argument
165 return counter->counter_dev->read(counter, reg); in ni_tio_read()
170 static void ni_tio_reset_count_and_disarm(struct ni_gpct *counter) in ni_tio_reset_count_and_disarm() argument
172 unsigned int cidx = counter->counter_index; in ni_tio_reset_count_and_disarm()
174 ni_tio_write(counter, GI_RESET(cidx), NITIO_RESET_REG(cidx)); in ni_tio_reset_count_and_disarm()
[all …]
Dni_tiocmd.c38 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()
55 ni_tio_set_bits(counter, NITIO_INPUT_SEL_REG(cidx), mask, bits); in ni_tio_configure_dma()
69 ni_tio_set_bits(counter, NITIO_DMA_CFG_REG(cidx), mask, bits); in ni_tio_configure_dma()
78 struct ni_gpct *counter = s->private; in ni_tio_input_inttrig() local
86 spin_lock_irqsave(&counter->lock, flags); in ni_tio_input_inttrig()
87 if (counter->mite_chan) in ni_tio_input_inttrig()
88 mite_dma_arm(counter->mite_chan); in ni_tio_input_inttrig()
91 spin_unlock_irqrestore(&counter->lock, flags); in ni_tio_input_inttrig()
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/broadwellx/
Duncore-other.json4 "Counter": "0,1", string
13 "Counter": "0,1", string
22 "Counter": "0,1", string
29 "Counter": "0,1", string
38 "Counter": "0,1", string
47 "Counter": "0,1", string
56 "Counter": "0,1", string
65 "Counter": "0,1", string
74 "Counter": "0,1", string
83 "Counter": "0,1", string
[all …]
Duncore-memory.json4 "Counter": "0,1,2,3", string
13 "Counter": "0,1,2,3", string
22 "Counter": "0,1,2,3", string
31 "Counter": "0,1,2,3", string
40 "Counter": "0,1,2,3", string
49 "Counter": "0,1,2,3", string
58 "Counter": "0,1,2,3", string
67 "Counter": "0,1,2,3", string
76 "Counter": "0,1,2,3", string
85 "Counter": "0,1,2,3", string
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/haswellx/
Duncore-other.json4 "Counter": "0,1", string
13 "Counter": "0,1", string
22 "Counter": "0,1", string
29 "Counter": "0,1", string
38 "Counter": "0,1", string
47 "Counter": "0,1", string
56 "Counter": "0,1", string
65 "Counter": "0,1", string
74 "Counter": "0,1", string
83 "Counter": "0,1", string
[all …]
Duncore-power.json4 "Counter": "0,1,2,3", string
11 "Counter": "0,1,2,3", string
19 "Counter": "0,1,2,3", string
27 "Counter": "0,1,2,3", string
35 "Counter": "0,1,2,3", string
43 "Counter": "0,1,2,3", string
51 "Counter": "0,1,2,3", string
59 "Counter": "0,1,2,3", string
67 "Counter": "0,1,2,3", string
75 "Counter": "0,1,2,3", string
[all …]
Duncore-memory.json4 "Counter": "0,1,2,3", string
13 "Counter": "0,1,2,3", string
22 "Counter": "0,1,2,3", string
31 "Counter": "0,1,2,3", string
40 "Counter": "0,1,2,3", string
49 "Counter": "0,1,2,3", string
58 "Counter": "0,1,2,3", string
67 "Counter": "0,1,2,3", string
76 "Counter": "0,1,2,3", string
85 "Counter": "0,1,2,3", string
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/cascadelakex/
Duncore-memory.json4 "Counter": "0,1,2,3", string
13 "Counter": "0,1,2,3", string
22 "Counter": "0,1,2,3", string
31 "Counter": "0,1,2,3", string
40 "Counter": "0,1,2,3", string
50 "Counter": "0,1,2,3", string
59 "Counter": "0,1,2,3", string
68 "Counter": "0,1,2,3", string
78 "Counter": "0,1,2,3", string
87 "Counter": "0,1,2,3", string
[all …]
Duncore-other.json4 "Counter": "0,1,2,3", string
13 "Counter": "0,1,2,3", string
21 "Counter": "0,1,2,3", string
29 "Counter": "0,1,2,3", string
37 "Counter": "0,1,2,3", string
46 "Counter": "0,1,2,3", string
55 "Counter": "0,1,2,3", string
64 "Counter": "0,1,2,3", string
73 "Counter": "0,1,2,3", string
82 "Counter": "0,1,2,3", string
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/bonnell/
Dcache.json4 "Counter": "0,1", string
12 "Counter": "0,1", string
20 "Counter": "0,1", string
28 "Counter": "0,1", string
36 "Counter": "0,1", string
44 "Counter": "0,1", string
52 "Counter": "0,1", string
60 "Counter": "0,1", string
68 "Counter": "0,1", string
76 "Counter": "0,1", string
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/westmereep-sp/
Dpipeline.json4 "Counter": "0,1,2,3", string
12 "Counter": "0,1,2,3", string
23 "Counter": "0,1,2,3", string
31 "Counter": "0,1,2,3", string
39 "Counter": "0,1,2,3", string
47 "Counter": "0,1,2,3", string
55 "Counter": "0,1,2,3", string
63 "Counter": "0,1,2,3", string
71 "Counter": "0,1,2,3", string
79 "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
12 "Counter": "0,1,2,3", string
23 "Counter": "0,1,2,3", string
31 "Counter": "0,1,2,3", string
39 "Counter": "0,1,2,3", string
47 "Counter": "0,1,2,3", string
55 "Counter": "0,1,2,3", string
63 "Counter": "0,1,2,3", string
71 "Counter": "0,1,2,3", string
79 "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
12 "Counter": "0,1,2,3", string
23 "Counter": "0,1,2,3", string
31 "Counter": "0,1,2,3", string
39 "Counter": "0,1,2,3", string
47 "Counter": "0,1,2,3", string
55 "Counter": "0,1,2,3", string
63 "Counter": "0,1,2,3", string
71 "Counter": "0,1,2,3", string
79 "Counter": "0,1,2,3", string
[all …]
/Linux-v6.1/tools/perf/pmu-events/arch/x86/skylakex/
Duncore-memory.json4 "Counter": "0,1,2,3", string
13 "Counter": "0,1,2,3", string
22 "Counter": "0,1,2,3", string
31 "Counter": "0,1,2,3", string
40 "Counter": "0,1,2,3", string
50 "Counter": "0,1,2,3", string
59 "Counter": "0,1,2,3", string
68 "Counter": "0,1,2,3", string
78 "Counter": "0,1,2,3", string
87 "Counter": "0,1,2,3", string
[all …]
Duncore-other.json4 "Counter": "0,1,2,3", string
12 "Counter": "0,1,2,3", string
21 "Counter": "0,1,2,3", string
30 "Counter": "0,1,2,3", string
39 "Counter": "0,1,2,3", string
48 "Counter": "0,1,2,3", string
57 "Counter": "0,1,2,3", string
66 "Counter": "0,1,2,3", string
75 "Counter": "0,1,2,3", string
85 "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
12 "Counter": "0,1,2,3", string
23 "Counter": "0,1,2,3", string
31 "Counter": "0,1,2,3", string
39 "Counter": "0,1,2,3", string
47 "Counter": "0,1,2,3", string
55 "Counter": "0,1,2,3", string
63 "Counter": "0,1,2,3", string
71 "Counter": "0,1,2,3", string
79 "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
12 "Counter": "0,1,2,3", string
23 "Counter": "0,1,2,3", string
31 "Counter": "0,1,2,3", string
39 "Counter": "0,1,2,3", string
47 "Counter": "0,1,2,3", string
55 "Counter": "0,1,2,3", string
63 "Counter": "0,1,2,3", string
71 "Counter": "0,1,2,3", string
79 "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
14 "Counter": "0,1,2,3", string
24 "Counter": "0,1,2,3", string
34 "Counter": "0,1,2,3", string
44 "Counter": "0,1,2,3", string
54 "Counter": "0,1,2,3", string
64 "Counter": "0,1,2,3", string
74 "Counter": "0,1,2,3", string
84 "Counter": "0,1,2,3", string
94 "Counter": "0,1,2,3", string
[all …]
/Linux-v6.1/Documentation/driver-api/
Dgeneric-counter.rst4 Generic Counter Interface
10 Counter devices are prevalent among a diverse spectrum of industries.
13 resolve the issue of duplicate code found among existing counter device
14 drivers by introducing a generic counter interface for consumption. The
15 Generic Counter interface enables drivers to support and expose a common
16 set of components and functionality present in counter devices.
21 Counter devices can vary greatly in design, but regardless of whether
23 counter devices consist of a core set of components. This core set of
24 components, shared by all counter devices, is what forms the essence of
25 the Generic Counter interface.
[all …]

12345678910>>...98