Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
mpipe.c File Reference
#include <linux/errno.h>
#include <linux/io.h>
#include <linux/module.h>
#include <gxio/iorpc_globals.h>
#include <gxio/iorpc_mpipe.h>
#include <gxio/iorpc_mpipe_info.h>
#include <gxio/kiorpc.h>
#include <gxio/mpipe.h>

Go to the source code of this file.

Macros

#define link   link_shadow
 

Functions

int gxio_mpipe_init (gxio_mpipe_context_t *context, unsigned int mpipe_index)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_init)
 
int gxio_mpipe_destroy (gxio_mpipe_context_t *context)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_destroy)
 
gxio_mpipe_buffer_size_enum_t gxio_mpipe_buffer_size_to_buffer_size_enum (size_t size)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_buffer_size_to_buffer_size_enum)
 
size_t gxio_mpipe_buffer_size_enum_to_buffer_size (gxio_mpipe_buffer_size_enum_t buffer_size_enum)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_buffer_size_enum_to_buffer_size)
 
size_t gxio_mpipe_calc_buffer_stack_bytes (unsigned long buffers)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_calc_buffer_stack_bytes)
 
int gxio_mpipe_init_buffer_stack (gxio_mpipe_context_t *context, unsigned int stack, gxio_mpipe_buffer_size_enum_t buffer_size_enum, void *mem, size_t mem_size, unsigned int mem_flags)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_init_buffer_stack)
 
int gxio_mpipe_init_notif_ring (gxio_mpipe_context_t *context, unsigned int ring, void *mem, size_t mem_size, unsigned int mem_flags)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_init_notif_ring)
 
int gxio_mpipe_init_notif_group_and_buckets (gxio_mpipe_context_t *context, unsigned int group, unsigned int ring, unsigned int num_rings, unsigned int bucket, unsigned int num_buckets, gxio_mpipe_bucket_mode_t mode)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_init_notif_group_and_buckets)
 
int gxio_mpipe_init_edma_ring (gxio_mpipe_context_t *context, unsigned int ring, unsigned int channel, void *mem, size_t mem_size, unsigned int mem_flags)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_init_edma_ring)
 
void gxio_mpipe_rules_init (gxio_mpipe_rules_t *rules, gxio_mpipe_context_t *context)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_rules_init)
 
int gxio_mpipe_rules_begin (gxio_mpipe_rules_t *rules, unsigned int bucket, unsigned int num_buckets, gxio_mpipe_rules_stacks_t *stacks)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_rules_begin)
 
int gxio_mpipe_rules_add_channel (gxio_mpipe_rules_t *rules, unsigned int channel)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_rules_add_channel)
 
int gxio_mpipe_rules_set_headroom (gxio_mpipe_rules_t *rules, uint8_t headroom)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_rules_set_headroom)
 
int gxio_mpipe_rules_commit (gxio_mpipe_rules_t *rules)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_rules_commit)
 
int gxio_mpipe_iqueue_init (gxio_mpipe_iqueue_t *iqueue, gxio_mpipe_context_t *context, unsigned int ring, void *mem, size_t mem_size, unsigned int mem_flags)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_iqueue_init)
 
int gxio_mpipe_equeue_init (gxio_mpipe_equeue_t *equeue, gxio_mpipe_context_t *context, unsigned int edma_ring_id, unsigned int channel, void *mem, unsigned int mem_size, unsigned int mem_flags)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_equeue_init)
 
int gxio_mpipe_set_timestamp (gxio_mpipe_context_t *context, const struct timespec *ts)
 
int gxio_mpipe_get_timestamp (gxio_mpipe_context_t *context, struct timespec *ts)
 
int gxio_mpipe_adjust_timestamp (gxio_mpipe_context_t *context, int64_t delta)
 
int gxio_mpipe_link_enumerate_mac (int idx, char *link_name, uint8_t *link_mac)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_link_enumerate_mac)
 
int gxio_mpipe_link_open (gxio_mpipe_link_t *link, gxio_mpipe_context_t *context, const char *link_name, unsigned int flags)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_link_open)
 
int gxio_mpipe_link_close (gxio_mpipe_link_t *link)
 
 EXPORT_SYMBOL_GPL (gxio_mpipe_link_close)
 

Macro Definition Documentation

__hc32 link   link_shadow

Definition at line 30 of file mpipe.c.

Function Documentation

