Lines Matching defs:dmabuf

865 	struct hbq_dmabuf *dmabuf;
887 dmabuf = container_of(cq_event, struct hbq_dmabuf,
889 lpfc_in_buf_free(phba, &dmabuf->dbuf);
7498 struct lpfc_dmabuf *dmabuf;
7531 dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
7532 if (!dmabuf)
7535 dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev,
7537 &dmabuf->phys, GFP_KERNEL);
7538 if (!dmabuf->virt) {
7543 if (!IS_ALIGNED(dmabuf->phys, LPFC_HDR_TEMPLATE_SIZE)) {
7553 rpi_hdr->dmabuf = dmabuf;
7568 dmabuf->virt, dmabuf->phys);
7570 kfree(dmabuf);
7595 rpi_hdr->dmabuf->virt, rpi_hdr->dmabuf->phys);
7596 kfree(rpi_hdr->dmabuf);
8307 struct lpfc_dmabuf *dmabuf;
8312 dmabuf = kzalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
8313 if (!dmabuf)
8321 dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev, bmbx_size,
8322 &dmabuf->phys, GFP_KERNEL);
8323 if (!dmabuf->virt) {
8324 kfree(dmabuf);
8335 phba->sli4_hba.bmbx.dmabuf = dmabuf;
8338 phba->sli4_hba.bmbx.avirt = PTR_ALIGN(dmabuf->virt,
8340 phba->sli4_hba.bmbx.aphys = ALIGN(dmabuf->phys,
8379 phba->sli4_hba.bmbx.dmabuf->virt,
8380 phba->sli4_hba.bmbx.dmabuf->phys);
8382 kfree(phba->sli4_hba.bmbx.dmabuf);
12927 struct lpfc_dmabuf *dmabuf, *next;
12951 dmabuf = kzalloc(sizeof(struct lpfc_dmabuf),
12953 if (!dmabuf) {
12957 dmabuf->virt = dma_alloc_coherent(&phba->pcidev->dev,
12959 &dmabuf->phys,
12961 if (!dmabuf->virt) {
12962 kfree(dmabuf);
12966 list_add_tail(&dmabuf->list, &dma_buffer_list);
12970 list_for_each_entry(dmabuf, &dma_buffer_list, list) {
12972 memcpy(dmabuf->virt,
12978 memcpy(dmabuf->virt, fw->data + temp_offset,
13002 list_for_each_entry_safe(dmabuf, next, &dma_buffer_list, list) {
13003 list_del(&dmabuf->list);
13005 dmabuf->virt, dmabuf->phys);
13006 kfree(dmabuf);