Skip to content

Commit

Permalink
[media] omap3isp: Rename isp_buffer isp_addr field to dma
Browse files Browse the repository at this point in the history
No functional changes.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Acked-by: Sakari Ailus <sakari.ailus@iki.fi>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
  • Loading branch information
Laurent Pinchart authored and Mauro Carvalho Chehab committed May 25, 2014
1 parent fbac140 commit 21d8582
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 17 deletions.
4 changes: 2 additions & 2 deletions drivers/media/platform/omap3isp/ispccdc.c
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ static int ccdc_isr_buffer(struct isp_ccdc_device *ccdc)

buffer = omap3isp_video_buffer_next(&ccdc->video_out);
if (buffer != NULL) {
ccdc_set_outaddr(ccdc, buffer->isp_addr);
ccdc_set_outaddr(ccdc, buffer->dma);
restart = 1;
}

Expand Down Expand Up @@ -1660,7 +1660,7 @@ static int ccdc_video_queue(struct isp_video *video, struct isp_buffer *buffer)
if (!(ccdc->output & CCDC_OUTPUT_MEMORY))
return -ENODEV;

ccdc_set_outaddr(ccdc, buffer->isp_addr);
ccdc_set_outaddr(ccdc, buffer->dma);

/* We now have a buffer queued on the output, restart the pipeline
* on the next CCDC interrupt if running in continuous mode (or when
Expand Down
4 changes: 2 additions & 2 deletions drivers/media/platform/omap3isp/ispccp2.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ static void ccp2_isr_buffer(struct isp_ccp2_device *ccp2)

buffer = omap3isp_video_buffer_next(&ccp2->video_in);
if (buffer != NULL)
ccp2_set_inaddr(ccp2, buffer->isp_addr);
ccp2_set_inaddr(ccp2, buffer->dma);

pipe->state |= ISP_PIPELINE_IDLE_INPUT;

Expand Down Expand Up @@ -940,7 +940,7 @@ static int ccp2_video_queue(struct isp_video *video, struct isp_buffer *buffer)
{
struct isp_ccp2_device *ccp2 = &video->isp->isp_ccp2;

ccp2_set_inaddr(ccp2, buffer->isp_addr);
ccp2_set_inaddr(ccp2, buffer->dma);
return 0;
}

Expand Down
4 changes: 2 additions & 2 deletions drivers/media/platform/omap3isp/ispcsi2.c
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ static void csi2_isr_buffer(struct isp_csi2_device *csi2)
if (buffer == NULL)
return;

csi2_set_outaddr(csi2, buffer->isp_addr);
csi2_set_outaddr(csi2, buffer->dma);
csi2_ctx_enable(isp, csi2, 0, 1);
}

Expand Down Expand Up @@ -812,7 +812,7 @@ static int csi2_queue(struct isp_video *video, struct isp_buffer *buffer)
struct isp_device *isp = video->isp;
struct isp_csi2_device *csi2 = &isp->isp_csi2a;

csi2_set_outaddr(csi2, buffer->isp_addr);
csi2_set_outaddr(csi2, buffer->dma);

/*
* If streaming was enabled before there was a buffer queued
Expand Down
8 changes: 4 additions & 4 deletions drivers/media/platform/omap3isp/isppreview.c
Original file line number Diff line number Diff line change
Expand Up @@ -1499,14 +1499,14 @@ static void preview_isr_buffer(struct isp_prev_device *prev)
if (prev->input == PREVIEW_INPUT_MEMORY) {
buffer = omap3isp_video_buffer_next(&prev->video_in);
if (buffer != NULL)
preview_set_inaddr(prev, buffer->isp_addr);
preview_set_inaddr(prev, buffer->dma);
pipe->state |= ISP_PIPELINE_IDLE_INPUT;
}

if (prev->output & PREVIEW_OUTPUT_MEMORY) {
buffer = omap3isp_video_buffer_next(&prev->video_out);
if (buffer != NULL) {
preview_set_outaddr(prev, buffer->isp_addr);
preview_set_outaddr(prev, buffer->dma);
restart = 1;
}
pipe->state |= ISP_PIPELINE_IDLE_OUTPUT;
Expand Down Expand Up @@ -1577,10 +1577,10 @@ static int preview_video_queue(struct isp_video *video,
struct isp_prev_device *prev = &video->isp->isp_prev;

if (video->type == V4L2_BUF_TYPE_VIDEO_OUTPUT)
preview_set_inaddr(prev, buffer->isp_addr);
preview_set_inaddr(prev, buffer->dma);

if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
preview_set_outaddr(prev, buffer->isp_addr);
preview_set_outaddr(prev, buffer->dma);

return 0;
}
Expand Down
8 changes: 4 additions & 4 deletions drivers/media/platform/omap3isp/ispresizer.c
Original file line number Diff line number Diff line change
Expand Up @@ -1040,7 +1040,7 @@ static void resizer_isr_buffer(struct isp_res_device *res)
*/
buffer = omap3isp_video_buffer_next(&res->video_out);
if (buffer != NULL) {
resizer_set_outaddr(res, buffer->isp_addr);
resizer_set_outaddr(res, buffer->dma);
restart = 1;
}

Expand All @@ -1049,7 +1049,7 @@ static void resizer_isr_buffer(struct isp_res_device *res)
if (res->input == RESIZER_INPUT_MEMORY) {
buffer = omap3isp_video_buffer_next(&res->video_in);
if (buffer != NULL)
resizer_set_inaddr(res, buffer->isp_addr);
resizer_set_inaddr(res, buffer->dma);
pipe->state |= ISP_PIPELINE_IDLE_INPUT;
}

Expand Down Expand Up @@ -1101,7 +1101,7 @@ static int resizer_video_queue(struct isp_video *video,
struct isp_res_device *res = &video->isp->isp_res;

if (video->type == V4L2_BUF_TYPE_VIDEO_OUTPUT)
resizer_set_inaddr(res, buffer->isp_addr);
resizer_set_inaddr(res, buffer->dma);

/*
* We now have a buffer queued on the output. Despite what the
Expand All @@ -1116,7 +1116,7 @@ static int resizer_video_queue(struct isp_video *video,
* continuous mode or when starting the stream.
*/
if (video->type == V4L2_BUF_TYPE_VIDEO_CAPTURE)
resizer_set_outaddr(res, buffer->isp_addr);
resizer_set_outaddr(res, buffer->dma);

return 0;
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/platform/omap3isp/ispvideo.c
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ static int isp_video_buffer_prepare(struct vb2_buffer *buf)
}

vb2_set_plane_payload(&buffer->vb, 0, vfh->format.fmt.pix.sizeimage);
buffer->isp_addr = addr;
buffer->dma = addr;

return 0;
}
Expand Down
4 changes: 2 additions & 2 deletions drivers/media/platform/omap3isp/ispvideo.h
Original file line number Diff line number Diff line change
Expand Up @@ -127,12 +127,12 @@ static inline int isp_pipeline_ready(struct isp_pipeline *pipe)
* struct isp_buffer - ISP video buffer
* @vb: videobuf2 buffer
* @irqlist: List head for insertion into IRQ queue
* @isp_addr: DMA address
* @dma: DMA address
*/
struct isp_buffer {
struct vb2_buffer vb;
struct list_head irqlist;
dma_addr_t isp_addr;
dma_addr_t dma;
};

#define to_isp_buffer(buf) container_of(buf, struct isp_buffer, vb)
Expand Down

0 comments on commit 21d8582

Please sign in to comment.