Lines Matching refs:config_base

796 		armv7_pmnc_write_evtsel(idx, hwc->config_base);  in armv7pmu_enable_event()
933 unsigned long evtype = hwc->config_base & ARMV7_EVTYPE_EVENT; in armv7pmu_get_event_idx()
962 unsigned long config_base = 0; in armv7pmu_set_event_filter() local
967 config_base |= ARMV7_EXCLUDE_USER; in armv7pmu_set_event_filter()
969 config_base |= ARMV7_EXCLUDE_PL1; in armv7pmu_set_event_filter()
971 config_base |= ARMV7_INCLUDE_HYP; in armv7pmu_set_event_filter()
977 event->config_base = config_base; in armv7pmu_set_event_filter()
1270 static void krait_evt_setup(int idx, u32 config_base) in krait_evt_setup() argument
1275 unsigned int region = EVENT_REGION(config_base); in krait_evt_setup()
1276 unsigned int group = EVENT_GROUP(config_base); in krait_evt_setup()
1277 unsigned int code = EVENT_CODE(config_base); in krait_evt_setup()
1279 bool venum_event = EVENT_VENUM(config_base); in krait_evt_setup()
1291 val |= config_base & (ARMV7_EXCLUDE_USER | ARMV7_EXCLUDE_PL1); in krait_evt_setup()
1327 static void krait_clearpmu(u32 config_base) in krait_clearpmu() argument
1331 unsigned int region = EVENT_REGION(config_base); in krait_clearpmu()
1332 unsigned int group = EVENT_GROUP(config_base); in krait_clearpmu()
1333 bool venum_event = EVENT_VENUM(config_base); in krait_clearpmu()
1365 if (hwc->config_base & KRAIT_EVENT_MASK) in krait_pmu_disable_event()
1366 krait_clearpmu(hwc->config_base); in krait_pmu_disable_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()
1442 if (hwc->config_base & VENUM_EVENT) in krait_event_to_bit()
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()
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()
1616 static void scorpion_evt_setup(int idx, u32 config_base) in scorpion_evt_setup() argument
1621 unsigned int region = EVENT_REGION(config_base); in scorpion_evt_setup()
1622 unsigned int group = EVENT_GROUP(config_base); in scorpion_evt_setup()
1623 unsigned int code = EVENT_CODE(config_base); in scorpion_evt_setup()
1625 bool venum_event = EVENT_VENUM(config_base); in scorpion_evt_setup()
1637 val |= config_base & (ARMV7_EXCLUDE_USER | ARMV7_EXCLUDE_PL1); in scorpion_evt_setup()
1659 static void scorpion_clearpmu(u32 config_base) in scorpion_clearpmu() argument
1663 unsigned int region = EVENT_REGION(config_base); in scorpion_clearpmu()
1664 unsigned int group = EVENT_GROUP(config_base); in scorpion_clearpmu()
1665 bool venum_event = EVENT_VENUM(config_base); in scorpion_clearpmu()
1697 if (hwc->config_base & KRAIT_EVENT_MASK) in scorpion_pmu_disable_event()
1698 scorpion_clearpmu(hwc->config_base); in scorpion_pmu_disable_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()
1774 if (hwc->config_base & VENUM_EVENT) in scorpion_event_to_bit()
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()
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()