Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
intel_ringbuffer.c File Reference
#include <drm/drmP.h>
#include "i915_drv.h"
#include <drm/i915_drm.h>
#include "i915_trace.h"
#include "intel_drv.h"

Go to the source code of this file.

Data Structures

struct  pipe_control
 

Macros

#define PIPE_CONTROL_FLUSH(ring__, addr__)
 

Functions

u32 intel_ring_get_active_head (struct intel_ring_buffer *ring)
 
void intel_ring_setup_status_page (struct intel_ring_buffer *ring)
 
void intel_cleanup_ring_buffer (struct intel_ring_buffer *ring)
 
int intel_wait_ring_buffer (struct intel_ring_buffer *ring, int n)
 
int intel_ring_begin (struct intel_ring_buffer *ring, int num_dwords)
 
void intel_ring_advance (struct intel_ring_buffer *ring)
 
int intel_init_render_ring_buffer (struct drm_device *dev)
 
int intel_render_ring_init_dri (struct drm_device *dev, u64 start, u32 size)
 
int intel_init_bsd_ring_buffer (struct drm_device *dev)
 
int intel_init_blt_ring_buffer (struct drm_device *dev)
 
int intel_ring_flush_all_caches (struct intel_ring_buffer *ring)
 
int intel_ring_invalidate_all_caches (struct intel_ring_buffer *ring)
 

Macro Definition Documentation

#define PIPE_CONTROL_FLUSH (   ring__,
  addr__ 
)
Value:
do { \
intel_ring_emit(ring__, GFX_OP_PIPE_CONTROL(4) | PIPE_CONTROL_QW_WRITE | \
intel_ring_emit(ring__, (addr__) | PIPE_CONTROL_GLOBAL_GTT); \
intel_ring_emit(ring__, 0); \
intel_ring_emit(ring__, 0); \
} while (0)

Definition at line 646 of file intel_ringbuffer.c.

Function Documentation

void intel_cleanup_ring_buffer ( struct intel_ring_buffer ring)

Definition at line 1150 of file intel_ringbuffer.c.

int intel_init_blt_ring_buffer ( struct drm_device dev)

Definition at line 1625 of file intel_ringbuffer.c.

int intel_init_bsd_ring_buffer ( struct drm_device dev)

Definition at line 1576 of file intel_ringbuffer.c.

int intel_init_render_ring_buffer ( struct drm_device dev)

Definition at line 1445 of file intel_ringbuffer.c.

int intel_render_ring_init_dri ( struct drm_device dev,
u64  start,
u32  size 
)

Definition at line 1513 of file intel_ringbuffer.c.

void intel_ring_advance ( struct intel_ring_buffer ring)

Definition at line 1339 of file intel_ringbuffer.c.

int intel_ring_begin ( struct intel_ring_buffer ring,
int  num_dwords 
)

Definition at line 1312 of file intel_ringbuffer.c.

int intel_ring_flush_all_caches ( struct intel_ring_buffer ring)

Definition at line 1654 of file intel_ringbuffer.c.

u32 intel_ring_get_active_head ( struct intel_ring_buffer ring)

Definition at line 348 of file intel_ringbuffer.c.

int intel_ring_invalidate_all_caches ( struct intel_ring_buffer ring)

Definition at line 1672 of file intel_ringbuffer.c.

void intel_ring_setup_status_page ( struct intel_ring_buffer ring)

Definition at line 842 of file intel_ringbuffer.c.

int intel_wait_ring_buffer ( struct intel_ring_buffer ring,
int  n 
)

Definition at line 1269 of file intel_ringbuffer.c.