Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Enumerations | Functions | Variables
mlx4_ib.h File Reference
#include <linux/compiler.h>
#include <linux/list.h>
#include <linux/mutex.h>
#include <linux/idr.h>
#include <rdma/ib_verbs.h>
#include <rdma/ib_umem.h>
#include <rdma/ib_mad.h>
#include <rdma/ib_sa.h>
#include <linux/mlx4/device.h>
#include <linux/mlx4/doorbell.h>

Go to the source code of this file.

Data Structures

struct  mlx4_ib_ucontext
 
struct  mlx4_ib_pd
 
struct  mlx4_ib_xrcd
 
struct  mlx4_ib_cq_buf
 
struct  mlx4_ib_cq_resize
 
struct  mlx4_ib_cq
 
struct  mlx4_ib_mr
 
struct  mlx4_ib_fast_reg_page_list
 
struct  mlx4_ib_fmr
 
struct  mlx4_ib_wq
 
struct  mlx4_ib_gid_entry
 
struct  mlx4_ib_tunnel_header
 
struct  mlx4_ib_buf
 
struct  mlx4_rcv_tunnel_hdr
 
struct  mlx4_ib_proxy_sqp_hdr
 
struct  mlx4_ib_qp
 
struct  mlx4_ib_srq
 
struct  mlx4_ib_ah
 
struct  mlx4_sriov_alias_guid_info_rec_det
 
struct  mlx4_sriov_alias_guid_port_rec_det
 
struct  mlx4_sriov_alias_guid
 
struct  mlx4_ib_demux_work
 
struct  mlx4_ib_tun_tx_buf
 
struct  mlx4_ib_demux_pv_qp
 
struct  mlx4_ib_demux_pv_ctx
 
struct  mlx4_ib_demux_ctx
 
struct  mlx4_ib_sriov
 
struct  mlx4_ib_iboe
 
struct  pkey_mgt
 
struct  mlx4_ib_iov_sysfs_attr
 
struct  mlx4_ib_iov_sysfs_attr_ar
 
struct  mlx4_ib_iov_port
 
struct  mlx4_ib_dev
 
struct  ib_event_work
 
struct  mlx4_ib_qp_tunnel_init_attr
 

Macros

#define MLX4_IB_DRV_NAME   "mlx4_ib"
 
#define pr_fmt(fmt)   "<" MLX4_IB_DRV_NAME "> %s: " fmt, __func__
 
#define mlx4_ib_warn(ibdev, format, arg...)   dev_warn((ibdev)->dma_device, MLX4_IB_DRV_NAME ": " format, ## arg)
 
#define MLX4_IB_SQ_HEADROOM(shift)   ((MLX4_IB_MAX_HEADROOM >> (shift)) + 1)
 
#define MLX4_IB_SQ_MAX_SPARE   (MLX4_IB_SQ_HEADROOM(MLX4_IB_SQ_MIN_WQE_SHIFT))
 
#define MLX4_IB_QPT_ANY_SRIOV
 
#define NUM_PORT_ALIAS_GUID   2
 
#define NUM_ALIAS_GUID_IN_REC   8
 
#define NUM_ALIAS_GUID_REC_IN_PORT   16
 
#define GUID_REC_SIZE   8
 
#define NUM_ALIAS_GUID_PER_PORT   128
 
#define MLX4_NOT_SET_GUID   (0x00LL)
 
#define MLX4_GUID_FOR_DELETE_VAL   (~(0x00LL))
 

Enumerations

enum  { MLX4_IB_SQ_MIN_WQE_SHIFT = 6, MLX4_IB_MAX_HEADROOM = 2048 }
 
enum  mlx4_ib_qp_flags { MLX4_IB_QP_LSO = IB_QP_CREATE_IPOIB_UD_LSO, MLX4_IB_QP_BLOCK_MULTICAST_LOOPBACK = IB_QP_CREATE_BLOCK_MULTICAST_LOOPBACK, MLX4_IB_SRIOV_TUNNEL_QP = 1 << 30, MLX4_IB_SRIOV_SQP = 1 << 31 }
 
