Searched refs:max_counters (Results 1 – 15 of 15) sorted by relevance
/linux/drivers/perf/ |
H A D | thunderx2_pmu.c | 97 u32 max_counters; member 309 tx2_pmu->max_counters); in alloc_counter() 310 if (counter == tx2_pmu->max_counters) in alloc_counter() 540 int max_counters) in tx2_uncore_validate_event_group() argument 563 return counters <= max_counters; in tx2_uncore_validate_event_group() 599 if (!tx2_uncore_validate_event_group(event, tx2_pmu->max_counters)) in tx2_uncore_event_init() 622 tx2_pmu->max_counters) == 1) { in tx2_uncore_event_start() 689 if (bitmap_empty(tx2_pmu->active_counters, tx2_pmu->max_counters)) in tx2_uncore_event_del() 701 int max_counters, idx; in tx2_hrtimer_callback() local 704 max_counters = tx2_pmu->max_counters; in tx2_hrtimer_callback() [all …]
|
/linux/arch/x86/events/amd/ |
H A D | iommu.c | 41 u8 max_counters; member 156 int max_cntrs = piommu->max_counters; in get_next_avail_iommu_bnk_cntr() 192 max_cntrs = perf_iommu->max_counters; in clear_avail_iommu_bnk_cntr() 432 perf_iommu->max_counters = amd_iommu_pc_get_max_counters(idx); in init_one_iommu() 436 !perf_iommu->max_counters) { in init_one_iommu() 446 idx, perf_iommu->max_banks, perf_iommu->max_counters); in init_one_iommu()
|
/linux/drivers/gpu/drm/v3d/ |
H A D | v3d_perfmon.c | 211 v3d->perfmon_info.max_counters = max; in v3d_perfmon_init() 348 if (req->counters[i] >= v3d->perfmon_info.max_counters) in v3d_perfmon_create_ioctl() 443 if (!v3d->perfmon_info.max_counters) in v3d_perfmon_get_counter_ioctl() 447 if (req->counter >= v3d->perfmon_info.max_counters) in v3d_perfmon_get_counter_ioctl()
|
H A D | v3d_performance_counters.h | 27 unsigned int max_counters; member
|
H A D | v3d_drv.c | 98 args->value = v3d->perfmon_info.max_counters; in v3d_get_param_ioctl()
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
H A D | fw.h | 127 u32 max_counters; member
|
H A D | main.c | 651 dev->caps.max_counters = dev_cap->max_counters; in mlx4_dev_cap() 2533 if (!dev->caps.max_counters) in mlx4_init_counters_table() 2536 nent_pow2 = roundup_pow_of_two(dev->caps.max_counters); in mlx4_init_counters_table() 2540 nent_pow2 - dev->caps.max_counters + 1); in mlx4_init_counters_table() 2548 if (!dev->caps.max_counters) in mlx4_cleanup_counters_table()
|
H A D | resource_tracker.c | 495 (dev->caps.max_counters - 1)) in mlx4_calc_res_counter_guaranteed() 545 res_alloc->res_free = dev->caps.max_counters - 1; in mlx4_init_resource_tracker() 623 res_alloc->quota[t] = dev->caps.max_counters; in mlx4_init_resource_tracker() 1243 counters_arr = kmalloc_array(dev->caps.max_counters, in mlx4_calc_vf_counters() 5190 counters_arr = kmalloc_array(dev->caps.max_counters, in rem_slave_counters()
|
H A D | fw.c | 1062 MLX4_GET(dev_cap->max_counters, outbox, in mlx4_QUERY_DEV_CAP() 1167 mlx4_dbg(dev, "Max counters: %d\n", dev_cap->max_counters); in mlx4_dev_cap_dump()
|
/linux/drivers/thunderbolt/ |
H A D | tb_regs.h | 289 u32 max_counters:11; member
|
H A D | debugfs.c | 1597 buf = kcalloc(COUNTER_SET_LEN * port->config.max_counters, sizeof(u32), in port_clear_all_counters() 1603 COUNTER_SET_LEN * port->config.max_counters); in port_clear_all_counters() 2054 for (i = 0; i < port->config.max_counters; i++) { in counters_show()
|
H A D | switch.c | 455 tb_dbg(tb, " Max counters: %d\n", regs->max_counters); in tb_dump_port()
|
/linux/drivers/iommu/amd/ |
H A D | amd_iommu_types.h | 773 u8 max_counters; member
|
H A D | init.c | 1945 iommu->max_counters = (u8) ((val >> 7) & 0xf); in init_iommu_perf_ctr() 3723 return iommu->max_counters; in amd_iommu_pc_get_max_counters() 3746 (iommu->max_counters << 8) | 0x28); in iommu_pc_get_set_reg()
|
/linux/include/linux/mlx4/ |
H A D | device.h | 614 u32 max_counters; member 1032 #define MLX4_SINK_COUNTER_INDEX(dev) (dev->caps.max_counters - 1)
|