Lines Matching refs:hwc
643 struct hw_perf_event *hwc = &event->hw; in armv7pmu_read_counter() local
644 int idx = hwc->idx; in armv7pmu_read_counter()
663 struct hw_perf_event *hwc = &event->hw; in armv7pmu_write_counter() local
664 int idx = hwc->idx; in armv7pmu_write_counter()
768 struct hw_perf_event *hwc = &event->hw; in armv7pmu_enable_event() local
771 int idx = hwc->idx; in armv7pmu_enable_event()
796 armv7_pmnc_write_evtsel(idx, hwc->config_base); in armv7pmu_enable_event()
814 struct hw_perf_event *hwc = &event->hw; in armv7pmu_disable_event() local
817 int idx = hwc->idx; in armv7pmu_disable_event()
870 struct hw_perf_event *hwc; in armv7pmu_handle_irq() local
883 hwc = &event->hw; in armv7pmu_handle_irq()
885 perf_sample_data_init(&data, 0, hwc->last_period); in armv7pmu_handle_irq()
932 struct hw_perf_event *hwc = &event->hw; in armv7pmu_get_event_idx() local
933 unsigned long evtype = hwc->config_base & ARMV7_EVTYPE_EVENT; in armv7pmu_get_event_idx()
1351 struct hw_perf_event *hwc = &event->hw; in krait_pmu_disable_event() local
1352 int idx = hwc->idx; in krait_pmu_disable_event()
1365 if (hwc->config_base & KRAIT_EVENT_MASK) in krait_pmu_disable_event()
1366 krait_clearpmu(hwc->config_base); in krait_pmu_disable_event()
1377 struct hw_perf_event *hwc = &event->hw; in krait_pmu_enable_event() local
1378 int idx = hwc->idx; in krait_pmu_enable_event()
1396 if (hwc->config_base & KRAIT_EVENT_MASK) in krait_pmu_enable_event()
1397 krait_evt_setup(idx, hwc->config_base); in krait_pmu_enable_event()
1399 armv7_pmnc_write_evtsel(idx, hwc->config_base); in krait_pmu_enable_event()
1439 struct hw_perf_event *hwc = &event->hw; in krait_event_to_bit() local
1442 if (hwc->config_base & VENUM_EVENT) in krait_event_to_bit()
1466 struct hw_perf_event *hwc = &event->hw; in krait_pmu_get_event_idx() local
1467 unsigned int region = EVENT_REGION(hwc->config_base); in krait_pmu_get_event_idx()
1468 unsigned int code = EVENT_CODE(hwc->config_base); in krait_pmu_get_event_idx()
1469 unsigned int group = EVENT_GROUP(hwc->config_base); in krait_pmu_get_event_idx()
1470 bool venum_event = EVENT_VENUM(hwc->config_base); in krait_pmu_get_event_idx()
1471 bool krait_event = EVENT_CPU(hwc->config_base); in krait_pmu_get_event_idx()
1496 struct hw_perf_event *hwc = &event->hw; in krait_pmu_clear_event_idx() local
1497 unsigned int region = EVENT_REGION(hwc->config_base); in krait_pmu_clear_event_idx()
1498 unsigned int group = EVENT_GROUP(hwc->config_base); in krait_pmu_clear_event_idx()
1499 bool venum_event = EVENT_VENUM(hwc->config_base); in krait_pmu_clear_event_idx()
1500 bool krait_event = EVENT_CPU(hwc->config_base); in krait_pmu_clear_event_idx()
1683 struct hw_perf_event *hwc = &event->hw; in scorpion_pmu_disable_event() local
1684 int idx = hwc->idx; in scorpion_pmu_disable_event()
1697 if (hwc->config_base & KRAIT_EVENT_MASK) in scorpion_pmu_disable_event()
1698 scorpion_clearpmu(hwc->config_base); in scorpion_pmu_disable_event()
1709 struct hw_perf_event *hwc = &event->hw; in scorpion_pmu_enable_event() local
1710 int idx = hwc->idx; in scorpion_pmu_enable_event()
1728 if (hwc->config_base & KRAIT_EVENT_MASK) in scorpion_pmu_enable_event()
1729 scorpion_evt_setup(idx, hwc->config_base); in scorpion_pmu_enable_event()
1731 armv7_pmnc_write_evtsel(idx, hwc->config_base); in scorpion_pmu_enable_event()
1771 struct hw_perf_event *hwc = &event->hw; in scorpion_event_to_bit() local
1774 if (hwc->config_base & VENUM_EVENT) in scorpion_event_to_bit()
1798 struct hw_perf_event *hwc = &event->hw; in scorpion_pmu_get_event_idx() local
1799 unsigned int region = EVENT_REGION(hwc->config_base); in scorpion_pmu_get_event_idx()
1800 unsigned int group = EVENT_GROUP(hwc->config_base); in scorpion_pmu_get_event_idx()
1801 bool venum_event = EVENT_VENUM(hwc->config_base); in scorpion_pmu_get_event_idx()
1802 bool scorpion_event = EVENT_CPU(hwc->config_base); in scorpion_pmu_get_event_idx()
1825 struct hw_perf_event *hwc = &event->hw; in scorpion_pmu_clear_event_idx() local
1826 unsigned int region = EVENT_REGION(hwc->config_base); in scorpion_pmu_clear_event_idx()
1827 unsigned int group = EVENT_GROUP(hwc->config_base); in scorpion_pmu_clear_event_idx()
1828 bool venum_event = EVENT_VENUM(hwc->config_base); in scorpion_pmu_clear_event_idx()
1829 bool scorpion_event = EVENT_CPU(hwc->config_base); in scorpion_pmu_clear_event_idx()