File tree Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Expand file tree Collapse file tree 2 files changed +8
-9
lines changed Original file line number Diff line number Diff line change @@ -293,7 +293,7 @@ static int r592_transfer_fifo_dma(struct r592_device *dev)
293
293
294
294
/* TODO: hidden assumption about nenth beeing always 1 */
295
295
sg_count = dma_map_sg (& dev -> pci_dev -> dev , & dev -> req -> sg , 1 , is_write ?
296
- PCI_DMA_TODEVICE : PCI_DMA_FROMDEVICE );
296
+ DMA_TO_DEVICE : DMA_FROM_DEVICE );
297
297
298
298
if (sg_count != 1 || sg_dma_len (& dev -> req -> sg ) < R592_LFIFO_SIZE ) {
299
299
message ("problem in dma_map_sg" );
@@ -310,8 +310,7 @@ static int r592_transfer_fifo_dma(struct r592_device *dev)
310
310
}
311
311
312
312
dma_unmap_sg (& dev -> pci_dev -> dev , & dev -> req -> sg , 1 , is_write ?
313
- PCI_DMA_TODEVICE : PCI_DMA_FROMDEVICE );
314
-
313
+ DMA_TO_DEVICE : DMA_FROM_DEVICE );
315
314
316
315
return dev -> dma_error ;
317
316
}
Original file line number Diff line number Diff line change @@ -279,8 +279,8 @@ static int tifm_ms_issue_cmd(struct tifm_ms *host)
279
279
if (host -> use_dma ) {
280
280
if (1 != tifm_map_sg (sock , & host -> req -> sg , 1 ,
281
281
host -> req -> data_dir == READ
282
- ? PCI_DMA_FROMDEVICE
283
- : PCI_DMA_TODEVICE )) {
282
+ ? DMA_FROM_DEVICE
283
+ : DMA_TO_DEVICE )) {
284
284
host -> req -> error = - ENOMEM ;
285
285
return host -> req -> error ;
286
286
}
@@ -350,8 +350,8 @@ static void tifm_ms_complete_cmd(struct tifm_ms *host)
350
350
if (host -> use_dma ) {
351
351
tifm_unmap_sg (sock , & host -> req -> sg , 1 ,
352
352
host -> req -> data_dir == READ
353
- ? PCI_DMA_FROMDEVICE
354
- : PCI_DMA_TODEVICE );
353
+ ? DMA_FROM_DEVICE
354
+ : DMA_TO_DEVICE );
355
355
}
356
356
357
357
writel ((~TIFM_CTRL_LED ) & readl (sock -> addr + SOCK_CONTROL ),
@@ -607,8 +607,8 @@ static void tifm_ms_remove(struct tifm_dev *sock)
607
607
if (host -> use_dma )
608
608
tifm_unmap_sg (sock , & host -> req -> sg , 1 ,
609
609
host -> req -> data_dir == READ
610
- ? PCI_DMA_TODEVICE
611
- : PCI_DMA_FROMDEVICE );
610
+ ? DMA_TO_DEVICE
611
+ : DMA_FROM_DEVICE );
612
612
host -> req -> error = - ETIME ;
613
613
614
614
do {
You can’t perform that action at this time.
0 commit comments