Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mad_priv.h File Reference
#include <linux/completion.h>
#include <linux/err.h>
#include <linux/workqueue.h>
#include <rdma/ib_mad.h>
#include <rdma/ib_smi.h>

Go to the source code of this file.

Data Structures

struct  ib_mad_list_head
 
struct  ib_mad_private_header
 
struct  ib_mad_private
 
struct  ib_rmpp_segment
 
struct  ib_mad_agent_private
 
struct  ib_mad_snoop_private
 
struct  ib_mad_send_wr_private
 
struct  ib_mad_local_private
 
struct  ib_mad_mgmt_method_table
 
struct  ib_mad_mgmt_class_table
 
struct  ib_mad_mgmt_vendor_class
 
struct  ib_mad_mgmt_vendor_class_table
 
struct  ib_mad_mgmt_version_table
 
struct  ib_mad_queue
 
struct  ib_mad_qp_info
 
struct  ib_mad_port_private
 

Macros

#define PFX   "ib_mad: "
 
#define IB_MAD_QPS_CORE   2 /* Always QP0 and QP1 as a minimum */
 
#define IB_MAD_QP_SEND_SIZE   128
 
#define IB_MAD_QP_RECV_SIZE   512
 
#define IB_MAD_QP_MIN_SIZE   64
 
#define IB_MAD_QP_MAX_SIZE   8192
 
#define IB_MAD_SEND_REQ_MAX_SG   2
 
#define IB_MAD_RECV_REQ_MAX_SG   1
 
#define IB_MAD_SEND_Q_PSN   0
 
#define MAX_MGMT_CLASS   80
 
#define MAX_MGMT_VERSION   8
 
#define MAX_MGMT_OUI   8
 
#define MAX_MGMT_VENDOR_RANGE2
 

Functions

struct ib_mad_private_header __attribute__ ((packed))
 
int ib_send_mad (struct ib_mad_send_wr_private *mad_send_wr)
 
struct ib_mad_send_wr_privateib_find_send_mad (struct ib_mad_agent_private *mad_agent_priv, struct ib_mad_recv_wc *mad_recv_wc)
 
void ib_mad_complete_send_wr (struct ib_mad_send_wr_private *mad_send_wr, struct ib_mad_send_wc *mad_send_wc)
 
void ib_mark_mad_done (struct ib_mad_send_wr_private *mad_send_wr)
 
void ib_reset_mad_timeout (struct ib_mad_send_wr_private *mad_send_wr, int timeout_ms)
 

Variables

struct ib_mad_list_head mad_list
 
struct ib_mad_recv_wc recv_wc
 
struct ib_wc wc
 
u64 mapping
 
struct ib_mad_private_header header
 
struct ib_grh grh
 
struct ib_rmpp_segment __attribute__
 

Macro Definition Documentation

#define IB_MAD_QP_MAX_SIZE   8192

Definition at line 54 of file mad_priv.h.

#define IB_MAD_QP_MIN_SIZE   64

Definition at line 53 of file mad_priv.h.

#define IB_MAD_QP_RECV_SIZE   512

Definition at line 52 of file mad_priv.h.

#define IB_MAD_QP_SEND_SIZE   128

Definition at line 51 of file mad_priv.h.

#define IB_MAD_QPS_CORE   2 /* Always QP0 and QP1 as a minimum */

Definition at line 48 of file mad_priv.h.

#define IB_MAD_RECV_REQ_MAX_SG   1

Definition at line 56 of file mad_priv.h.

#define IB_MAD_SEND_Q_PSN   0

Definition at line 58 of file mad_priv.h.

#define IB_MAD_SEND_REQ_MAX_SG   2

Definition at line 55 of file mad_priv.h.

#define MAX_MGMT_CLASS   80

Definition at line 61 of file mad_priv.h.

#define MAX_MGMT_OUI   8

Definition at line 63 of file mad_priv.h.

#define MAX_MGMT_VENDOR_RANGE2
Value:
IB_MGMT_CLASS_VENDOR_RANGE2_START + 1)

Definition at line 64 of file mad_priv.h.

#define MAX_MGMT_VERSION   8

Definition at line 62 of file mad_priv.h.

#define PFX   "ib_mad: "

Definition at line 46 of file mad_priv.h.

Function Documentation

Definition at line 171 of file esd_usb2.c.

struct ib_mad_send_wr_private* ib_find_send_mad ( struct ib_mad_agent_private mad_agent_priv,
struct ib_mad_recv_wc mad_recv_wc 
)
read

Definition at line 1748 of file mad.c.

void ib_mad_complete_send_wr ( struct ib_mad_send_wr_private mad_send_wr,
struct ib_mad_send_wc mad_send_wc 
)

Definition at line 2068 of file mad.c.

void ib_mark_mad_done ( struct ib_mad_send_wr_private mad_send_wr)

Definition at line 1789 of file mad.c.

void ib_reset_mad_timeout ( struct ib_mad_send_wr_private mad_send_wr,
int  timeout_ms 
)

Definition at line 2058 of file mad.c.

int ib_send_mad ( struct ib_mad_send_wr_private mad_send_wr)

Definition at line 1004 of file mad.c.

Variable Documentation

Definition at line 89 of file mad_priv.h.

Definition at line 88 of file mad_priv.h.

union { ... } mad

Definition at line 91 of file mad_priv.h.

Definition at line 78 of file mad_priv.h.

u64 mapping

Definition at line 81 of file mad_priv.h.

Definition at line 79 of file mad_priv.h.

struct ib_rmpp_mad rmpp_mad

Definition at line 92 of file mad_priv.h.

Definition at line 93 of file mad_priv.h.

Definition at line 80 of file mad_priv.h.