Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
cxgb3_offload.c File Reference
#include <linux/list.h>
#include <linux/slab.h>
#include <net/neighbour.h>
#include <linux/notifier.h>
#include <linux/atomic.h>
#include <linux/proc_fs.h>
#include <linux/if_vlan.h>
#include <net/netevent.h>
#include <linux/highmem.h>
#include <linux/vmalloc.h>
#include <linux/export.h>
#include "common.h"
#include "regs.h"
#include "cxgb3_ioctl.h"
#include "cxgb3_ctl_defs.h"
#include "cxgb3_defs.h"
#include "l2t.h"
#include "firmware_exports.h"
#include "cxgb3_offload.h"

Go to the source code of this file.

Macros

#define ASYNC_NOTIF_RSPQ   0
 

Functions

void cxgb3_register_client (struct cxgb3_client *client)
 
 EXPORT_SYMBOL (cxgb3_register_client)
 
void cxgb3_unregister_client (struct cxgb3_client *client)
 
 EXPORT_SYMBOL (cxgb3_unregister_client)
 
void cxgb3_add_clients (struct t3cdev *tdev)
 
void cxgb3_remove_clients (struct t3cdev *tdev)
 
void cxgb3_event_notify (struct t3cdev *tdev, u32 event, u32 port)
 
void cxgb3_set_dummy_ops (struct t3cdev *dev)
 
voidcxgb3_free_atid (struct t3cdev *tdev, int atid)
 
 EXPORT_SYMBOL (cxgb3_free_atid)
 
void cxgb3_free_stid (struct t3cdev *tdev, int stid)
 
 EXPORT_SYMBOL (cxgb3_free_stid)
 
void cxgb3_insert_tid (struct t3cdev *tdev, struct cxgb3_client *client, void *ctx, unsigned int tid)
 
 EXPORT_SYMBOL (cxgb3_insert_tid)
 
void cxgb3_queue_tid_release (struct t3cdev *tdev, unsigned int tid)
 
 EXPORT_SYMBOL (cxgb3_queue_tid_release)
 
void cxgb3_remove_tid (struct t3cdev *tdev, void *ctx, unsigned int tid)
 
 EXPORT_SYMBOL (cxgb3_remove_tid)
 
int cxgb3_alloc_atid (struct t3cdev *tdev, struct cxgb3_client *client, void *ctx)
 
 EXPORT_SYMBOL (cxgb3_alloc_atid)
 
int cxgb3_alloc_stid (struct t3cdev *tdev, struct cxgb3_client *client, void *ctx)
 
 EXPORT_SYMBOL (cxgb3_alloc_stid)
 
struct t3cdevdev2t3cdev (struct net_device *dev)
 
 EXPORT_SYMBOL (dev2t3cdev)
 
void t3_register_cpl_handler (unsigned int opcode, cpl_handler_func h)
 
 EXPORT_SYMBOL (t3_register_cpl_handler)
 
int cxgb3_ofld_send (struct t3cdev *dev, struct sk_buff *skb)
 
 EXPORT_SYMBOL (cxgb3_ofld_send)
 
voidcxgb_alloc_mem (unsigned long size)
 
void cxgb_free_mem (void *addr)
 
int cxgb3_offload_activate (struct adapter *adapter)
 
void cxgb3_offload_deactivate (struct adapter *adapter)
 
void __devinit cxgb3_adapter_ofld (struct adapter *adapter)
 
void __devexit cxgb3_adapter_unofld (struct adapter *adapter)
 
void __init cxgb3_offload_init (void)
 

Macro Definition Documentation

#define ASYNC_NOTIF_RSPQ   0

Definition at line 271 of file cxgb3_offload.c.

Function Documentation

void __devinit cxgb3_adapter_ofld ( struct adapter adapter)

Definition at line 1385 of file cxgb3_offload.c.

void __devexit cxgb3_adapter_unofld ( struct adapter adapter)

Definition at line 1399 of file cxgb3_offload.c.

void cxgb3_add_clients ( struct t3cdev tdev)

cxgb3_add_clients - activate registered clients for an offload device : the offload device

