Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Enumerations | Functions
ehca_iverbs.h File Reference
#include "ehca_classes.h"

Go to the source code of this file.

Macros

#define ehca_alloc_fw_ctrlblock(flags)   ((void *)get_zeroed_page(flags))
 
#define ehca_free_fw_ctrlblock(ptr)   free_page((unsigned long)(ptr))
 

Enumerations

enum  ehca_eq_type { EHCA_EQ = 0, EHCA_NEQ }
 

Functions

int ehca_query_device (struct ib_device *ibdev, struct ib_device_attr *props)
 
int ehca_query_port (struct ib_device *ibdev, u8 port, struct ib_port_attr *props)
 
int ehca_query_sma_attr (struct ehca_shca *shca, u8 port, struct ehca_sma_attr *attr)
 
int ehca_query_pkey (struct ib_device *ibdev, u8 port, u16 index, u16 *pkey)
 
int ehca_query_gid (struct ib_device *ibdev, u8 port, int index, union ib_gid *gid)
 
int ehca_modify_port (struct ib_device *ibdev, u8 port, int port_modify_mask, struct ib_port_modify *props)
 
struct ib_pdehca_alloc_pd (struct ib_device *device, struct ib_ucontext *context, struct ib_udata *udata)
 
int ehca_dealloc_pd (struct ib_pd *pd)
 
struct ib_ahehca_create_ah (struct ib_pd *pd, struct ib_ah_attr *ah_attr)
 
int ehca_modify_ah (struct ib_ah *ah, struct ib_ah_attr *ah_attr)
 
int ehca_query_ah (struct ib_ah *ah, struct ib_ah_attr *ah_attr)
 
int ehca_destroy_ah (struct ib_ah *ah)
 
struct ib_mrehca_get_dma_mr (struct ib_pd *pd, int mr_access_flags)
 
struct ib_mrehca_reg_phys_mr (struct ib_pd *pd, struct ib_phys_buf *phys_buf_array, int num_phys_buf, int mr_access_flags, u64 *iova_start)
 
struct ib_mrehca_reg_user_mr (struct ib_pd *pd, u64 start, u64 length, u64 virt, int mr_access_flags, struct ib_udata *udata)
 
int ehca_rereg_phys_mr (struct ib_mr *mr, int mr_rereg_mask, struct ib_pd *pd, struct ib_phys_buf *phys_buf_array, int num_phys_buf, int mr_access_flags, u64 *iova_start)
 
int ehca_query_mr (struct ib_mr *mr, struct ib_mr_attr *mr_attr)
 
int ehca_dereg_mr (struct ib_mr *mr)
 
struct ib_mwehca_alloc_mw (struct ib_pd *pd)
 
int ehca_bind_mw (struct ib_qp *qp, struct ib_mw *mw, struct ib_mw_bind *mw_bind)
 
int ehca_dealloc_mw (struct ib_mw *mw)
 
struct ib_fmrehca_alloc_fmr (struct ib_pd *pd, int mr_access_flags, struct ib_fmr_attr *fmr_attr)
 
int ehca_map_phys_fmr (struct ib_fmr *fmr, u64 *page_list, int list_len, u64 iova)
 
int ehca_unmap_fmr (struct list_head *fmr_list)
 
int ehca_dealloc_fmr (struct ib_fmr *fmr)
 
int ehca_create_eq (struct ehca_shca *shca, struct ehca_eq *eq, enum ehca_eq_type type, const u32 length)
 
int ehca_destroy_eq (struct ehca_shca *shca, struct ehca_eq *eq)
 
voidehca_poll_eq (struct ehca_shca *shca, struct ehca_eq *eq)
 
struct ib_cqehca_create_cq (struct ib_device *device, int cqe, int comp_vector, struct ib_ucontext *context, struct ib_udata *udata)
 
int ehca_destroy_cq (struct ib_cq *cq)
 
int ehca_resize_cq (struct ib_cq *cq, int cqe, struct ib_udata *udata)
 
