Lines Matching refs:dmabuf
570 * dmabuf, context3 holds the data dmabuf
787 struct lpfc_dmabuf *dmabuf = NULL;
816 dmabuf = bdeBuf1;
820 dmabuf = lpfc_sli_ringpostbuf_get(phba, pring, dma_addr);
822 if (dmabuf == NULL)
824 ct_req = (struct lpfc_sli_ct_request *)dmabuf->virt;
829 lpfc_sli_ringpostbuf_put(phba, pring, dmabuf);
887 dmabuf = bdeBuf1;
893 dmabuf = bdeBuf2;
903 dmabuf = lpfc_sli_ringpostbuf_get(phba,
906 if (!dmabuf) {
908 LOG_LIBDFC, "2616 No dmabuf "
921 dmabuf->virt, size);
927 dmabuf);
933 dmabuf);
942 dmabuf);
1729 struct lpfc_dmabuf *dmabuf;
1750 dmabuf = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL);
1751 if (dmabuf) {
1752 dmabuf->virt = lpfc_mbuf_alloc(phba, 0, &dmabuf->phys);
1753 if (dmabuf->virt) {
1754 INIT_LIST_HEAD(&dmabuf->list);
1755 bpl = (struct ulp_bde64 *) dmabuf->virt;
1759 le32_to_cpu(putPaddrHigh(dmabuf->phys +
1762 le32_to_cpu(putPaddrLow(dmabuf->phys +
1771 dmabuf == NULL || bpl == NULL || ctreq == NULL ||
1772 dmabuf->virt == NULL) {
1790 cmd->un.xseq64.bdl.addrHigh = putPaddrHigh(dmabuf->phys);
1791 cmd->un.xseq64.bdl.addrLow = putPaddrLow(dmabuf->phys);
1842 if (dmabuf) {
1843 if (dmabuf->virt)
1844 lpfc_mbuf_free(phba, dmabuf->virt, dmabuf->phys);
1845 kfree(dmabuf);