| /linux-6.15/security/landlock/ |
| H A D | id.c | 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 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 189 atomic64_t counter; in test_range2_rand1() local 202 atomic64_t counter; in test_range2_rand2() local 215 atomic64_t counter; in test_range2_rand15() local [all …]
|
| /linux-6.15/drivers/counter/ |
| H A D | counter-core.c | 31 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 D | ti-ecap-capture.c | 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() 198 static int ecap_cnt_action_read(struct counter_device *counter, in ecap_cnt_action_read() 225 static int ecap_cnt_clk_get_freq(struct counter_device *counter, in ecap_cnt_clk_get_freq() 235 static int ecap_cnt_pol_read(struct counter_device *counter, in ecap_cnt_pol_read() 251 static int ecap_cnt_pol_write(struct counter_device *counter, in ecap_cnt_pol_write() 267 static int ecap_cnt_cap_read(struct counter_device *counter, in ecap_cnt_cap_read() 276 static int ecap_cnt_cap_write(struct counter_device *counter, in ecap_cnt_cap_write() 288 static int ecap_cnt_nb_ovf_read(struct counter_device *counter, in ecap_cnt_nb_ovf_read() 298 static int ecap_cnt_nb_ovf_write(struct counter_device *counter, in ecap_cnt_nb_ovf_write() [all …]
|
| H A D | rz-mtu3-cnt.c | 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() 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() 393 static void rz_mtu3_32bit_cnt_setting(struct counter_device *counter) in rz_mtu3_32bit_cnt_setting() 472 static int rz_mtu3_count_enable_read(struct counter_device *counter, in rz_mtu3_count_enable_read() 495 static int rz_mtu3_count_enable_write(struct counter_device *counter, in rz_mtu3_count_enable_write() 625 static int rz_mtu3_action_read(struct counter_device *counter, in rz_mtu3_action_read() [all …]
|
| H A D | counter-chrdev.c | 68 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() 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() 482 void counter_chrdev_remove(struct counter_device *const counter) in counter_chrdev_remove() [all …]
|
| H A D | 104-quad-8.c | 215 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() 557 static int quad8_watch_validate(struct counter_device *counter, in quad8_watch_validate() 627 static int quad8_polarity_read(struct counter_device *counter, in quad8_polarity_read() 1193 struct counter_device *counter = private; in quad8_irq_handler() local [all …]
|
| H A D | interrupt-cnt.c | 29 struct counter_device *counter = dev_id; in interrupt_cnt_isr() local 39 static int interrupt_cnt_enable_read(struct counter_device *counter, in interrupt_cnt_enable_read() 49 static int interrupt_cnt_enable_write(struct counter_device *counter, in interrupt_cnt_enable_write() 77 static int interrupt_cnt_action_read(struct counter_device *counter, in interrupt_cnt_action_read() 87 static int interrupt_cnt_read(struct counter_device *counter, in interrupt_cnt_read() 97 static int interrupt_cnt_write(struct counter_device *counter, in interrupt_cnt_write() 114 static int interrupt_cnt_function_read(struct counter_device *counter, in interrupt_cnt_function_read() 123 static int interrupt_cnt_signal_read(struct counter_device *counter, in interrupt_cnt_signal_read() 142 static int interrupt_cnt_watch_validate(struct counter_device *counter, in interrupt_cnt_watch_validate() 164 struct counter_device *counter; in interrupt_cnt_probe() local
|
| H A D | stm32-timer-cnt.c | 59 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() 171 static int stm32_count_ceiling_read(struct counter_device *counter, in stm32_count_ceiling_read() 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() 271 static int stm32_count_cap_read(struct counter_device *counter, in stm32_count_cap_read() 305 static int stm32_count_nb_ovf_read(struct counter_device *counter, in stm32_count_nb_ovf_read() 353 static int stm32_action_read(struct counter_device *counter, in stm32_action_read() 619 struct counter_device *counter = ptr; in stm32_timer_cnt_isr() local [all …]
|
| H A D | microchip-tcb-capture.c | 74 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() 391 struct counter_device *const counter = dev_id; in mchp_tc_isr() local 428 static int mchp_tc_irq_enable(struct counter_device *const counter, int irq) in mchp_tc_irq_enable() [all …]
|
| H A D | counter-sysfs.c | 109 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 D | stm32-lptimer-cnt.c | 146 static int stm32_lptim_cnt_read(struct counter_device *counter, in stm32_lptim_cnt_read() 162 static int stm32_lptim_cnt_function_read(struct counter_device *counter, in stm32_lptim_cnt_function_read() 181 static int stm32_lptim_cnt_function_write(struct counter_device *counter, in stm32_lptim_cnt_function_write() 204 static int stm32_lptim_cnt_enable_read(struct counter_device *counter, in stm32_lptim_cnt_enable_read() 220 static int stm32_lptim_cnt_enable_write(struct counter_device *counter, in stm32_lptim_cnt_enable_write() 245 static int stm32_lptim_cnt_ceiling_read(struct counter_device *counter, in stm32_lptim_cnt_ceiling_read() 256 static int stm32_lptim_cnt_ceiling_write(struct counter_device *counter, in stm32_lptim_cnt_ceiling_write() 280 static int stm32_lptim_cnt_action_read(struct counter_device *counter, in stm32_lptim_cnt_action_read() 324 static int stm32_lptim_cnt_action_write(struct counter_device *counter, in stm32_lptim_cnt_action_write() 419 struct counter_device *counter; in stm32_lptim_cnt_probe() local
|
| H A D | ti-eqep.c | 138 static int ti_eqep_count_read(struct counter_device *counter, in ti_eqep_count_read() 150 static int ti_eqep_count_write(struct counter_device *counter, in ti_eqep_count_write() 163 static int ti_eqep_function_read(struct counter_device *counter, in ti_eqep_function_read() 190 static int ti_eqep_function_write(struct counter_device *counter, in ti_eqep_function_write() 219 static int ti_eqep_action_read(struct counter_device *counter, in ti_eqep_action_read() 284 static int ti_eqep_events_configure(struct counter_device *counter) in ti_eqep_events_configure() 307 static int ti_eqep_watch_validate(struct counter_device *counter, in ti_eqep_watch_validate() 384 static int ti_eqep_direction_read(struct counter_device *counter, in ti_eqep_direction_read() 459 struct counter_device *counter = dev_id; in ti_eqep_irq_handler() local 498 struct counter_device *counter; in ti_eqep_probe() local [all …]
|
| H A D | intel-qep.c | 108 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() 324 static int intel_qep_preset_enable_read(struct counter_device *counter, in intel_qep_preset_enable_read() 340 static int intel_qep_preset_enable_write(struct counter_device *counter, in intel_qep_preset_enable_write() [all …]
|
| H A D | i8254.c | 57 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 D | ftm-quaddec.c | 117 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-6.15/drivers/comedi/drivers/ |
| H A D | ni_tio.c | 752 static int ni_tio_set_clock_src(struct ni_gpct *counter, in ni_tio_set_clock_src() 1025 int ni_tio_set_gate_src_raw(struct ni_gpct *counter, in ni_tio_set_gate_src_raw() 1057 int ni_tio_set_gate_src(struct ni_gpct *counter, in ni_tio_set_gate_src() 1454 struct ni_gpct *counter = s->private; in ni_tio_insn_config() local 1608 struct ni_gpct *counter = s->private; in ni_tio_read_sw_save_reg() local 1637 struct ni_gpct *counter = s->private; in ni_tio_insn_read() local 1678 struct ni_gpct *counter = s->private; in ni_tio_insn_write() local 1723 void ni_tio_init_counter(struct ni_gpct *counter) in ni_tio_init_counter() 1764 void (*write)(struct ni_gpct *counter, in ni_gpct_device_construct() 1767 unsigned int (*read)(struct ni_gpct *counter, in ni_gpct_device_construct() [all …]
|
| H A D | ni_tiocmd.c | 38 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() 442 void ni_tio_acknowledge(struct ni_gpct *counter) in ni_tio_acknowledge() [all …]
|
| /linux-6.15/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | fs_counters.c | 117 struct mlx5_fc *counter; in mlx5_fc_stats_query_all_counters() local 198 struct mlx5_fc *counter; in mlx5_fc_num_counters() local 225 struct mlx5_fc *counter; in mlx5_fc_single_alloc() local 244 struct mlx5_fc *counter; in mlx5_fc_acquire() local 286 u32 mlx5_fc_id(struct mlx5_fc *counter) in mlx5_fc_id() 342 struct mlx5_fc *counter; in mlx5_cleanup_fc_stats() local 367 u64 mlx5_fc_query_lastuse(struct mlx5_fc *counter) in mlx5_fc_query_lastuse() 372 void mlx5_fc_query_cached(struct mlx5_fc *counter, in mlx5_fc_query_cached() 424 u32 mlx5_fc_get_base_id(struct mlx5_fc *counter) in mlx5_fc_get_base_id() 550 struct mlx5_fc *counter; in mlx5_fc_local_create() local [all …]
|
| /linux-6.15/arch/arm64/include/asm/ |
| H A D | arm_dsu_pmu.h | 53 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-6.15/drivers/infiniband/core/ |
| H A D | counters.c | 151 struct rdma_counter *counter; in alloc_and_bind() local 215 static void rdma_counter_free(struct rdma_counter *counter) in rdma_counter_free() 252 struct rdma_counter *counter = qp->counter; in __rdma_counter_unbind_qp() local 291 struct rdma_counter *counter = NULL; in rdma_get_counter_auto_mode() local 320 struct rdma_counter *counter; in counter_release() local 336 struct rdma_counter *counter; in rdma_counter_bind_qp_auto() local 373 struct rdma_counter *counter = qp->counter; in rdma_counter_unbind_qp() local 407 struct rdma_counter *counter; in get_running_counters_hwstat_sum() local 478 struct rdma_counter *counter; in rdma_get_counter_by_id() local 498 struct rdma_counter *counter; in rdma_counter_bind_qpn() local [all …]
|
| /linux-6.15/drivers/net/ethernet/marvell/prestera/ |
| H A D | prestera_counter.c | 50 static void prestera_counter_lock(struct prestera_counter *counter) in prestera_counter_lock() 55 static void prestera_counter_unlock(struct prestera_counter *counter) in prestera_counter_unlock() 89 prestera_counter_block_lookup_not_full(struct prestera_counter *counter, in prestera_counter_block_lookup_not_full() 141 prestera_counter_block_get(struct prestera_counter *counter, u32 client) in prestera_counter_block_get() 199 static void prestera_counter_block_put(struct prestera_counter *counter, in prestera_counter_block_put() 251 int prestera_counter_get(struct prestera_counter *counter, u32 client, in prestera_counter_get() 284 void prestera_counter_put(struct prestera_counter *counter, in prestera_counter_put() 341 struct prestera_counter *counter = in prestera_counter_stats_work() local 417 int prestera_counter_stats_get(struct prestera_counter *counter, in prestera_counter_stats_get() 439 struct prestera_counter *counter; in prestera_counter_init() local [all …]
|
| /linux-6.15/mm/ |
| H A D | page_counter.c | 54 void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages) in page_counter_cancel() 76 void page_counter_charge(struct page_counter *counter, unsigned long nr_pages) in page_counter_charge() 118 bool page_counter_try_charge(struct page_counter *counter, in page_counter_try_charge() 179 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages) in page_counter_uncharge() 197 int page_counter_set_max(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_max() 236 void page_counter_set_min(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_min() 253 void page_counter_set_low(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_low() 425 struct page_counter *counter, in page_counter_calculate_protection()
|
| /linux-6.15/arch/x86/kernel/cpu/ |
| H A D | perfctr-watchdog.c | 110 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-6.15/include/linux/ |
| H A D | page_counter.h | 55 static inline void page_counter_init(struct page_counter *counter, in page_counter_init() 66 static inline unsigned long page_counter_read(struct page_counter *counter) in page_counter_read() 80 static inline void page_counter_set_high(struct page_counter *counter, in page_counter_set_high() 90 static inline void page_counter_reset_watermark(struct page_counter *counter) in page_counter_reset_watermark() 108 struct page_counter *counter, in page_counter_calculate_protection()
|
| /linux-6.15/drivers/perf/ |
| H A D | fsl_imx9_ddr_perf.c | 187 #define ID(counter, id) ((counter << COUNTER_OFFSET_IN_EVENT) | id) argument 365 static void ddr_perf_clear_counter(struct ddr_pmu *pmu, int counter) in ddr_perf_clear_counter() 375 static u64 ddr_perf_read_counter(struct ddr_pmu *pmu, int counter) in ddr_perf_read_counter() 433 int counter, bool enable) in ddr_perf_counter_local_config() 461 int counter, int axi_id, int axi_mask) in imx93_ddr_perf_monitor_config() 485 int counter, int axi_id, int axi_mask) in imx95_ddr_perf_monitor_config() 539 int counter = hwc->idx; in ddr_perf_event_update() local 591 int counter = hwc->idx; in ddr_perf_event_start() local 628 int event_id, counter; in ddr_perf_event_add() local 662 int counter = hwc->idx; in ddr_perf_event_stop() local [all …]
|