Lines Matching refs:config_base

790 		armv7_pmnc_write_evtsel(idx, hwc->config_base);  in armv7pmu_enable_event()
927 unsigned long evtype = hwc->config_base & ARMV7_EVTYPE_EVENT; in armv7pmu_get_event_idx()
956 unsigned long config_base = 0; in armv7pmu_set_event_filter() local
961 config_base |= ARMV7_EXCLUDE_USER; in armv7pmu_set_event_filter()
963 config_base |= ARMV7_EXCLUDE_PL1; in armv7pmu_set_event_filter()
965 config_base |= ARMV7_INCLUDE_HYP; in armv7pmu_set_event_filter()
971 event->config_base = config_base; in armv7pmu_set_event_filter()
1263 static void krait_evt_setup(int idx, u32 config_base) in krait_evt_setup() argument
1268 unsigned int region = EVENT_REGION(config_base); in krait_evt_setup()
1269 unsigned int group = EVENT_GROUP(config_base); in krait_evt_setup()
1270 unsigned int code = EVENT_CODE(config_base); in krait_evt_setup()
1272 bool venum_event = EVENT_VENUM(config_base); in krait_evt_setup()
1284 val |= config_base & (ARMV7_EXCLUDE_USER | ARMV7_EXCLUDE_PL1); in krait_evt_setup()
1320 static void krait_clearpmu(u32 config_base) in krait_clearpmu() argument
1324 unsigned int region = EVENT_REGION(config_base); in krait_clearpmu()
1325 unsigned int group = EVENT_GROUP(config_base); in krait_clearpmu()
1326 bool venum_event = EVENT_VENUM(config_base); in krait_clearpmu()
1358 if (hwc->config_base & KRAIT_EVENT_MASK) in krait_pmu_disable_event()
1359 krait_clearpmu(hwc->config_base); in krait_pmu_disable_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()
1435 if (hwc->config_base & VENUM_EVENT) in krait_event_to_bit()
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()
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()
1610 static void scorpion_evt_setup(int idx, u32 config_base) in scorpion_evt_setup() argument
1615 unsigned int region = EVENT_REGION(config_base); in scorpion_evt_setup()
1616 unsigned int group = EVENT_GROUP(config_base); in scorpion_evt_setup()
1617 unsigned int code = EVENT_CODE(config_base); in scorpion_evt_setup()
1619 bool venum_event = EVENT_VENUM(config_base); in scorpion_evt_setup()
1631 val |= config_base & (ARMV7_EXCLUDE_USER | ARMV7_EXCLUDE_PL1); in scorpion_evt_setup()
1653 static void scorpion_clearpmu(u32 config_base) in scorpion_clearpmu() argument
1657 unsigned int region = EVENT_REGION(config_base); in scorpion_clearpmu()
1658 unsigned int group = EVENT_GROUP(config_base); in scorpion_clearpmu()
1659 bool venum_event = EVENT_VENUM(config_base); in scorpion_clearpmu()
1691 if (hwc->config_base & KRAIT_EVENT_MASK) in scorpion_pmu_disable_event()
1692 scorpion_clearpmu(hwc->config_base); in scorpion_pmu_disable_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()
1768 if (hwc->config_base & VENUM_EVENT) in scorpion_event_to_bit()
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()
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()