#include <linux/kernel.h>
#include <linux/slab.h>
#include <linux/types.h>
#include <uapi/drm/i915_drm.h>
#include <drm/drm_print.h>
#include "gem/i915_gem_context.h"
#include "i915_drm_client.h"
#include "i915_file_private.h"
#include "i915_gem.h"
#include "i915_utils.h"
struct i915_drm_client *i915_drm_client_alloc(void)
{ … }
void __i915_drm_client_free(struct kref *kref)
{ … }
#ifdef CONFIG_PROC_FS
static void
obj_meminfo(struct drm_i915_gem_object *obj,
struct drm_memory_stats stats[INTEL_REGION_UNKNOWN])
{ … }
static void show_meminfo(struct drm_printer *p, struct drm_file *file)
{ … }
static const char * const uabi_class_names[] = …;
static u64 busy_add(struct i915_gem_context *ctx, unsigned int class)
{ … }
static void
show_client_class(struct drm_printer *p,
struct drm_i915_private *i915,
struct i915_drm_client *client,
unsigned int class)
{ … }
void i915_drm_client_fdinfo(struct drm_printer *p, struct drm_file *file)
{ … }
void i915_drm_client_add_object(struct i915_drm_client *client,
struct drm_i915_gem_object *obj)
{ … }
void i915_drm_client_remove_object(struct drm_i915_gem_object *obj)
{ … }
void i915_drm_client_add_context_objects(struct i915_drm_client *client,
struct intel_context *ce)
{ … }
#endif