EXPORT_SYMBOL_GPL ( gxio_mpipe_init  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_destroy  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_calc_buffer_stack_bytes  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_init_buffer_stack  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_init_notif_ring  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_init_notif_group_and_buckets  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_init_edma_ring  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_rules_init  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_rules_begin  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_rules_add_channel  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_rules_set_headroom  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_rules_commit  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_iqueue_init  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_equeue_init  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_link_enumerate_mac  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_link_open  )
EXPORT_SYMBOL_GPL ( gxio_mpipe_link_close  )
int gxio_mpipe_adjust_timestamp ( gxio_mpipe_context_t context,
int64_t  delta 
)

Definition at line 453 of file mpipe.c.

size_t gxio_mpipe_buffer_size_enum_to_buffer_size ( gxio_mpipe_buffer_size_enum_t  buffer_size_enum)

Definition at line 102 of file mpipe.c.

gxio_mpipe_buffer_size_enum_t gxio_mpipe_buffer_size_to_buffer_size_enum ( size_t  size)

Definition at line 90 of file mpipe.c.

size_t gxio_mpipe_calc_buffer_stack_bytes ( unsigned long  buffers)

Definition at line 113 of file mpipe.c.

int gxio_mpipe_destroy ( gxio_mpipe_context_t context)

Definition at line 78 of file mpipe.c.

int gxio_mpipe_equeue_init ( gxio_mpipe_equeue_t equeue,
gxio_mpipe_context_t context,
unsigned int  edma_ring_id,
unsigned int  channel,
void mem,
unsigned int  mem_size,
unsigned int  mem_flags 
)

Definition at line 384 of file mpipe.c.

int gxio_mpipe_get_timestamp ( gxio_mpipe_context_t context,
struct timespec ts 
)

Definition at line 431 of file mpipe.c.

int gxio_mpipe_init ( gxio_mpipe_context_t context,
unsigned int  mpipe_index 
)

Definition at line 32 of file mpipe.c.

int gxio_mpipe_init_buffer_stack ( gxio_mpipe_context_t context,
unsigned int  stack,
gxio_mpipe_buffer_size_enum_t  buffer_size_enum,
void mem,
size_t  mem_size,
unsigned int  mem_flags 
)

Definition at line 127 of file mpipe.c.

int gxio_mpipe_init_edma_ring ( gxio_mpipe_context_t context,
unsigned int  ring,
unsigned int  channel,
void mem,
size_t  mem_size,
unsigned int  mem_flags 
)

Definition at line 202 of file mpipe.c.

int gxio_mpipe_init_notif_group_and_buckets ( gxio_mpipe_context_t context,
unsigned int  group,
unsigned int  ring,
unsigned int  num_rings,
unsigned int  bucket,
unsigned int  num_buckets,
gxio_mpipe_bucket_mode_t  mode 
)

Definition at line 162 of file mpipe.c.

int gxio_mpipe_init_notif_ring ( gxio_mpipe_context_t context,
unsigned int  ring,
void mem,
size_t  mem_size,
unsigned int  mem_flags 
)

Definition at line 151 of file mpipe.c.

int gxio_mpipe_iqueue_init ( gxio_mpipe_iqueue_t iqueue,
gxio_mpipe_context_t context,
unsigned int  ring,
void mem,
size_t  mem_size,
unsigned int  mem_flags 
)

Definition at line 356 of file mpipe.c.

int gxio_mpipe_link_close ( gxio_mpipe_link_t link)

Definition at line 540 of file mpipe.c.

int gxio_mpipe_link_enumerate_mac ( int  idx,
char link_name,
uint8_t link_mac 
)

Definition at line 496 of file mpipe.c.

int gxio_mpipe_link_open ( gxio_mpipe_link_t link,
gxio_mpipe_context_t context,
const char link_name,
unsigned int  flags 
)

Definition at line 517 of file mpipe.c.

int gxio_mpipe_rules_add_channel ( gxio_mpipe_rules_t rules,
unsigned int  channel 
)

Definition at line 305 of file mpipe.c.

int gxio_mpipe_rules_begin ( gxio_mpipe_rules_t rules,
unsigned int  bucket,
unsigned int  num_buckets,
gxio_mpipe_rules_stacks_t stacks 
)

Definition at line 224 of file mpipe.c.

int gxio_mpipe_rules_commit ( gxio_mpipe_rules_t rules)

Definition at line 346 of file mpipe.c.

void gxio_mpipe_rules_init ( gxio_mpipe_rules_t rules,
gxio_mpipe_context_t context 
)

Definition at line 215 of file mpipe.c.

int gxio_mpipe_rules_set_headroom ( gxio_mpipe_rules_t rules,
uint8_t  headroom 
)

Definition at line 328 of file mpipe.c.

int gxio_mpipe_set_timestamp ( gxio_mpipe_context_t context,
const struct timespec ts 
)

Definition at line 422 of file mpipe.c.