Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Public Types | Data Fields
ib_device Struct Reference

#include <ib_verbs.h>

Public Types

enum  { IB_DEV_UNINITIALIZED, IB_DEV_REGISTERED, IB_DEV_UNREGISTERED }
 

Data Fields

struct devicedma_device
 
char name [IB_DEVICE_NAME_MAX]
 
struct list_head event_handler_list
 
spinlock_t event_handler_lock
 
spinlock_t client_data_lock
 
struct list_head core_list
 
struct list_head client_data_list
 
struct ib_cache cache
 
intpkey_tbl_len
 
intgid_tbl_len
 
int num_comp_vectors
 
struct iw_cm_verbsiwcm
 
int(* get_protocol_stats )(struct ib_device *device, union rdma_protocol_stats *stats)
 
int(* query_device )(struct ib_device *device, struct ib_device_attr *device_attr)
 
int(* query_port )(struct ib_device *device, u8 port_num, struct ib_port_attr *port_attr)
 
enum rdma_link_layer(* get_link_layer )(struct ib_device *device, u8 port_num)
 
int(* query_gid )(struct ib_device *device, u8 port_num, int index, union ib_gid *gid)
 
int(* query_pkey )(struct ib_device *device, u8 port_num, u16 index, u16 *pkey)
 
int(* modify_device )(struct ib_device *device, int device_modify_mask, struct ib_device_modify *device_modify)
 
int(* modify_port )(struct ib_device *device, u8 port_num, int port_modify_mask, struct ib_port_modify *port_modify)
 
struct ib_ucontext *(* alloc_ucontext )(struct ib_device *device, struct ib_udata *udata)
 
int(* dealloc_ucontext )(struct ib_ucontext *context)
 
int(* mmap )(struct ib_ucontext *context, struct vm_area_struct *vma)
 
struct ib_pd *(* alloc_pd )(struct ib_device *device, struct ib_ucontext *context, struct ib_udata *udata)
 
int(* dealloc_pd )(struct ib_pd *pd)
 
struct ib_ah *(* create_ah )(struct ib_pd *pd, struct ib_ah_attr *ah_attr)
 
int(* modify_ah )(struct ib_ah *ah, struct ib_ah_attr *ah_attr)
 
int(* query_ah )(struct ib_ah *ah, struct ib_ah_attr *ah_attr)
 
int(* destroy_ah )(struct ib_ah *ah)
 
struct ib_srq *(* create_srq )(struct ib_pd *pd, struct ib_srq_init_attr *srq_init_attr, struct ib_udata *udata)
 
int(* modify_srq )(struct ib_srq *srq, struct ib_srq_attr *srq_attr, enum ib_srq_attr_mask srq_attr_mask, struct ib_udata *udata)
 
int(* query_srq )(struct ib_srq *srq, struct ib_srq_attr *srq_attr)
 
int(* destroy_srq )(struct ib_srq *srq)
 
int(* post_srq_recv )(struct ib_srq *srq, struct ib_recv_wr *recv_wr, struct ib_recv_wr **bad_recv_wr)
 
struct ib_qp *(* create_qp )(struct ib_pd *pd, struct ib_qp_init_attr *qp_init_attr, struct ib_udata *udata)
 
int(* modify_qp )(struct ib_qp *qp, struct ib_qp_attr *qp_attr, int qp_attr_mask, struct ib_udata *udata)
 
