search for: _dma_addr

Displaying 2 results from an estimated 2 matches for "_dma_addr".

Did you mean: dma_addr
2019 Apr 10
0
[RFC PATCH 07/12] virtio/s390: use DMA memory for ccw I/O
...@ -167,6 +170,28 @@ static struct virtio_ccw_device *to_vc_device(struct virtio_device *vdev) > > > return container_of(vdev, struct virtio_ccw_device, vdev); > > > } > > > > > > +#define vc_dma_decl_struct(type, field) \ > > > + dma_addr_t field ## _dma_addr; \ > > > + struct type *field > > > + > > > +static inline void *__vc_dma_alloc(struct virtio_device *vdev, size_t size, > > > + dma_addr_t *dma_handle) > > > +{ > > > + return dma_alloc_coherent(vdev->dev.parent, size, dma_handle, &gt...
2019 Apr 10
0
[RFC PATCH 07/12] virtio/s390: use DMA memory for ccw I/O
...insertions(+), 70 deletions(-) > (...) > @@ -167,6 +170,28 @@ static struct virtio_ccw_device *to_vc_device(struct virtio_device *vdev) > return container_of(vdev, struct virtio_ccw_device, vdev); > } > > +#define vc_dma_decl_struct(type, field) \ > + dma_addr_t field ## _dma_addr; \ > + struct type *field > + > +static inline void *__vc_dma_alloc(struct virtio_device *vdev, size_t size, > + dma_addr_t *dma_handle) > +{ > + return dma_alloc_coherent(vdev->dev.parent, size, dma_handle, > + GFP_DMA | GFP_KERNEL | __GFP_ZERO); > +} > +...