.. | .. |
---|
396 | 396 | int pvrdma_modify_port(struct ib_device *ibdev, u8 port, |
---|
397 | 397 | int mask, struct ib_port_modify *props); |
---|
398 | 398 | int pvrdma_mmap(struct ib_ucontext *context, struct vm_area_struct *vma); |
---|
399 | | -struct ib_ucontext *pvrdma_alloc_ucontext(struct ib_device *ibdev, |
---|
400 | | - struct ib_udata *udata); |
---|
401 | | -int pvrdma_dealloc_ucontext(struct ib_ucontext *context); |
---|
402 | | -struct ib_pd *pvrdma_alloc_pd(struct ib_device *ibdev, |
---|
403 | | - struct ib_ucontext *context, |
---|
404 | | - struct ib_udata *udata); |
---|
405 | | -int pvrdma_dealloc_pd(struct ib_pd *ibpd); |
---|
| 399 | +int pvrdma_alloc_ucontext(struct ib_ucontext *uctx, struct ib_udata *udata); |
---|
| 400 | +void pvrdma_dealloc_ucontext(struct ib_ucontext *context); |
---|
| 401 | +int pvrdma_alloc_pd(struct ib_pd *pd, struct ib_udata *udata); |
---|
| 402 | +int pvrdma_dealloc_pd(struct ib_pd *ibpd, struct ib_udata *udata); |
---|
406 | 403 | struct ib_mr *pvrdma_get_dma_mr(struct ib_pd *pd, int acc); |
---|
407 | 404 | struct ib_mr *pvrdma_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, |
---|
408 | 405 | u64 virt_addr, int access_flags, |
---|
409 | 406 | struct ib_udata *udata); |
---|
410 | | -int pvrdma_dereg_mr(struct ib_mr *mr); |
---|
| 407 | +int pvrdma_dereg_mr(struct ib_mr *mr, struct ib_udata *udata); |
---|
411 | 408 | struct ib_mr *pvrdma_alloc_mr(struct ib_pd *pd, enum ib_mr_type mr_type, |
---|
412 | 409 | u32 max_num_sg); |
---|
413 | 410 | int pvrdma_map_mr_sg(struct ib_mr *ibmr, struct scatterlist *sg, |
---|
414 | 411 | int sg_nents, unsigned int *sg_offset); |
---|
415 | | -struct ib_cq *pvrdma_create_cq(struct ib_device *ibdev, |
---|
416 | | - const struct ib_cq_init_attr *attr, |
---|
417 | | - struct ib_ucontext *context, |
---|
418 | | - struct ib_udata *udata); |
---|
419 | | -int pvrdma_destroy_cq(struct ib_cq *cq); |
---|
| 412 | +int pvrdma_create_cq(struct ib_cq *ibcq, const struct ib_cq_init_attr *attr, |
---|
| 413 | + struct ib_udata *udata); |
---|
| 414 | +int pvrdma_destroy_cq(struct ib_cq *cq, struct ib_udata *udata); |
---|
420 | 415 | int pvrdma_poll_cq(struct ib_cq *ibcq, int num_entries, struct ib_wc *wc); |
---|
421 | 416 | int pvrdma_req_notify_cq(struct ib_cq *cq, enum ib_cq_notify_flags flags); |
---|
422 | | -struct ib_ah *pvrdma_create_ah(struct ib_pd *pd, struct rdma_ah_attr *ah_attr, |
---|
423 | | - struct ib_udata *udata); |
---|
424 | | -int pvrdma_destroy_ah(struct ib_ah *ah); |
---|
| 417 | +int pvrdma_create_ah(struct ib_ah *ah, struct rdma_ah_init_attr *init_attr, |
---|
| 418 | + struct ib_udata *udata); |
---|
| 419 | +int pvrdma_destroy_ah(struct ib_ah *ah, u32 flags); |
---|
425 | 420 | |
---|
426 | | -struct ib_srq *pvrdma_create_srq(struct ib_pd *pd, |
---|
427 | | - struct ib_srq_init_attr *init_attr, |
---|
428 | | - struct ib_udata *udata); |
---|
| 421 | +int pvrdma_create_srq(struct ib_srq *srq, struct ib_srq_init_attr *init_attr, |
---|
| 422 | + struct ib_udata *udata); |
---|
429 | 423 | int pvrdma_modify_srq(struct ib_srq *ibsrq, struct ib_srq_attr *attr, |
---|
430 | 424 | enum ib_srq_attr_mask attr_mask, struct ib_udata *udata); |
---|
431 | 425 | int pvrdma_query_srq(struct ib_srq *srq, struct ib_srq_attr *srq_attr); |
---|
432 | | -int pvrdma_destroy_srq(struct ib_srq *srq); |
---|
| 426 | +int pvrdma_destroy_srq(struct ib_srq *srq, struct ib_udata *udata); |
---|
433 | 427 | |
---|
434 | 428 | struct ib_qp *pvrdma_create_qp(struct ib_pd *pd, |
---|
435 | 429 | struct ib_qp_init_attr *init_attr, |
---|
.. | .. |
---|
438 | 432 | int attr_mask, struct ib_udata *udata); |
---|
439 | 433 | int pvrdma_query_qp(struct ib_qp *ibqp, struct ib_qp_attr *qp_attr, |
---|
440 | 434 | int qp_attr_mask, struct ib_qp_init_attr *qp_init_attr); |
---|
441 | | -int pvrdma_destroy_qp(struct ib_qp *qp); |
---|
| 435 | +int pvrdma_destroy_qp(struct ib_qp *qp, struct ib_udata *udata); |
---|
442 | 436 | int pvrdma_post_send(struct ib_qp *ibqp, const struct ib_send_wr *wr, |
---|
443 | 437 | const struct ib_send_wr **bad_wr); |
---|
444 | 438 | int pvrdma_post_recv(struct ib_qp *ibqp, const struct ib_recv_wr *wr, |
---|