Lines Matching refs:dma
168 IODMACommand * dma; in IODMACommandForceDoubleBufferTest() local
201 dma = IODMACommand::withSpecification(kIODMACommandOutputHost64, &segOptions, in IODMACommandForceDoubleBufferTest()
204 assert(dma); in IODMACommandForceDoubleBufferTest()
205 ret = dma->setMemoryDescriptor(bmd, true); in IODMACommandForceDoubleBufferTest()
208 ret = dma->synchronize(IODMACommand::kForceDoubleBuffer | kIODirectionOut); in IODMACommandForceDoubleBufferTest()
213 ret = dma->gen64IOVMSegments(&dmaOffset, &segments[0], &numSegments); in IODMACommandForceDoubleBufferTest()
225 ret = dma->clearMemoryDescriptor(true); in IODMACommandForceDoubleBufferTest()
227 dma->release(); in IODMACommandForceDoubleBufferTest()
252 IODMACommand * dma; in IODMACommandLocalMappedNonContig() local
301 dma = IODMACommand::withSpecification(kIODMACommandOutputHost64, &segOptions, in IODMACommandLocalMappedNonContig()
304 assert(dma); in IODMACommandLocalMappedNonContig()
305 kr = dma->setMemoryDescriptor(md, true); in IODMACommandLocalMappedNonContig()
310 kr = dma->gen64IOVMSegments(&dmaOffset, &segments[0], &numSegments); in IODMACommandLocalMappedNonContig()
315 …ents[0].fIOVMAddr != segPhys, "phys !local 0x%qx, 0x%qx, %p", segments[0].fIOVMAddr, segPhys, dma); in IODMACommandLocalMappedNonContig()
318 kr = dma->clearMemoryDescriptor(true); in IODMACommandLocalMappedNonContig()
320 dma->release(); in IODMACommandLocalMappedNonContig()
343 IODMACommand * dma; in IOMemoryRemoteTest() local
385 dma = IODMACommand::withSpecification(kIODMACommandOutputHost64, &segOptions, in IOMemoryRemoteTest()
388 assert(dma); in IOMemoryRemoteTest()
389 ret = dma->setMemoryDescriptor(md, true); in IOMemoryRemoteTest()
394 ret = dma->gen64IOVMSegments(&dmaOffset, &segments[0], &numSegments); in IOMemoryRemoteTest()
403 ret = dma->clearMemoryDescriptor(true); in IOMemoryRemoteTest()
405 dma->release(); in IOMemoryRemoteTest()
822 IODMACommand * dma; in IOMemoryDescriptorTest()
861 dma = IODMACommand::withSpecification(kIODMACommandOutputHost64, &segOptions, in IOMemoryDescriptorTest()
863 assert(dma); in IOMemoryDescriptorTest()
864 ret = dma->setMemoryDescriptor(md, true); in IOMemoryDescriptorTest()
873 ret = dma->gen64IOVMSegments(&offset, &segments[0], &numSegments); in IOMemoryDescriptorTest()
879 ret = dma->clearMemoryDescriptor(true); in IOMemoryDescriptorTest()
881 dma->release(); in IOMemoryDescriptorTest()
891 IODMACommand * dma; in IOMemoryDescriptorTest()
926 dma = IODMACommand::withSpecification(kIODMACommandOutputHost32, in IOMemoryDescriptorTest()
929 assert(dma); in IOMemoryDescriptorTest()
932 ret = dma->setMemoryDescriptor(md1, true); in IOMemoryDescriptorTest()
945 ret = dma->gen32IOVMSegments(&offset, &segments[0], &numSegments); in IOMemoryDescriptorTest()
950 ret = dma->clearMemoryDescriptor(true); in IOMemoryDescriptorTest()