Searched refs:max_counters (Results 1 – 13 of 13) sorted by relevance
/Linux-v5.15/drivers/perf/ |
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() 545 int max_counters) in tx2_uncore_validate_event_group() argument 568 return counters <= max_counters; in tx2_uncore_validate_event_group() 604 if (!tx2_uncore_validate_event_group(event, tx2_pmu->max_counters)) in tx2_uncore_event_init() 627 tx2_pmu->max_counters) == 1) { in tx2_uncore_event_start() 694 if (bitmap_empty(tx2_pmu->active_counters, tx2_pmu->max_counters)) in tx2_uncore_event_del() 706 int max_counters, idx; in tx2_hrtimer_callback() local 709 max_counters = tx2_pmu->max_counters; in tx2_hrtimer_callback() [all …]
|
D | xgene_pmu.c | 96 u8 max_counters; member 697 pmu_dev->max_counters); in get_next_avail_cntr() 698 if (cntr == pmu_dev->max_counters) in get_next_avail_cntr() 871 pmu_dev->max_counters); in xgene_perf_pmu_enable() 1101 pmu_dev->max_counters = 1; in xgene_init_perf() 1103 pmu_dev->max_counters = PMU_MAX_COUNTERS; in xgene_init_perf()
|
/Linux-v5.15/arch/x86/events/amd/ |
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-v5.15/drivers/thunderbolt/ |
D | debugfs.c | 195 buf = kcalloc(COUNTER_SET_LEN * port->config.max_counters, sizeof(u32), in port_clear_all_counters() 201 COUNTER_SET_LEN * port->config.max_counters); in port_clear_all_counters() 641 for (i = 0; i < port->config.max_counters; i++) { in counters_show()
|
D | tb_regs.h | 271 u32 max_counters:11; member
|
D | switch.c | 507 tb_dbg(tb, " Max counters: %d\n", regs->max_counters); in tb_dump_port()
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx4/ |
D | fw.h | 127 u32 max_counters; member
|
D | main.c | 656 dev->caps.max_counters = dev_cap->max_counters; in mlx4_dev_cap() 2512 if (!dev->caps.max_counters) in mlx4_init_counters_table() 2515 nent_pow2 = roundup_pow_of_two(dev->caps.max_counters); in mlx4_init_counters_table() 2519 nent_pow2 - dev->caps.max_counters + 1); in mlx4_init_counters_table() 2527 if (!dev->caps.max_counters) in mlx4_cleanup_counters_table()
|
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()
|
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-v5.15/drivers/iommu/amd/ |
D | amd_iommu_types.h | 630 u8 max_counters; member
|
D | init.c | 1728 iommu->max_counters = (u8) ((val >> 7) & 0xf); in init_iommu_perf_ctr() 3276 return iommu->max_counters; in amd_iommu_pc_get_max_counters() 3300 (iommu->max_counters << 8) | 0x28); in iommu_pc_get_set_reg()
|
/Linux-v5.15/include/linux/mlx4/ |
D | device.h | 613 u32 max_counters; member 1025 #define MLX4_SINK_COUNTER_INDEX(dev) (dev->caps.max_counters - 1)
|