Lines Matching refs:pos
120 struct drm_ctx_list *pos, *tmp; in drm_legacy_ctxbitmap_flush() local
124 list_for_each_entry_safe(pos, tmp, &dev->ctxlist, head) { in drm_legacy_ctxbitmap_flush()
125 if (pos->tag == file && in drm_legacy_ctxbitmap_flush()
126 pos->handle != DRM_KERNEL_CONTEXT) { in drm_legacy_ctxbitmap_flush()
128 dev->driver->context_dtor(dev, pos->handle); in drm_legacy_ctxbitmap_flush()
130 drm_legacy_ctxbitmap_free(dev, pos->handle); in drm_legacy_ctxbitmap_flush()
131 list_del(&pos->head); in drm_legacy_ctxbitmap_flush()
132 kfree(pos); in drm_legacy_ctxbitmap_flush()
454 struct drm_ctx_list *pos, *n; in drm_legacy_rmctx() local
456 list_for_each_entry_safe(pos, n, &dev->ctxlist, head) { in drm_legacy_rmctx()
457 if (pos->handle == ctx->handle) { in drm_legacy_rmctx()
458 list_del(&pos->head); in drm_legacy_rmctx()
459 kfree(pos); in drm_legacy_rmctx()