Lines Matching refs:sgl
130 static void kfree_sgl(MptSge_t *sgl, dma_addr_t sgl_dma,
781 MptSge_t *sgl, *sgIn;
853 * Set the sge_offset to the start of the sgl (bytes).
857 if ((sgl = kbuf_alloc_2_sgl(fwlen, sgdir, sge_offset,
880 dctlprintk(iocp, printk(MYIOC_s_DEBUG_FMT "DbG: sgl buffer = %p, sgfrags = %d\n",
881 iocp->name, sgl, numfrags));
884 * Parse SG list, copying sgl itself,
888 sgIn = sgl;
954 if (sgl)
955 kfree_sgl(sgl, sgl_dma, buflist, iocp);
984 kfree_sgl(sgl, sgl_dma, buflist, iocp);
999 * sglbuf_dma - pointer to the (dma) sgl
1001 * pointer to the (virtual) sgl if successful.
1010 MptSge_t *sgl;
1053 * sgl = sglbuf = point to beginning of sg buffer
1059 sgl = sglbuf;
1081 sgl->FlagsLength = (0x10000000|sgdir|this_alloc);
1085 sgl->Address = dma_addr;
1089 sgl++;
1116 sgl[-1].FlagsLength |= 0xC1000000;
1158 kfree_sgl(MptSge_t *sgl, dma_addr_t sgl_dma, struct buflist *buflist, MPT_ADAPTER *ioc)
1160 MptSge_t *sg = sgl;
1209 dma_free_coherent(&ioc->pcidev->dev, MAX_SGL_BYTES, sgl, sgl_dma);