int ehca_poll_cq (struct ib_cq *cq, int num_entries, struct ib_wc *wc)
 
int ehca_peek_cq (struct ib_cq *cq, int wc_cnt)
 
int ehca_req_notify_cq (struct ib_cq *cq, enum ib_cq_notify_flags notify_flags)
 
struct ib_qpehca_create_qp (struct ib_pd *pd, struct ib_qp_init_attr *init_attr, struct ib_udata *udata)
 
int ehca_destroy_qp (struct ib_qp *qp)
 
int ehca_modify_qp (struct ib_qp *ibqp, struct ib_qp_attr *attr, int attr_mask, struct ib_udata *udata)
 
int ehca_query_qp (struct ib_qp *qp, struct ib_qp_attr *qp_attr, int qp_attr_mask, struct ib_qp_init_attr *qp_init_attr)
 
int ehca_post_send (struct ib_qp *qp, struct ib_send_wr *send_wr, struct ib_send_wr **bad_send_wr)
 
int ehca_post_recv (struct ib_qp *qp, struct ib_recv_wr *recv_wr, struct ib_recv_wr **bad_recv_wr)
 
int ehca_post_srq_recv (struct ib_srq *srq, struct ib_recv_wr *recv_wr, struct ib_recv_wr **bad_recv_wr)
 
struct ib_srqehca_create_srq (struct ib_pd *pd, struct ib_srq_init_attr *init_attr, struct ib_udata *udata)
 
int ehca_modify_srq (struct ib_srq *srq, struct ib_srq_attr *attr, enum ib_srq_attr_mask attr_mask, struct ib_udata *udata)
 
int ehca_query_srq (struct ib_srq *srq, struct ib_srq_attr *srq_attr)
 
int ehca_destroy_srq (struct ib_srq *srq)
 
u64 ehca_define_sqp (struct ehca_shca *shca, struct ehca_qp *ibqp, struct ib_qp_init_attr *qp_init_attr)
 
int ehca_attach_mcast (struct ib_qp *qp, union ib_gid *gid, u16 lid)
 
int ehca_detach_mcast (struct ib_qp *qp, union ib_gid *gid, u16 lid)
 
struct ib_ucontextehca_alloc_ucontext (struct ib_device *device, struct ib_udata *udata)
 
int ehca_dealloc_ucontext (struct ib_ucontext *context)
 
int ehca_mmap (struct ib_ucontext *context, struct vm_area_struct *vma)
 
int ehca_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)
 
void ehca_poll_eqs (unsigned long data)
 
int ehca_calc_ipd (struct ehca_shca *shca, int port, enum ib_rate path_rate, u32 *ipd)
 
void ehca_add_to_err_list (struct ehca_qp *qp, int on_sq)
 
void ehca_recover_sqp (struct ib_qp *sqp)
 

Macro Definition Documentation

#define ehca_alloc_fw_ctrlblock (   flags)    ((void *)get_zeroed_page(flags))

Definition at line 206 of file ehca_iverbs.h.

#define ehca_free_fw_ctrlblock (   ptr)    free_page((unsigned long)(ptr))

Definition at line 207 of file ehca_iverbs.h.

Enumeration Type Documentation

Enumerator:
EHCA_EQ 
EHCA_NEQ 

Definition at line 116 of file ehca_iverbs.h.

Function Documentation

void ehca_add_to_err_list ( struct ehca_qp qp,
int  on_sq 
)

Definition at line 400 of file ehca_qp.c.

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

Definition at line 765 of file ehca_mrmw.c.

struct ib_mw* ehca_alloc_mw ( struct ib_pd pd)
read

Definition at line 691 of file ehca_mrmw.c.

struct ib_pd* ehca_alloc_pd ( struct ib_device device,
struct ib_ucontext context,
struct ib_udata udata 
)
read

Definition at line 48 of file ehca_pd.c.

struct ib_ucontext* ehca_alloc_ucontext ( struct ib_device device,
struct ib_udata udata 
)
read

Definition at line 51 of file ehca_uverbs.c.

