Home
last modified time | relevance | path

Searched refs:max_counters (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/drivers/perf/
H A Dthunderx2_pmu.c97 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()
627 tx2_pmu->max_counters) == 1) { in tx2_uncore_event_start()
706 int max_counters, idx; in tx2_hrtimer_callback() local
709 max_counters = tx2_pmu->max_counters; in tx2_hrtimer_callback()
835 tx2_pmu->max_counters = TX2_PMU_DMC_L3C_MAX_COUNTERS; in tx2_uncore_pmu_init_dev()
850 tx2_pmu->max_counters = TX2_PMU_DMC_L3C_MAX_COUNTERS; in tx2_uncore_pmu_init_dev()
[all …]
H A Dxgene_pmu.c96 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()
/openbmc/linux/arch/x86/events/amd/
H A Diommu.c41 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()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dfw.h127 u32 max_counters; member
H A Dmain.c655 dev->caps.max_counters = dev_cap->max_counters; in mlx4_dev_cap()
2537 if (!dev->caps.max_counters) in mlx4_init_counters_table()
2540 nent_pow2 = roundup_pow_of_two(dev->caps.max_counters); in mlx4_init_counters_table()
2544 nent_pow2 - dev->caps.max_counters + 1); in mlx4_init_counters_table()
2552 if (!dev->caps.max_counters) in mlx4_cleanup_counters_table()
H A Dresource_tracker.c495 (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 Dfw.c1062 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()
/openbmc/linux/drivers/thunderbolt/
H A Dtb_regs.h289 u32 max_counters:11; member
H A Ddebugfs.c1035 buf = kcalloc(COUNTER_SET_LEN * port->config.max_counters, sizeof(u32), in port_clear_all_counters()
1041 COUNTER_SET_LEN * port->config.max_counters); in port_clear_all_counters()
1492 for (i = 0; i < port->config.max_counters; i++) { in counters_show()
H A Dswitch.c454 tb_dbg(tb, " Max counters: %d\n", regs->max_counters); in tb_dump_port()
/openbmc/linux/drivers/iommu/amd/
H A Damd_iommu_types.h758 u8 max_counters; member
H A Dinit.c2008 iommu->max_counters = (u8) ((val >> 7) & 0xf); in init_iommu_perf_ctr()
3757 return iommu->max_counters; in amd_iommu_pc_get_max_counters()
3781 (iommu->max_counters << 8) | 0x28); in iommu_pc_get_set_reg()
/openbmc/linux/include/linux/mlx4/
H A Ddevice.h614 u32 max_counters; member
1032 #define MLX4_SINK_COUNTER_INDEX(dev) (dev->caps.max_counters - 1)