Lines Matching full:simple

32  * struct vmw_user_simple_resource - User-space simple resource struct
35 * @simple: The embedded struct vmw_simple_resource.
39 struct vmw_simple_resource simple; member
41 * Nothing to be placed after @simple, since size of @simple is
48 * vmw_simple_resource_init - Initialize a simple resource object.
51 * @simple: The struct vmw_simple_resource to initialize.
53 * @res_free: Function pointer to destroy the simple resource.
61 struct vmw_simple_resource *simple, in vmw_simple_resource_init() argument
65 struct vmw_resource *res = &simple->res; in vmw_simple_resource_init()
69 &simple->func->res_func); in vmw_simple_resource_init()
76 ret = simple->func->init(res, data); in vmw_simple_resource_init()
82 simple->res.hw_destroy = simple->func->hw_destroy; in vmw_simple_resource_init()
88 * vmw_simple_resource_free - Free a simple resource object.
90 * @res: The struct vmw_resource member of the simple resource object.
98 simple.res); in vmw_simple_resource_free()
106 * @p_base: The struct ttm_base_object member of the simple resource object.
117 struct vmw_resource *res = &usimple->simple.res; in vmw_simple_resource_base_release()
131 * simple resource type.
150 alloc_size = offsetof(struct vmw_user_simple_resource, simple) + in vmw_simple_resource_create_ioctl()
159 usimple->simple.func = func; in vmw_simple_resource_create_ioctl()
160 res = &usimple->simple.res; in vmw_simple_resource_create_ioctl()
167 ret = vmw_simple_resource_init(dev_priv, &usimple->simple, in vmw_simple_resource_create_ioctl()
190 * vmw_simple_resource_lookup - Look up a simple resource from its user-space
195 * @func: The struct vmw_simple_resource_func identifying the simple resource
227 res = vmw_resource_reference(&usimple->simple.res); in vmw_simple_resource_lookup()