Lines Matching refs:mthca_dev

288 struct mthca_dev {  struct
411 int mthca_reset(struct mthca_dev *mdev);
423 int mthca_buf_alloc(struct mthca_dev *dev, int size, int max_direct,
426 void mthca_buf_free(struct mthca_dev *dev, int size, union mthca_buf *buf,
429 int mthca_init_uar_table(struct mthca_dev *dev);
430 int mthca_init_pd_table(struct mthca_dev *dev);
431 int mthca_init_mr_table(struct mthca_dev *dev);
432 int mthca_init_eq_table(struct mthca_dev *dev);
433 int mthca_init_cq_table(struct mthca_dev *dev);
434 int mthca_init_srq_table(struct mthca_dev *dev);
435 int mthca_init_qp_table(struct mthca_dev *dev);
436 int mthca_init_av_table(struct mthca_dev *dev);
437 int mthca_init_mcg_table(struct mthca_dev *dev);
439 void mthca_cleanup_uar_table(struct mthca_dev *dev);
440 void mthca_cleanup_pd_table(struct mthca_dev *dev);
441 void mthca_cleanup_mr_table(struct mthca_dev *dev);
442 void mthca_cleanup_eq_table(struct mthca_dev *dev);
443 void mthca_cleanup_cq_table(struct mthca_dev *dev);
444 void mthca_cleanup_srq_table(struct mthca_dev *dev);
445 void mthca_cleanup_qp_table(struct mthca_dev *dev);
446 void mthca_cleanup_av_table(struct mthca_dev *dev);
447 void mthca_cleanup_mcg_table(struct mthca_dev *dev);
449 int mthca_register_device(struct mthca_dev *dev);
450 void mthca_unregister_device(struct mthca_dev *dev);
452 void mthca_start_catas_poll(struct mthca_dev *dev);
453 void mthca_stop_catas_poll(struct mthca_dev *dev);
458 int mthca_uar_alloc(struct mthca_dev *dev, struct mthca_uar *uar);
459 void mthca_uar_free(struct mthca_dev *dev, struct mthca_uar *uar);
461 int mthca_pd_alloc(struct mthca_dev *dev, int privileged, struct mthca_pd *pd);
462 void mthca_pd_free(struct mthca_dev *dev, struct mthca_pd *pd);
464 int mthca_write_mtt_size(struct mthca_dev *dev);
466 struct mthca_mtt *mthca_alloc_mtt(struct mthca_dev *dev, int size);
467 void mthca_free_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt);
468 int mthca_write_mtt(struct mthca_dev *dev, struct mthca_mtt *mtt,
470 int mthca_mr_alloc(struct mthca_dev *dev, u32 pd, int buffer_size_shift,
472 int mthca_mr_alloc_notrans(struct mthca_dev *dev, u32 pd,
474 int mthca_mr_alloc_phys(struct mthca_dev *dev, u32 pd,
478 void mthca_free_mr(struct mthca_dev *dev, struct mthca_mr *mr);
480 int mthca_map_eq_icm(struct mthca_dev *dev, u64 icm_virt);
481 void mthca_unmap_eq_icm(struct mthca_dev *dev);
487 int mthca_init_cq(struct mthca_dev *dev, int nent,
490 void mthca_free_cq(struct mthca_dev *dev,
492 void mthca_cq_completion(struct mthca_dev *dev, u32 cqn);
493 void mthca_cq_event(struct mthca_dev *dev, u32 cqn,
495 void mthca_cq_clean(struct mthca_dev *dev, struct mthca_cq *cq, u32 qpn,
498 int mthca_alloc_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int nent);
499 void mthca_free_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int cqe);
501 int mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd,
504 void mthca_free_srq(struct mthca_dev *dev, struct mthca_srq *srq);
508 int mthca_max_srq_sge(struct mthca_dev *dev);
509 void mthca_srq_event(struct mthca_dev *dev, u32 srqn,
517 void mthca_qp_event(struct mthca_dev *dev, u32 qpn,
531 void mthca_free_err_wqe(struct mthca_dev *dev, struct mthca_qp *qp, int is_send,
533 int mthca_alloc_qp(struct mthca_dev *dev,
542 int mthca_alloc_sqp(struct mthca_dev *dev,
552 void mthca_free_qp(struct mthca_dev *dev, struct mthca_qp *qp);
553 int mthca_create_ah(struct mthca_dev *dev,
557 int mthca_destroy_ah(struct mthca_dev *dev, struct mthca_ah *ah);
558 int mthca_read_ah(struct mthca_dev *dev, struct mthca_ah *ah,
562 u8 mthca_get_rate(struct mthca_dev *dev, int static_rate, u32 port);
563 enum ib_rate mthca_rate_to_ib(struct mthca_dev *dev, u8 mthca_rate, u32 port);
572 int mthca_create_agents(struct mthca_dev *dev);
573 void mthca_free_agents(struct mthca_dev *dev);
575 static inline struct mthca_dev *to_mdev(struct ib_device *ibdev) in to_mdev()
577 return container_of(ibdev, struct mthca_dev, ib_dev); in to_mdev()
580 static inline int mthca_is_memfree(struct mthca_dev *dev) in mthca_is_memfree()