hc
2024-01-05 071106ecf68c401173c58808b1cf5f68cc50d390
kernel/drivers/infiniband/hw/mthca/mthca_dev.h
....@@ -477,16 +477,6 @@
477477 u32 access, struct mthca_mr *mr);
478478 void mthca_free_mr(struct mthca_dev *dev, struct mthca_mr *mr);
479479
480
-int mthca_fmr_alloc(struct mthca_dev *dev, u32 pd,
481
- u32 access, struct mthca_fmr *fmr);
482
-int mthca_tavor_map_phys_fmr(struct ib_fmr *ibfmr, u64 *page_list,
483
- int list_len, u64 iova);
484
-void mthca_tavor_fmr_unmap(struct mthca_dev *dev, struct mthca_fmr *fmr);
485
-int mthca_arbel_map_phys_fmr(struct ib_fmr *ibfmr, u64 *page_list,
486
- int list_len, u64 iova);
487
-void mthca_arbel_fmr_unmap(struct mthca_dev *dev, struct mthca_fmr *fmr);
488
-int mthca_free_fmr(struct mthca_dev *dev, struct mthca_fmr *fmr);
489
-
490480 int mthca_map_eq_icm(struct mthca_dev *dev, u64 icm_virt);
491481 void mthca_unmap_eq_icm(struct mthca_dev *dev);
492482
....@@ -509,7 +499,8 @@
509499 void mthca_free_cq_buf(struct mthca_dev *dev, struct mthca_cq_buf *buf, int cqe);
510500
511501 int mthca_alloc_srq(struct mthca_dev *dev, struct mthca_pd *pd,
512
- struct ib_srq_attr *attr, struct mthca_srq *srq);
502
+ struct ib_srq_attr *attr, struct mthca_srq *srq,
503
+ struct ib_udata *udata);
513504 void mthca_free_srq(struct mthca_dev *dev, struct mthca_srq *srq);
514505 int mthca_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr,
515506 enum ib_srq_attr_mask attr_mask, struct ib_udata *udata);
....@@ -546,7 +537,8 @@
546537 enum ib_qp_type type,
547538 enum ib_sig_type send_policy,
548539 struct ib_qp_cap *cap,
549
- struct mthca_qp *qp);
540
+ struct mthca_qp *qp,
541
+ struct ib_udata *udata);
550542 int mthca_alloc_sqp(struct mthca_dev *dev,
551543 struct mthca_pd *pd,
552544 struct mthca_cq *send_cq,
....@@ -555,7 +547,8 @@
555547 struct ib_qp_cap *cap,
556548 int qpn,
557549 int port,
558
- struct mthca_sqp *sqp);
550
+ struct mthca_qp *qp,
551
+ struct ib_udata *udata);
559552 void mthca_free_qp(struct mthca_dev *dev, struct mthca_qp *qp);
560553 int mthca_create_ah(struct mthca_dev *dev,
561554 struct mthca_pd *pd,
....@@ -572,14 +565,10 @@
572565 int mthca_multicast_attach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
573566 int mthca_multicast_detach(struct ib_qp *ibqp, union ib_gid *gid, u16 lid);
574567
575
-int mthca_process_mad(struct ib_device *ibdev,
576
- int mad_flags,
577
- u8 port_num,
578
- const struct ib_wc *in_wc,
579
- const struct ib_grh *in_grh,
580
- const struct ib_mad_hdr *in, size_t in_mad_size,
581
- struct ib_mad_hdr *out, size_t *out_mad_size,
582
- u16 *out_mad_pkey_index);
568
+int mthca_process_mad(struct ib_device *ibdev, int mad_flags, u8 port_num,
569
+ const struct ib_wc *in_wc, const struct ib_grh *in_grh,
570
+ const struct ib_mad *in, struct ib_mad *out,
571
+ size_t *out_mad_size, u16 *out_mad_pkey_index);
583572 int mthca_create_agents(struct mthca_dev *dev);
584573 void mthca_free_agents(struct mthca_dev *dev);
585574