Lines Matching full:struct

66 struct mlx4_xsrq_table {
67 struct {
68 struct mlx4_srq **table;
115 struct mlx4_device {
116 struct verbs_device verbs_dev;
121 struct mlx4_db_page;
123 struct mlx4_context {
124 struct ibv_context ibv_ctx;
134 struct {
135 struct mlx4_qp **table;
145 struct mlx4_db_page *db_list[MLX4_NUM_DB_TYPE];
148 struct mlx4_xsrq_table xsrq_table;
149 struct {
154 struct {
161 struct mlx4_buf {
166 struct mlx4_pd {
167 struct ibv_pd ibv_pd;
177 struct mlx4_cq {
178 struct ibv_cq_ex ibv_cq;
179 struct mlx4_buf buf;
180 struct mlx4_buf resize_buf;
188 struct mlx4_qp *cur_qp;
189 struct mlx4_cqe *cqe;
193 struct mlx4_srq {
194 struct verbs_srq verbs_srq;
195 struct mlx4_buf buf;
209 struct mlx4_wq {
221 struct mlx4_qp {
222 struct verbs_qp verbs_qp;
223 struct mlx4_buf buf;
230 struct mlx4_wq sq;
233 struct mlx4_wq rq;
239 struct mlx4_av {
252 struct mlx4_ah {
253 struct ibv_ah ibv_ah;
254 struct mlx4_av av;
275 struct mlx4_cqe {
280 struct {
303 ((struct mlx4_##type *) \
304 ((void *) ib##xxx - offsetof(struct mlx4_##type, ibv_##xxx)))
306 static inline struct mlx4_device *to_mdev(struct ibv_device *ibdev) in to_mdev()
311 return container_of(ibdev, struct mlx4_device, verbs_dev); in to_mdev()
314 static inline struct mlx4_context *to_mctx(struct ibv_context *ibctx) in to_mctx()
319 static inline struct mlx4_pd *to_mpd(struct ibv_pd *ibpd) in to_mpd()
324 static inline struct mlx4_cq *to_mcq(struct ibv_cq *ibcq) in to_mcq()
329 static inline struct mlx4_srq *to_msrq(struct ibv_srq *ibsrq) in to_msrq()
331 return container_of(container_of(ibsrq, struct verbs_srq, srq), in to_msrq()
332 struct mlx4_srq, verbs_srq); in to_msrq()
335 static inline struct mlx4_qp *to_mqp(struct ibv_qp *ibqp) in to_mqp()
337 return container_of(container_of(ibqp, struct verbs_qp, qp), in to_mqp()
338 struct mlx4_qp, verbs_qp); in to_mqp()
341 static inline struct mlx4_ah *to_mah(struct ibv_ah *ibah) in to_mah()
346 static inline void mlx4_update_cons_index(struct mlx4_cq *cq) in mlx4_update_cons_index()
351 int mlx4_alloc_buf(struct mlx4_buf *buf, size_t size, int page_size);
352 void mlx4_free_buf(struct mlx4_buf *buf);
354 uint32_t *mlx4_alloc_db(struct mlx4_context *context, enum mlx4_db_type type);
355 void mlx4_free_db(struct mlx4_context *context, enum mlx4_db_type type, uint32_t *db);
357 int mlx4_query_device(struct ibv_context *context,
358 struct ibv_device_attr *attr);
359 int mlx4_query_device_ex(struct ibv_context *context,
360 const struct ibv_query_device_ex_input *input,
361 struct ibv_device_attr_ex *attr,
363 int mlx4_query_port(struct ibv_context *context, uint8_t port,
364 struct ibv_port_attr *attr);
365 int mlx4_query_rt_values(struct ibv_context *context,
366 struct ibv_values_ex *values);
367 struct ibv_pd *mlx4_alloc_pd(struct ibv_context *context);
368 int mlx4_free_pd(struct ibv_pd *pd);
369 struct ibv_xrcd *mlx4_open_xrcd(struct ibv_context *context,
370 struct ibv_xrcd_init_attr *attr);
371 int mlx4_close_xrcd(struct ibv_xrcd *xrcd);
373 struct ibv_mr *mlx4_reg_mr(struct ibv_pd *pd, void *addr,
375 int mlx4_rereg_mr(struct ibv_mr *mr, int flags, struct ibv_pd *pd,
377 int mlx4_dereg_mr(struct ibv_mr *mr);
379 struct ibv_mw *mlx4_alloc_mw(struct ibv_pd *pd, enum ibv_mw_type type);
380 int mlx4_dealloc_mw(struct ibv_mw *mw);
381 int mlx4_bind_mw(struct ibv_qp *qp, struct ibv_mw *mw,
382 struct ibv_mw_bind *mw_bind);
384 struct ibv_cq *mlx4_create_cq(struct ibv_context *context, int cqe,
385 struct ibv_comp_channel *channel,
387 struct ibv_cq_ex *mlx4_create_cq_ex(struct ibv_context *context,
388 struct ibv_cq_init_attr_ex *cq_attr);
389 void mlx4_cq_fill_pfns(struct mlx4_cq *cq, const struct ibv_cq_init_attr_ex *cq_attr);
390 int mlx4_alloc_cq_buf(struct mlx4_device *dev, struct mlx4_buf *buf, int nent,
392 int mlx4_resize_cq(struct ibv_cq *cq, int cqe);
393 int mlx4_destroy_cq(struct ibv_cq *cq);
394 int mlx4_poll_cq(struct ibv_cq *cq, int ne, struct ibv_wc *wc);
395 int mlx4_arm_cq(struct ibv_cq *cq, int solicited);
396 void mlx4_cq_event(struct ibv_cq *cq);
397 void __mlx4_cq_clean(struct mlx4_cq *cq, uint32_t qpn, struct mlx4_srq *srq);
398 void mlx4_cq_clean(struct mlx4_cq *cq, uint32_t qpn, struct mlx4_srq *srq);
399 int mlx4_get_outstanding_cqes(struct mlx4_cq *cq);
400 void mlx4_cq_resize_copy_cqes(struct mlx4_cq *cq, void *buf, int new_cqe);
402 struct ibv_srq *mlx4_create_srq(struct ibv_pd *pd,
403 struct ibv_srq_init_attr *attr);
404 struct ibv_srq *mlx4_create_srq_ex(struct ibv_context *context,
405 struct ibv_srq_init_attr_ex *attr_ex);
406 struct ibv_srq *mlx4_create_xrc_srq(struct ibv_context *context,
407 struct ibv_srq_init_attr_ex *attr_ex);
408 int mlx4_modify_srq(struct ibv_srq *srq,
409 struct ibv_srq_attr *attr,
411 int mlx4_query_srq(struct ibv_srq *srq,
412 struct ibv_srq_attr *attr);
413 int mlx4_destroy_srq(struct ibv_srq *srq);
414 int mlx4_destroy_xrc_srq(struct ibv_srq *srq);
415 int mlx4_alloc_srq_buf(struct ibv_pd *pd, struct ibv_srq_attr *attr,
416 struct mlx4_srq *srq);
417 void mlx4_cleanup_xsrq_table(struct mlx4_xsrq_table *xsrq_table);
418 int mlx4_init_xsrq_table(struct mlx4_xsrq_table *xsrq_table, int size);
419 struct mlx4_srq *mlx4_find_xsrq(struct mlx4_xsrq_table *xsrq_table, uint32_t srqn);
420 int mlx4_store_xsrq(struct mlx4_xsrq_table *xsrq_table, uint32_t srqn,
421 struct mlx4_srq *srq);
422 void mlx4_clear_xsrq(struct mlx4_xsrq_table *xsrq_table, uint32_t srqn);
423 void mlx4_free_srq_wqe(struct mlx4_srq *srq, int ind);
424 int mlx4_post_srq_recv(struct ibv_srq *ibsrq,
425 struct ibv_recv_wr *wr,
426 struct ibv_recv_wr **bad_wr);
428 struct ibv_qp *mlx4_create_qp(struct ibv_pd *pd, struct ibv_qp_init_attr *attr);
429 struct ibv_qp *mlx4_create_qp_ex(struct ibv_context *context,
430 struct ibv_qp_init_attr_ex *attr);
431 struct ibv_qp *mlx4_open_qp(struct ibv_context *context, struct ibv_qp_open_attr *attr);
432 int mlx4_query_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr,
434 struct ibv_qp_init_attr *init_attr);
435 int mlx4_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr,
437 int mlx4_destroy_qp(struct ibv_qp *qp);
438 void mlx4_init_qp_indices(struct mlx4_qp *qp);
439 void mlx4_qp_init_sq_ownership(struct mlx4_qp *qp);
440 int mlx4_post_send(struct ibv_qp *ibqp, struct ibv_send_wr *wr,
441 struct ibv_send_wr **bad_wr);
442 int mlx4_post_recv(struct ibv_qp *ibqp, struct ibv_recv_wr *wr,
443 struct ibv_recv_wr **bad_wr);
444 void mlx4_calc_sq_wqe_size(struct ibv_qp_cap *cap, enum ibv_qp_type type,
445 struct mlx4_qp *qp);
446 int mlx4_alloc_qp_buf(struct ibv_context *context, struct ibv_qp_cap *cap,
447 enum ibv_qp_type type, struct mlx4_qp *qp);
448 void mlx4_set_sq_sizes(struct mlx4_qp *qp, struct ibv_qp_cap *cap,
450 struct mlx4_qp *mlx4_find_qp(struct mlx4_context *ctx, uint32_t qpn);
451 int mlx4_store_qp(struct mlx4_context *ctx, uint32_t qpn, struct mlx4_qp *qp);
452 void mlx4_clear_qp(struct mlx4_context *ctx, uint32_t qpn);
453 struct ibv_ah *mlx4_create_ah(struct ibv_pd *pd, struct ibv_ah_attr *attr);
454 int mlx4_destroy_ah(struct ibv_ah *ah);
455 int mlx4_alloc_av(struct mlx4_pd *pd, struct ibv_ah_attr *attr,
456 struct mlx4_ah *ah);
457 void mlx4_free_av(struct mlx4_ah *ah);