Lines Matching full:pxp

24 static const char *pxp_status_to_str(struct xe_pxp *pxp)  in pxp_status_to_str()  argument
26 lockdep_assert_held(&pxp->mutex); in pxp_status_to_str()
28 switch (pxp->status) { in pxp_status_to_str()
48 struct xe_pxp *pxp = node_to_pxp(m->private); in pxp_info() local
52 if (!xe_pxp_is_enabled(pxp)) in pxp_info()
55 mutex_lock(&pxp->mutex); in pxp_info()
56 status = pxp_status_to_str(pxp); in pxp_info()
59 drm_printf(&p, "instance counter: %u\n", pxp->key_instance); in pxp_info()
60 mutex_unlock(&pxp->mutex); in pxp_info()
67 struct xe_pxp *pxp = node_to_pxp(m->private); in pxp_terminate() local
69 int ready = xe_pxp_get_readiness_status(pxp); in pxp_terminate()
76 /* no need for a termination if PXP is not active */ in pxp_terminate()
77 if (pxp->status != XE_PXP_ACTIVE) { in pxp_terminate()
78 drm_printf(&p, "PXP not active\n"); in pxp_terminate()
83 spin_lock_irq(&pxp->xe->irq.lock); in pxp_terminate()
84 xe_pxp_irq_handler(pxp->xe, KCR_PXP_STATE_TERMINATED_INTERRUPT); in pxp_terminate()
85 spin_unlock_irq(&pxp->xe->irq.lock); in pxp_terminate()
87 drm_printf(&p, "PXP termination queued\n"); in pxp_terminate()
97 void xe_pxp_debugfs_register(struct xe_pxp *pxp) in xe_pxp_debugfs_register() argument
104 if (!xe_pxp_is_enabled(pxp)) in xe_pxp_debugfs_register()
107 minor = pxp->xe->drm.primary; in xe_pxp_debugfs_register()
112 local = drmm_kmalloc(&pxp->xe->drm, DEBUGFS_SIZE, GFP_KERNEL); in xe_pxp_debugfs_register()
120 local[i].data = pxp; in xe_pxp_debugfs_register()
122 root = debugfs_create_dir("pxp", minor->debugfs_root); in xe_pxp_debugfs_register()