Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
nes_hw.c File Reference
#include <linux/module.h>
#include <linux/moduleparam.h>
#include <linux/netdevice.h>
#include <linux/etherdevice.h>
#include <linux/ip.h>
#include <linux/tcp.h>
#include <linux/if_vlan.h>
#include <linux/inet_lro.h>
#include <linux/slab.h>
#include "nes.h"
#include "nes_cm.h"

Go to the source code of this file.

Macros

#define MAX_RQES_TO_PROCESS   384
 

Functions

 module_param (nes_lro_max_aggr, uint, 0444)
 
 MODULE_PARM_DESC (nes_lro_max_aggr,"NIC LRO max packet aggregation")
 
 module_param (wide_ppm_offset, int, 0644)
 
 MODULE_PARM_DESC (wide_ppm_offset,"Increase CX4 interface clock ppm offset, 0=100ppm (default), 1=300ppm")
 
void nes_nic_init_timer_defaults (struct nes_device *nesdev, u8 jumbomode)
 
struct nes_adapternes_init_adapter (struct nes_device *nesdev, u8 hw_rev)
 
void nes_destroy_adapter (struct nes_adapter *nesadapter)
 
int nes_init_cqp (struct nes_device *nesdev)
 
int nes_destroy_cqp (struct nes_device *nesdev)
 
int nes_init_phy (struct nes_device *nesdev)
 
int nes_init_nic_qp (struct nes_device *nesdev, struct net_device *netdev)
 
void nes_destroy_nic_qp (struct nes_vnic *nesvnic)
 
int nes_napi_isr (struct nes_device *nesdev)
 
void nes_dpc (unsigned long param)
 
void nes_recheck_link_status (struct work_struct *work)
 
void nes_nic_ce_handler (struct nes_device *nesdev, struct nes_hw_nic_cq *cq)
 
void nes_iwarp_ce_handler (struct nes_device *nesdev, struct nes_hw_cq *hw_cq)
 
int nes_manage_apbvt (struct nes_vnic *nesvnic, u32 accel_local_port, u32 nic_index, u32 add_port)
 
void nes_manage_arp_cache (struct net_device *netdev, unsigned char *mac_addr, u32 ip_addr, u32 action)
 
void flush_wqes (struct nes_device *nesdev, struct nes_qp *nesqp, u32 which_wq, u32 wait_completion)
 

Variables

u32 int_mod_timer_init
 
u32 int_mod_cq_depth_256
 
u32 int_mod_cq_depth_128
 
u32 int_mod_cq_depth_32
 
u32 int_mod_cq_depth_24
 
u32 int_mod_cq_depth_16
 
u32 int_mod_cq_depth_4
 
u32 int_mod_cq_depth_1
 

Macro Definition Documentation

#define MAX_RQES_TO_PROCESS   384

Definition at line 2784 of file nes_hw.c.

Function Documentation

void flush_wqes ( struct nes_device nesdev,
struct nes_qp nesqp,
u32  which_wq,
u32  wait_completion 
)

flush_wqes

Definition at line 3886 of file nes_hw.c.

module_param ( nes_lro_max_aggr  ,
uint  ,
0444   
)
module_param ( wide_ppm_offset  ,
int  ,
0644   
)
MODULE_PARM_DESC ( nes_lro_max_aggr  ,
"NIC LRO max packet aggregation"   
)
MODULE_PARM_DESC ( wide_ppm_offset  ,
"Increase CX4 interface clock ppm  offset,
= 100ppm (default) 
)
void nes_destroy_adapter ( struct nes_adapter nesadapter)

nes_destroy_adapter - destroy the adapter structure

Definition at line 956 of file nes_hw.c.

int nes_destroy_cqp ( struct nes_device nesdev)

nes_destroy_cqp

Definition at line 1211 of file nes_hw.c.

void nes_destroy_nic_qp ( struct nes_vnic nesvnic)

nes_destroy_nic_qp

Definition at line 1914 of file nes_hw.c.

void nes_dpc ( unsigned long  param)

nes_dpc

Definition at line 2147 of file nes_hw.c.

struct nes_adapter* nes_init_adapter ( struct nes_device nesdev,
u8  hw_rev 
)
read

nes_init_adapter - initialize adapter

Definition at line 255 of file nes_hw.c.

int nes_init_cqp ( struct nes_device nesdev)

nes_init_cqp

Definition at line 981 of file nes_hw.c.

int nes_init_nic_qp ( struct nes_device nesdev,
struct net_device netdev 
)

nes_init_nic_qp

Definition at line 1668 of file nes_hw.c.

int nes_init_phy ( struct nes_device nesdev)

nes_init_phy

Definition at line 1514 of file nes_hw.c.

void nes_iwarp_ce_handler ( struct nes_device nesdev,
struct nes_hw_cq hw_cq 
)

nes_iwarp_ce_handler

Definition at line 3760 of file nes_hw.c.

int nes_manage_apbvt ( struct nes_vnic nesvnic,
u32  accel_local_port,
u32  nic_index,
u32  add_port 
)

nes_manage_apbvt()

Definition at line 3778 of file nes_hw.c.

void nes_manage_arp_cache ( struct net_device netdev,
unsigned char mac_addr,
u32  ip_addr,
u32  action 
)

nes_manage_arp_cache

Definition at line 3832 of file nes_hw.c.

int nes_napi_isr ( struct nes_device nesdev)

nes_napi_isr

Definition at line 2061 of file nes_hw.c.

void nes_nic_ce_handler ( struct nes_device nesdev,
struct nes_hw_nic_cq cq 
)

nes_nic_ce_handler

Definition at line 2789 of file nes_hw.c.

void nes_nic_init_timer_defaults ( struct nes_device nesdev,
u8  jumbomode 
)

nes_nic_init_timer_defaults

Definition at line 125 of file nes_hw.c.

void nes_recheck_link_status ( struct work_struct work)

Definition at line 2693 of file nes_hw.c.

Variable Documentation

u32 int_mod_cq_depth_1

Definition at line 62 of file nes_hw.c.

u32 int_mod_cq_depth_128

Definition at line 57 of file nes_hw.c.

u32 int_mod_cq_depth_16

Definition at line 60 of file nes_hw.c.

u32 int_mod_cq_depth_24

Definition at line 59 of file nes_hw.c.

u32 int_mod_cq_depth_256

Definition at line 56 of file nes_hw.c.

u32 int_mod_cq_depth_32

Definition at line 58 of file nes_hw.c.

u32 int_mod_cq_depth_4

Definition at line 61 of file nes_hw.c.

u32 int_mod_timer_init

Definition at line 55 of file nes_hw.c.