Home
last modified time | relevance | path

Searched refs:used_mask (Results 1 – 20 of 20) sorted by relevance

/linux/arch/sh/kernel/
H A Dperf_event.c30 unsigned long used_mask[BITS_TO_LONGS(MAX_HWEVENTS)]; member
239 __clear_bit(event->hw.idx, cpuc->used_mask); in sh_pmu_del()
253 if (__test_and_set_bit(idx, cpuc->used_mask)) { in sh_pmu_add()
254 idx = find_first_zero_bit(cpuc->used_mask, sh_pmu->num_events); in sh_pmu_add()
258 __set_bit(idx, cpuc->used_mask); in sh_pmu_add()
/linux/drivers/perf/hisilicon/
H A Dhisi_uncore_l3c_pmu.c122 unsigned long *used_mask = l3c_pmu->pmu_events.used_mask; in hisi_l3c_pmu_get_event_idx() local
148 idx = find_next_zero_bit(used_mask, L3C_CNTR_EXT_H(ext), L3C_CNTR_EXT_L(ext)); in hisi_l3c_pmu_get_event_idx()
153 set_bit(idx, used_mask); in hisi_l3c_pmu_get_event_idx()
409 unsigned long *used_mask = l3c_pmu->pmu_events.used_mask; in hisi_l3c_pmu_start_counters() local
410 unsigned long used_cntr = find_first_bit(used_mask, l3c_pmu->num_counters); in hisi_l3c_pmu_start_counters()
427 used_cntr = find_next_bit(used_mask, L3C_CNTR_EXT_H(i), L3C_CNTR_EXT_L(i)); in hisi_l3c_pmu_start_counters()
440 unsigned long *used_mask = l3c_pmu->pmu_events.used_mask; in hisi_l3c_pmu_stop_counters() local
441 unsigned long used_cntr = find_first_bit(used_mask, l3c_pmu->num_counters); in hisi_l3c_pmu_stop_counters()
458 used_cntr = find_next_bit(used_mask, L3C_CNTR_EXT_H(i), L3C_CNTR_EXT_L(i)); in hisi_l3c_pmu_stop_counters()
H A Dhisi_uncore_pmu.c133 unsigned long *used_mask = hisi_pmu->pmu_events.used_mask; in hisi_uncore_pmu_get_event_idx() local
137 idx = find_first_zero_bit(used_mask, num_counters); in hisi_uncore_pmu_get_event_idx()
141 set_bit(idx, used_mask); in hisi_uncore_pmu_get_event_idx()
149 clear_bit(idx, hisi_pmu->pmu_events.used_mask); in hisi_uncore_pmu_clear_event_idx()
421 bool enabled = !bitmap_empty(hisi_pmu->pmu_events.used_mask, in hisi_uncore_pmu_enable()
H A Dhisi_uncore_ddrc_pmu.c127 unsigned long *used_mask = ddrc_pmu->pmu_events.used_mask; in hisi_ddrc_pmu_v1_get_event_idx() local
132 if (test_bit(idx, used_mask)) in hisi_ddrc_pmu_v1_get_event_idx()
135 set_bit(idx, used_mask); in hisi_ddrc_pmu_v1_get_event_idx()
H A Dhisi_uncore_noc_pmu.c84 cur_idx = find_first_bit(pmu_events->used_mask, noc_pmu->num_counters); in hisi_noc_pmu_get_event_idx()
217 if (bitmap_weight(noc_pmu->pmu_events.used_mask, noc_pmu->num_counters) > 1) in hisi_noc_pmu_disable_filter()
H A Dhisi_uncore_pmu.h83 DECLARE_BITMAP(used_mask, HISI_MAX_COUNTERS);
/linux/drivers/hwtracing/coresight/
H A Dcoresight-cti-platform.c139 tc->con_in->used_mask = 0xF0; /* sigs <4,5,6,7> */ in cti_plat_create_v8_etm_connection()
140 tc->con_out->used_mask = 0xF0; /* sigs <4,5,6,7> */ in cti_plat_create_v8_etm_connection()
197 tc->con_in->used_mask = 0x3; /* sigs <0 1> */ in cti_plat_create_v8_connections()
200 tc->con_out->used_mask = 0x7; /* sigs <0 1 2 > */ in cti_plat_create_v8_connections()
260 tgrp->used_mask |= BIT(values[idx]); in cti_plat_read_trig_group()
334 drvdata->config.trig_out_filter |= tg->used_mask; in cti_plat_process_filter_sigs()
H A Dcoresight-cti-core.c273 drvdata->config.trig_in_use |= tc->con_in->used_mask; in cti_add_connection_entry()
274 drvdata->config.trig_out_use |= tc->con_out->used_mask; in cti_add_connection_entry()
328 tc->con_in->used_mask = n_trig_mask; in cti_add_default_connection()
329 tc->con_out->used_mask = n_trig_mask; in cti_add_default_connection()
H A Dcoresight-cti.h71 u32 used_mask; member
/linux/drivers/perf/
H A Dstarfive_starlink_pmu.c66 DECLARE_BITMAP(used_mask, STARLINK_PMU_MAX_COUNTERS);
296 unsigned long *used_mask = hw_events->used_mask; in starlink_pmu_add() local
310 idx = find_first_zero_bit(used_mask, n_events); in starlink_pmu_add()
315 set_bit(idx, used_mask); in starlink_pmu_add()
339 clear_bit(hwc->idx, hw_events->used_mask); in starlink_pmu_del()
453 int enabled = bitmap_weight(hw_events->used_mask, in starlink_pmu_pm_notify()
H A Dfujitsu_uncore_pmu.c60 unsigned long *used_mask; member
256 idx = bitmap_find_free_region(uncorepmu->used_mask, uncorepmu->num_counters, 0); in fujitsu_uncore_event_add()
282 bitmap_release_region(uncorepmu->used_mask, hwc->idx, 0); in fujitsu_uncore_event_del()
511 alloc_size = sizeof(uncorepmu->used_mask[0]) * BITS_TO_LONGS(uncorepmu->num_counters); in fujitsu_uncore_pmu_probe()
512 uncorepmu->used_mask = devm_kzalloc(dev, alloc_size, GFP_KERNEL); in fujitsu_uncore_pmu_probe()
513 if (!uncorepmu->used_mask) in fujitsu_uncore_pmu_probe()
H A Dalibaba_uncore_drw_pmu.c101 DECLARE_BITMAP(used_mask, ALI_DRW_PMU_COMMON_MAX_COUNTERS);
272 if (!test_and_set_bit(idx, drw_pmu->used_mask)) in ali_drw_get_counter_idx()
653 clear_bit(idx, drw_pmu->used_mask); in ali_drw_pmu_del()
/linux/arch/loongarch/kernel/
H A Dperf_event.c97 unsigned long used_mask[BITS_TO_LONGS(LOONGARCH_MAX_HWEVENTS)]; member
258 if (!test_and_set_bit(i, cpuc->used_mask)) in loongarch_pmu_alloc_counter()
430 clear_bit(idx, cpuc->used_mask); in loongarch_pmu_del()
508 if (test_bit(n, cpuc->used_mask)) { in pmu_handle_irq()
/linux/drivers/iommu/intel/
H A Dperfmon.c400 if (test_and_set_bit(idx, iommu_pmu->used_mask)) in iommu_pmu_assign_event()
405 clear_bit(idx, iommu_pmu->used_mask); in iommu_pmu_assign_event()
468 clear_bit(idx, iommu_pmu->used_mask); in iommu_pmu_del()
H A Diommu.h679 DECLARE_BITMAP(used_mask, IOMMU_PMU_IDX_MAX);
/linux/drivers/dma/idxd/
H A Dperfmon.c110 if (!test_and_set_bit(i, idxd_pmu->used_mask)) in perfmon_assign_event()
369 clear_bit(cntr, idxd->idxd_pmu->used_mask); in perfmon_pmu_event_stop()
H A Didxd.h122 DECLARE_BITMAP(used_mask, IDXD_PMU_EVENT_MAX);
/linux/arch/x86/events/intel/
H A Duncore.c456 unsigned long used_mask[BITS_TO_LONGS(UNCORE_PMC_IDX_MAX)]; in uncore_assign_events() local
461 bitmap_zero(used_mask, UNCORE_PMC_IDX_MAX); in uncore_assign_events()
484 if (test_bit(hwc->idx, used_mask)) in uncore_assign_events()
487 __set_bit(hwc->idx, used_mask); in uncore_assign_events()
/linux/arch/x86/events/
H A Dcore.c1008 u64 used_mask = 0; in x86_schedule_events() local
1068 if (used_mask & mask) in x86_schedule_events()
1071 used_mask |= mask; in x86_schedule_events()
/linux/mm/
H A Dpage_alloc.c5670 nodemask_t used_mask = NODE_MASK_NONE; in build_zonelists() local
5678 while ((node = find_next_best_node(local_node, &used_mask)) >= 0) { in build_zonelists()