search for: 1a605f408329

Displaying 6 results from an estimated 6 matches for "1a605f408329".

2023 May 10
3
[PATCH] virtio_ring: use u32 for virtio_max_dma_size
...+ if (vring_use_dma_api(vdev)) { + size_t max_dma_size = dma_max_mapping_size(vdev->dev.parent); + + if (max_dma_size < max_segment_size) + max_segment_size = max_dma_size; + } return max_segment_size; } diff --git a/include/linux/virtio.h b/include/linux/virtio.h index b93238db94e3..1a605f408329 100644 --- a/include/linux/virtio.h +++ b/include/linux/virtio.h @@ -147,7 +147,7 @@ int virtio_device_restore(struct virtio_device *dev); #endif void virtio_reset_device(struct virtio_device *dev); -size_t virtio_max_dma_size(const struct virtio_device *vdev); +u32 virtio_max_dma_size(const st...
2023 May 10
2
[PATCH] virtio_ring: use u32 for virtio_max_dma_size
...max_dma_size = dma_max_mapping_size(vdev->dev.parent); > + > + if (max_dma_size < max_segment_size) > + max_segment_size = max_dma_size; > + } > > return max_segment_size; > } > diff --git a/include/linux/virtio.h b/include/linux/virtio.h > index b93238db94e3..1a605f408329 100644 > --- a/include/linux/virtio.h > +++ b/include/linux/virtio.h > @@ -147,7 +147,7 @@ int virtio_device_restore(struct virtio_device *dev); > #endif > void virtio_reset_device(struct virtio_device *dev); > > -size_t virtio_max_dma_size(const struct virtio_device *vdev);...
2023 May 10
1
[PATCH] virtio_ring: use u32 for virtio_max_dma_size
...x_dma_size = dma_max_mapping_size(vdev->dev.parent); > + > + if (max_dma_size < max_segment_size) > + max_segment_size = max_dma_size; > + } > > return max_segment_size; > } > diff --git a/include/linux/virtio.h b/include/linux/virtio.h > index b93238db94e3..1a605f408329 100644 > --- a/include/linux/virtio.h > +++ b/include/linux/virtio.h > @@ -147,7 +147,7 @@ int virtio_device_restore(struct virtio_device *dev); > #endif > void virtio_reset_device(struct virtio_device *dev); > > -size_t virtio_max_dma_size(const struct virtio_device *vdev)...
2023 Jul 04
1
[PATCH] virtio_ring: use u32 for virtio_max_dma_size
...t; return max_segment_size; > } Took a while for me to get this, it's confusing. I think the issue is really in virtio blk, so I would just change max_size there to size_t and be done with it. > diff --git a/include/linux/virtio.h b/include/linux/virtio.h > index b93238db94e3..1a605f408329 100644 > --- a/include/linux/virtio.h > +++ b/include/linux/virtio.h > @@ -147,7 +147,7 @@ int virtio_device_restore(struct virtio_device *dev); > #endif > void virtio_reset_device(struct virtio_device *dev); > > -size_t virtio_max_dma_size(const struct virtio_device *vdev)...
2023 May 10
1
[PATCH] virtio_ring: use u32 for virtio_max_dma_size
...dev.parent); > > + > > + if (max_dma_size < max_segment_size) > > + max_segment_size = max_dma_size; > > + } > > > > return max_segment_size; > > } > > diff --git a/include/linux/virtio.h b/include/linux/virtio.h > > index b93238db94e3..1a605f408329 100644 > > --- a/include/linux/virtio.h > > +++ b/include/linux/virtio.h > > @@ -147,7 +147,7 @@ int virtio_device_restore(struct virtio_device *dev); > > #endif > > void virtio_reset_device(struct virtio_device *dev); > > > > -size_t virtio_max_dma_size(...
2023 May 10
1
[PATCH] virtio_ring: use u32 for virtio_max_dma_size
...< max_segment_size) > > > + max_segment_size = max_dma_size; > > > + } > > > > > > return max_segment_size; > > > } > > > diff --git a/include/linux/virtio.h b/include/linux/virtio.h > > > index b93238db94e3..1a605f408329 100644 > > > --- a/include/linux/virtio.h > > > +++ b/include/linux/virtio.h > > > @@ -147,7 +147,7 @@ int virtio_device_restore(struct virtio_device *dev); > > > #endif > > > void virtio_reset_device(struct virtio_device *dev); > > > > &gt...