Lines Matching refs:pos
131 struct drm_ctx_list *pos, *tmp; in drm_legacy_ctxbitmap_flush() local
139 list_for_each_entry_safe(pos, tmp, &dev->ctxlist, head) { in drm_legacy_ctxbitmap_flush()
140 if (pos->tag == file && in drm_legacy_ctxbitmap_flush()
141 pos->handle != DRM_KERNEL_CONTEXT) { in drm_legacy_ctxbitmap_flush()
143 dev->driver->context_dtor(dev, pos->handle); in drm_legacy_ctxbitmap_flush()
145 drm_legacy_ctxbitmap_free(dev, pos->handle); in drm_legacy_ctxbitmap_flush()
146 list_del(&pos->head); in drm_legacy_ctxbitmap_flush()
147 kfree(pos); in drm_legacy_ctxbitmap_flush()
501 struct drm_ctx_list *pos, *n; in drm_legacy_rmctx() local
503 list_for_each_entry_safe(pos, n, &dev->ctxlist, head) { in drm_legacy_rmctx()
504 if (pos->handle == ctx->handle) { in drm_legacy_rmctx()
505 list_del(&pos->head); in drm_legacy_rmctx()
506 kfree(pos); in drm_legacy_rmctx()