Lines Matching refs:hwc

637 	struct hw_perf_event *hwc = &event->hw;  in armv7pmu_read_counter()  local
638 int idx = hwc->idx; in armv7pmu_read_counter()
657 struct hw_perf_event *hwc = &event->hw; in armv7pmu_write_counter() local
658 int idx = hwc->idx; in armv7pmu_write_counter()
762 struct hw_perf_event *hwc = &event->hw; in armv7pmu_enable_event() local
765 int idx = hwc->idx; in armv7pmu_enable_event()
790 armv7_pmnc_write_evtsel(idx, hwc->config_base); in armv7pmu_enable_event()
808 struct hw_perf_event *hwc = &event->hw; in armv7pmu_disable_event() local
811 int idx = hwc->idx; in armv7pmu_disable_event()
864 struct hw_perf_event *hwc; in armv7pmu_handle_irq() local
877 hwc = &event->hw; in armv7pmu_handle_irq()
879 perf_sample_data_init(&data, 0, hwc->last_period); in armv7pmu_handle_irq()
926 struct hw_perf_event *hwc = &event->hw; in armv7pmu_get_event_idx() local
927 unsigned long evtype = hwc->config_base & ARMV7_EVTYPE_EVENT; in armv7pmu_get_event_idx()
1344 struct hw_perf_event *hwc = &event->hw; in krait_pmu_disable_event() local
1345 int idx = hwc->idx; in krait_pmu_disable_event()
1358 if (hwc->config_base & KRAIT_EVENT_MASK) in krait_pmu_disable_event()
1359 krait_clearpmu(hwc->config_base); in krait_pmu_disable_event()
1370 struct hw_perf_event *hwc = &event->hw; in krait_pmu_enable_event() local
1371 int idx = hwc->idx; in krait_pmu_enable_event()
1389 if (hwc->config_base & KRAIT_EVENT_MASK) in krait_pmu_enable_event()
1390 krait_evt_setup(idx, hwc->config_base); in krait_pmu_enable_event()
1392 armv7_pmnc_write_evtsel(idx, hwc->config_base); in krait_pmu_enable_event()
1432 struct hw_perf_event *hwc = &event->hw; in krait_event_to_bit() local
1435 if (hwc->config_base & VENUM_EVENT) in krait_event_to_bit()
1459 struct hw_perf_event *hwc = &event->hw; in krait_pmu_get_event_idx() local
1460 unsigned int region = EVENT_REGION(hwc->config_base); in krait_pmu_get_event_idx()
1461 unsigned int code = EVENT_CODE(hwc->config_base); in krait_pmu_get_event_idx()
1462 unsigned int group = EVENT_GROUP(hwc->config_base); in krait_pmu_get_event_idx()
1463 bool venum_event = EVENT_VENUM(hwc->config_base); in krait_pmu_get_event_idx()
1464 bool krait_event = EVENT_CPU(hwc->config_base); in krait_pmu_get_event_idx()
1489 struct hw_perf_event *hwc = &event->hw; in krait_pmu_clear_event_idx() local
1490 unsigned int region = EVENT_REGION(hwc->config_base); in krait_pmu_clear_event_idx()
1491 unsigned int group = EVENT_GROUP(hwc->config_base); in krait_pmu_clear_event_idx()
1492 bool venum_event = EVENT_VENUM(hwc->config_base); in krait_pmu_clear_event_idx()
1493 bool krait_event = EVENT_CPU(hwc->config_base); in krait_pmu_clear_event_idx()
1677 struct hw_perf_event *hwc = &event->hw; in scorpion_pmu_disable_event() local
1678 int idx = hwc->idx; in scorpion_pmu_disable_event()
1691 if (hwc->config_base & KRAIT_EVENT_MASK) in scorpion_pmu_disable_event()
1692 scorpion_clearpmu(hwc->config_base); in scorpion_pmu_disable_event()
1703 struct hw_perf_event *hwc = &event->hw; in scorpion_pmu_enable_event() local
1704 int idx = hwc->idx; in scorpion_pmu_enable_event()
1722 if (hwc->config_base & KRAIT_EVENT_MASK) in scorpion_pmu_enable_event()
1723 scorpion_evt_setup(idx, hwc->config_base); in scorpion_pmu_enable_event()
1725 armv7_pmnc_write_evtsel(idx, hwc->config_base); in scorpion_pmu_enable_event()
1765 struct hw_perf_event *hwc = &event->hw; in scorpion_event_to_bit() local
1768 if (hwc->config_base & VENUM_EVENT) in scorpion_event_to_bit()
1792 struct hw_perf_event *hwc = &event->hw; in scorpion_pmu_get_event_idx() local
1793 unsigned int region = EVENT_REGION(hwc->config_base); in scorpion_pmu_get_event_idx()
1794 unsigned int group = EVENT_GROUP(hwc->config_base); in scorpion_pmu_get_event_idx()
1795 bool venum_event = EVENT_VENUM(hwc->config_base); in scorpion_pmu_get_event_idx()
1796 bool scorpion_event = EVENT_CPU(hwc->config_base); in scorpion_pmu_get_event_idx()
1819 struct hw_perf_event *hwc = &event->hw; in scorpion_pmu_clear_event_idx() local
1820 unsigned int region = EVENT_REGION(hwc->config_base); in scorpion_pmu_clear_event_idx()
1821 unsigned int group = EVENT_GROUP(hwc->config_base); in scorpion_pmu_clear_event_idx()
1822 bool venum_event = EVENT_VENUM(hwc->config_base); in scorpion_pmu_clear_event_idx()
1823 bool scorpion_event = EVENT_CPU(hwc->config_base); in scorpion_pmu_clear_event_idx()