Lines Matching refs:sbuf

97 	struct bnxt_qplib_rcfw_sbuf sbuf;  in bnxt_qplib_get_dev_attr()  local
109 sbuf.size = ALIGN(sizeof(*sb), BNXT_QPLIB_CMDQE_UNITS); in bnxt_qplib_get_dev_attr()
110 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_dev_attr()
111 &sbuf.dma_addr, GFP_KERNEL); in bnxt_qplib_get_dev_attr()
112 if (!sbuf.sb) in bnxt_qplib_get_dev_attr()
114 sb = sbuf.sb; in bnxt_qplib_get_dev_attr()
115 req.resp_size = sbuf.size / BNXT_QPLIB_CMDQE_UNITS; in bnxt_qplib_get_dev_attr()
116 bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, &sbuf, sizeof(req), in bnxt_qplib_get_dev_attr()
195 dma_free_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_dev_attr()
196 sbuf.sb, sbuf.dma_addr); in bnxt_qplib_get_dev_attr()
739 struct bnxt_qplib_rcfw_sbuf sbuf; in bnxt_qplib_get_roce_stats() local
746 sbuf.size = ALIGN(sizeof(*sb), BNXT_QPLIB_CMDQE_UNITS); in bnxt_qplib_get_roce_stats()
747 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_roce_stats()
748 &sbuf.dma_addr, GFP_KERNEL); in bnxt_qplib_get_roce_stats()
749 if (!sbuf.sb) in bnxt_qplib_get_roce_stats()
751 sb = sbuf.sb; in bnxt_qplib_get_roce_stats()
753 req.resp_size = sbuf.size / BNXT_QPLIB_CMDQE_UNITS; in bnxt_qplib_get_roce_stats()
754 bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, &sbuf, sizeof(req), in bnxt_qplib_get_roce_stats()
810 dma_free_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_get_roce_stats()
811 sbuf.sb, sbuf.dma_addr); in bnxt_qplib_get_roce_stats()
822 struct bnxt_qplib_rcfw_sbuf sbuf; in bnxt_qplib_qext_stat() local
825 sbuf.size = ALIGN(sizeof(*sb), BNXT_QPLIB_CMDQE_UNITS); in bnxt_qplib_qext_stat()
826 sbuf.sb = dma_alloc_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_qext_stat()
827 &sbuf.dma_addr, GFP_KERNEL); in bnxt_qplib_qext_stat()
828 if (!sbuf.sb) in bnxt_qplib_qext_stat()
831 sb = sbuf.sb; in bnxt_qplib_qext_stat()
836 req.resp_size = sbuf.size / BNXT_QPLIB_CMDQE_UNITS; in bnxt_qplib_qext_stat()
837 req.resp_addr = cpu_to_le64(sbuf.dma_addr); in bnxt_qplib_qext_stat()
841 bnxt_qplib_fill_cmdqmsg(&msg, &req, &resp, &sbuf, sizeof(req), in bnxt_qplib_qext_stat()
870 dma_free_coherent(&rcfw->pdev->dev, sbuf.size, in bnxt_qplib_qext_stat()
871 sbuf.sb, sbuf.dma_addr); in bnxt_qplib_qext_stat()