Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
isp_video_queue_operations Struct Reference

#include <ispqueue.h>

Data Fields

void(* queue_prepare )(struct isp_video_queue *queue, unsigned int *nbuffers, unsigned int *size)
 
int(* buffer_prepare )(struct isp_video_buffer *buf)
 
void(* buffer_queue )(struct isp_video_buffer *buf)
 
void(* buffer_cleanup )(struct isp_video_buffer *buf)
 

Detailed Description

struct isp_video_queue_operations - Driver-specific operations : Called before allocating buffers. Drivers should clamp the number of buffers according to their requirements, and must return the buffer size in bytes. : Called the first time a buffer is queued, or after changing the userspace memory address for a USERPTR buffer, with the queue lock held. Drivers should perform device-specific buffer preparation (such as mapping the buffer memory in an IOMMU). This operation is optional. : Called when a buffer is being added to the queue with the queue irqlock spinlock held. : Called before freeing buffers, or before changing the userspace memory address for a USERPTR buffer, with the queue lock held. Drivers must perform cleanup operations required to undo the buffer_prepare call. This operation is optional.

Definition at line 128 of file ispqueue.h.

Field Documentation

void(* buffer_cleanup)(struct isp_video_buffer *buf)

Definition at line 133 of file ispqueue.h.

int(* buffer_prepare)(struct isp_video_buffer *buf)

Definition at line 131 of file ispqueue.h.

void(* buffer_queue)(struct isp_video_buffer *buf)

Definition at line 132 of file ispqueue.h.

void(* queue_prepare)(struct isp_video_queue *queue, unsigned int *nbuffers, unsigned int *size)

Definition at line 129 of file ispqueue.h.


The documentation for this struct was generated from the following file: