| .. | .. |
|---|
| 54 | 54 | int ocrdma_query_device(struct ib_device *, struct ib_device_attr *props, |
|---|
| 55 | 55 | struct ib_udata *uhw); |
|---|
| 56 | 56 | int ocrdma_query_port(struct ib_device *, u8 port, struct ib_port_attr *props); |
|---|
| 57 | | -int ocrdma_modify_port(struct ib_device *, u8 port, int mask, |
|---|
| 58 | | - struct ib_port_modify *props); |
|---|
| 59 | 57 | |
|---|
| 60 | 58 | enum rdma_protocol_type |
|---|
| 61 | 59 | ocrdma_query_protocol(struct ib_device *device, u8 port_num); |
|---|
| 62 | 60 | |
|---|
| 63 | 61 | void ocrdma_get_guid(struct ocrdma_dev *, u8 *guid); |
|---|
| 64 | | -struct net_device *ocrdma_get_netdev(struct ib_device *device, u8 port_num); |
|---|
| 65 | 62 | int ocrdma_query_pkey(struct ib_device *, u8 port, u16 index, u16 *pkey); |
|---|
| 66 | 63 | |
|---|
| 67 | | -struct ib_ucontext *ocrdma_alloc_ucontext(struct ib_device *, |
|---|
| 68 | | - struct ib_udata *); |
|---|
| 69 | | -int ocrdma_dealloc_ucontext(struct ib_ucontext *); |
|---|
| 64 | +int ocrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata); |
|---|
| 65 | +void ocrdma_dealloc_ucontext(struct ib_ucontext *uctx); |
|---|
| 70 | 66 | |
|---|
| 71 | 67 | int ocrdma_mmap(struct ib_ucontext *, struct vm_area_struct *vma); |
|---|
| 72 | 68 | |
|---|
| 73 | | -struct ib_pd *ocrdma_alloc_pd(struct ib_device *, |
|---|
| 74 | | - struct ib_ucontext *, struct ib_udata *); |
|---|
| 75 | | -int ocrdma_dealloc_pd(struct ib_pd *pd); |
|---|
| 69 | +int ocrdma_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); |
|---|
| 70 | +int ocrdma_dealloc_pd(struct ib_pd *pd, struct ib_udata *udata); |
|---|
| 76 | 71 | |
|---|
| 77 | | -struct ib_cq *ocrdma_create_cq(struct ib_device *ibdev, |
|---|
| 78 | | - const struct ib_cq_init_attr *attr, |
|---|
| 79 | | - struct ib_ucontext *ib_ctx, |
|---|
| 80 | | - struct ib_udata *udata); |
|---|
| 72 | +int ocrdma_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, |
|---|
| 73 | + struct ib_udata *udata); |
|---|
| 81 | 74 | int ocrdma_resize_cq(struct ib_cq *, int cqe, struct ib_udata *); |
|---|
| 82 | | -int ocrdma_destroy_cq(struct ib_cq *); |
|---|
| 75 | +int ocrdma_destroy_cq(struct ib_cq *ibcq, struct ib_udata *udata); |
|---|
| 83 | 76 | |
|---|
| 84 | 77 | struct ib_qp *ocrdma_create_qp(struct ib_pd *, |
|---|
| 85 | 78 | struct ib_qp_init_attr *attrs, |
|---|
| .. | .. |
|---|
| 91 | 84 | int ocrdma_query_qp(struct ib_qp *, |
|---|
| 92 | 85 | struct ib_qp_attr *qp_attr, |
|---|
| 93 | 86 | int qp_attr_mask, struct ib_qp_init_attr *); |
|---|
| 94 | | -int ocrdma_destroy_qp(struct ib_qp *); |
|---|
| 87 | +int ocrdma_destroy_qp(struct ib_qp *ibqp, struct ib_udata *udata); |
|---|
| 95 | 88 | void ocrdma_del_flush_qp(struct ocrdma_qp *qp); |
|---|
| 96 | 89 | |
|---|
| 97 | | -struct ib_srq *ocrdma_create_srq(struct ib_pd *, struct ib_srq_init_attr *, |
|---|
| 98 | | - struct ib_udata *); |
|---|
| 90 | +int ocrdma_create_srq(struct ib_srq *srq, struct ib_srq_init_attr *attr, |
|---|
| 91 | + struct ib_udata *udata); |
|---|
| 99 | 92 | int ocrdma_modify_srq(struct ib_srq *, struct ib_srq_attr *, |
|---|
| 100 | 93 | enum ib_srq_attr_mask, struct ib_udata *); |
|---|
| 101 | 94 | int ocrdma_query_srq(struct ib_srq *, struct ib_srq_attr *); |
|---|
| 102 | | -int ocrdma_destroy_srq(struct ib_srq *); |
|---|
| 95 | +int ocrdma_destroy_srq(struct ib_srq *ibsrq, struct ib_udata *udata); |
|---|
| 103 | 96 | int ocrdma_post_srq_recv(struct ib_srq *, const struct ib_recv_wr *, |
|---|
| 104 | 97 | const struct ib_recv_wr **bad_recv_wr); |
|---|
| 105 | 98 | |
|---|
| 106 | | -int ocrdma_dereg_mr(struct ib_mr *); |
|---|
| 99 | +int ocrdma_dereg_mr(struct ib_mr *ib_mr, struct ib_udata *udata); |
|---|
| 107 | 100 | struct ib_mr *ocrdma_get_dma_mr(struct ib_pd *, int acc); |
|---|
| 108 | 101 | struct ib_mr *ocrdma_reg_user_mr(struct ib_pd *, u64 start, u64 length, |
|---|
| 109 | 102 | u64 virt, int acc, struct ib_udata *); |
|---|
| 110 | | -struct ib_mr *ocrdma_alloc_mr(struct ib_pd *pd, |
|---|
| 111 | | - enum ib_mr_type mr_type, |
|---|
| 103 | +struct ib_mr *ocrdma_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type, |
|---|
| 112 | 104 | u32 max_num_sg); |
|---|
| 113 | 105 | int ocrdma_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, int sg_nents, |
|---|
| 114 | 106 | unsigned int *sg_offset); |
|---|