Lines Matching defs:dmabuf
464 /* This dmabuf was allocated by lpfc_read_sparam. The dmabuf is no
924 struct hbq_dmabuf *dmabuf;
946 dmabuf = container_of(cq_event, struct hbq_dmabuf,
948 lpfc_in_buf_free(phba, &dmabuf->dbuf);
8903 struct lpfc_dmabuf *dmabuf;
8936 dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
8937 if (!dmabuf)
8940 dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev,
8942 &dmabuf->phys, GFP_KERNEL);
8943 if (!dmabuf->virt) {
8948 if (!IS_ALIGNED(dmabuf->phys, LPFC_HDR_TEMPLATE_SIZE)) {
8958 rpi_hdr->dmabuf = dmabuf;
8973 dmabuf->virt, dmabuf->phys);
8975 kfree(dmabuf);
9000 rpi_hdr->dmabuf->virt, rpi_hdr->dmabuf->phys);
9001 kfree(rpi_hdr->dmabuf);
9740 struct lpfc_dmabuf *dmabuf;
9745 dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
9746 if (!dmabuf)
9754 dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev, bmbx_size,
9755 &dmabuf->phys, GFP_KERNEL);
9756 if (!dmabuf->virt) {
9757 kfree(dmabuf);
9768 phba->sli4_hba.bmbx.dmabuf = dmabuf;
9771 phba->sli4_hba.bmbx.avirt = PTR_ALIGN(dmabuf->virt,
9773 phba->sli4_hba.bmbx.aphys = ALIGN(dmabuf->phys,
9812 phba->sli4_hba.bmbx.dmabuf->virt,
9813 phba->sli4_hba.bmbx.dmabuf->phys);
9815 kfree(phba->sli4_hba.bmbx.dmabuf);
14626 struct lpfc_dmabuf *dmabuf, *next;
14650 dmabuf = kzalloc(sizeof(struct lpfc_dmabuf),
14652 if (!dmabuf) {
14656 dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev,
14658 &dmabuf->phys,
14660 if (!dmabuf->virt) {
14661 kfree(dmabuf);
14665 list_add_tail(&dmabuf->list, &dma_buffer_list);
14669 list_for_each_entry(dmabuf, &dma_buffer_list, list) {
14671 memcpy(dmabuf->virt,
14677 memcpy(dmabuf->virt, fw->data + temp_offset,
14701 list_for_each_entry_safe(dmabuf, next, &dma_buffer_list, list) {
14702 list_del(&dmabuf->list);
14704 dmabuf->virt, dmabuf->phys);
14705 kfree(dmabuf);