Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Functions
packets-buffer.h File Reference
#include <linux/dma-mapping.h>
#include <linux/firewire.h>

Go to the source code of this file.

Data Structures

struct  iso_packets_buffer
 

Functions

int iso_packets_buffer_init (struct iso_packets_buffer *b, struct fw_unit *unit, unsigned int count, unsigned int packet_size, enum dma_data_direction direction)
 
void iso_packets_buffer_destroy (struct iso_packets_buffer *b, struct fw_unit *unit)
 

Function Documentation

void iso_packets_buffer_destroy ( struct iso_packets_buffer b,
struct fw_unit unit 
)

iso_packets_buffer_destroy - frees packet buffer resources : the buffer structure to free : the device at the other end of the stream

Definition at line 71 of file packets-buffer.c.

int iso_packets_buffer_init ( struct iso_packets_buffer b,
struct fw_unit unit,
unsigned int  count,
unsigned int  packet_size,
enum dma_data_direction  direction 
)

iso_packets_buffer_init - allocates the memory for packets : the buffer structure to initialize : the device at the other end of the stream : the number of packets : the (maximum) size of a packet, in bytes : DMA_TO_DEVICE or DMA_FROM_DEVICE

Definition at line 21 of file packets-buffer.c.