int ehca_attach_mcast ( struct ib_qp qp,
union ib_gid gid,
u16  lid 
)

Definition at line 59 of file ehca_mcast.c.

int ehca_bind_mw ( struct ib_qp qp,
struct ib_mw mw,
struct ib_mw_bind mw_bind 
)

Definition at line 731 of file ehca_mrmw.c.

int ehca_calc_ipd ( struct ehca_shca shca,
int  port,
enum ib_rate  path_rate,
u32 ipd 
)

Definition at line 52 of file ehca_av.c.

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

Definition at line 88 of file ehca_av.c.

struct ib_cq* ehca_create_cq ( struct ib_device device,
int  cqe,
int  comp_vector,
struct ib_ucontext context,
struct ib_udata udata 
)
read

Definition at line 116 of file ehca_cq.c.

int ehca_create_eq ( struct ehca_shca shca,
struct ehca_eq eq,
enum ehca_eq_type  type,
const u32  length 
)

Definition at line 53 of file ehca_eq.c.

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

Definition at line 955 of file ehca_qp.c.

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

Definition at line 968 of file ehca_qp.c.

int ehca_dealloc_fmr ( struct ib_fmr fmr)

Definition at line 981 of file ehca_mrmw.c.

int ehca_dealloc_mw ( struct ib_mw mw)

Definition at line 743 of file ehca_mrmw.c.

int ehca_dealloc_pd ( struct ib_pd pd)

Definition at line 85 of file ehca_pd.c.

int ehca_dealloc_ucontext ( struct ib_ucontext context)

Definition at line 65 of file ehca_uverbs.c.

u64 ehca_define_sqp ( struct ehca_shca shca,
struct ehca_qp ehca_qp,
struct ib_qp_init_attr qp_init_attr 
)

ehca_define_sqp - Defines special queue pair 1 (GSI QP). When special queue pair is created successfully, the corresponding port gets active.

Define Special Queue pair 0 (SMI QP) is still not supported.

: Queue pair init attributes with port and queue pair type

Definition at line 64 of file ehca_sqp.c.

int ehca_dereg_mr ( struct ib_mr mr)

Definition at line 644 of file ehca_mrmw.c.

int ehca_destroy_ah ( struct ib_ah ah)

Definition at line 255 of file ehca_av.c.

int ehca_destroy_cq ( struct ib_cq cq)

Definition at line 326 of file ehca_cq.c.

int ehca_destroy_eq ( struct ehca_shca shca,
struct ehca_eq eq 
)

Definition at line 167 of file ehca_eq.c.

int ehca_destroy_qp ( struct ib_qp qp)

Definition at line 2232 of file ehca_qp.c.

int ehca_destroy_srq ( struct ib_srq srq)

Definition at line 2239 of file ehca_qp.c.

int ehca_detach_mcast ( struct ib_qp qp,
union ib_gid gid,
u16  lid 
)

Definition at line 96 of file ehca_mcast.c.

struct ib_mr* ehca_get_dma_mr ( struct ib_pd pd,
int  mr_access_flags 
)
read

Definition at line 156 of file ehca_mrmw.c.

int ehca_map_phys_fmr ( struct ib_fmr fmr,
u64 page_list,
int  list_len,
u64  iova 
)

Definition at line 855 of file ehca_mrmw.c.

int ehca_mmap ( struct ib_ucontext context,
struct vm_area_struct vma 
)

Definition at line 248 of file ehca_uverbs.c.

int ehca_modify_ah ( struct ib_ah ah,
struct ib_ah_attr ah_attr 
)

Definition at line 168 of file ehca_av.c.

int ehca_modify_port ( struct ib_device ibdev,
u8  port,
int  port_modify_mask,
struct ib_port_modify props 
)

Definition at line 356 of file ehca_hca.c.

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

Definition at line 1782 of file ehca_qp.c.

int ehca_modify_srq ( struct ib_srq srq,
struct ib_srq_attr attr,
enum ib_srq_attr_mask  attr_mask,
struct ib_udata udata 
)

