Home
last modified time | relevance | path

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

12345678910>>...141

/linux/drivers/net/ethernet/marvell/prestera/
H A 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/drivers/infiniband/core/
H A 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/tools/testing/selftests/net/netfilter/
H A 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/drivers/comedi/drivers/
H A 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 …]
H A 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/Documentation/ABI/testing/
H A Dsysfs-bus-counter1 What: /sys/bus/counter/devices/counterX/cascade_counts_enable
5 Indicates the cascading of Counts on Counter X.
9 What: /sys/bus/counter/devices/counterX/external_input_phase_clock_select
14 Counter X.
24 What: /sys/bus/counter/devices/counterX/external_input_phase_clock_select_available
31 What: /sys/bus/counter/devices/counterX/countY/count
37 What: /sys/bus/counter/devices/counterX/countY/capture
43 What: /sys/bus/counter/devices/counterX/countY/ceiling
48 respective counter.
50 What: /sys/bus/counter/devices/counterX/countY/floor
[all …]
/linux/tools/perf/pmu-events/arch/x86/westmereex/
H A 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 …]
H A 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/tools/perf/pmu-events/arch/x86/westmereep-dp/
H A 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 …]
H A 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/tools/perf/pmu-events/arch/x86/westmereep-sp/
H A 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 …]
H A 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/tools/perf/pmu-events/arch/x86/bonnell/
H A 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 …]
H A Dother.json4 "Counter": "0,1", string
12 "Counter": "0,1", string
20 "Counter": "0,1", string
27 "Counter": "0,1", string
35 "Counter": "0,1", string
43 "Counter": "0,1", string
50 "Counter": "0,1", string
58 "Counter": "0,1", string
65 "Counter": "0,1", string
73 "Counter": "0,1", string
[all …]
H A Dpipeline.json4 "Counter": "0,1", string
12 "Counter": "0,1", string
20 "Counter": "0,1", string
27 "Counter": "0,1", string
35 "Counter": "0,1", string
43 "Counter": "0,1", string
51 "Counter": "0,1", string
59 "Counter": "0,1", string
67 "Counter": "0,1", string
75 "Counter": "0,1", string
[all …]
/linux/tools/perf/pmu-events/arch/x86/nehalemep/
H A 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 …]
H A 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/tools/perf/pmu-events/arch/x86/nehalemex/
H A 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 …]
H A 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/tools/perf/pmu-events/arch/x86/knightslanding/
H A Duncore-cache.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/Documentation/driver-api/
H A 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 …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Dfs_counters.c83 * dump (access to struct mlx5_fc) after a counter is destroyed.
85 * access to counter list:
94 * - add a counter to lockless dellist
114 struct mlx5_fc *counter; in mlx5_fc_counters_lookup_next() local
120 counter, tmp, next_id) { in mlx5_fc_counters_lookup_next()
121 if (!list_empty(&counter->list)) in mlx5_fc_counters_lookup_next()
126 return counter ? &counter->list : &fc_stats->counters; in mlx5_fc_counters_lookup_next()
130 struct mlx5_fc *counter) in mlx5_fc_stats_insert() argument
132 struct list_head *next = mlx5_fc_counters_lookup_next(dev, counter->id); in mlx5_fc_stats_insert()
134 list_add_tail(&counter->list, next); in mlx5_fc_stats_insert()
[all …]
/linux/tools/perf/pmu-events/arch/x86/cascadelakex/
H A Duncore-memory.json4 "Counter": "0,1,2,3", string
15 "Counter": "0,1,2,3", string
26 "Counter": "0,1,2,3", string
37 "Counter": "0,1,2,3", string
48 "Counter": "0,1,2,3", string
58 "Counter": "0,1,2,3", string
68 "Counter": "0,1,2,3", string
78 "Counter": "0,1,2,3", string
88 "Counter": "0,1,2,3", string
98 "Counter": "0,1,2,3", string
[all …]
/linux/mm/
H A Dpage_counter.c50 * page_counter_cancel - take pages out of the local counter
51 * @counter: counter
54 void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages) in page_counter_cancel() argument
58 new = atomic_long_sub_return(nr_pages, &counter->usage); in page_counter_cancel()
63 atomic_long_set(&counter->usage, new); in page_counter_cancel()
65 if (track_protection(counter)) in page_counter_cancel()
66 propagate_protected_usage(counter, new); in page_counter_cancel()
71 * @counter: counter
74 * NOTE: This does not consider any configured counter limits.
76 void page_counter_charge(struct page_counter *counter, unsigned long nr_pages) in page_counter_charge() argument
[all …]
/linux/tools/perf/pmu-events/arch/x86/lunarlake/
H A Dpipeline.json4 "Counter": "0,1,2,3,4,5,6,7", string
14 "Counter": "0,1,2,3,4,5,6,7,8,9", string
24 "Counter": "0,1,2,3,4,5,6,7", string
34 "Counter": "0,1,2,3,4,5,6,7,8,9", string
43 "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles",
44 "Counter": "Fixed counter 1", string
52 "Counter": "Fixed counter 1", string
54 …e the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the prog…
61 "Counter": "0,1,2,3,4,5,6,7", string
69 "Counter": "0,1,2,3,4,5,6,7,8,9", string
[all …]

12345678910>>...141