• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/dma/ioat/

Lines Matching refs:dma

35 #include <linux/dma-mapping.h>
38 #include "dma.h"
101 struct dma_device *dma = &device->common;
108 chan->common.device = dma;
109 list_add_tail(&chan->common.device_node, &dma->channels);
129 struct dma_device *dma = &device->common;
131 INIT_LIST_HEAD(&dma->channels);
132 dma->chancnt = readb(device->reg_base + IOAT_CHANCNT_OFFSET);
133 dma->chancnt &= 0x1f; /* bits [4:0] valid */
134 if (dma->chancnt > ARRAY_SIZE(device->idx)) {
136 dma->chancnt, ARRAY_SIZE(device->idx));
137 dma->chancnt = ARRAY_SIZE(device->idx);
146 dma->chancnt--;
148 for (i = 0; i < dma->chancnt; i++) {
159 dma->chancnt = i;
359 ioat1_dma_start_null_desc(ioat); /* give chain to dma device */
801 struct dma_device *dma = &device->common;
826 dma_chan = container_of(dma->channels.next, struct dma_chan,
828 if (dma->device_alloc_chan_resources(dma_chan) < 1) {
856 dma->device_issue_pending(dma_chan);
861 dma->device_tx_status(dma_chan, cookie, NULL)
874 dma->device_free_chan_resources(dma_chan);
1000 struct dma_device *dma = &device->common;
1024 dma_cap_set(DMA_MEMCPY, dma->cap_mask);
1025 dma->dev = &pdev->dev;
1027 if (!dma->chancnt) {
1065 /* ioat1_intr_quirk - fix up dma ctrl register to enable / disable msi */
1097 struct dma_device *dma = c->device;
1100 dma_has_cap(DMA_PQ, dma->cap_mask) ? " pq" : "",
1101 dma_has_cap(DMA_PQ_VAL, dma->cap_mask) ? " pq_val" : "",
1102 dma_has_cap(DMA_XOR, dma->cap_mask) ? " xor" : "",
1103 dma_has_cap(DMA_XOR_VAL, dma->cap_mask) ? " xor_val" : "",
1104 dma_has_cap(DMA_MEMSET, dma->cap_mask) ? " fill" : "",
1105 dma_has_cap(DMA_INTERRUPT, dma->cap_mask) ? " intr" : "");
1112 struct dma_device *dma = c->device;
1113 struct ioatdma_device *device = to_ioatdma_device(dma);
1153 struct dma_device *dma = &device->common;
1156 list_for_each_entry(c, &dma->channels, device_node) {
1173 struct dma_device *dma = &device->common;
1176 list_for_each_entry(c, &dma->channels, device_node) {
1189 struct dma_device *dma;
1197 dma = &device->common;
1198 dma->device_prep_dma_memcpy = ioat1_dma_prep_memcpy;
1199 dma->device_issue_pending = ioat1_dma_memcpy_issue_pending;
1200 dma->device_alloc_chan_resources = ioat1_dma_alloc_chan_resources;
1201 dma->device_free_chan_resources = ioat1_dma_free_chan_resources;
1202 dma->device_tx_status = ioat_dma_tx_status;
1221 struct dma_device *dma = &device->common;
1227 dma_async_device_unregister(dma);
1232 INIT_LIST_HEAD(&dma->channels);