int(* 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(* destroy_qp )(struct ib_qp *qp)
 
int(* post_send )(struct ib_qp *qp, struct ib_send_wr *send_wr, struct ib_send_wr **bad_send_wr)
 
int(* post_recv )(struct ib_qp *qp, struct ib_recv_wr *recv_wr, struct ib_recv_wr **bad_recv_wr)
 
struct ib_cq *(* create_cq )(struct ib_device *device, int cqe, int comp_vector, struct ib_ucontext *context, struct ib_udata *udata)
 
int(* modify_cq )(struct ib_cq *cq, u16 cq_count, u16 cq_period)
 
int(* destroy_cq )(struct ib_cq *cq)
 
int(* resize_cq )(struct ib_cq *cq, int cqe, struct ib_udata *udata)
 
int(* poll_cq )(struct ib_cq *cq, int num_entries, struct ib_wc *wc)
 
int(* peek_cq )(struct ib_cq *cq, int wc_cnt)
 
int(* req_notify_cq )(struct ib_cq *cq, enum ib_cq_notify_flags flags)
 
int(* req_ncomp_notif )(struct ib_cq *cq, int wc_cnt)
 
struct ib_mr *(* get_dma_mr )(struct ib_pd *pd, int mr_access_flags)
 
struct ib_mr *(* 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_mr *(* reg_user_mr )(struct ib_pd *pd, u64 start, u64 length, u64 virt_addr, int mr_access_flags, struct ib_udata *udata)
 
int(* query_mr )(struct ib_mr *mr, struct ib_mr_attr *mr_attr)
 
int(* dereg_mr )(struct ib_mr *mr)
 
struct ib_mr *(* alloc_fast_reg_mr )(struct ib_pd *pd, int max_page_list_len)
 
struct ib_fast_reg_page_list *(* alloc_fast_reg_page_list )(struct ib_device *device, int page_list_len)
 
void(* free_fast_reg_page_list )(struct ib_fast_reg_page_list *page_list)
 
int(* 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)
 
struct ib_mw *(* alloc_mw )(struct ib_pd *pd)
 
int(* bind_mw )(struct ib_qp *qp, struct ib_mw *mw, struct ib_mw_bind *mw_bind)
 
int(* dealloc_mw )(struct ib_mw *mw)
 
struct ib_fmr *(* alloc_fmr )(struct ib_pd *pd, int mr_access_flags, struct ib_fmr_attr *fmr_attr)
 
int(* map_phys_fmr )(struct ib_fmr *fmr, u64 *page_list, int list_len, u64 iova)
 
int(* unmap_fmr )(struct list_head *fmr_list)
 
int(* dealloc_fmr )(struct ib_fmr *fmr)
 
int(* attach_mcast )(struct ib_qp *qp, union ib_gid *gid, u16 lid)
 
int(* detach_mcast )(struct ib_qp *qp, union ib_gid *gid, u16 lid)
 
int(* process_mad )(struct ib_device *device, int process_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)
 
struct ib_xrcd *(* alloc_xrcd )(struct ib_device *device, struct ib_ucontext *ucontext, struct ib_udata *udata)
 
int(* dealloc_xrcd )(struct ib_xrcd *xrcd)
 
struct ib_dma_mapping_opsdma_ops
 
struct moduleowner
 
struct device dev
 
struct kobjectports_parent
 
struct list_head port_list
 
enum ib_device:: { ... }  reg_state
 
int uverbs_abi_ver
 
u64 uverbs_cmd_mask
 
char node_desc [64]
 
__be64 node_guid
 
u32 local_dma_lkey
 
u8 node_type
 
u8 phys_port_cnt
 

Detailed Description

Definition at line 1075 of file ib_verbs.h.

Member Enumeration Documentation

anonymous enum
Enumerator:
IB_DEV_UNINITIALIZED 
IB_DEV_REGISTERED 
IB_DEV_UNREGISTERED 

Definition at line 1243 of file ib_verbs.h.

Field Documentation

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

Definition at line 1193 of file ib_verbs.h.

struct ib_fast_reg_page_list*(* alloc_fast_reg_page_list)(struct ib_device *device, int page_list_len)
read

Definition at line 1195 of file ib_verbs.h.

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

Definition at line 1210 of file ib_verbs.h.

struct ib_mw*(* alloc_mw)(struct ib_pd *pd)
read

Definition at line 1205 of file ib_verbs.h.

Definition at line 1120 of file ib_verbs.h.

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

Definition at line 1115 of file ib_verbs.h.

Definition at line 1231 of file ib_verbs.h.

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

Definition at line 1218 of file ib_verbs.h.

int(* bind_mw)(struct ib_qp *qp, struct ib_mw *mw, struct ib_mw_bind *mw_bind)

Definition at line 1206 of file ib_verbs.h.

Definition at line 1087 of file ib_verbs.h.

struct list_head client_data_list

Definition at line 1085 of file ib_verbs.h.

spinlock_t client_data_lock

Definition at line 1083 of file ib_verbs.h.

struct list_head core_list

Definition at line 1084 of file ib_verbs.h.

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

Definition at line 1124 of file ib_verbs.h.

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

Definition at line 1162 of file ib_verbs.h.

struct ib_qp*(* create_qp)(struct ib_pd *pd, struct ib_qp_init_attr *qp_init_attr, struct ib_udata *udata)
read

Definition at line 1144 of file ib_verbs.h.

struct ib_srq*(* create_srq)(struct ib_pd *pd, struct ib_srq_init_attr *srq_init_attr, struct ib_udata *udata)
read

Definition at line 1131 of file ib_verbs.h.

int(* dealloc_fmr)(struct ib_fmr *fmr)

Definition at line 1217 of file ib_verbs.h.

int(* dealloc_mw)(struct ib_mw *mw)

Definition at line 1209 of file ib_verbs.h.

int(* dealloc_pd)(struct ib_pd *pd)

Definition at line 1123 of file ib_verbs.h.

int(* dealloc_ucontext)(struct ib_ucontext *context)

Definition at line 1117 of file ib_verbs.h.

int(* dealloc_xrcd)(struct ib_xrcd *xrcd)

Definition at line 1234 of file ib_verbs.h.

int(* dereg_mr)(struct ib_mr *mr)

Definition at line 1192 of file ib_verbs.h.

int(* destroy_ah)(struct ib_ah *ah)

Definition at line 1130 of file ib_verbs.h.

int(* destroy_cq)(struct ib_cq *cq)

Definition at line 1168 of file ib_verbs.h.

int(* destroy_qp)(struct ib_qp *qp)

Definition at line 1155 of file ib_verbs.h.

int(* destroy_srq)(struct ib_srq *srq)

Definition at line 1140 of file ib_verbs.h.

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

Definition at line 1221 of file ib_verbs.h.

Definition at line 1239 of file ib_verbs.h.

Definition at line 1076 of file ib_verbs.h.

Definition at line 1236 of file ib_verbs.h.

struct list_head event_handler_list

Definition at line 1080 of file ib_verbs.h.

spinlock_t event_handler_lock

Definition at line 1081 of file ib_verbs.h.

void(* free_fast_reg_page_list)(struct ib_fast_reg_page_list *page_list)

Definition at line 1197 of file ib_verbs.h.

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

Definition at line 1178 of file ib_verbs.h.

enum rdma_link_layer(* get_link_layer)(struct ib_device *device, u8 port_num)

Definition at line 1102 of file ib_verbs.h.

int(* get_protocol_stats)(struct ib_device *device, union rdma_protocol_stats *stats)

Definition at line 1095 of file ib_verbs.h.

int* gid_tbl_len

Definition at line 1089 of file ib_verbs.h.

Definition at line 1093 of file ib_verbs.h.

u32 local_dma_lkey

Definition at line 1254 of file ib_verbs.h.

int(* map_phys_fmr)(struct ib_fmr *fmr, u64 *page_list, int list_len, u64 iova)

Definition at line 1213 of file ib_verbs.h.

Definition at line 1118 of file ib_verbs.h.

int(* modify_ah)(struct ib_ah *ah, struct ib_ah_attr *ah_attr)

Definition at line 1126 of file ib_verbs.h.

int(* modify_cq)(struct ib_cq *cq, u16 cq_count, u16 cq_period)

Definition at line 1166 of file ib_verbs.h.

int(* modify_device)(struct ib_device *device, int device_modify_mask, struct ib_device_modify *device_modify)

Definition at line 1109 of file ib_verbs.h.

int(* modify_port)(struct ib_device *device, u8 port_num, int port_modify_mask, struct ib_port_modify *port_modify)

Definition at line 1112 of file ib_verbs.h.

int(* modify_qp)(struct ib_qp *qp, struct ib_qp_attr *qp_attr, int qp_attr_mask, struct ib_udata *udata)

Definition at line 1147 of file ib_verbs.h.

int(* modify_srq)(struct ib_srq *srq, struct ib_srq_attr *srq_attr, enum ib_srq_attr_mask srq_attr_mask, struct ib_udata *udata)

Definition at line 1134 of file ib_verbs.h.

Definition at line 1078 of file ib_verbs.h.

char node_desc[64]

Definition at line 1252 of file ib_verbs.h.

__be64 node_guid

Definition at line 1253 of file ib_verbs.h.

Definition at line 1255 of file ib_verbs.h.

int num_comp_vectors

Definition at line 1091 of file ib_verbs.h.

struct module* owner

Definition at line 1238 of file ib_verbs.h.

int(* peek_cq)(struct ib_cq *cq, int wc_cnt)

Definition at line 1173 of file ib_verbs.h.

u8 phys_port_cnt

Definition at line 1256 of file ib_verbs.h.

int* pkey_tbl_len

Definition at line 1088 of file ib_verbs.h.

int(* poll_cq)(struct ib_cq *cq, int num_entries, struct ib_wc *wc)

Definition at line 1171 of file ib_verbs.h.

Definition at line 1241 of file ib_verbs.h.

struct kobject* ports_parent

Definition at line 1240 of file ib_verbs.h.

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

Definition at line 1159 of file ib_verbs.h.

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

Definition at line 1156 of file ib_verbs.h.

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

Definition at line 1141 of file ib_verbs.h.

int(* process_mad)(struct ib_device *device, int process_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 1224 of file ib_verbs.h.

int(* query_ah)(struct ib_ah *ah, struct ib_ah_attr *ah_attr)

Definition at line 1128 of file ib_verbs.h.

int(* query_device)(struct ib_device *device, struct ib_device_attr *device_attr)

Definition at line 1097 of file ib_verbs.h.

int(* query_gid)(struct ib_device *device, u8 port_num, int index, union ib_gid *gid)

Definition at line 1104 of file ib_verbs.h.

int(* query_mr)(struct ib_mr *mr, struct ib_mr_attr *mr_attr)

Definition at line 1190 of file ib_verbs.h.

Definition at line 1107 of file ib_verbs.h.

int(* query_port)(struct ib_device *device, u8 port_num, struct ib_port_attr *port_attr)

Definition at line 1099 of file ib_verbs.h.

int(* 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 1151 of file ib_verbs.h.

int(* query_srq)(struct ib_srq *srq, struct ib_srq_attr *srq_attr)

Definition at line 1138 of file ib_verbs.h.

struct ib_mr*(* 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 1180 of file ib_verbs.h.

enum { ... } reg_state
struct ib_mr*(* reg_user_mr)(struct ib_pd *pd, u64 start, u64 length, u64 virt_addr, int mr_access_flags, struct ib_udata *udata)
read

Definition at line 1185 of file ib_verbs.h.

int(* req_ncomp_notif)(struct ib_cq *cq, int wc_cnt)

Definition at line 1176 of file ib_verbs.h.

int(* req_notify_cq)(struct ib_cq *cq, enum ib_cq_notify_flags flags)

Definition at line 1174 of file ib_verbs.h.

int(* 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 1198 of file ib_verbs.h.

int(* resize_cq)(struct ib_cq *cq, int cqe, struct ib_udata *udata)

Definition at line 1169 of file ib_verbs.h.

int(* unmap_fmr)(struct list_head *fmr_list)

Definition at line 1216 of file ib_verbs.h.

int uverbs_abi_ver

Definition at line 1249 of file ib_verbs.h.

u64 uverbs_cmd_mask

Definition at line 1250 of file ib_verbs.h.


The documentation for this struct was generated from the following file: