/linux/drivers/counter/ |
H A D | counter-core.c | 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 43 struct counter_device *const counter = in counter_device_release() local 46 counter_chrdev_remove(counter); in counter_device_release() 49 kfree(container_of(counter, struct counter_device_allochelper, counter)); in counter_device_release() [all …]
|
H A D | counter-chrdev.c | 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() 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 …]
|
H A D | rz-mtu3-cnt.c | 3 * Renesas RZ/G2L MTU3a Counter driver 9 #include <linux/counter.h> 23 * TCNT: Timer Counter 25 * TCNTLW: Timer Longword Counter 66 * struct rz_mtu3_cnt - MTU3 counter private data 71 * @count_is_enabled: Enabled state of Counter value channel 97 static inline struct rz_mtu3_channel *rz_mtu3_get_ch(struct counter_device *counter, int id) in rz_mtu3_get_ch() argument 99 struct rz_mtu3_cnt *const priv = counter_priv(counter); in rz_mtu3_get_ch() 105 static bool rz_mtu3_is_counter_invalid(struct counter_device *counter, int id) in rz_mtu3_is_counter_invalid() argument 107 struct rz_mtu3_cnt *const priv = counter_priv(counter); in rz_mtu3_is_counter_invalid() [all …]
|
/linux/tools/testing/selftests/net/netfilter/ |
H A D | nft_meta.sh | 30 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 D | ni_tio.c | 22 * 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 D | ni_tiocmd.c | 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() 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/tools/perf/pmu-events/arch/x86/westmereex/ |
H A D | pipeline.json | 4 "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 D | cache.json | 4 "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 D | pipeline.json | 4 "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 D | cache.json | 4 "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 D | pipeline.json | 4 "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 D | cache.json | 4 "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 D | cache.json | 4 "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 D | pipeline.json | 4 "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 …]
|
H A D | other.json | 4 "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 …]
|
/linux/tools/perf/pmu-events/arch/x86/nehalemep/ |
H A D | pipeline.json | 4 "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 D | cache.json | 4 "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 D | pipeline.json | 4 "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 D | cache.json | 4 "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/security/landlock/ |
H A D | id.c | 21 static void __init init_id(atomic64_t *const counter, const u32 random_32bits) in init_id() argument 39 atomic64_cmpxchg(counter, COUNTER_PRE_INIT, init); in init_id() 46 atomic64_t counter = ATOMIC64_INIT(COUNTER_PRE_INIT); in test_init_min() local 48 init_id(&counter, 0); in test_init_min() 49 KUNIT_EXPECT_EQ(test, atomic64_read(&counter), 1ULL + U32_MAX); in test_init_min() 54 atomic64_t counter = ATOMIC64_INIT(COUNTER_PRE_INIT); in test_init_max() local 56 init_id(&counter, ~0); in test_init_max() 57 KUNIT_EXPECT_EQ(test, atomic64_read(&counter), 1 + (2ULL * U32_MAX)); in test_init_max() 63 atomic64_t counter = ATOMIC64_INIT(COUNTER_PRE_INIT); in test_init_once() local 65 init_id(&counter, 0); in test_init_once() [all …]
|
/linux/tools/perf/pmu-events/arch/x86/knightslanding/ |
H A D | uncore-cache.json | 4 "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/tools/perf/pmu-events/arch/x86/cascadelakex/ |
H A D | uncore-memory.json | 4 "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/tools/perf/pmu-events/arch/x86/pantherlake/ |
H A D | pipeline.json | 4 "Counter": "0,1,2,3,4,5,6,7", string 13 "Counter": "0,1,2,3,4,5,6,7,8,9", string 22 "Counter": "0,1,2,3,4,5,6,7", string 31 "Counter": "0,1,2,3,4,5,6,7,8,9", string 39 "BriefDescription": "Fixed Counter: Counts the number of unhalted core clock cycles.", 40 "Counter": "Fixed counter 1", string 48 "Counter": "Fixed counter 1", string 50 …e the core was not in the halt state. It is counted on a dedicated fixed counter, leaving the prog… 57 "Counter": "0,1,2,3,4,5,6,7", string 65 "Counter": "0,1,2,3,4,5,6,7,8,9", string [all …]
|
/linux/tools/perf/pmu-events/arch/x86/skylakex/ |
H A D | uncore-memory.json | 4 "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/tools/perf/pmu-events/arch/x86/sandybridge/ |
H A D | pipeline.json | 4 "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 …]
|