Lines Matching refs:dma
35 #include <linux/dma-mapping.h>
38 #include "dma.h"
355 struct dma_device *dma = &device->common;
359 INIT_LIST_HEAD(&dma->channels);
360 dma->chancnt = readb(device->reg_base + IOAT_CHANCNT_OFFSET);
361 dma->chancnt &= 0x1f; /* bits [4:0] valid */
362 if (dma->chancnt > ARRAY_SIZE(device->idx)) {
364 dma->chancnt, ARRAY_SIZE(device->idx));
365 dma->chancnt = ARRAY_SIZE(device->idx);
375 dma->chancnt--;
377 for (i = 0; i < dma->chancnt; i++) {
390 dma->chancnt = i;
413 * publishing the descriptor updates to a dma device
429 struct ioatdma_device *dma;
432 dma = to_ioatdma_device(chan->device);
433 hw = pci_pool_alloc(dma->dma_pool, flags, &phys);
440 pci_pool_free(dma->dma_pool, hw, phys);
454 struct ioatdma_device *dma;
456 dma = to_ioatdma_device(chan->device);
457 pci_pool_free(dma->dma_pool, desc->hw, desc->txd.phys);
866 struct dma_device *dma;
876 dma = &device->common;
877 dma->device_prep_dma_memcpy = ioat2_dma_prep_memcpy_lock;
878 dma->device_issue_pending = ioat2_issue_pending;
879 dma->device_alloc_chan_resources = ioat2_alloc_chan_resources;
880 dma->device_free_chan_resources = ioat2_free_chan_resources;
881 dma->device_tx_status = ioat_dma_tx_status;
888 list_for_each_entry(c, &dma->channels, device_node) {