Home
last modified time | relevance | path

Searched refs:num_counters (Results 1 – 10 of 10) sorted by relevance

/drivers/oprofile/
Doprofile_perf.c30 static int num_counters; variable
41 for (id = 0; id < num_counters; ++id) in op_overflow_handler()
45 if (id != num_counters) in op_overflow_handler()
63 for (i = 0; i < num_counters; ++i) { in op_perf_setup()
119 for (event = 0; event < num_counters; ++event) { in op_perf_start()
137 for (event = 0; event < num_counters; ++event) in op_perf_stop()
145 for (i = 0; i < num_counters; i++) { in oprofile_perf_create_files()
260 for (id = 0; id < num_counters; ++id) { in oprofile_perf_exit()
281 num_counters = perf_num_counters(); in oprofile_perf_init()
282 if (num_counters <= 0) { in oprofile_perf_init()
[all …]
/drivers/staging/comedi/drivers/
Dni_tio.h118 unsigned int num_counters; member
131 unsigned int num_counters);
Dni_tio.c1512 unsigned int num_counters) in ni_gpct_device_construct() argument
1518 if (num_counters == 0) in ni_gpct_device_construct()
1532 counter_dev->counters = kcalloc(num_counters, sizeof(*counter), in ni_gpct_device_construct()
1539 for (i = 0; i < num_counters; ++i) { in ni_gpct_device_construct()
1544 counter_dev->num_counters = num_counters; in ni_gpct_device_construct()
/drivers/acpi/
Dsysfs.c491 static u32 num_counters; variable
652 for (i = 0; i < num_counters; ++i) in counter_set()
778 num_counters = num_gpes + ACPI_NUM_FIXED_EVENTS + NUM_COUNTERS_EXTRA; in acpi_irq_stats_init()
780 all_attrs = kzalloc(sizeof(struct attribute *) * (num_counters + 1), in acpi_irq_stats_init()
785 all_counters = kzalloc(sizeof(struct event_counter) * (num_counters), in acpi_irq_stats_init()
794 counter_attrs = kzalloc(sizeof(struct kobj_attribute) * (num_counters), in acpi_irq_stats_init()
799 for (i = 0; i < num_counters; ++i) { in acpi_irq_stats_init()
/drivers/infiniband/core/
Dsysfs.c765 if (ret == stats->num_counters) in update_hw_stats()
906 if (!stats->names || stats->num_counters <= 0) in setup_hw_stats()
914 sizeof(void *) * (stats->num_counters + 2), in setup_hw_stats()
920 stats->num_counters); in setup_hw_stats()
921 if (ret != stats->num_counters) in setup_hw_stats()
929 for (i = 0; i < stats->num_counters; i++) { in setup_hw_stats()
/drivers/infiniband/hw/mlx4/
Dmain.c2206 diag[!!port_num].num_counters, in mlx4_ib_alloc_hw_stats()
2224 diag[!!port].num_counters, port); in mlx4_ib_get_hw_stats()
2229 for (i = 0; i < diag[!!port].num_counters; i++) in mlx4_ib_get_hw_stats()
2232 return diag[!!port].num_counters; in mlx4_ib_get_hw_stats()
2241 u32 num_counters; in __mlx4_ib_alloc_diag_counters() local
2243 num_counters = ARRAY_SIZE(diag_basic); in __mlx4_ib_alloc_diag_counters()
2246 num_counters += ARRAY_SIZE(diag_ext); in __mlx4_ib_alloc_diag_counters()
2249 num_counters += ARRAY_SIZE(diag_device_only); in __mlx4_ib_alloc_diag_counters()
2251 *name = kcalloc(num_counters, sizeof(**name), GFP_KERNEL); in __mlx4_ib_alloc_diag_counters()
2255 *offset = kcalloc(num_counters, sizeof(**offset), GFP_KERNEL); in __mlx4_ib_alloc_diag_counters()
[all …]
Dmlx4_ib.h557 u32 num_counters; member
/drivers/infiniband/hw/i40iw/
Di40iw_verbs.c2459 int num_counters = I40IW_HW_STAT_INDEX_MAX_32 + in i40iw_alloc_hw_stats() local
2473 return rdma_alloc_hw_stats_struct(i40iw_hw_stat_names, num_counters, in i40iw_alloc_hw_stats()
2506 return stats->num_counters; in i40iw_get_hw_stats()
/drivers/infiniband/hw/cxgb4/
Dprovider.c499 return stats->num_counters; in c4iw_get_mib()
/drivers/infiniband/hw/cxgb3/
Diwch_provider.c1321 return stats->num_counters; in iwch_get_mib()