aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/dma/ioat/dma_v3.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/dma/ioat/dma_v3.c')
-rw-r--r--drivers/dma/ioat/dma_v3.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/drivers/dma/ioat/dma_v3.c b/drivers/dma/ioat/dma_v3.c
index 26febc56dab1..d1adbf35268c 100644
--- a/drivers/dma/ioat/dma_v3.c
+++ b/drivers/dma/ioat/dma_v3.c
@@ -438,17 +438,17 @@ static void ioat3_timer_event(unsigned long data)
438} 438}
439 439
440static enum dma_status 440static enum dma_status
441ioat3_is_complete(struct dma_chan *c, dma_cookie_t cookie, 441ioat3_tx_status(struct dma_chan *c, dma_cookie_t cookie,
442 dma_cookie_t *done, dma_cookie_t *used) 442 struct dma_tx_state *txstate)
443{ 443{
444 struct ioat2_dma_chan *ioat = to_ioat2_chan(c); 444 struct ioat2_dma_chan *ioat = to_ioat2_chan(c);
445 445
446 if (ioat_is_complete(c, cookie, done, used) == DMA_SUCCESS) 446 if (ioat_tx_status(c, cookie, txstate) == DMA_SUCCESS)
447 return DMA_SUCCESS; 447 return DMA_SUCCESS;
448 448
449 ioat3_cleanup_poll(ioat); 449 ioat3_cleanup_poll(ioat);
450 450
451 return ioat_is_complete(c, cookie, done, used); 451 return ioat_tx_status(c, cookie, txstate);
452} 452}
453 453
454static struct dma_async_tx_descriptor * 454static struct dma_async_tx_descriptor *
@@ -976,7 +976,7 @@ static int __devinit ioat_xor_val_self_test(struct ioatdma_device *device)
976 976
977 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); 977 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000));
978 978
979 if (dma->device_is_tx_complete(dma_chan, cookie, NULL, NULL) != DMA_SUCCESS) { 979 if (dma->device_tx_status(dma_chan, cookie, NULL) != DMA_SUCCESS) {
980 dev_err(dev, "Self-test xor timed out\n"); 980 dev_err(dev, "Self-test xor timed out\n");
981 err = -ENODEV; 981 err = -ENODEV;
982 goto free_resources; 982 goto free_resources;
@@ -1030,7 +1030,7 @@ static int __devinit ioat_xor_val_self_test(struct ioatdma_device *device)
1030 1030
1031 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); 1031 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000));
1032 1032
1033 if (dma->device_is_tx_complete(dma_chan, cookie, NULL, NULL) != DMA_SUCCESS) { 1033 if (dma->device_tx_status(dma_chan, cookie, NULL) != DMA_SUCCESS) {
1034 dev_err(dev, "Self-test validate timed out\n"); 1034 dev_err(dev, "Self-test validate timed out\n");
1035 err = -ENODEV; 1035 err = -ENODEV;
1036 goto free_resources; 1036 goto free_resources;
@@ -1071,7 +1071,7 @@ static int __devinit ioat_xor_val_self_test(struct ioatdma_device *device)
1071 1071
1072 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); 1072 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000));
1073 1073
1074 if (dma->device_is_tx_complete(dma_chan, cookie, NULL, NULL) != DMA_SUCCESS) { 1074 if (dma->device_tx_status(dma_chan, cookie, NULL) != DMA_SUCCESS) {
1075 dev_err(dev, "Self-test memset timed out\n"); 1075 dev_err(dev, "Self-test memset timed out\n");
1076 err = -ENODEV; 1076 err = -ENODEV;
1077 goto free_resources; 1077 goto free_resources;
@@ -1114,7 +1114,7 @@ static int __devinit ioat_xor_val_self_test(struct ioatdma_device *device)
1114 1114
1115 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000)); 1115 tmo = wait_for_completion_timeout(&cmp, msecs_to_jiffies(3000));
1116 1116
1117 if (dma->device_is_tx_complete(dma_chan, cookie, NULL, NULL) != DMA_SUCCESS) { 1117 if (dma->device_tx_status(dma_chan, cookie, NULL) != DMA_SUCCESS) {
1118 dev_err(dev, "Self-test 2nd validate timed out\n"); 1118 dev_err(dev, "Self-test 2nd validate timed out\n");
1119 err = -ENODEV; 1119 err = -ENODEV;
1120 goto free_resources; 1120 goto free_resources;
@@ -1258,11 +1258,11 @@ int __devinit ioat3_dma_probe(struct ioatdma_device *device, int dca)
1258 1258
1259 1259
1260 if (is_raid_device) { 1260 if (is_raid_device) {
1261 dma->device_is_tx_complete = ioat3_is_complete; 1261 dma->device_tx_status = ioat3_tx_status;
1262 device->cleanup_fn = ioat3_cleanup_event; 1262 device->cleanup_fn = ioat3_cleanup_event;
1263 device->timer_fn = ioat3_timer_event; 1263 device->timer_fn = ioat3_timer_event;
1264 } else { 1264 } else {
1265 dma->device_is_tx_complete = ioat_is_dma_complete; 1265 dma->device_tx_status = ioat_dma_tx_status;
1266 device->cleanup_fn = ioat2_cleanup_event; 1266 device->cleanup_fn = ioat2_cleanup_event;
1267 device->timer_fn = ioat2_timer_event; 1267 device->timer_fn = ioat2_timer_event;
1268 } 1268 }