enum  mlx4_ib_qp_type {
  MLX4_IB_QPT_SMI = IB_QPT_SMI, MLX4_IB_QPT_GSI = IB_QPT_GSI, MLX4_IB_QPT_RC = IB_QPT_RC, MLX4_IB_QPT_UC = IB_QPT_UC,
  MLX4_IB_QPT_UD = IB_QPT_UD, MLX4_IB_QPT_RAW_IPV6 = IB_QPT_RAW_IPV6, MLX4_IB_QPT_RAW_ETHERTYPE = IB_QPT_RAW_ETHERTYPE, MLX4_IB_QPT_RAW_PACKET = IB_QPT_RAW_PACKET,
  MLX4_IB_QPT_XRC_INI = IB_QPT_XRC_INI, MLX4_IB_QPT_XRC_TGT = IB_QPT_XRC_TGT, MLX4_IB_QPT_PROXY_SMI_OWNER = 1 << 16, MLX4_IB_QPT_PROXY_SMI = 1 << 17,
  MLX4_IB_QPT_PROXY_GSI = 1 << 18, MLX4_IB_QPT_TUN_SMI_OWNER = 1 << 19, MLX4_IB_QPT_TUN_SMI = 1 << 20, MLX4_IB_QPT_TUN_GSI = 1 << 21
}
 
enum  mlx4_ib_mad_ifc_flags { MLX4_MAD_IFC_IGNORE_MKEY = 1, MLX4_MAD_IFC_IGNORE_BKEY = 2, MLX4_MAD_IFC_IGNORE_KEYS, MLX4_MAD_IFC_NET_VIEW = 4 }
 
enum  { MLX4_NUM_TUNNEL_BUFS = 256 }
 
enum  mlx4_guid_alias_rec_status { MLX4_GUID_INFO_STATUS_IDLE, MLX4_GUID_INFO_STATUS_SET, MLX4_GUID_INFO_STATUS_PENDING }
 
enum  mlx4_guid_alias_rec_ownership { MLX4_GUID_DRIVER_ASSIGN, MLX4_GUID_SYSADMIN_ASSIGN, MLX4_GUID_NONE_ASSIGN }
 
enum  mlx4_guid_alias_rec_method { MLX4_GUID_INFO_RECORD_SET = IB_MGMT_METHOD_SET, MLX4_GUID_INFO_RECORD_DELETE = IB_SA_METHOD_DELETE }
 
enum  mlx4_ib_demux_pv_state { DEMUX_PV_STATE_DOWN, DEMUX_PV_STATE_STARTING, DEMUX_PV_STATE_ACTIVE, DEMUX_PV_STATE_DOWNING }
 

Functions

int mlx4_ib_init_sriov (struct mlx4_ib_dev *dev)
 
void mlx4_ib_close_sriov (struct mlx4_ib_dev *dev)
 
int mlx4_ib_db_map_user (struct mlx4_ib_ucontext *context, unsigned long virt, struct mlx4_db *db)
 
void mlx4_ib_db_unmap_user (struct mlx4_ib_ucontext *context, struct mlx4_db *db)
 
struct ib_mrmlx4_ib_get_dma_mr (struct ib_pd *pd, int acc)
 
int mlx4_ib_umem_write_mtt (struct mlx4_ib_dev *dev, struct mlx4_mtt *mtt, struct ib_umem *umem)
 
struct ib_mrmlx4_ib_reg_user_mr (struct ib_pd *pd, u64 start, u64 length, u64 virt_addr, int access_flags, struct ib_udata *udata)
 
int mlx4_ib_dereg_mr (struct ib_mr *mr)
 
struct ib_mrmlx4_ib_alloc_fast_reg_mr (struct ib_pd *pd, int max_page_list_len)
 
struct ib_fast_reg_page_listmlx4_ib_alloc_fast_reg_page_list (struct ib_device *ibdev, int page_list_len)
 
void mlx4_ib_free_fast_reg_page_list (struct ib_fast_reg_page_list *page_list)
 
int mlx4_ib_modify_cq (struct ib_cq *cq, u16 cq_count, u16 cq_period)
 
int mlx4_ib_resize_cq (struct ib_cq *ibcq, int entries, struct ib_udata *udata)
 
struct ib_cqmlx4_ib_create_cq (struct ib_device *ibdev, int entries, int vector, struct ib_ucontext *context, struct ib_udata *udata)
 
int mlx4_ib_destroy_cq (struct ib_cq *cq)
 
int mlx4_ib_poll_cq (struct ib_cq *ibcq, int num_entries, struct ib_wc *wc)
 
