Lines Matching refs:ctxt

30 #define field_offset(ctxt, field) ((void *)((uintptr_t)ctxt + \  argument
31 (uintptr_t)ctxt->field))
202 struct xen_pmu_intel_ctxt *ctxt; in xen_intel_pmu_emulate() local
212 ctxt = &xenpmu_data->pmu.c.intel; in xen_intel_pmu_emulate()
216 reg = &ctxt->global_ovf_ctrl; in xen_intel_pmu_emulate()
219 reg = &ctxt->global_status; in xen_intel_pmu_emulate()
222 reg = &ctxt->global_ctrl; in xen_intel_pmu_emulate()
225 reg = &ctxt->fixed_ctrl; in xen_intel_pmu_emulate()
230 fix_counters = field_offset(ctxt, fixed_counters); in xen_intel_pmu_emulate()
234 arch_cntr_pair = field_offset(ctxt, arch_counters); in xen_intel_pmu_emulate()
238 arch_cntr_pair = field_offset(ctxt, arch_counters); in xen_intel_pmu_emulate()
253 ctxt->global_status &= (~(*val)); in xen_intel_pmu_emulate()
265 struct xen_pmu_amd_ctxt *ctxt; in xen_amd_pmu_emulate() local
277 ctxt = &xenpmu_data->pmu.c.amd; in xen_amd_pmu_emulate()
280 ctrl_regs = field_offset(ctxt, ctrls); in xen_amd_pmu_emulate()
284 counter_regs = field_offset(ctxt, counters); in xen_amd_pmu_emulate()
352 struct xen_pmu_amd_ctxt *ctxt; in xen_amd_read_pmc() local
365 ctxt = &xenpmu_data->pmu.c.amd; in xen_amd_read_pmc()
366 counter_regs = field_offset(ctxt, counters); in xen_amd_read_pmc()
372 struct xen_pmu_intel_ctxt *ctxt; in xen_intel_read_pmc() local
390 ctxt = &xenpmu_data->pmu.c.intel; in xen_intel_read_pmc()
392 fixed_counters = field_offset(ctxt, fixed_counters); in xen_intel_read_pmc()
396 arch_cntr_pair = field_offset(ctxt, arch_counters); in xen_intel_read_pmc()