Linux Kernel
3.7.1
|
Go to the source code of this file.
Functions | |
void | psb_gtt_roll (struct drm_device *dev, struct gtt_range *r, int roll) |
int | psb_gtt_pin (struct gtt_range *gt) |
void | psb_gtt_unpin (struct gtt_range *gt) |
: resource name | |
psb_gtt_alloc_range - allocate GTT address space : Our DRM device : length (bytes) of address space required : resource should be backed by stolen pages Ask the kernel core to find us a suitable range of addresses to use for a GTT mapping. Returns a gtt_range structure describing the object, or NULL on error. On successful return the resource is both allocated and marked as in use. | |
struct gtt_range * | psb_gtt_alloc_range (struct drm_device *dev, int len, const char *name, int backed) |
void | psb_gtt_free_range (struct drm_device *dev, struct gtt_range *gt) |
void | psb_gtt_takedown (struct drm_device *dev) |
int | psb_gtt_init (struct drm_device *dev, int resume) |
void psb_gtt_free_range | ( | struct drm_device * | dev, |
struct gtt_range * | gt | ||
) |
void psb_gtt_takedown | ( | struct drm_device * | dev | ) |
psb_gtt_unpin - Drop a GTT pin requirement : range to pin
Undoes the effect of psb_gtt_pin. On the last drop the GEM object will be removed from the GTT which will also drop the page references and allow the VM to clean up or page stuff.
Non GEM backed objects treat this as a no-op as they are always GTT backed objects.