Home
last modified time | relevance | path

Searched defs:counter (Results 1 – 25 of 309) sorted by relevance

12345678910>>...13

/linux/security/landlock/
H A Did.c21 static void __init init_id(atomic64_t *const counter, const u32 random_32bits) in init_id()
46 atomic64_t counter = ATOMIC64_INIT(COUNTER_PRE_INIT); in test_init_min() local
54 atomic64_t counter = ATOMIC64_INIT(COUNTER_PRE_INIT); in test_init_max() local
63 atomic64_t counter = ATOMIC64_INIT(COUNTER_PRE_INIT); in test_init_once() local
90 static u64 get_id_range(size_t number_of_ids, atomic64_t *const counter, in get_id_range()
124 atomic64_t counter; in test_range1_rand0() local
137 atomic64_t counter; in test_range1_rand1() local
150 atomic64_t counter; in test_range1_rand15() local
163 atomic64_t counter; in test_range1_rand16() local
176 atomic64_t counter; in test_range2_rand0() local
[all …]
/linux/drivers/comedi/drivers/
H A Dni_tio.c149 void ni_tio_write(struct ni_gpct *counter, unsigned int value, in ni_tio_write()
162 unsigned int ni_tio_read(struct ni_gpct *counter, enum ni_gpct_register 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()
177 static int ni_tio_clock_period_ps(const struct ni_gpct *counter, in ni_tio_clock_period_ps()
221 static void ni_tio_set_bits_transient(struct ni_gpct *counter, in ni_tio_set_bits_transient()
252 void ni_tio_set_bits(struct ni_gpct *counter, enum ni_gpct_register reg, in ni_tio_set_bits()
268 unsigned int ni_tio_get_soft_copy(const struct ni_gpct *counter, in ni_tio_get_soft_copy()
285 static unsigned int ni_tio_clock_src_modifiers(const struct ni_gpct *counter) in ni_tio_clock_src_modifiers()
303 static int ni_m_series_clock_src_select(const struct ni_gpct *counter, in ni_m_series_clock_src_select()
370 static int ni_660x_clock_src_select(const struct ni_gpct *counter, in ni_660x_clock_src_select()
[all …]
H A Dni_tiocmd.c38 static void ni_tio_configure_dma(struct ni_gpct *counter, in ni_tio_configure_dma()
78 struct ni_gpct *counter = s->private; in ni_tio_input_inttrig() local
102 struct ni_gpct *counter = s->private; in ni_tio_input_cmd() local
153 struct ni_gpct *counter = s->private; in ni_tio_output_cmd() local
163 struct ni_gpct *counter = s->private; in ni_tio_cmd_setup() local
206 struct ni_gpct *counter = s->private; in ni_tio_cmd() local
237 struct ni_gpct *counter = s->private; in ni_tio_cmdtest() local
332 int ni_tio_cancel(struct ni_gpct *counter) in ni_tio_cancel()
350 static int should_ack_gate(struct ni_gpct *counter) in should_ack_gate()
384 static void ni_tio_acknowledge_and_confirm(struct ni_gpct *counter, in ni_tio_acknowledge_and_confirm()
[all …]
H A Dni_660x.c293 static void ni_660x_gpct_write(struct ni_gpct *counter, unsigned int bits, in ni_660x_gpct_write()
301 static unsigned int ni_660x_gpct_read(struct ni_gpct *counter, in ni_660x_gpct_read()
311 struct ni_gpct *counter) in ni_660x_set_dma_channel()
326 struct ni_gpct *counter) in ni_660x_unset_dma_channel()
337 struct ni_gpct *counter, in ni_660x_request_mite_channel()
362 struct ni_gpct *counter) in ni_660x_release_mite_channel()
380 struct ni_gpct *counter = s->private; in ni_660x_cmd() local
396 struct ni_gpct *counter = s->private; in ni_660x_cancel() local
423 struct ni_gpct *counter = s->private; in ni_660x_handle_gpct_interrupt() local
457 struct ni_gpct *counter = s->private; in ni_660x_input_poll() local
[all …]
H A Dcomedi_8254.c229 unsigned int comedi_8254_status(struct comedi_8254 *i8254, unsigned int counter) in comedi_8254_status()
248 unsigned int comedi_8254_read(struct comedi_8254 *i8254, unsigned int counter) in comedi_8254_read()
274 unsigned int counter, unsigned int val) in comedi_8254_write()
297 int comedi_8254_set_mode(struct comedi_8254 *i8254, unsigned int counter, in comedi_8254_set_mode()
323 int comedi_8254_load(struct comedi_8254 *i8254, unsigned int counter, in comedi_8254_load()
515 unsigned int counter, bool busy) in comedi_8254_set_busy()
/linux/drivers/counter/
H A Dcounter-core.c31 struct counter_device counter; member
43 struct counter_device *const counter = in counter_device_release() local
70 void *counter_priv(const struct counter_device *const counter) in counter_priv()
91 struct counter_device *counter; in counter_alloc() local
139 void counter_put(struct counter_device *counter) in counter_put()
153 int counter_add(struct counter_device *counter) in counter_add()
178 void counter_unregister(struct counter_device *const counter) in counter_unregister()
194 static void devm_counter_release(void *counter) in devm_counter_release()
199 static void devm_counter_put(void *counter) in devm_counter_put()
214 struct counter_device *counter; in devm_counter_alloc() local
[all …]
H A Dti-ecap-capture.c100 static u8 ecap_cnt_capture_get_evmode(struct counter_device *counter) in ecap_cnt_capture_get_evmode()
112 static void ecap_cnt_capture_set_evmode(struct counter_device *counter, u8 ev_mode) in ecap_cnt_capture_set_evmode()
121 static void ecap_cnt_capture_enable(struct counter_device *counter) in ecap_cnt_capture_enable()
136 static void ecap_cnt_capture_disable(struct counter_device *counter) in ecap_cnt_capture_disable()
149 static u32 ecap_cnt_count_get_val(struct counter_device *counter, unsigned int reg) in ecap_cnt_count_get_val()
161 static void ecap_cnt_count_set_val(struct counter_device *counter, unsigned int reg, u32 val) in ecap_cnt_count_set_val()
170 static int ecap_cnt_count_read(struct counter_device *counter, in ecap_cnt_count_read()
178 static int ecap_cnt_count_write(struct counter_device *counter, in ecap_cnt_count_write()
189 static int ecap_cnt_function_read(struct counter_device *counter, in ecap_cnt_function_read()
198 static int ecap_cnt_action_read(struct counter_device *counter, in ecap_cnt_action_read()
[all …]
H A Drz-mtu3-cnt.c97 static inline struct rz_mtu3_channel *rz_mtu3_get_ch(struct counter_device *counter, int id) 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()
123 static int rz_mtu3_lock_if_counter_is_valid(struct counter_device *counter, in rz_mtu3_lock_if_counter_is_valid()
157 static int rz_mtu3_count_read(struct counter_device *counter, in rz_mtu3_count_read()
179 static int rz_mtu3_count_write(struct counter_device *counter, in rz_mtu3_count_write()
231 static int rz_mtu3_count_function_read(struct counter_device *counter, in rz_mtu3_count_function_read()
249 static int rz_mtu3_count_function_write(struct counter_device *counter, in rz_mtu3_count_function_write()
290 static int rz_mtu3_count_direction_read(struct counter_device *counter, in rz_mtu3_count_direction_read()
314 static int rz_mtu3_count_ceiling_read(struct counter_device *counter, in rz_mtu3_count_ceiling_read()
345 static int rz_mtu3_count_ceiling_write(struct counter_device *counter, in rz_mtu3_count_ceiling_write()
[all …]
H A D104-quad-8.c215 static int quad8_signal_read(struct counter_device *counter, in quad8_signal_read()
235 static int quad8_count_read(struct counter_device *counter, in quad8_count_read()
283 static int quad8_count_write(struct counter_device *counter, in quad8_count_write()
345 static int quad8_function_read(struct counter_device *counter, in quad8_function_read()
362 static int quad8_function_write(struct counter_device *counter, in quad8_function_write()
410 static int quad8_direction_read(struct counter_device *counter, in quad8_direction_read()
439 static int quad8_action_read(struct counter_device *counter, in quad8_action_read()
504 static int quad8_events_configure(struct counter_device *counter) in quad8_events_configure()
557 static int quad8_watch_validate(struct counter_device *counter, in quad8_watch_validate()
596 static int quad8_index_polarity_get(struct counter_device *counter, in quad8_index_polarity_get()
[all …]
H A Dcounter-chrdev.c68 struct counter_device *const counter = filp->private_data; in counter_chrdev_read() local
106 struct counter_device *const counter = filp->private_data; in counter_chrdev_poll() local
138 static int counter_set_event_node(struct counter_device *const counter, in counter_set_event_node()
195 static int counter_enable_events(struct counter_device *const counter) in counter_enable_events()
216 static int counter_disable_events(struct counter_device *const counter) in counter_disable_events()
264 static int counter_add_watch(struct counter_device *const counter, in counter_add_watch()
385 struct counter_device *const counter = filp->private_data; in counter_chrdev_ioctl() local
416 struct counter_device *const counter = container_of(inode->i_cdev, in counter_chrdev_open() local
428 struct counter_device *const counter = filp->private_data; in counter_chrdev_release() local
464 int counter_chrdev_add(struct counter_device *const counter) in counter_chrdev_add()
[all …]
H A Dstm32-timer-cnt.c59 static int stm32_count_read(struct counter_device *counter, in stm32_count_read()
71 static int stm32_count_write(struct counter_device *counter, in stm32_count_write()
84 static int stm32_count_function_read(struct counter_device *counter, in stm32_count_function_read()
111 static int stm32_count_function_write(struct counter_device *counter, in stm32_count_function_write()
157 static int stm32_count_direction_read(struct counter_device *counter, in stm32_count_direction_read()
171 static int stm32_count_ceiling_read(struct counter_device *counter, in stm32_count_ceiling_read()
184 static int stm32_count_ceiling_write(struct counter_device *counter, in stm32_count_ceiling_write()
199 static int stm32_count_enable_read(struct counter_device *counter, in stm32_count_enable_read()
212 static int stm32_count_enable_write(struct counter_device *counter, in stm32_count_enable_write()
244 static int stm32_count_prescaler_read(struct counter_device *counter, in stm32_count_prescaler_read()
[all …]
H A Dmicrochip-tcb-capture.c74 static int mchp_tc_count_function_read(struct counter_device *counter, in mchp_tc_count_function_read()
88 static int mchp_tc_count_function_write(struct counter_device *counter, in mchp_tc_count_function_write()
150 static int mchp_tc_count_signal_read(struct counter_device *counter, in mchp_tc_count_signal_read()
170 static int mchp_tc_count_action_read(struct counter_device *counter, in mchp_tc_count_action_read()
209 static int mchp_tc_count_action_write(struct counter_device *counter, in mchp_tc_count_action_write()
244 static int mchp_tc_count_read(struct counter_device *counter, in mchp_tc_count_read()
256 static int mchp_tc_count_cap_read(struct counter_device *counter, in mchp_tc_count_cap_read()
282 static int mchp_tc_count_cap_write(struct counter_device *counter, in mchp_tc_count_cap_write()
305 static int mchp_tc_count_compare_read(struct counter_device *counter, struct counter_count *count, in mchp_tc_count_compare_read()
321 static int mchp_tc_count_compare_write(struct counter_device *counter, struct counter_count *count, in mchp_tc_count_compare_write()
[all …]
H A Dinterrupt-cnt.c32 struct counter_device *counter = dev_id; in interrupt_cnt_isr() local
42 static int interrupt_cnt_enable_read(struct counter_device *counter, in interrupt_cnt_enable_read()
54 static int interrupt_cnt_enable_write(struct counter_device *counter, in interrupt_cnt_enable_write()
84 static int interrupt_cnt_action_read(struct counter_device *counter, in interrupt_cnt_action_read()
94 static int interrupt_cnt_read(struct counter_device *counter, in interrupt_cnt_read()
104 static int interrupt_cnt_write(struct counter_device *counter, in interrupt_cnt_write()
121 static int interrupt_cnt_function_read(struct counter_device *counter, in interrupt_cnt_function_read()
130 static int interrupt_cnt_signal_read(struct counter_device *counter, in interrupt_cnt_signal_read()
149 static int interrupt_cnt_watch_validate(struct counter_device *counter, in interrupt_cnt_watch_validate()
171 struct counter_device *counter; in interrupt_cnt_probe() local
H A Dcounter-sysfs.c109 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u8_show() local
141 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u8_store() local
177 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u32_show() local
242 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u32_store() local
306 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u64_show() local
334 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_u64_store() local
366 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u32_show() local
388 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u32_store() local
416 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u64_show() local
448 struct counter_device *const counter = counter_from_dev(dev); in counter_comp_array_u64_store() local
[all …]
H A Dintel-qep.c108 static int intel_qep_count_read(struct counter_device *counter, in intel_qep_count_read()
124 static int intel_qep_function_read(struct counter_device *counter, in intel_qep_function_read()
137 static int intel_qep_action_read(struct counter_device *counter, in intel_qep_action_read()
175 static int intel_qep_ceiling_read(struct counter_device *counter, in intel_qep_ceiling_read()
187 static int intel_qep_ceiling_write(struct counter_device *counter, in intel_qep_ceiling_write()
212 static int intel_qep_enable_read(struct counter_device *counter, in intel_qep_enable_read()
222 static int intel_qep_enable_write(struct counter_device *counter, in intel_qep_enable_write()
254 static int intel_qep_spike_filter_ns_read(struct counter_device *counter, in intel_qep_spike_filter_ns_read()
275 static int intel_qep_spike_filter_ns_write(struct counter_device *counter, in intel_qep_spike_filter_ns_write()
324 static int intel_qep_preset_enable_read(struct counter_device *counter, in intel_qep_preset_enable_read()
[all …]
H A Di8254.c57 static int i8254_count_read(struct counter_device *const counter, struct counter_count *const count, in i8254_count_read()
84 static int i8254_function_read(struct counter_device *const counter, in i8254_function_read()
96 static int i8254_action_read(struct counter_device *const counter, in i8254_action_read()
125 static int i8254_count_ceiling_read(struct counter_device *const counter, in i8254_count_ceiling_read()
156 static int i8254_count_mode_read(struct counter_device *const counter, in i8254_count_mode_read()
187 static int i8254_count_mode_write(struct counter_device *const counter, in i8254_count_mode_write()
232 static int i8254_count_floor_read(struct counter_device *const counter, in i8254_count_floor_read()
258 static int i8254_count_preset_read(struct counter_device *const counter, in i8254_count_preset_read()
268 static int i8254_count_preset_write(struct counter_device *const counter, in i8254_count_preset_write()
406 struct counter_device *counter; in devm_i8254_regmap_register() local
H A Dftm-quaddec.c117 static int ftm_quaddec_get_prescaler(struct counter_device *counter, in ftm_quaddec_get_prescaler()
130 static int ftm_quaddec_set_prescaler(struct counter_device *counter, in ftm_quaddec_set_prescaler()
160 static int ftm_quaddec_count_read(struct counter_device *counter, in ftm_quaddec_count_read()
174 static int ftm_quaddec_count_write(struct counter_device *counter, in ftm_quaddec_count_write()
190 static int ftm_quaddec_count_function_read(struct counter_device *counter, in ftm_quaddec_count_function_read()
199 static int ftm_quaddec_action_read(struct counter_device *counter, in ftm_quaddec_action_read()
261 struct counter_device *counter; in ftm_quaddec_probe() local
/linux/arch/arm64/include/asm/
H A Darm_dsu_pmu.h53 static inline void __dsu_pmu_select_counter(int counter) in __dsu_pmu_select_counter()
59 static inline u64 __dsu_pmu_read_counter(int counter) in __dsu_pmu_read_counter()
65 static inline void __dsu_pmu_write_counter(int counter, u64 val) in __dsu_pmu_write_counter()
72 static inline void __dsu_pmu_set_event(int counter, u32 event) in __dsu_pmu_set_event()
90 static inline void __dsu_pmu_disable_counter(int counter) in __dsu_pmu_disable_counter()
96 static inline void __dsu_pmu_enable_counter(int counter) in __dsu_pmu_enable_counter()
102 static inline void __dsu_pmu_counter_interrupt_enable(int counter) in __dsu_pmu_counter_interrupt_enable()
108 static inline void __dsu_pmu_counter_interrupt_disable(int counter) in __dsu_pmu_counter_interrupt_disable()
/linux/arch/x86/kernel/cpu/
H A Dperfctr-watchdog.c110 unsigned int counter; in reserve_perfctr_nmi() local
125 unsigned int counter; in release_perfctr_nmi() local
138 unsigned int counter; in reserve_evntsel_nmi() local
153 unsigned int counter; in release_evntsel_nmi() local
/linux/drivers/crypto/intel/qat/qat_common/
H A Dadf_sysfs_ras_counters.c16 unsigned long counter; in errors_correctable_show() local
31 unsigned long counter; in errors_nonfatal_show() local
46 unsigned long counter; in errors_fatal_show() local
/linux/arch/mips/cavium-octeon/executive/
H A Dcvmx-l2c.c169 void cvmx_l2c_config_perf(uint32_t counter, enum cvmx_l2c_event event, in cvmx_l2c_config_perf()
233 uint64_t cvmx_l2c_read_perf(uint32_t counter) in cvmx_l2c_read_perf()
240 uint64_t counter = 0; in cvmx_l2c_read_perf() local
251 uint64_t counter = 0; in cvmx_l2c_read_perf() local
262 uint64_t counter = 0; in cvmx_l2c_read_perf() local
274 uint64_t counter = 0; in cvmx_l2c_read_perf() local
/linux/drivers/vdpa/mlx5/net/
H A Ddebug.c55 struct mlx5_vdpa_counter *counter = file->private; in packets_show() local
70 struct mlx5_vdpa_counter *counter = file->private; in bytes_show() local
86 static void add_counter_node(struct mlx5_vdpa_counter *counter, in add_counter_node()
/linux/tools/testing/selftests/kvm/riscv/
H A Dsbi_pmu_test.c99 static void start_counter(unsigned long counter, unsigned long start_flags, in start_counter()
110 static void stop_reset_counter(unsigned long counter, unsigned long stop_flags) in stop_reset_counter()
120 static void stop_counter(unsigned long counter, unsigned long stop_flags) in stop_counter()
278 unsigned long counter; in test_pmu_event() local
326 unsigned long counter; in test_pmu_event_snapshot() local
379 unsigned long counter; in test_pmu_event_overflow() local
/linux/fs/bcachefs/
H A Dquota.c40 unsigned qtyp, counter; in bch2_sb_quota_to_text() local
186 enum quota_counters counter, in prepare_msg()
199 enum quota_counters counter, in prepare_warning()
224 enum quota_counters counter, in bch2_quota_check_limit()
277 enum quota_counters counter, s64 v, in bch2_quota_acct()
317 enum quota_counters counter, s64 v) in __bch2_quota_transfer()
/linux/drivers/infiniband/hw/mlx5/
H A Dcounters.c448 static int do_per_qp_get_op_stat(struct rdma_counter *counter) in do_per_qp_get_op_stat()
570 mlx5_ib_counter_alloc_stats(struct rdma_counter *counter) in mlx5_ib_counter_alloc_stats()
578 static int mlx5_ib_counter_update_stats(struct rdma_counter *counter) in mlx5_ib_counter_update_stats()
595 static int mlx5_ib_counter_dealloc(struct rdma_counter *counter) in mlx5_ib_counter_dealloc()
612 static int mlx5_ib_counter_bind_qp(struct rdma_counter *counter, in mlx5_ib_counter_bind_qp()
657 struct rdma_counter *counter = qp->counter; in mlx5_ib_counter_unbind_qp() local
1189 static void mlx5_ib_counter_init(struct rdma_counter *counter) in mlx5_ib_counter_init()

12345678910>>...13