Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 4275
b: refs/heads/master
c: b5e81bf
h: refs/heads/master
i:
  4273: c977d4f
  4271: 4bb8fb7
v: v3
  • Loading branch information
Roland Dreier authored and Linus Torvalds committed Jul 8, 2005
1 parent 3d46a1e commit 0a65e34
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: e2773c062e41f710d8ef1e8a790c7e558aff663d
refs/heads/master: b5e81bf5e7084796d93167f438ec073e59aca9ed
32 changes: 20 additions & 12 deletions trunk/drivers/infiniband/core/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
* Copyright (c) 2004 Intel Corporation. All rights reserved.
* Copyright (c) 2004 Topspin Corporation. All rights reserved.
* Copyright (c) 2004 Voltaire Corporation. All rights reserved.
* Copyright (c) 2005 Cisco Systems. All rights reserved.
*
* This software is available to you under a choice of one of two
* licenses. You may choose to be licensed under the terms of the GNU
Expand Down Expand Up @@ -47,10 +48,11 @@ struct ib_pd *ib_alloc_pd(struct ib_device *device)
{
struct ib_pd *pd;

pd = device->alloc_pd(device);
pd = device->alloc_pd(device, NULL, NULL);

if (!IS_ERR(pd)) {
pd->device = device;
pd->device = device;
pd->uobject = NULL;
atomic_set(&pd->usecnt, 0);
}

Expand All @@ -76,8 +78,9 @@ struct ib_ah *ib_create_ah(struct ib_pd *pd, struct ib_ah_attr *ah_attr)
ah = pd->device->create_ah(pd, ah_attr);

if (!IS_ERR(ah)) {
ah->device = pd->device;
ah->pd = pd;
ah->device = pd->device;
ah->pd = pd;
ah->uobject = NULL;
atomic_inc(&pd->usecnt);
}

Expand Down Expand Up @@ -122,14 +125,15 @@ struct ib_qp *ib_create_qp(struct ib_pd *pd,
{
struct ib_qp *qp;

qp = pd->device->create_qp(pd, qp_init_attr);
qp = pd->device->create_qp(pd, qp_init_attr, NULL);

if (!IS_ERR(qp)) {
qp->device = pd->device;
qp->pd = pd;
qp->send_cq = qp_init_attr->send_cq;
qp->recv_cq = qp_init_attr->recv_cq;
qp->srq = qp_init_attr->srq;
qp->uobject = NULL;
qp->event_handler = qp_init_attr->event_handler;
qp->qp_context = qp_init_attr->qp_context;
qp->qp_type = qp_init_attr->qp_type;
Expand Down Expand Up @@ -197,10 +201,11 @@ struct ib_cq *ib_create_cq(struct ib_device *device,
{
struct ib_cq *cq;

cq = device->create_cq(device, cqe);
cq = device->create_cq(device, cqe, NULL, NULL);

if (!IS_ERR(cq)) {
cq->device = device;
cq->uobject = NULL;
cq->comp_handler = comp_handler;
cq->event_handler = event_handler;
cq->cq_context = cq_context;
Expand Down Expand Up @@ -245,8 +250,9 @@ struct ib_mr *ib_get_dma_mr(struct ib_pd *pd, int mr_access_flags)
mr = pd->device->get_dma_mr(pd, mr_access_flags);

if (!IS_ERR(mr)) {
mr->device = pd->device;
mr->pd = pd;
mr->device = pd->device;
mr->pd = pd;
mr->uobject = NULL;
atomic_inc(&pd->usecnt);
atomic_set(&mr->usecnt, 0);
}
Expand All @@ -267,8 +273,9 @@ struct ib_mr *ib_reg_phys_mr(struct ib_pd *pd,
mr_access_flags, iova_start);

if (!IS_ERR(mr)) {
mr->device = pd->device;
mr->pd = pd;
mr->device = pd->device;
mr->pd = pd;
mr->uobject = NULL;
atomic_inc(&pd->usecnt);
atomic_set(&mr->usecnt, 0);
}
Expand Down Expand Up @@ -344,8 +351,9 @@ struct ib_mw *ib_alloc_mw(struct ib_pd *pd)

mw = pd->device->alloc_mw(pd);
if (!IS_ERR(mw)) {
mw->device = pd->device;
mw->pd = pd;
mw->device = pd->device;
mw->pd = pd;
mw->uobject = NULL;
atomic_inc(&pd->usecnt);
}

Expand Down

0 comments on commit 0a65e34

Please sign in to comment.