{
int status = -ENOMEM;
struct ocrdma_modify_qp *cmd;
- struct ocrdma_modify_qp_rsp *rsp;
cmd = ocrdma_init_emb_mqe(OCRDMA_CMD_MODIFY_QP, sizeof(*cmd));
if (!cmd)
status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd);
if (status)
goto mbx_err;
- rsp = (struct ocrdma_modify_qp_rsp *)cmd;
+
mbx_err:
kfree(cmd);
return status;
{
int status = -ENOMEM;
struct ocrdma_destroy_qp *cmd;
- struct ocrdma_destroy_qp_rsp *rsp;
struct pci_dev *pdev = dev->nic_info.pdev;
cmd = ocrdma_init_emb_mqe(OCRDMA_CMD_DELETE_QP, sizeof(*cmd));
status = ocrdma_mbx_cmd(dev, (struct ocrdma_mqe *)cmd);
if (status)
goto mbx_err;
- rsp = (struct ocrdma_destroy_qp_rsp *)cmd;
+
mbx_err:
kfree(cmd);
if (qp->sq.va)
struct ocrdma_dev *dev;
struct ocrdma_mr *mr;
struct ocrdma_pd *pd;
- struct pci_dev *pdev;
u32 num_pbes;
pd = get_ocrdma_pd(ibpd);
dev = pd->dev;
- pdev = dev->nic_info.pdev;
if (acc & IB_ACCESS_REMOTE_WRITE && !(acc & IB_ACCESS_LOCAL_WRITE))
return ERR_PTR(-EINVAL);
{
int status = 0;
struct ocrdma_srq *srq;
- struct ocrdma_dev *dev;
srq = get_ocrdma_srq(ibsrq);
- dev = srq->dev;
if (srq_attr_mask & IB_SRQ_MAX_WR)
status = -EINVAL;
else
{
int status;
struct ocrdma_srq *srq;
- struct ocrdma_dev *dev;
srq = get_ocrdma_srq(ibsrq);
- dev = srq->dev;
status = ocrdma_mbx_query_srq(srq, srq_attr);
return status;
}