Definition at line 2036 of file ehca_qp.c.

int ehca_peek_cq ( struct ib_cq cq,
int  wc_cnt 
)
int ehca_poll_cq ( struct ib_cq cq,
int  num_entries,
struct ib_wc wc 
)

Definition at line 872 of file ehca_reqs.c.

void* ehca_poll_eq ( struct ehca_shca shca,
struct ehca_eq eq 
)

Definition at line 155 of file ehca_eq.c.

void ehca_poll_eqs ( unsigned long  data)

Definition at line 951 of file ehca_main.c.

int ehca_post_recv ( struct ib_qp qp,
struct ib_recv_wr recv_wr,
struct ib_recv_wr **  bad_recv_wr 
)

Definition at line 583 of file ehca_reqs.c.

int ehca_post_send ( struct ib_qp qp,
struct ib_send_wr send_wr,
struct ib_send_wr **  bad_send_wr 
)

Definition at line 440 of file ehca_reqs.c.

int ehca_post_srq_recv ( struct ib_srq srq,
struct ib_recv_wr recv_wr,
struct ib_recv_wr **  bad_recv_wr 
)

Definition at line 600 of file ehca_reqs.c.

int ehca_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 219 of file ehca_sqp.c.

int ehca_query_ah ( struct ib_ah ah,
struct ib_ah_attr ah_attr 
)

Definition at line 232 of file ehca_av.c.

int ehca_query_device ( struct ib_device ibdev,
struct ib_device_attr props 
)

Definition at line 53 of file ehca_hca.c.

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

Definition at line 315 of file ehca_hca.c.

int ehca_query_mr ( struct ib_mr mr,
struct ib_mr_attr mr_attr 
)

Definition at line 597 of file ehca_mrmw.c.

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

Definition at line 281 of file ehca_hca.c.

int ehca_query_port ( struct ib_device ibdev,
u8  port,
struct ib_port_attr props 
)

Definition at line 182 of file ehca_hca.c.

int ehca_query_qp ( struct ib_qp qp,
struct ib_qp_attr qp_attr,
int  qp_attr_mask,
struct ib_qp_init_attr qp_init_attr 
)

Definition at line 1891 of file ehca_qp.c.

int ehca_query_sma_attr ( struct ehca_shca shca,
u8  port,
struct ehca_sma_attr attr 
)

Definition at line 245 of file ehca_hca.c.

int ehca_query_srq ( struct ib_srq srq,
struct ib_srq_attr srq_attr 
)

Definition at line 2094 of file ehca_qp.c.

void ehca_recover_sqp ( struct ib_qp sqp)

Definition at line 1847 of file ehca_qp.c.

struct ib_mr* ehca_reg_phys_mr ( struct ib_pd pd,
struct ib_phys_buf phys_buf_array,
int  num_phys_buf,
int  mr_access_flags,
u64 iova_start 
)
read

Definition at line 199 of file ehca_mrmw.c.

struct ib_mr* ehca_reg_user_mr ( struct ib_pd pd,
u64  start,
u64  length,
u64  virt,
int  mr_access_flags,
struct ib_udata udata 
)
read

Definition at line 313 of file ehca_mrmw.c.

int ehca_req_notify_cq ( struct ib_cq cq,
enum ib_cq_notify_flags  notify_flags 
)

Definition at line 929 of file ehca_reqs.c.

int ehca_rereg_phys_mr ( struct ib_mr mr,
int  mr_rereg_mask,
struct ib_pd pd,
struct ib_phys_buf phys_buf_array,
int  num_phys_buf,
int  mr_access_flags,
u64 iova_start 
)

Definition at line 443 of file ehca_mrmw.c.

int ehca_resize_cq ( struct ib_cq cq,
int  cqe,
struct ib_udata udata 
)

Definition at line 381 of file ehca_cq.c.

int ehca_unmap_fmr ( struct list_head fmr_list)

Definition at line 923 of file ehca_mrmw.c.