int mlx4_ib_arm_cq (struct ib_cq *cq, enum ib_cq_notify_flags flags)
 
void __mlx4_ib_cq_clean (struct mlx4_ib_cq *cq, u32 qpn, struct mlx4_ib_srq *srq)
 
void mlx4_ib_cq_clean (struct mlx4_ib_cq *cq, u32 qpn, struct mlx4_ib_srq *srq)
 
struct ib_ahmlx4_ib_create_ah (struct ib_pd *pd, struct ib_ah_attr *ah_attr)
 
int mlx4_ib_query_ah (struct ib_ah *ibah, struct ib_ah_attr *ah_attr)
 
int mlx4_ib_destroy_ah (struct ib_ah *ah)
 
struct ib_srqmlx4_ib_create_srq (struct ib_pd *pd, struct ib_srq_init_attr *init_attr, struct ib_udata *udata)
 
int mlx4_ib_modify_srq (struct ib_srq *ibsrq, struct ib_srq_attr *attr, enum ib_srq_attr_mask attr_mask, struct ib_udata *udata)
 
int mlx4_ib_query_srq (struct ib_srq *srq, struct ib_srq_attr *srq_attr)
 
int mlx4_ib_destroy_srq (struct ib_srq *srq)
 
void mlx4_ib_free_srq_wqe (struct mlx4_ib_srq *srq, int wqe_index)
 
int mlx4_ib_post_srq_recv (struct ib_srq *ibsrq, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr)
 
struct ib_qpmlx4_ib_create_qp (struct ib_pd *pd, struct ib_qp_init_attr *init_attr, struct ib_udata *udata)
 
int mlx4_ib_destroy_qp (struct ib_qp *qp)
 
int mlx4_ib_modify_qp (struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata)
 
int mlx4_ib_query_qp (struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, int qp_attr_mask, struct ib_qp_init_attr *qp_init_attr)
 
int mlx4_ib_post_send (struct ib_qp *ibqp, struct ib_send_wr *wr, struct ib_send_wr **bad_wr)
 
int mlx4_ib_post_recv (struct ib_qp *ibqp, struct ib_recv_wr *wr, struct ib_recv_wr **bad_wr)
 
int mlx4_MAD_IFC (struct mlx4_ib_dev *dev, int mad_ifc_flags, int port, struct ib_wc *in_wc, struct ib_grh *in_grh, void *in_mad, void *response_mad)
 
int mlx4_ib_process_mad (struct ib_device *ibdev, int mad_flags, u8 port_num, struct ib_wc *in_wc, struct ib_grh *in_grh, struct ib_mad *in_mad, struct ib_mad *out_mad)
 
int mlx4_ib_mad_init (struct mlx4_ib_dev *dev)
 
void mlx4_ib_mad_cleanup (struct mlx4_ib_dev *dev)
 
struct ib_fmrmlx4_ib_fmr_alloc (struct ib_pd *pd, int mr_access_flags, struct ib_fmr_attr *fmr_attr)
 
int mlx4_ib_map_phys_fmr (struct ib_fmr *ibfmr, u64 *page_list, int npages, u64 iova)
 
int mlx4_ib_unmap_fmr (struct list_head *fmr_list)
 
int mlx4_ib_fmr_dealloc (struct ib_fmr *fmr)
 
int __mlx4_ib_query_port (struct ib_device *ibdev, u8 port, struct ib_port_attr *props, int netw_view)
 
int __mlx4_ib_query_pkey (struct ib_device *ibdev, u8 port, u16 index, u16 *pkey, int netw_view)
 
int __mlx4_ib_query_gid (struct ib_device *ibdev, u8 port, int index, union ib_gid *gid, int netw_view)
 
int mlx4_ib_resolve_grh (struct mlx4_ib_dev *dev, const struct ib_ah_attr *ah_attr, u8 *mac, int *is_mcast, u8 port)
 
int mlx4_ib_mcg_port_init (struct mlx4_ib_demux_ctx *ctx)
 
void mlx4_ib_mcg_port_cleanup (struct mlx4_ib_demux_ctx *ctx, int destroy_wq)
 
void clean_vf_mcast (struct mlx4_ib_demux_ctx *ctx, int slave)
 
int mlx4_ib_mcg_init (void)
 
void mlx4_ib_mcg_destroy (void)
 
