Lines Matching refs:dmabuf
4782 struct lpfc_dmabuf *dmabuf;
4804 dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
4805 if (!dmabuf)
4808 dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev,
4810 &dmabuf->phys,
4812 if (!dmabuf->virt) {
4817 memset(dmabuf->virt, 0, LPFC_HDR_TEMPLATE_SIZE);
4818 if (!IS_ALIGNED(dmabuf->phys, LPFC_HDR_TEMPLATE_SIZE)) {
4828 rpi_hdr->dmabuf = dmabuf;
4845 dmabuf->virt, dmabuf->phys);
4847 kfree(dmabuf);
4869 rpi_hdr->dmabuf->virt, rpi_hdr->dmabuf->phys);
4870 kfree(rpi_hdr->dmabuf);
5428 struct lpfc_dmabuf *dmabuf;
5433 dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
5434 if (!dmabuf)
5442 dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev,
5444 &dmabuf->phys,
5446 if (!dmabuf->virt) {
5447 kfree(dmabuf);
5450 memset(dmabuf->virt, 0, bmbx_size);
5459 phba->sli4_hba.bmbx.dmabuf = dmabuf;
5462 phba->sli4_hba.bmbx.avirt = PTR_ALIGN(dmabuf->virt,
5464 phba->sli4_hba.bmbx.aphys = ALIGN(dmabuf->phys,
5503 phba->sli4_hba.bmbx.dmabuf->virt,
5504 phba->sli4_hba.bmbx.dmabuf->phys);
5506 kfree(phba->sli4_hba.bmbx.dmabuf);