Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
ozeltbuf.c File Reference
#include <linux/init.h>
#include <linux/module.h>
#include <linux/netdevice.h>
#include "ozconfig.h"
#include "ozprotocol.h"
#include "ozeltbuf.h"
#include "ozpd.h"
#include "oztrace.h"

Go to the source code of this file.

Macros

#define OZ_ELT_INFO_MAGIC_USED   0x35791057
 
#define OZ_ELT_INFO_MAGIC_FREE   0x78940102
 

Functions

int oz_elt_buf_init (struct oz_elt_buf *buf)
 
void oz_elt_buf_term (struct oz_elt_buf *buf)
 
struct oz_elt_infooz_elt_info_alloc (struct oz_elt_buf *buf)
 
void oz_elt_info_free (struct oz_elt_buf *buf, struct oz_elt_info *ei)
 
void oz_elt_info_free_chain (struct oz_elt_buf *buf, struct list_head *list)
 
int oz_elt_stream_create (struct oz_elt_buf *buf, u8 id, int max_buf_count)
 
int oz_elt_stream_delete (struct oz_elt_buf *buf, u8 id)
 
void oz_elt_stream_get (struct oz_elt_stream *st)
 
void oz_elt_stream_put (struct oz_elt_stream *st)
 
int oz_queue_elt_info (struct oz_elt_buf *buf, u8 isoc, u8 id, struct oz_elt_info *ei)
 
int oz_select_elts_for_tx (struct oz_elt_buf *buf, u8 isoc, unsigned *len, unsigned max_len, struct list_head *list)
 
int oz_are_elts_available (struct oz_elt_buf *buf)
 
void oz_trim_elt_pool (struct oz_elt_buf *buf)
 

Macro Definition Documentation

#define OZ_ELT_INFO_MAGIC_FREE   0x78940102

Definition at line 17 of file ozeltbuf.c.

#define OZ_ELT_INFO_MAGIC_USED   0x35791057

Definition at line 16 of file ozeltbuf.c.

Function Documentation

int oz_are_elts_available ( struct oz_elt_buf buf)

Definition at line 314 of file ozeltbuf.c.

int oz_elt_buf_init ( struct oz_elt_buf buf)

Definition at line 21 of file ozeltbuf.c.

void oz_elt_buf_term ( struct oz_elt_buf buf)

Definition at line 34 of file ozeltbuf.c.

struct oz_elt_info* oz_elt_info_alloc ( struct oz_elt_buf buf)
read

Definition at line 65 of file ozeltbuf.c.

void oz_elt_info_free ( struct oz_elt_buf buf,
struct oz_elt_info ei 
)

Definition at line 98 of file ozeltbuf.c.

void oz_elt_info_free_chain ( struct oz_elt_buf buf,
struct list_head list 
)

Definition at line 116 of file ozeltbuf.c.

int oz_elt_stream_create ( struct oz_elt_buf buf,
u8  id,
int  max_buf_count 
)

Definition at line 131 of file ozeltbuf.c.

int oz_elt_stream_delete ( struct oz_elt_buf buf,
u8  id 
)

Definition at line 151 of file ozeltbuf.c.

void oz_elt_stream_get ( struct oz_elt_stream st)

Definition at line 190 of file ozeltbuf.c.

void oz_elt_stream_put ( struct oz_elt_stream st)

Definition at line 196 of file ozeltbuf.c.

int oz_queue_elt_info ( struct oz_elt_buf buf,
u8  isoc,
u8  id,
struct oz_elt_info ei 
)

Definition at line 208 of file ozeltbuf.c.

int oz_select_elts_for_tx ( struct oz_elt_buf buf,
u8  isoc,
unsigned *  len,
unsigned  max_len,
struct list_head list 
)

Definition at line 268 of file ozeltbuf.c.

void oz_trim_elt_pool ( struct oz_elt_buf buf)

Definition at line 320 of file ozeltbuf.c.