int mlx4_ib_find_real_gid (struct ib_device *ibdev, u8 port, __be64 guid)
 
int mlx4_ib_mcg_multiplex_handler (struct ib_device *ibdev, int port, int slave, struct ib_sa_mad *sa_mad)
 
int mlx4_ib_mcg_demux_handler (struct ib_device *ibdev, int port, int slave, struct ib_sa_mad *mad)
 
int mlx4_ib_add_mc (struct mlx4_ib_dev *mdev, struct mlx4_ib_qp *mqp, union ib_gid *gid)
 
void mlx4_ib_dispatch_event (struct mlx4_ib_dev *dev, u8 port_num, enum ib_event_type type)
 
void mlx4_ib_tunnels_update_work (struct work_struct *work)
 
int mlx4_ib_send_to_slave (struct mlx4_ib_dev *dev, int slave, u8 port, enum ib_qp_type qpt, struct ib_wc *wc, struct ib_grh *grh, struct ib_mad *mad)
 
int mlx4_ib_send_to_wire (struct mlx4_ib_dev *dev, int slave, u8 port, enum ib_qp_type dest_qpt, u16 pkey_index, u32 remote_qpn, u32 qkey, struct ib_ah_attr *attr, struct ib_mad *mad)
 
__be64 mlx4_ib_get_new_demux_tid (struct mlx4_ib_demux_ctx *ctx)
 
int mlx4_ib_demux_cm_handler (struct ib_device *ibdev, int port, int *slave, struct ib_mad *mad)
 
int mlx4_ib_multiplex_cm_handler (struct ib_device *ibdev, int port, int slave_id, struct ib_mad *mad)
 
void mlx4_ib_cm_paravirt_init (struct mlx4_ib_dev *dev)
 
void mlx4_ib_cm_paravirt_clean (struct mlx4_ib_dev *dev, int slave_id)
 
void mlx4_ib_init_alias_guid_work (struct mlx4_ib_dev *dev, int port)
 
int mlx4_ib_init_alias_guid_service (struct mlx4_ib_dev *dev)
 
void mlx4_ib_destroy_alias_guid_service (struct mlx4_ib_dev *dev)
 
void mlx4_ib_invalidate_all_guid_record (struct mlx4_ib_dev *dev, int port)
 
void mlx4_ib_notify_slaves_on_guid_change (struct mlx4_ib_dev *dev, int block_num, u8 port_num, u8 *p_data)
 
void mlx4_ib_update_cache_on_guid_change (struct mlx4_ib_dev *dev, int block_num, u8 port_num, u8 *p_data)
 
int add_sysfs_port_mcg_attr (struct mlx4_ib_dev *device, int port_num, struct attribute *attr)
 
void del_sysfs_port_mcg_attr (struct mlx4_ib_dev *device, int port_num, struct attribute *attr)
 
ib_sa_comp_mask mlx4_ib_get_aguid_comp_mask_from_ix (int index)
 
int mlx4_ib_device_register_sysfs (struct mlx4_ib_dev *device)
 
void mlx4_ib_device_unregister_sysfs (struct mlx4_ib_dev *device)
 
__be64 mlx4_ib_gen_node_guid (void)
 

Variables

int mlx4_ib_sm_guid_assign
 
struct mlx4_ib_proxy_sqp_hdr __packed
 

Macro Definition Documentation

#define GUID_REC_SIZE   8

Definition at line 290 of file mlx4_ib.h.

#define MLX4_GUID_FOR_DELETE_VAL   (~(0x00LL))

Definition at line 293 of file mlx4_ib.h.

#define MLX4_IB_DRV_NAME   "mlx4_ib"

Definition at line 50 of file mlx4_ib.h.

#define MLX4_IB_QPT_ANY_SRIOV
Value:
MLX4_IB_QPT_PROXY_SMI | MLX4_IB_QPT_PROXY_GSI | MLX4_IB_QPT_TUN_SMI_OWNER | \
MLX4_IB_QPT_TUN_SMI | MLX4_IB_QPT_TUN_GSI)

Definition at line 181 of file mlx4_ib.h.

#define MLX4_IB_SQ_HEADROOM (   shift)    ((MLX4_IB_MAX_HEADROOM >> (shift)) + 1)

Definition at line 65 of file mlx4_ib.h.

