Home
last modified time | relevance | path

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

/linux-2.6.39/arch/sh/kernel/
Dperf_event.c32 unsigned long used_mask[BITS_TO_LONGS(MAX_HWEVENTS)]; member
267 __clear_bit(event->hw.idx, cpuc->used_mask); in sh_pmu_del()
281 if (__test_and_set_bit(idx, cpuc->used_mask)) { in sh_pmu_add()
282 idx = find_first_zero_bit(cpuc->used_mask, sh_pmu->num_events); in sh_pmu_add()
286 __set_bit(idx, cpuc->used_mask); in sh_pmu_add()
/linux-2.6.39/arch/arm/kernel/
Dperf_event_xscale.c338 if (test_and_set_bit(XSCALE_CYCLE_COUNTER, cpuc->used_mask)) in xscale1pmu_get_event_idx()
343 if (!test_and_set_bit(XSCALE_COUNTER1, cpuc->used_mask)) in xscale1pmu_get_event_idx()
346 if (!test_and_set_bit(XSCALE_COUNTER0, cpuc->used_mask)) in xscale1pmu_get_event_idx()
695 if (!test_and_set_bit(XSCALE_COUNTER3, cpuc->used_mask)) in xscale2pmu_get_event_idx()
697 else if (!test_and_set_bit(XSCALE_COUNTER2, cpuc->used_mask)) in xscale2pmu_get_event_idx()
Dperf_event_v6.c528 if (test_and_set_bit(ARMV6_CYCLE_COUNTER, cpuc->used_mask)) in armv6pmu_get_event_idx()
537 if (!test_and_set_bit(ARMV6_COUNTER1, cpuc->used_mask)) in armv6pmu_get_event_idx()
540 if (!test_and_set_bit(ARMV6_COUNTER0, cpuc->used_mask)) in armv6pmu_get_event_idx()
Dperf_event.c60 unsigned long used_mask[BITS_TO_LONGS(ARMPMU_MAX_HWEVENTS)]; member
305 clear_bit(idx, cpuc->used_mask); in armpmu_del()
Dperf_event_v7.c833 if (test_and_set_bit(ARMV7_CYCLE_COUNTER, cpuc->used_mask)) in armv7pmu_get_event_idx()
843 if (!test_and_set_bit(idx, cpuc->used_mask)) in armv7pmu_get_event_idx()
/linux-2.6.39/arch/x86/kernel/cpu/
Dperf_event_p4.c1101 static int p4_next_cntr(int thread, unsigned long *used_mask, in p4_next_cntr() argument
1108 if (j != -1 && !test_bit(j, used_mask)) in p4_next_cntr()
1117 unsigned long used_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)]; in p4_pmu_schedule_events() local
1125 bitmap_zero(used_mask, X86_PMC_IDX_MAX); in p4_pmu_schedule_events()
1144 cntr_idx = p4_next_cntr(thread, used_mask, bind); in p4_pmu_schedule_events()
1152 set_bit(cntr_idx, used_mask); in p4_pmu_schedule_events()
Dperf_event.c773 unsigned long used_mask[BITS_TO_LONGS(X86_PMC_IDX_MAX)]; in x86_schedule_events() local
777 bitmap_zero(used_mask, X86_PMC_IDX_MAX); in x86_schedule_events()
800 if (test_bit(hwc->idx, used_mask)) in x86_schedule_events()
803 __set_bit(hwc->idx, used_mask); in x86_schedule_events()
814 bitmap_zero(used_mask, X86_PMC_IDX_MAX); in x86_schedule_events()
845 if (!test_bit(j, used_mask)) in x86_schedule_events()
852 __set_bit(j, used_mask); in x86_schedule_events()
/linux-2.6.39/arch/mips/kernel/
Dperf_event.c45 unsigned long used_mask[BITS_TO_LONGS(MIPS_MAX_HWEVENTS)]; member
280 clear_bit(idx, cpuc->used_mask); in mipspmu_del()
Dperf_event_mipsxx.c676 if (test_bit(n, cpuc->used_mask)) { \ in mipsxx_pmu_handle_shared_irq()
765 !test_and_set_bit(i, cpuc->used_mask)) in mipsxx_pmu_alloc_counter()
/linux-2.6.39/mm/
Dpage_alloc.c2988 nodemask_t used_mask; in build_zonelists() local
3004 nodes_clear(used_mask); in build_zonelists()
3009 while ((node = find_next_best_node(local_node, &used_mask)) >= 0) { in build_zonelists()