Lines Matching refs:nsrq

49 	struct nvmet_rdma_srq   *nsrq;  member
93 struct nvmet_rdma_srq *nsrq; member
510 if (cmd->nsrq) in nvmet_rdma_post_recv()
511 ret = ib_post_srq_recv(cmd->nsrq->srq, &cmd->wr, NULL); in nvmet_rdma_post_recv()
1064 static void nvmet_rdma_destroy_srq(struct nvmet_rdma_srq *nsrq) in nvmet_rdma_destroy_srq() argument
1066 nvmet_rdma_free_cmds(nsrq->ndev, nsrq->cmds, nsrq->ndev->srq_size, in nvmet_rdma_destroy_srq()
1068 ib_destroy_srq(nsrq->srq); in nvmet_rdma_destroy_srq()
1070 kfree(nsrq); in nvmet_rdma_destroy_srq()
1091 struct nvmet_rdma_srq *nsrq; in nvmet_rdma_init_srq() local
1095 nsrq = kzalloc(sizeof(*nsrq), GFP_KERNEL); in nvmet_rdma_init_srq()
1096 if (!nsrq) in nvmet_rdma_init_srq()
1109 nsrq->cmds = nvmet_rdma_alloc_cmds(ndev, srq_size, false); in nvmet_rdma_init_srq()
1110 if (IS_ERR(nsrq->cmds)) { in nvmet_rdma_init_srq()
1111 ret = PTR_ERR(nsrq->cmds); in nvmet_rdma_init_srq()
1115 nsrq->srq = srq; in nvmet_rdma_init_srq()
1116 nsrq->ndev = ndev; in nvmet_rdma_init_srq()
1119 nsrq->cmds[i].nsrq = nsrq; in nvmet_rdma_init_srq()
1120 ret = nvmet_rdma_post_recv(ndev, &nsrq->cmds[i]); in nvmet_rdma_init_srq()
1125 return nsrq; in nvmet_rdma_init_srq()
1128 nvmet_rdma_free_cmds(ndev, nsrq->cmds, srq_size, false); in nvmet_rdma_init_srq()
1132 kfree(nsrq); in nvmet_rdma_init_srq()
1293 if (queue->nsrq) { in nvmet_rdma_create_queue_ib()
1294 qp_attr.srq = queue->nsrq->srq; in nvmet_rdma_create_queue_ib()
1317 if (!queue->nsrq) { in nvmet_rdma_create_queue_ib()
1353 if (!queue->nsrq) { in nvmet_rdma_free_queue()
1483 queue->nsrq = ndev->srqs[queue->comp_vector % ndev->srq_count]; in nvmet_rdma_alloc_queue()
1505 if (!queue->nsrq) { in nvmet_rdma_alloc_queue()