Lines Matching refs:config_base

902 		armv7_pmnc_write_evtsel(idx, hwc->config_base);  in armv7pmu_enable_event()
1038 unsigned long evtype = hwc->config_base & ARMV7_EVTYPE_EVENT; in armv7pmu_get_event_idx()
1073 unsigned long config_base = 0; in armv7pmu_set_event_filter() local
1078 config_base |= ARMV7_EXCLUDE_USER; in armv7pmu_set_event_filter()
1080 config_base |= ARMV7_EXCLUDE_PL1; in armv7pmu_set_event_filter()
1082 config_base |= ARMV7_INCLUDE_HYP; in armv7pmu_set_event_filter()
1088 event->config_base = config_base; in armv7pmu_set_event_filter()
1415 static void krait_evt_setup(int idx, u32 config_base) in krait_evt_setup() argument
1420 unsigned int region = EVENT_REGION(config_base); in krait_evt_setup()
1421 unsigned int group = EVENT_GROUP(config_base); in krait_evt_setup()
1422 unsigned int code = EVENT_CODE(config_base); in krait_evt_setup()
1424 bool venum_event = EVENT_VENUM(config_base); in krait_evt_setup()
1436 val |= config_base & (ARMV7_EXCLUDE_USER | ARMV7_EXCLUDE_PL1); in krait_evt_setup()
1472 static void krait_clearpmu(u32 config_base) in krait_clearpmu() argument
1476 unsigned int region = EVENT_REGION(config_base); in krait_clearpmu()
1477 unsigned int group = EVENT_GROUP(config_base); in krait_clearpmu()
1478 bool venum_event = EVENT_VENUM(config_base); in krait_clearpmu()
1510 if (hwc->config_base & KRAIT_EVENT_MASK) in krait_pmu_disable_event()
1511 krait_clearpmu(hwc->config_base); in krait_pmu_disable_event()
1541 if (hwc->config_base & KRAIT_EVENT_MASK) in krait_pmu_enable_event()
1542 krait_evt_setup(idx, hwc->config_base); in krait_pmu_enable_event()
1544 armv7_pmnc_write_evtsel(idx, hwc->config_base); in krait_pmu_enable_event()
1587 if (hwc->config_base & VENUM_EVENT) in krait_event_to_bit()
1612 unsigned int region = EVENT_REGION(hwc->config_base); in krait_pmu_get_event_idx()
1613 unsigned int code = EVENT_CODE(hwc->config_base); in krait_pmu_get_event_idx()
1614 unsigned int group = EVENT_GROUP(hwc->config_base); in krait_pmu_get_event_idx()
1615 bool venum_event = EVENT_VENUM(hwc->config_base); in krait_pmu_get_event_idx()
1616 bool krait_event = EVENT_CPU(hwc->config_base); in krait_pmu_get_event_idx()
1642 unsigned int region = EVENT_REGION(hwc->config_base); in krait_pmu_clear_event_idx()
1643 unsigned int group = EVENT_GROUP(hwc->config_base); in krait_pmu_clear_event_idx()
1644 bool venum_event = EVENT_VENUM(hwc->config_base); in krait_pmu_clear_event_idx()
1645 bool krait_event = EVENT_CPU(hwc->config_base); in krait_pmu_clear_event_idx()
1762 static void scorpion_evt_setup(int idx, u32 config_base) in scorpion_evt_setup() argument
1767 unsigned int region = EVENT_REGION(config_base); in scorpion_evt_setup()
1768 unsigned int group = EVENT_GROUP(config_base); in scorpion_evt_setup()
1769 unsigned int code = EVENT_CODE(config_base); in scorpion_evt_setup()
1771 bool venum_event = EVENT_VENUM(config_base); in scorpion_evt_setup()
1783 val |= config_base & (ARMV7_EXCLUDE_USER | ARMV7_EXCLUDE_PL1); in scorpion_evt_setup()
1805 static void scorpion_clearpmu(u32 config_base) in scorpion_clearpmu() argument
1809 unsigned int region = EVENT_REGION(config_base); in scorpion_clearpmu()
1810 unsigned int group = EVENT_GROUP(config_base); in scorpion_clearpmu()
1811 bool venum_event = EVENT_VENUM(config_base); in scorpion_clearpmu()
1843 if (hwc->config_base & KRAIT_EVENT_MASK) in scorpion_pmu_disable_event()
1844 scorpion_clearpmu(hwc->config_base); in scorpion_pmu_disable_event()
1874 if (hwc->config_base & KRAIT_EVENT_MASK) in scorpion_pmu_enable_event()
1875 scorpion_evt_setup(idx, hwc->config_base); in scorpion_pmu_enable_event()
1877 armv7_pmnc_write_evtsel(idx, hwc->config_base); in scorpion_pmu_enable_event()
1920 if (hwc->config_base & VENUM_EVENT) in scorpion_event_to_bit()
1945 unsigned int region = EVENT_REGION(hwc->config_base); in scorpion_pmu_get_event_idx()
1946 unsigned int group = EVENT_GROUP(hwc->config_base); in scorpion_pmu_get_event_idx()
1947 bool venum_event = EVENT_VENUM(hwc->config_base); in scorpion_pmu_get_event_idx()
1948 bool scorpion_event = EVENT_CPU(hwc->config_base); in scorpion_pmu_get_event_idx()
1972 unsigned int region = EVENT_REGION(hwc->config_base); in scorpion_pmu_clear_event_idx()
1973 unsigned int group = EVENT_GROUP(hwc->config_base); in scorpion_pmu_clear_event_idx()
1974 bool venum_event = EVENT_VENUM(hwc->config_base); in scorpion_pmu_clear_event_idx()
1975 bool scorpion_event = EVENT_CPU(hwc->config_base); in scorpion_pmu_clear_event_idx()