Commit 6b146270 authored by Dave Airlie's avatar Dave Airlie

Merge tag 'drm-misc-next-fixes-2017-04-20' of...

Merge tag 'drm-misc-next-fixes-2017-04-20' of git://anongit.freedesktop.org/git/drm-misc into drm-next

drm-misc-next-fixes-2017-04-20

Core changes:
- Maintain sti via drm-misc (Vincent)
- Rename dma_buf_ops->kmap_* to avoid naming collision (Logan)

Driver changes:
- Fix UHD displays on stih407 (Vincent)
- Fix uninitialized var return in atmel-hlcdc (Dan)

* tag 'drm-misc-next-fixes-2017-04-20' of git://anongit.freedesktop.org/git/drm-misc:
  dma-buf: Rename dma-ops to prevent conflict with kunmap_atomic macro
  drm: atmel-hlcdc: Uninitialized return in atmel_hlcdc_create_outputs()
  drm/sti: fix GDP size to support up to UHD resolution
  MAINTAINERS: add drm/sti driver into drm-misc
parents cb2e77c1 f9b67f00
...@@ -4418,7 +4418,7 @@ DRM DRIVERS FOR STI ...@@ -4418,7 +4418,7 @@ DRM DRIVERS FOR STI
M: Benjamin Gaignard <benjamin.gaignard@linaro.org> M: Benjamin Gaignard <benjamin.gaignard@linaro.org>
M: Vincent Abriou <vincent.abriou@st.com> M: Vincent Abriou <vincent.abriou@st.com>
L: dri-devel@lists.freedesktop.org L: dri-devel@lists.freedesktop.org
T: git http://git.linaro.org/people/benjamin.gaignard/kernel.git T: git git://anongit.freedesktop.org/drm/drm-misc
S: Maintained S: Maintained
F: drivers/gpu/drm/sti F: drivers/gpu/drm/sti
F: Documentation/devicetree/bindings/display/st,stih4xx.txt F: Documentation/devicetree/bindings/display/st,stih4xx.txt
......
...@@ -405,8 +405,8 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info) ...@@ -405,8 +405,8 @@ struct dma_buf *dma_buf_export(const struct dma_buf_export_info *exp_info)
|| !exp_info->ops->map_dma_buf || !exp_info->ops->map_dma_buf
|| !exp_info->ops->unmap_dma_buf || !exp_info->ops->unmap_dma_buf
|| !exp_info->ops->release || !exp_info->ops->release
|| !exp_info->ops->kmap_atomic || !exp_info->ops->map_atomic
|| !exp_info->ops->kmap || !exp_info->ops->map
|| !exp_info->ops->mmap)) { || !exp_info->ops->mmap)) {
return ERR_PTR(-EINVAL); return ERR_PTR(-EINVAL);
} }
...@@ -872,7 +872,7 @@ void *dma_buf_kmap_atomic(struct dma_buf *dmabuf, unsigned long page_num) ...@@ -872,7 +872,7 @@ void *dma_buf_kmap_atomic(struct dma_buf *dmabuf, unsigned long page_num)
{ {
WARN_ON(!dmabuf); WARN_ON(!dmabuf);
return dmabuf->ops->kmap_atomic(dmabuf, page_num); return dmabuf->ops->map_atomic(dmabuf, page_num);
} }
EXPORT_SYMBOL_GPL(dma_buf_kmap_atomic); EXPORT_SYMBOL_GPL(dma_buf_kmap_atomic);
...@@ -889,8 +889,8 @@ void dma_buf_kunmap_atomic(struct dma_buf *dmabuf, unsigned long page_num, ...@@ -889,8 +889,8 @@ void dma_buf_kunmap_atomic(struct dma_buf *dmabuf, unsigned long page_num,
{ {
WARN_ON(!dmabuf); WARN_ON(!dmabuf);
if (dmabuf->ops->kunmap_atomic) if (dmabuf->ops->unmap_atomic)
dmabuf->ops->kunmap_atomic(dmabuf, page_num, vaddr); dmabuf->ops->unmap_atomic(dmabuf, page_num, vaddr);
} }
EXPORT_SYMBOL_GPL(dma_buf_kunmap_atomic); EXPORT_SYMBOL_GPL(dma_buf_kunmap_atomic);
...@@ -907,7 +907,7 @@ void *dma_buf_kmap(struct dma_buf *dmabuf, unsigned long page_num) ...@@ -907,7 +907,7 @@ void *dma_buf_kmap(struct dma_buf *dmabuf, unsigned long page_num)
{ {
WARN_ON(!dmabuf); WARN_ON(!dmabuf);
return dmabuf->ops->kmap(dmabuf, page_num); return dmabuf->ops->map(dmabuf, page_num);
} }
EXPORT_SYMBOL_GPL(dma_buf_kmap); EXPORT_SYMBOL_GPL(dma_buf_kmap);
...@@ -924,8 +924,8 @@ void dma_buf_kunmap(struct dma_buf *dmabuf, unsigned long page_num, ...@@ -924,8 +924,8 @@ void dma_buf_kunmap(struct dma_buf *dmabuf, unsigned long page_num,
{ {
WARN_ON(!dmabuf); WARN_ON(!dmabuf);
if (dmabuf->ops->kunmap) if (dmabuf->ops->unmap)
dmabuf->ops->kunmap(dmabuf, page_num, vaddr); dmabuf->ops->unmap(dmabuf, page_num, vaddr);
} }
EXPORT_SYMBOL_GPL(dma_buf_kunmap); EXPORT_SYMBOL_GPL(dma_buf_kunmap);
......
...@@ -529,10 +529,10 @@ static const struct dma_buf_ops armada_gem_prime_dmabuf_ops = { ...@@ -529,10 +529,10 @@ static const struct dma_buf_ops armada_gem_prime_dmabuf_ops = {
.map_dma_buf = armada_gem_prime_map_dma_buf, .map_dma_buf = armada_gem_prime_map_dma_buf,
.unmap_dma_buf = armada_gem_prime_unmap_dma_buf, .unmap_dma_buf = armada_gem_prime_unmap_dma_buf,
.release = drm_gem_dmabuf_release, .release = drm_gem_dmabuf_release,
.kmap_atomic = armada_gem_dmabuf_no_kmap, .map_atomic = armada_gem_dmabuf_no_kmap,
.kunmap_atomic = armada_gem_dmabuf_no_kunmap, .unmap_atomic = armada_gem_dmabuf_no_kunmap,
.kmap = armada_gem_dmabuf_no_kmap, .map = armada_gem_dmabuf_no_kmap,
.kunmap = armada_gem_dmabuf_no_kunmap, .unmap = armada_gem_dmabuf_no_kunmap,
.mmap = armada_gem_dmabuf_mmap, .mmap = armada_gem_dmabuf_mmap,
}; };
......
...@@ -221,7 +221,8 @@ static int atmel_hlcdc_attach_endpoint(struct drm_device *dev, ...@@ -221,7 +221,8 @@ static int atmel_hlcdc_attach_endpoint(struct drm_device *dev,
int atmel_hlcdc_create_outputs(struct drm_device *dev) int atmel_hlcdc_create_outputs(struct drm_device *dev)
{ {
struct device_node *remote; struct device_node *remote;
int ret, endpoint = 0; int ret = -ENODEV;
int endpoint = 0;
while (true) { while (true) {
/* Loop thru possible multiple connections to the output */ /* Loop thru possible multiple connections to the output */
...@@ -236,7 +237,5 @@ int atmel_hlcdc_create_outputs(struct drm_device *dev) ...@@ -236,7 +237,5 @@ int atmel_hlcdc_create_outputs(struct drm_device *dev)
return ret; return ret;
} }
if (!endpoint)
return -ENODEV;
return ret; return ret;
} }
...@@ -403,10 +403,10 @@ static const struct dma_buf_ops drm_gem_prime_dmabuf_ops = { ...@@ -403,10 +403,10 @@ static const struct dma_buf_ops drm_gem_prime_dmabuf_ops = {
.map_dma_buf = drm_gem_map_dma_buf, .map_dma_buf = drm_gem_map_dma_buf,
.unmap_dma_buf = drm_gem_unmap_dma_buf, .unmap_dma_buf = drm_gem_unmap_dma_buf,
.release = drm_gem_dmabuf_release, .release = drm_gem_dmabuf_release,
.kmap = drm_gem_dmabuf_kmap, .map = drm_gem_dmabuf_kmap,
.kmap_atomic = drm_gem_dmabuf_kmap_atomic, .map_atomic = drm_gem_dmabuf_kmap_atomic,
.kunmap = drm_gem_dmabuf_kunmap, .unmap = drm_gem_dmabuf_kunmap,
.kunmap_atomic = drm_gem_dmabuf_kunmap_atomic, .unmap_atomic = drm_gem_dmabuf_kunmap_atomic,
.mmap = drm_gem_dmabuf_mmap, .mmap = drm_gem_dmabuf_mmap,
.vmap = drm_gem_dmabuf_vmap, .vmap = drm_gem_dmabuf_vmap,
.vunmap = drm_gem_dmabuf_vunmap, .vunmap = drm_gem_dmabuf_vunmap,
......
...@@ -200,10 +200,10 @@ static const struct dma_buf_ops i915_dmabuf_ops = { ...@@ -200,10 +200,10 @@ static const struct dma_buf_ops i915_dmabuf_ops = {
.map_dma_buf = i915_gem_map_dma_buf, .map_dma_buf = i915_gem_map_dma_buf,
.unmap_dma_buf = i915_gem_unmap_dma_buf, .unmap_dma_buf = i915_gem_unmap_dma_buf,
.release = drm_gem_dmabuf_release, .release = drm_gem_dmabuf_release,
.kmap = i915_gem_dmabuf_kmap, .map = i915_gem_dmabuf_kmap,
.kmap_atomic = i915_gem_dmabuf_kmap_atomic, .map_atomic = i915_gem_dmabuf_kmap_atomic,
.kunmap = i915_gem_dmabuf_kunmap, .unmap = i915_gem_dmabuf_kunmap,
.kunmap_atomic = i915_gem_dmabuf_kunmap_atomic, .unmap_atomic = i915_gem_dmabuf_kunmap_atomic,
.mmap = i915_gem_dmabuf_mmap, .mmap = i915_gem_dmabuf_mmap,
.vmap = i915_gem_dmabuf_vmap, .vmap = i915_gem_dmabuf_vmap,
.vunmap = i915_gem_dmabuf_vunmap, .vunmap = i915_gem_dmabuf_vunmap,
......
...@@ -129,10 +129,10 @@ static const struct dma_buf_ops mock_dmabuf_ops = { ...@@ -129,10 +129,10 @@ static const struct dma_buf_ops mock_dmabuf_ops = {
.map_dma_buf = mock_map_dma_buf, .map_dma_buf = mock_map_dma_buf,
.unmap_dma_buf = mock_unmap_dma_buf, .unmap_dma_buf = mock_unmap_dma_buf,
.release = mock_dmabuf_release, .release = mock_dmabuf_release,
.kmap = mock_dmabuf_kmap, .map = mock_dmabuf_kmap,
.kmap_atomic = mock_dmabuf_kmap_atomic, .map_atomic = mock_dmabuf_kmap_atomic,
.kunmap = mock_dmabuf_kunmap, .unmap = mock_dmabuf_kunmap,
.kunmap_atomic = mock_dmabuf_kunmap_atomic, .unmap_atomic = mock_dmabuf_kunmap_atomic,
.mmap = mock_dmabuf_mmap, .mmap = mock_dmabuf_mmap,
.vmap = mock_dmabuf_vmap, .vmap = mock_dmabuf_vmap,
.vunmap = mock_dmabuf_vunmap, .vunmap = mock_dmabuf_vunmap,
......
...@@ -160,10 +160,10 @@ static struct dma_buf_ops omap_dmabuf_ops = { ...@@ -160,10 +160,10 @@ static struct dma_buf_ops omap_dmabuf_ops = {
.release = omap_gem_dmabuf_release, .release = omap_gem_dmabuf_release,
.begin_cpu_access = omap_gem_dmabuf_begin_cpu_access, .begin_cpu_access = omap_gem_dmabuf_begin_cpu_access,
.end_cpu_access = omap_gem_dmabuf_end_cpu_access, .end_cpu_access = omap_gem_dmabuf_end_cpu_access,
.kmap_atomic = omap_gem_dmabuf_kmap_atomic, .map_atomic = omap_gem_dmabuf_kmap_atomic,
.kunmap_atomic = omap_gem_dmabuf_kunmap_atomic, .unmap_atomic = omap_gem_dmabuf_kunmap_atomic,
.kmap = omap_gem_dmabuf_kmap, .map = omap_gem_dmabuf_kmap,
.kunmap = omap_gem_dmabuf_kunmap, .unmap = omap_gem_dmabuf_kunmap,
.mmap = omap_gem_dmabuf_mmap, .mmap = omap_gem_dmabuf_mmap,
}; };
......
...@@ -66,7 +66,9 @@ static struct gdp_format_to_str { ...@@ -66,7 +66,9 @@ static struct gdp_format_to_str {
#define GAM_GDP_ALPHARANGE_255 BIT(5) #define GAM_GDP_ALPHARANGE_255 BIT(5)
#define GAM_GDP_AGC_FULL_RANGE 0x00808080 #define GAM_GDP_AGC_FULL_RANGE 0x00808080
#define GAM_GDP_PPT_IGNORE (BIT(1) | BIT(0)) #define GAM_GDP_PPT_IGNORE (BIT(1) | BIT(0))
#define GAM_GDP_SIZE_MAX 0x7FF
#define GAM_GDP_SIZE_MAX_WIDTH 3840
#define GAM_GDP_SIZE_MAX_HEIGHT 2160
#define GDP_NODE_NB_BANK 2 #define GDP_NODE_NB_BANK 2
#define GDP_NODE_PER_FIELD 2 #define GDP_NODE_PER_FIELD 2
...@@ -632,8 +634,8 @@ static int sti_gdp_atomic_check(struct drm_plane *drm_plane, ...@@ -632,8 +634,8 @@ static int sti_gdp_atomic_check(struct drm_plane *drm_plane,
/* src_x are in 16.16 format */ /* src_x are in 16.16 format */
src_x = state->src_x >> 16; src_x = state->src_x >> 16;
src_y = state->src_y >> 16; src_y = state->src_y >> 16;
src_w = clamp_val(state->src_w >> 16, 0, GAM_GDP_SIZE_MAX); src_w = clamp_val(state->src_w >> 16, 0, GAM_GDP_SIZE_MAX_WIDTH);
src_h = clamp_val(state->src_h >> 16, 0, GAM_GDP_SIZE_MAX); src_h = clamp_val(state->src_h >> 16, 0, GAM_GDP_SIZE_MAX_HEIGHT);
format = sti_gdp_fourcc2format(fb->format->format); format = sti_gdp_fourcc2format(fb->format->format);
if (format == -1) { if (format == -1) {
...@@ -741,8 +743,8 @@ static void sti_gdp_atomic_update(struct drm_plane *drm_plane, ...@@ -741,8 +743,8 @@ static void sti_gdp_atomic_update(struct drm_plane *drm_plane,
/* src_x are in 16.16 format */ /* src_x are in 16.16 format */
src_x = state->src_x >> 16; src_x = state->src_x >> 16;
src_y = state->src_y >> 16; src_y = state->src_y >> 16;
src_w = clamp_val(state->src_w >> 16, 0, GAM_GDP_SIZE_MAX); src_w = clamp_val(state->src_w >> 16, 0, GAM_GDP_SIZE_MAX_WIDTH);
src_h = clamp_val(state->src_h >> 16, 0, GAM_GDP_SIZE_MAX); src_h = clamp_val(state->src_h >> 16, 0, GAM_GDP_SIZE_MAX_HEIGHT);
list = sti_gdp_get_free_nodes(gdp); list = sti_gdp_get_free_nodes(gdp);
top_field = list->top_field; top_field = list->top_field;
......
...@@ -619,10 +619,10 @@ static const struct dma_buf_ops tegra_gem_prime_dmabuf_ops = { ...@@ -619,10 +619,10 @@ static const struct dma_buf_ops tegra_gem_prime_dmabuf_ops = {
.map_dma_buf = tegra_gem_prime_map_dma_buf, .map_dma_buf = tegra_gem_prime_map_dma_buf,
.unmap_dma_buf = tegra_gem_prime_unmap_dma_buf, .unmap_dma_buf = tegra_gem_prime_unmap_dma_buf,
.release = tegra_gem_prime_release, .release = tegra_gem_prime_release,
.kmap_atomic = tegra_gem_prime_kmap_atomic, .map_atomic = tegra_gem_prime_kmap_atomic,
.kunmap_atomic = tegra_gem_prime_kunmap_atomic, .unmap_atomic = tegra_gem_prime_kunmap_atomic,
.kmap = tegra_gem_prime_kmap, .map = tegra_gem_prime_kmap,
.kunmap = tegra_gem_prime_kunmap, .unmap = tegra_gem_prime_kunmap,
.mmap = tegra_gem_prime_mmap, .mmap = tegra_gem_prime_mmap,
.vmap = tegra_gem_prime_vmap, .vmap = tegra_gem_prime_vmap,
.vunmap = tegra_gem_prime_vunmap, .vunmap = tegra_gem_prime_vunmap,
......
...@@ -191,10 +191,10 @@ static struct dma_buf_ops udl_dmabuf_ops = { ...@@ -191,10 +191,10 @@ static struct dma_buf_ops udl_dmabuf_ops = {
.detach = udl_detach_dma_buf, .detach = udl_detach_dma_buf,
.map_dma_buf = udl_map_dma_buf, .map_dma_buf = udl_map_dma_buf,
.unmap_dma_buf = udl_unmap_dma_buf, .unmap_dma_buf = udl_unmap_dma_buf,
.kmap = udl_dmabuf_kmap, .map = udl_dmabuf_kmap,
.kmap_atomic = udl_dmabuf_kmap_atomic, .map_atomic = udl_dmabuf_kmap_atomic,
.kunmap = udl_dmabuf_kunmap, .unmap = udl_dmabuf_kunmap,
.kunmap_atomic = udl_dmabuf_kunmap_atomic, .unmap_atomic = udl_dmabuf_kunmap_atomic,
.mmap = udl_dmabuf_mmap, .mmap = udl_dmabuf_mmap,
.release = drm_gem_dmabuf_release, .release = drm_gem_dmabuf_release,
}; };
......
...@@ -108,10 +108,10 @@ const struct dma_buf_ops vmw_prime_dmabuf_ops = { ...@@ -108,10 +108,10 @@ const struct dma_buf_ops vmw_prime_dmabuf_ops = {
.map_dma_buf = vmw_prime_map_dma_buf, .map_dma_buf = vmw_prime_map_dma_buf,
.unmap_dma_buf = vmw_prime_unmap_dma_buf, .unmap_dma_buf = vmw_prime_unmap_dma_buf,
.release = NULL, .release = NULL,
.kmap = vmw_prime_dmabuf_kmap, .map = vmw_prime_dmabuf_kmap,
.kmap_atomic = vmw_prime_dmabuf_kmap_atomic, .map_atomic = vmw_prime_dmabuf_kmap_atomic,
.kunmap = vmw_prime_dmabuf_kunmap, .unmap = vmw_prime_dmabuf_kunmap,
.kunmap_atomic = vmw_prime_dmabuf_kunmap_atomic, .unmap_atomic = vmw_prime_dmabuf_kunmap_atomic,
.mmap = vmw_prime_dmabuf_mmap, .mmap = vmw_prime_dmabuf_mmap,
.vmap = vmw_prime_dmabuf_vmap, .vmap = vmw_prime_dmabuf_vmap,
.vunmap = vmw_prime_dmabuf_vunmap, .vunmap = vmw_prime_dmabuf_vunmap,
......
...@@ -356,8 +356,8 @@ static struct dma_buf_ops vb2_dc_dmabuf_ops = { ...@@ -356,8 +356,8 @@ static struct dma_buf_ops vb2_dc_dmabuf_ops = {
.detach = vb2_dc_dmabuf_ops_detach, .detach = vb2_dc_dmabuf_ops_detach,
.map_dma_buf = vb2_dc_dmabuf_ops_map, .map_dma_buf = vb2_dc_dmabuf_ops_map,
.unmap_dma_buf = vb2_dc_dmabuf_ops_unmap, .unmap_dma_buf = vb2_dc_dmabuf_ops_unmap,
.kmap = vb2_dc_dmabuf_ops_kmap, .map = vb2_dc_dmabuf_ops_kmap,
.kmap_atomic = vb2_dc_dmabuf_ops_kmap, .map_atomic = vb2_dc_dmabuf_ops_kmap,
.vmap = vb2_dc_dmabuf_ops_vmap, .vmap = vb2_dc_dmabuf_ops_vmap,
.mmap = vb2_dc_dmabuf_ops_mmap, .mmap = vb2_dc_dmabuf_ops_mmap,
.release = vb2_dc_dmabuf_ops_release, .release = vb2_dc_dmabuf_ops_release,
......
...@@ -504,8 +504,8 @@ static struct dma_buf_ops vb2_dma_sg_dmabuf_ops = { ...@@ -504,8 +504,8 @@ static struct dma_buf_ops vb2_dma_sg_dmabuf_ops = {
.detach = vb2_dma_sg_dmabuf_ops_detach, .detach = vb2_dma_sg_dmabuf_ops_detach,
.map_dma_buf = vb2_dma_sg_dmabuf_ops_map, .map_dma_buf = vb2_dma_sg_dmabuf_ops_map,
.unmap_dma_buf = vb2_dma_sg_dmabuf_ops_unmap, .unmap_dma_buf = vb2_dma_sg_dmabuf_ops_unmap,
.kmap = vb2_dma_sg_dmabuf_ops_kmap, .map = vb2_dma_sg_dmabuf_ops_kmap,
.kmap_atomic = vb2_dma_sg_dmabuf_ops_kmap, .map_atomic = vb2_dma_sg_dmabuf_ops_kmap,
.vmap = vb2_dma_sg_dmabuf_ops_vmap, .vmap = vb2_dma_sg_dmabuf_ops_vmap,
.mmap = vb2_dma_sg_dmabuf_ops_mmap, .mmap = vb2_dma_sg_dmabuf_ops_mmap,
.release = vb2_dma_sg_dmabuf_ops_release, .release = vb2_dma_sg_dmabuf_ops_release,
......
...@@ -342,8 +342,8 @@ static struct dma_buf_ops vb2_vmalloc_dmabuf_ops = { ...@@ -342,8 +342,8 @@ static struct dma_buf_ops vb2_vmalloc_dmabuf_ops = {
.detach = vb2_vmalloc_dmabuf_ops_detach, .detach = vb2_vmalloc_dmabuf_ops_detach,
.map_dma_buf = vb2_vmalloc_dmabuf_ops_map, .map_dma_buf = vb2_vmalloc_dmabuf_ops_map,
.unmap_dma_buf = vb2_vmalloc_dmabuf_ops_unmap, .unmap_dma_buf = vb2_vmalloc_dmabuf_ops_unmap,
.kmap = vb2_vmalloc_dmabuf_ops_kmap, .map = vb2_vmalloc_dmabuf_ops_kmap,
.kmap_atomic = vb2_vmalloc_dmabuf_ops_kmap, .map_atomic = vb2_vmalloc_dmabuf_ops_kmap,
.vmap = vb2_vmalloc_dmabuf_ops_vmap, .vmap = vb2_vmalloc_dmabuf_ops_vmap,
.mmap = vb2_vmalloc_dmabuf_ops_mmap, .mmap = vb2_vmalloc_dmabuf_ops_mmap,
.release = vb2_vmalloc_dmabuf_ops_release, .release = vb2_vmalloc_dmabuf_ops_release,
......
...@@ -1020,10 +1020,10 @@ static const struct dma_buf_ops dma_buf_ops = { ...@@ -1020,10 +1020,10 @@ static const struct dma_buf_ops dma_buf_ops = {
.release = ion_dma_buf_release, .release = ion_dma_buf_release,
.begin_cpu_access = ion_dma_buf_begin_cpu_access, .begin_cpu_access = ion_dma_buf_begin_cpu_access,
.end_cpu_access = ion_dma_buf_end_cpu_access, .end_cpu_access = ion_dma_buf_end_cpu_access,
.kmap_atomic = ion_dma_buf_kmap, .map_atomic = ion_dma_buf_kmap,
.kunmap_atomic = ion_dma_buf_kunmap, .unmap_atomic = ion_dma_buf_kunmap,
.kmap = ion_dma_buf_kmap, .map = ion_dma_buf_kmap,
.kunmap = ion_dma_buf_kunmap, .unmap = ion_dma_buf_kunmap,
}; };
struct dma_buf *ion_share_dma_buf(struct ion_client *client, struct dma_buf *ion_share_dma_buf(struct ion_client *client,
......
...@@ -39,13 +39,13 @@ struct dma_buf_attachment; ...@@ -39,13 +39,13 @@ struct dma_buf_attachment;
/** /**
* struct dma_buf_ops - operations possible on struct dma_buf * struct dma_buf_ops - operations possible on struct dma_buf
* @kmap_atomic: maps a page from the buffer into kernel address * @map_atomic: maps a page from the buffer into kernel address
* space, users may not block until the subsequent unmap call. * space, users may not block until the subsequent unmap call.
* This callback must not sleep. * This callback must not sleep.
* @kunmap_atomic: [optional] unmaps a atomically mapped page from the buffer. * @unmap_atomic: [optional] unmaps a atomically mapped page from the buffer.
* This Callback must not sleep. * This Callback must not sleep.
* @kmap: maps a page from the buffer into kernel address space. * @map: maps a page from the buffer into kernel address space.
* @kunmap: [optional] unmaps a page from the buffer. * @unmap: [optional] unmaps a page from the buffer.
* @vmap: [optional] creates a virtual mapping for the buffer into kernel * @vmap: [optional] creates a virtual mapping for the buffer into kernel
* address space. Same restrictions as for vmap and friends apply. * address space. Same restrictions as for vmap and friends apply.
* @vunmap: [optional] unmaps a vmap from the buffer * @vunmap: [optional] unmaps a vmap from the buffer
...@@ -206,10 +206,10 @@ struct dma_buf_ops { ...@@ -206,10 +206,10 @@ struct dma_buf_ops {
* to be restarted. * to be restarted.
*/ */
int (*end_cpu_access)(struct dma_buf *, enum dma_data_direction); int (*end_cpu_access)(struct dma_buf *, enum dma_data_direction);
void *(*kmap_atomic)(struct dma_buf *, unsigned long); void *(*map_atomic)(struct dma_buf *, unsigned long);
void (*kunmap_atomic)(struct dma_buf *, unsigned long, void *); void (*unmap_atomic)(struct dma_buf *, unsigned long, void *);
void *(*kmap)(struct dma_buf *, unsigned long); void *(*map)(struct dma_buf *, unsigned long);
void (*kunmap)(struct dma_buf *, unsigned long, void *); void (*unmap)(struct dma_buf *, unsigned long, void *);
/** /**
* @mmap: * @mmap:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment