Home
last modified time | relevance | path

Searched refs:wr_waitp (Results 1 – 7 of 7) sorted by relevance

/Linux-v6.6/drivers/infiniband/hw/cxgb4/
Dmem.c64 struct c4iw_wr_wait *wr_waitp) in _c4iw_write_mem_dma_aligned() argument
73 if (wr_waitp) in _c4iw_write_mem_dma_aligned()
74 c4iw_init_wr_wait(wr_waitp); in _c4iw_write_mem_dma_aligned()
87 (wr_waitp ? FW_WR_COMPL_F : 0)); in _c4iw_write_mem_dma_aligned()
88 req->wr.wr_lo = wr_waitp ? (__force __be64)(unsigned long)wr_waitp : 0L; in _c4iw_write_mem_dma_aligned()
103 if (wr_waitp) in _c4iw_write_mem_dma_aligned()
104 ret = c4iw_ref_send_wait(rdev, skb, wr_waitp, 0, 0, __func__); in _c4iw_write_mem_dma_aligned()
112 struct c4iw_wr_wait *wr_waitp) in _c4iw_write_mem_inline() argument
128 c4iw_init_wr_wait(wr_waitp); in _c4iw_write_mem_inline()
150 req->wr.wr_lo = (__force __be64)(unsigned long)wr_waitp; in _c4iw_write_mem_inline()
[all …]
Diw_cxgb4.h218 static inline void c4iw_put_wr_wait(struct c4iw_wr_wait *wr_waitp) in c4iw_put_wr_wait() argument
220 pr_debug("wr_wait %p ref before put %u\n", wr_waitp, in c4iw_put_wr_wait()
221 kref_read(&wr_waitp->kref)); in c4iw_put_wr_wait()
222 WARN_ON(kref_read(&wr_waitp->kref) == 0); in c4iw_put_wr_wait()
223 kref_put(&wr_waitp->kref, _c4iw_free_wr_wait); in c4iw_put_wr_wait()
226 static inline void c4iw_get_wr_wait(struct c4iw_wr_wait *wr_waitp) in c4iw_get_wr_wait() argument
228 pr_debug("wr_wait %p ref before get %u\n", wr_waitp, in c4iw_get_wr_wait()
229 kref_read(&wr_waitp->kref)); in c4iw_get_wr_wait()
230 WARN_ON(kref_read(&wr_waitp->kref) == 0); in c4iw_get_wr_wait()
231 kref_get(&wr_waitp->kref); in c4iw_get_wr_wait()
[all …]
Dcq.c39 struct c4iw_wr_wait *wr_waitp) in destroy_cq() argument
54 res_wr->cookie = (uintptr_t)wr_waitp; in destroy_cq()
60 c4iw_init_wr_wait(wr_waitp); in destroy_cq()
61 c4iw_ref_send_wait(rdev, skb, wr_waitp, 0, 0, __func__); in destroy_cq()
72 struct c4iw_wr_wait *wr_waitp) in create_cq() argument
132 res_wr->cookie = (uintptr_t)wr_waitp; in create_cq()
154 c4iw_init_wr_wait(wr_waitp); in create_cq()
155 ret = c4iw_ref_send_wait(rdev, skb, wr_waitp, 0, 0, __func__); in create_cq()
992 chp->destroy_skb, chp->wr_waitp); in c4iw_destroy_cq()
993 c4iw_put_wr_wait(chp->wr_waitp); in c4iw_destroy_cq()
[all …]
Dqp.c202 struct c4iw_wr_wait *wr_waitp, in create_qp() argument
322 res_wr->cookie = (uintptr_t)wr_waitp; in create_qp()
381 c4iw_init_wr_wait(wr_waitp); in create_qp()
382 ret = c4iw_ref_send_wait(rdev, skb, wr_waitp, 0, wq->sq.qid, __func__); in create_qp()
1714 wqe->cookie = (uintptr_t)ep->com.wr_waitp; in rdma_fini()
1718 ret = c4iw_ref_send_wait(&rhp->rdev, skb, ep->com.wr_waitp, in rdma_fini()
1779 wqe->cookie = (uintptr_t)qhp->ep->com.wr_waitp; in rdma_init()
1821 ret = c4iw_ref_send_wait(&rhp->rdev, skb, qhp->ep->com.wr_waitp, in rdma_init()
2105 c4iw_put_wr_wait(qhp->wr_waitp); in c4iw_destroy_qp()
2153 qhp->wr_waitp = c4iw_alloc_wr_wait(GFP_KERNEL); in c4iw_create_qp()
[all …]
Ddevice.c1514 struct c4iw_wr_wait *wr_waitp; in _c4iw_free_wr_wait() local
1516 wr_waitp = container_of(kref, struct c4iw_wr_wait, kref); in _c4iw_free_wr_wait()
1517 pr_debug("Free wr_wait %p\n", wr_waitp); in _c4iw_free_wr_wait()
1518 kfree(wr_waitp); in _c4iw_free_wr_wait()
1523 struct c4iw_wr_wait *wr_waitp; in c4iw_alloc_wr_wait() local
1525 wr_waitp = kzalloc(sizeof(*wr_waitp), gfp); in c4iw_alloc_wr_wait()
1526 if (wr_waitp) { in c4iw_alloc_wr_wait()
1527 kref_init(&wr_waitp->kref); in c4iw_alloc_wr_wait()
1528 pr_debug("wr_wait %p\n", wr_waitp); in c4iw_alloc_wr_wait()
1530 return wr_waitp; in c4iw_alloc_wr_wait()
Dcm.c315 epc->wr_waitp = c4iw_alloc_wr_wait(gfp); in alloc_ep()
316 if (!epc->wr_waitp) { in alloc_ep()
323 c4iw_init_wr_wait(epc->wr_waitp); in alloc_ep()
413 c4iw_put_wr_wait(ep->com.wr_waitp); in _c4iw_free_ep()
1940 c4iw_wake_up_noref(ep->com.wr_waitp, -ECONNRESET); in abort_rpl()
2170 c4iw_init_wr_wait(ep->com.wr_waitp); in c4iw_reconnect()
2392 c4iw_wake_up_noref(ep->com.wr_waitp, status2errno(rpl->status)); in pass_open_rpl()
2409 c4iw_wake_up_noref(ep->com.wr_waitp, status2errno(rpl->status)); in close_listsrv_rpl()
2745 c4iw_wake_up_noref(ep->com.wr_waitp, -ECONNRESET); in peer_close()
2750 c4iw_wake_up_noref(ep->com.wr_waitp, -ECONNRESET); in peer_close()
[all …]
/Linux-v6.6/drivers/target/iscsi/cxgbit/
Dcxgbit_cm.c28 static void cxgbit_init_wr_wait(struct cxgbit_wr_wait *wr_waitp) in cxgbit_init_wr_wait() argument
30 wr_waitp->ret = 0; in cxgbit_init_wr_wait()
31 reinit_completion(&wr_waitp->completion); in cxgbit_init_wr_wait()
35 cxgbit_wake_up(struct cxgbit_wr_wait *wr_waitp, const char *func, u8 ret) in cxgbit_wake_up() argument
38 wr_waitp->ret = 0; in cxgbit_wake_up()
40 wr_waitp->ret = -EIO; in cxgbit_wake_up()
42 if (wr_waitp->ret) in cxgbit_wake_up()
45 complete(&wr_waitp->completion); in cxgbit_wake_up()
50 struct cxgbit_wr_wait *wr_waitp, u32 tid, u32 timeout, in cxgbit_wait_for_reply() argument
56 wr_waitp->ret = -EIO; in cxgbit_wait_for_reply()
[all …]