#define MLX4_IB_SQ_MAX_SPARE   (MLX4_IB_SQ_HEADROOM(MLX4_IB_SQ_MIN_WQE_SHIFT))

Definition at line 66 of file mlx4_ib.h.

#define mlx4_ib_warn (   ibdev,
  format,
  arg... 
)    dev_warn((ibdev)->dma_device, MLX4_IB_DRV_NAME ": " format, ## arg)

Definition at line 57 of file mlx4_ib.h.

#define MLX4_NOT_SET_GUID   (0x00LL)

Definition at line 292 of file mlx4_ib.h.

#define NUM_ALIAS_GUID_IN_REC   8

Definition at line 288 of file mlx4_ib.h.

#define NUM_ALIAS_GUID_PER_PORT   128

Definition at line 291 of file mlx4_ib.h.

#define NUM_ALIAS_GUID_REC_IN_PORT   16

Definition at line 289 of file mlx4_ib.h.

#define NUM_PORT_ALIAS_GUID   2

Definition at line 287 of file mlx4_ib.h.

#define pr_fmt (   fmt)    "<" MLX4_IB_DRV_NAME "> %s: " fmt, __func__

Definition at line 55 of file mlx4_ib.h.

Enumeration Type Documentation

anonymous enum
Enumerator:
MLX4_IB_SQ_MIN_WQE_SHIFT 
MLX4_IB_MAX_HEADROOM 

Definition at line 60 of file mlx4_ib.h.

anonymous enum
Enumerator:
MLX4_NUM_TUNNEL_BUFS 

Definition at line 193 of file mlx4_ib.h.

Enumerator:
MLX4_GUID_INFO_RECORD_SET 
MLX4_GUID_INFO_RECORD_DELETE 

Definition at line 307 of file mlx4_ib.h.

Enumerator:
MLX4_GUID_DRIVER_ASSIGN 
MLX4_GUID_SYSADMIN_ASSIGN 
MLX4_GUID_NONE_ASSIGN 

Definition at line 301 of file mlx4_ib.h.

Enumerator:
MLX4_GUID_INFO_STATUS_IDLE 
MLX4_GUID_INFO_STATUS_SET 
MLX4_GUID_INFO_STATUS_PENDING 

Definition at line 295 of file mlx4_ib.h.

Enumerator:
DEMUX_PV_STATE_DOWN 
DEMUX_PV_STATE_STARTING 
DEMUX_PV_STATE_ACTIVE 
DEMUX_PV_STATE_DOWNING 

Definition at line 359 of file mlx4_ib.h.

Enumerator:
MLX4_MAD_IFC_IGNORE_MKEY 
MLX4_MAD_IFC_IGNORE_BKEY 
MLX4_MAD_IFC_IGNORE_KEYS 
MLX4_MAD_IFC_NET_VIEW 

Definition at line 185 of file mlx4_ib.h.

Enumerator:
MLX4_IB_QP_LSO 
MLX4_IB_QP_BLOCK_MULTICAST_LOOPBACK 
MLX4_IB_SRIOV_TUNNEL_QP 
MLX4_IB_SRIOV_SQP 

Definition at line 141 of file mlx4_ib.h.

Enumerator:
MLX4_IB_QPT_SMI 
MLX4_IB_QPT_GSI 
MLX4_IB_QPT_RC 
MLX4_IB_QPT_UC 
MLX4_IB_QPT_UD 
MLX4_IB_QPT_RAW_IPV6 
MLX4_IB_QPT_RAW_ETHERTYPE 
MLX4_IB_QPT_RAW_PACKET 
MLX4_IB_QPT_XRC_INI 
MLX4_IB_QPT_XRC_TGT 
MLX4_IB_QPT_PROXY_SMI_OWNER 
MLX4_IB_QPT_PROXY_SMI 
MLX4_IB_QPT_PROXY_GSI 
MLX4_IB_QPT_TUN_SMI_OWNER 
MLX4_IB_QPT_TUN_SMI 
MLX4_IB_QPT_TUN_GSI 

Definition at line 155 of file mlx4_ib.h.

Function Documentation

void __mlx4_ib_cq_clean ( struct mlx4_ib_cq cq,
u32  qpn,
struct mlx4_ib_srq srq 
)

Definition at line 804 of file cq.c.

int __mlx4_ib_query_gid ( struct ib_device ibdev,
u8  port,
int  index,
union ib_gid gid,
int  netw_view 
)

Definition at line 358 of file main.c.

int __mlx4_ib_query_pkey ( struct ib_device ibdev,
u8  port,
u16  index,
u16 pkey,
int  netw_view 
)

Definition at line 433 of file main.c.

int __mlx4_ib_query_port ( struct ib_device ibdev,
u8  port,
struct ib_port_attr props,
int  netw_view 
)

Definition at line 337 of file main.c.

int add_sysfs_port_mcg_attr ( struct mlx4_ib_dev device,
int  port_num,
struct attribute attr 
)

Definition at line 220 of file sysfs.c.

void clean_vf_mcast ( struct mlx4_ib_demux_ctx ctx,
int  slave 
)

Definition at line 1224 of file mcg.c.

void del_sysfs_port_mcg_attr ( struct mlx4_ib_dev device,
int  port_num,
struct attribute attr 
)

Definition at line 233 of file sysfs.c.

int mlx4_ib_add_mc ( struct mlx4_ib_dev mdev,
struct mlx4_ib_qp mqp,
union ib_gid gid 
)

Definition at line 746 of file main.c.

struct ib_mr* mlx4_ib_alloc_fast_reg_mr ( struct ib_pd pd,
int  max_page_list_len 
)
read

Definition at line 189 of file mr.c.

struct ib_fast_reg_page_list* mlx4_ib_alloc_fast_reg_page_list ( struct ib_device ibdev,
int  page_list_len 
)
read

Definition at line 222 of file mr.c.

int mlx4_ib_arm_cq ( struct ib_cq cq,
enum ib_cq_notify_flags  flags 
)

Definition at line 793 of file cq.c.

void mlx4_ib_close_sriov ( struct mlx4_ib_dev dev)

Definition at line 2024 of file mad.c.

void mlx4_ib_cm_paravirt_clean ( struct mlx4_ib_dev dev,
int  slave_id 
)

Definition at line 372 of file cm.c.

void mlx4_ib_cm_paravirt_init ( struct mlx4_ib_dev dev)

Definition at line 361 of file cm.c.

void mlx4_ib_cq_clean ( struct mlx4_ib_cq cq,
u32  qpn,
struct mlx4_ib_srq srq 
)

Definition at line 852 of file cq.c.

struct ib_ah* mlx4_ib_create_ah ( struct ib_pd pd,
struct ib_ah_attr ah_attr 
)
read

Definition at line 134 of file ah.c.

struct ib_cq* mlx4_ib_create_cq ( struct ib_device ibdev,
int  entries,
int  vector,
struct ib_ucontext context,
struct ib_udata udata 
)
read

Definition at line 166 of file cq.c.

struct ib_qp* mlx4_ib_create_qp ( struct ib_pd pd,
struct ib_qp_init_attr init_attr,
struct ib_udata udata 
)
read

Definition at line 975 of file qp.c.

struct ib_srq* mlx4_ib_create_srq ( struct ib_pd pd,
struct ib_srq_init_attr init_attr,
struct ib_udata udata 
)
read

Definition at line 71 of file srq.c.

int mlx4_ib_db_map_user ( struct mlx4_ib_ucontext context,
unsigned long  virt,
struct mlx4_db db 
)

Definition at line 44 of file doorbell.c.

void mlx4_ib_db_unmap_user ( struct mlx4_ib_ucontext context,
struct mlx4_db db 
)

Definition at line 87 of file doorbell.c.

int mlx4_ib_demux_cm_handler ( struct ib_device ibdev,
int  port,
int slave,
struct ib_mad mad 
)

Definition at line 321 of file cm.c.

int mlx4_ib_dereg_mr ( struct ib_mr mr)

Definition at line 177 of file mr.c.

int mlx4_ib_destroy_ah ( struct ib_ah ah)

Definition at line 195 of file ah.c.

void mlx4_ib_destroy_alias_guid_service ( struct mlx4_ib_dev dev)

Definition at line 572 of file alias_GUID.c.

int mlx4_ib_destroy_cq ( struct ib_cq cq)

Definition at line 444 of file cq.c.

int mlx4_ib_destroy_qp ( struct ib_qp qp)

Definition at line 1056 of file qp.c.

int mlx4_ib_destroy_srq ( struct ib_srq srq)

Definition at line 271 of file srq.c.

int mlx4_ib_device_register_sysfs ( struct mlx4_ib_dev device)

Definition at line 717 of file sysfs.c.

void mlx4_ib_device_unregister_sysfs ( struct mlx4_ib_dev device)

Definition at line 786 of file sysfs.c.

void mlx4_ib_dispatch_event ( struct mlx4_ib_dev dev,
u8  port_num,
enum ib_event_type  type 
)

Definition at line 1006 of file mad.c.

int mlx4_ib_find_real_gid ( struct ib_device ibdev,
u8  port,
__be64  guid 
)

Definition at line 399 of file mad.c.

struct ib_fmr* mlx4_ib_fmr_alloc ( struct ib_pd pd,
int  mr_access_flags,
struct ib_fmr_attr fmr_attr 
)
read

Definition at line 268 of file mr.c.

int mlx4_ib_fmr_dealloc ( struct ib_fmr fmr)

Definition at line 347 of file mr.c.

void mlx4_ib_free_fast_reg_page_list ( struct ib_fast_reg_page_list page_list)

Definition at line 256 of file mr.c.

void mlx4_ib_free_srq_wqe ( struct mlx4_ib_srq srq,
int  wqe_index 
)

Definition at line 294 of file srq.c.

__be64 mlx4_ib_gen_node_guid ( void  )

Definition at line 93 of file mad.c.

ib_sa_comp_mask mlx4_ib_get_aguid_comp_mask_from_ix ( int  index)

Definition at line 116 of file alias_GUID.c.

struct ib_mr* mlx4_ib_get_dma_mr ( struct ib_pd pd,
int  acc 
)
read

Definition at line 47 of file mr.c.

__be64 mlx4_ib_get_new_demux_tid ( struct mlx4_ib_demux_ctx ctx)

Definition at line 99 of file mad.c.

int mlx4_ib_init_alias_guid_service ( struct mlx4_ib_dev dev)

Definition at line 608 of file alias_GUID.c.

void mlx4_ib_init_alias_guid_work ( struct mlx4_ib_dev dev,
int  port 
)

Definition at line 556 of file alias_GUID.c.

int mlx4_ib_init_sriov ( struct mlx4_ib_dev dev)

Definition at line 1951 of file mad.c.

void mlx4_ib_invalidate_all_guid_record ( struct mlx4_ib_dev dev,
int  port 
)

Definition at line 437 of file alias_GUID.c.

void mlx4_ib_mad_cleanup ( struct mlx4_ib_dev dev)

Definition at line 840 of file mad.c.

int mlx4_ib_mad_init ( struct mlx4_ib_dev dev)

Definition at line 804 of file mad.c.

int mlx4_ib_map_phys_fmr ( struct ib_fmr ibfmr,
u64 page_list,
int  npages,
u64  iova 
)

Definition at line 302 of file mr.c.

int mlx4_ib_mcg_demux_handler ( struct ib_device ibdev,
int  port,
int  slave,
struct ib_sa_mad mad 
)

Definition at line 880 of file mcg.c.

void mlx4_ib_mcg_destroy ( void  )

Definition at line 1253 of file mcg.c.

int mlx4_ib_mcg_init ( void  )

Definition at line 1244 of file mcg.c.

int mlx4_ib_mcg_multiplex_handler ( struct ib_device ibdev,
int  port,
int  slave,
struct ib_sa_mad sa_mad 
)

Definition at line 929 of file mcg.c.

void mlx4_ib_mcg_port_cleanup ( struct mlx4_ib_demux_ctx ctx,
int  destroy_wq 
)

Definition at line 1124 of file mcg.c.

int mlx4_ib_mcg_port_init ( struct mlx4_ib_demux_ctx ctx)

Definition at line 1039 of file mcg.c.

int mlx4_ib_modify_cq ( struct ib_cq cq,
u16  cq_count,
u16  cq_period 
)

Definition at line 90 of file cq.c.

int mlx4_ib_modify_qp ( struct ib_qp ibqp,
struct ib_qp_attr attr,
int  attr_mask,
struct ib_udata udata 
)

Definition at line 1550 of file qp.c.

int mlx4_ib_modify_srq ( struct ib_srq ibsrq,
struct ib_srq_attr attr,
enum ib_srq_attr_mask  attr_mask,
struct ib_udata udata 
)

Definition at line 227 of file srq.c.

int mlx4_ib_multiplex_cm_handler ( struct ib_device ibdev,
int  port,
int  slave_id,
struct ib_mad mad 
)

Definition at line 282 of file cm.c.

void mlx4_ib_notify_slaves_on_guid_change ( struct mlx4_ib_dev dev,
int  block_num,
u8  port_num,
u8 p_data 
)

Definition at line 130 of file alias_GUID.c.

int mlx4_ib_poll_cq ( struct ib_cq ibcq,
int  num_entries,
struct ib_wc wc 
)

Definition at line 767 of file cq.c.

int mlx4_ib_post_recv ( struct ib_qp ibqp,
struct ib_recv_wr wr,
struct ib_recv_wr **  bad_wr 
)

Definition at line 2487 of file qp.c.

int mlx4_ib_post_send ( struct ib_qp ibqp,
struct ib_send_wr wr,
struct ib_send_wr **  bad_wr 
)

Definition at line 2179 of file qp.c.

int mlx4_ib_post_srq_recv ( struct ib_srq ibsrq,
struct ib_recv_wr wr,
struct ib_recv_wr **  bad_wr 
)

Definition at line 308 of file srq.c.

int mlx4_ib_process_mad ( struct ib_device ibdev,
int  mad_flags,
u8  port_num,
struct ib_wc in_wc,
struct ib_grh in_grh,
struct ib_mad in_mad,
struct ib_mad out_mad 
)

Definition at line 780 of file mad.c.

int mlx4_ib_query_ah ( struct ib_ah ibah,
struct ib_ah_attr ah_attr 
)

Definition at line 166 of file ah.c.

int mlx4_ib_query_qp ( struct ib_qp ibqp,
struct ib_qp_attr qp_attr,
int  qp_attr_mask,
struct ib_qp_init_attr qp_init_attr 
)

Definition at line 2641 of file qp.c.

int mlx4_ib_query_srq ( struct ib_srq srq,
struct ib_srq_attr srq_attr 
)

Definition at line 253 of file srq.c.

struct ib_mr* mlx4_ib_reg_user_mr ( struct ib_pd pd,
u64  start,
u64  length,
u64  virt_addr,
int  access_flags,
struct ib_udata udata 
)
read

Definition at line 124 of file mr.c.

int mlx4_ib_resize_cq ( struct ib_cq ibcq,
int  entries,
struct ib_udata udata 
)

Definition at line 348 of file cq.c.

int mlx4_ib_resolve_grh ( struct mlx4_ib_dev dev,
const struct ib_ah_attr ah_attr,
u8 mac,
int is_mcast,
u8  port 
)

Definition at line 42 of file ah.c.

int mlx4_ib_send_to_slave ( struct mlx4_ib_dev dev,
int  slave,
u8  port,
enum ib_qp_type  qpt,
struct ib_wc wc,
struct ib_grh grh,
struct ib_mad mad 
)

Definition at line 453 of file mad.c.

int mlx4_ib_send_to_wire ( struct mlx4_ib_dev dev,
int  slave,
u8  port,
enum ib_qp_type  dest_qpt,
u16  pkey_index,
u32  remote_qpn,
u32  qkey,
struct ib_ah_attr attr,
struct ib_mad mad 
)

Definition at line 1078 of file mad.c.

void mlx4_ib_tunnels_update_work ( struct work_struct work)

Definition at line 1819 of file mad.c.

int mlx4_ib_umem_write_mtt ( struct mlx4_ib_dev dev,
struct mlx4_mtt mtt,
struct ib_umem umem 
)

Definition at line 79 of file mr.c.

int mlx4_ib_unmap_fmr ( struct list_head fmr_list)

Definition at line 312 of file mr.c.

void mlx4_ib_update_cache_on_guid_change ( struct mlx4_ib_dev dev,
int  block_num,
u8  port_num,
u8 p_data 
)

Definition at line 70 of file alias_GUID.c.

int mlx4_MAD_IFC ( struct mlx4_ib_dev dev,
int  mad_ifc_flags,
int  port,
struct ib_wc in_wc,
struct ib_grh in_grh,
void in_mad,
void response_mad 
)

Definition at line 105 of file mad.c.

Variable Documentation

int mlx4_ib_sm_guid_assign

Definition at line 62 of file main.c.