static inline void cx18_buf_sync_for_cpu(struct cx18_stream *s,
        struct cx18_buffer *buf)
 {
-       pci_dma_sync_single_for_cpu(s->cx->pci_dev, buf->dma_handle,
+       dma_sync_single_for_cpu(&s->cx->pci_dev->dev, buf->dma_handle,
                                s->buf_size, s->dma);
 }
 
 static inline void cx18_buf_sync_for_device(struct cx18_stream *s,
        struct cx18_buffer *buf)
 {
-       pci_dma_sync_single_for_device(s->cx->pci_dev, buf->dma_handle,
-                               s->buf_size, s->dma);
+       dma_sync_single_for_device(&s->cx->pci_dev->dev, buf->dma_handle,
+                                  s->buf_size, s->dma);
 }
 
 void _cx18_mdl_sync_for_device(struct cx18_stream *s, struct cx18_mdl *mdl);
 
 
 static inline int ivtv_might_use_pio(struct ivtv_stream *s)
 {
-       return s->dma == PCI_DMA_NONE || (SLICED_VBI_PIO && s->type == IVTV_ENC_STREAM_TYPE_VBI);
+       return s->dma == DMA_NONE || (SLICED_VBI_PIO && s->type == IVTV_ENC_STREAM_TYPE_VBI);
 }
 
 static inline int ivtv_use_pio(struct ivtv_stream *s)
 {
        struct ivtv *itv = s->itv;
 
-       return s->dma == PCI_DMA_NONE ||
+       return s->dma == DMA_NONE ||
            (SLICED_VBI_PIO && s->type == IVTV_ENC_STREAM_TYPE_VBI && itv->vbi.sliced_in->service_set);
 }
 
 static inline int ivtv_might_use_dma(struct ivtv_stream *s)
 {
-       return s->dma != PCI_DMA_NONE;
+       return s->dma != DMA_NONE;
 }
 
 static inline int ivtv_use_dma(struct ivtv_stream *s)
 static inline void ivtv_buf_sync_for_cpu(struct ivtv_stream *s, struct ivtv_buffer *buf)
 {
        if (ivtv_use_dma(s))
-               pci_dma_sync_single_for_cpu(s->itv->pdev, buf->dma_handle,
-                               s->buf_size + 256, s->dma);
+               dma_sync_single_for_cpu(&s->itv->pdev->dev, buf->dma_handle,
+                                       s->buf_size + 256, s->dma);
 }
 
 static inline void ivtv_buf_sync_for_device(struct ivtv_stream *s, struct ivtv_buffer *buf)
 {
        if (ivtv_use_dma(s))
-               pci_dma_sync_single_for_device(s->itv->pdev, buf->dma_handle,
-                               s->buf_size + 256, s->dma);
+               dma_sync_single_for_device(&s->itv->pdev->dev,
+                                          buf->dma_handle, s->buf_size + 256,
+                                          s->dma);
 }
 
 int ivtv_buf_copy_from_user(struct ivtv_stream *s, struct ivtv_buffer *buf, const char __user *src, int copybytes);
 static inline void ivtv_stream_sync_for_cpu(struct ivtv_stream *s)
 {
        if (ivtv_use_dma(s))
-               pci_dma_sync_single_for_cpu(s->itv->pdev, s->sg_handle,
-                       sizeof(struct ivtv_sg_element), PCI_DMA_TODEVICE);
+               dma_sync_single_for_cpu(&s->itv->pdev->dev, s->sg_handle,
+                                       sizeof(struct ivtv_sg_element),
+                                       DMA_TO_DEVICE);
 }
 
 static inline void ivtv_stream_sync_for_device(struct ivtv_stream *s)
 {
        if (ivtv_use_dma(s))
-               pci_dma_sync_single_for_device(s->itv->pdev, s->sg_handle,
-                       sizeof(struct ivtv_sg_element), PCI_DMA_TODEVICE);
+               dma_sync_single_for_device(&s->itv->pdev->dev, s->sg_handle,
+                                          sizeof(struct ivtv_sg_element),
+                                          DMA_TO_DEVICE);
 }
 
 #endif
 
 
 static inline void ivtv_udma_sync_for_device(struct ivtv *itv)
 {
-       pci_dma_sync_single_for_device(itv->pdev, itv->udma.SG_handle,
-               sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE);
+       dma_sync_single_for_device(&itv->pdev->dev, itv->udma.SG_handle,
+                                  sizeof(itv->udma.SGarray), DMA_TO_DEVICE);
 }
 
 static inline void ivtv_udma_sync_for_cpu(struct ivtv *itv)
 {
-       pci_dma_sync_single_for_cpu(itv->pdev, itv->udma.SG_handle,
-               sizeof(itv->udma.SGarray), PCI_DMA_TODEVICE);
+       dma_sync_single_for_cpu(&itv->pdev->dev, itv->udma.SG_handle,
+                               sizeof(itv->udma.SGarray), DMA_TO_DEVICE);
 }
 
 #endif