Call backs all registered clients once a offload device is activated

Definition at line 132 of file cxgb3_offload.c.

int cxgb3_alloc_atid ( struct t3cdev tdev,
struct cxgb3_client client,
void ctx 
)

Definition at line 648 of file cxgb3_offload.c.

int cxgb3_alloc_stid ( struct t3cdev tdev,
struct cxgb3_client client,
void ctx 
)

Definition at line 672 of file cxgb3_offload.c.

void cxgb3_event_notify ( struct t3cdev tdev,
u32  event,
u32  port 
)

Definition at line 163 of file cxgb3_offload.c.

void* cxgb3_free_atid ( struct t3cdev tdev,
int  atid 
)

Definition at line 499 of file cxgb3_offload.c.

void cxgb3_free_stid ( struct t3cdev tdev,
int  stid 
)

Definition at line 519 of file cxgb3_offload.c.

void cxgb3_insert_tid ( struct t3cdev tdev,
struct cxgb3_client client,
void ctx,
unsigned int  tid 
)

Definition at line 533 of file cxgb3_offload.c.

int cxgb3_offload_activate ( struct adapter adapter)

Definition at line 1257 of file cxgb3_offload.c.

void cxgb3_offload_deactivate ( struct adapter adapter)

Definition at line 1327 of file cxgb3_offload.c.

void __init cxgb3_offload_init ( void  )

Definition at line 1409 of file cxgb3_offload.c.

int cxgb3_ofld_send ( struct t3cdev dev,
struct sk_buff skb 
)

Definition at line 1047 of file cxgb3_offload.c.

void cxgb3_queue_tid_release ( struct t3cdev tdev,
unsigned int  tid 
)

Definition at line 602 of file cxgb3_offload.c.

void cxgb3_register_client ( struct cxgb3_client client)

cxgb3_register_client - register an offload client : the client

Add the client to the client list, and call backs the client for each activated offload device

Definition at line 83 of file cxgb3_offload.c.

void cxgb3_remove_clients ( struct t3cdev tdev)

cxgb3_remove_clients - deactivates registered clients for an offload device : the offload device

Call backs all registered clients once a offload device is deactivated

Definition at line 151 of file cxgb3_offload.c.

void cxgb3_remove_tid ( struct t3cdev tdev,
void ctx,
unsigned int  tid 
)

Definition at line 625 of file cxgb3_offload.c.

void cxgb3_set_dummy_ops ( struct t3cdev dev)

Definition at line 490 of file cxgb3_offload.c.

void cxgb3_unregister_client ( struct cxgb3_client client)

cxgb3_unregister_client - unregister an offload client : the client

Remove the client to the client list, and call backs the client for each activated offload device.

Definition at line 108 of file cxgb3_offload.c.

void* cxgb_alloc_mem ( unsigned long  size)

Definition at line 1174 of file cxgb3_offload.c.

void cxgb_free_mem ( void addr)

Definition at line 1186 of file cxgb3_offload.c.

struct t3cdev* dev2t3cdev ( struct net_device dev)
read

Definition at line 695 of file cxgb3_offload.c.

EXPORT_SYMBOL ( cxgb3_register_client  )
EXPORT_SYMBOL ( cxgb3_unregister_client  )
EXPORT_SYMBOL ( cxgb3_free_atid  )
EXPORT_SYMBOL ( cxgb3_free_stid  )
EXPORT_SYMBOL ( cxgb3_insert_tid  )
EXPORT_SYMBOL ( cxgb3_queue_tid_release  )
EXPORT_SYMBOL ( cxgb3_remove_tid  )
EXPORT_SYMBOL ( cxgb3_alloc_atid  )
EXPORT_SYMBOL ( cxgb3_alloc_stid  )
EXPORT_SYMBOL ( dev2t3cdev  )
EXPORT_SYMBOL ( t3_register_cpl_handler  )
EXPORT_SYMBOL ( cxgb3_ofld_send  )
void t3_register_cpl_handler ( unsigned int  opcode,
cpl_handler_func  h 
)

Definition at line 1008 of file cxgb3_offload.c.