Lines Matching refs:dma
138 struct lpfc_dmabuf dma;
740 * diag_cmd_data_free - Frees an lpfc dma buffer extension
742 * @mlist: Pointer to an lpfc dma buffer extension.
757 list_add_tail(&head, &mlist->dma.list);
760 mlast = list_entry(curr, struct lpfc_dmabufext , dma.list);
761 if (mlast->dma.virt)
764 mlast->dma.virt,
765 mlast->dma.phys);
1276 * @bmp: Pointer to a dma buffer descriptor.
1856 * diag_cmd_data_alloc - fills in a bde struct with dma buffers
1890 INIT_LIST_HEAD(&dmp->dma.list);
1894 list_add_tail(&dmp->dma.list, &mlist->dma.list);
1899 dmp->dma.virt = dma_alloc_coherent(&pcidev->dev,
1901 &(dmp->dma.phys),
1904 if (!dmp->dma.virt)
1912 dmp->dma.phys, LPFC_BPL_SIZE, PCI_DMA_TODEVICE);
1915 memset((uint8_t *)dmp->dma.virt, 0, cnt);
1920 bpl->addrLow = le32_to_cpu(putPaddrLow(dmp->dma.phys));
1921 bpl->addrHigh = le32_to_cpu(putPaddrHigh(dmp->dma.phys));
1982 dmp = &rxbuffer->dma;
2244 list_add_tail(&head, &txbuffer->dma.list);
2462 dmp->dma.virt;
2468 from = (uint8_t *)dd_data->context_un.mbox.dmp->dma.
2475 mbox.dmp->dma.virt;
2506 dd_data->context_un.mbox.dmp->dma.virt,
2507 dd_data->context_un.mbox.dmp->dma.phys);
2769 INIT_LIST_HEAD(&dmp->dma.list);
2771 putPaddrHigh(dmp->dma.phys);
2773 putPaddrLow(dmp->dma.phys);
2776 putPaddrHigh(dmp->dma.phys +
2780 putPaddrLow(dmp->dma.phys +
2787 memcpy((uint8_t *)dmp->dma.virt, from, transmit_length);
2828 INIT_LIST_HEAD(&dmp->dma.list);
2829 pmb->un.varWords[3] = putPaddrLow(dmp->dma.phys);
2830 pmb->un.varWords[4] = putPaddrHigh(dmp->dma.phys);
2868 INIT_LIST_HEAD(&dmp->dma.list);
2869 pmb->un.varWords[3] = putPaddrLow(dmp->dma.phys);
2870 pmb->un.varWords[4] = putPaddrHigh(dmp->dma.phys);
2903 INIT_LIST_HEAD(&dmp->dma.list);
2904 bde->addrHigh = putPaddrHigh(dmp->dma.phys);
2905 bde->addrLow = putPaddrLow(dmp->dma.phys);
2912 memcpy((uint8_t *)dmp->dma.virt, from,
2966 dmp->size, dmp->dma.virt,
2967 dmp->dma.phys);