Lines Matching full:ipu
12 #include <video/imx-ipu-image-convert.h>
14 #include "ipu-prv.h"
208 /* the IPU end-of-frame irqs */
229 struct ipu_soc *ipu; member
346 dev_dbg(priv->ipu->dev, in dump_format()
376 dma_free_coherent(priv->ipu->dev, in free_dma_buf()
387 buf->virt = dma_alloc_coherent(priv->ipu->dev, buf->len, &buf->phys, in alloc_dma_buf()
390 dev_err(priv->ipu->dev, "failed to alloc dma buffer\n"); in alloc_dma_buf()
461 dev_dbg(ctx->chan->priv->ipu->dev, in calc_image_resize_coefficients()
514 struct device *dev = ctx->chan->priv->ipu->dev; in find_best_seam()
734 struct device *dev = ctx->chan->priv->ipu->dev; in find_seams()
892 dev_dbg(priv->ipu->dev, in calc_tile_dimensions()
901 dev_err(priv->ipu->dev, "invalid %s tile size: %ux%u\n", in calc_tile_dimensions()
952 dev_dbg(priv->ipu->dev, "task %u: ctx %p: [%d,%d] --> [%d,%d]\n", in transform_tile_index()
1031 dev_err(priv->ipu->dev, in calc_tile_offsets_planar()
1073 dev_err(priv->ipu->dev, in calc_tile_offsets_packed()
1151 dev_dbg(priv->ipu->dev, "%s: column %u hscale: *8192/%u\n", in calc_tile_resize_coefficients()
1208 dev_dbg(priv->ipu->dev, "%s: row %u vscale: *8192/%u\n", in calc_tile_resize_coefficients()
1272 dev_dbg(priv->ipu->dev, "%s: task %u: stopping ctx %p run %p\n", in convert_stop()
1373 if (!channel->ipu->prg_priv) in init_idmac_channel()
1392 dev_dbg(priv->ipu->dev, "%s: task %u: starting ctx %p run %p tile %u -> %u\n", in convert_start()
1415 dev_dbg(priv->ipu->dev, "%s: %ux%u -> %ux%u (rsc = 0x%x)\n", in convert_start()
1427 dev_err(priv->ipu->dev, "ipu_ic_task_init failed, %d\n", ret); in convert_start()
1488 ipu_dump(priv->ipu); in convert_start()
1526 dev_dbg(priv->ipu->dev, in run_next()
1562 dev_dbg(priv->ipu->dev, in empty_done_q()
1586 dev_dbg(priv->ipu->dev, "%s: task %u: enter\n", __func__, in do_bh()
1599 dev_dbg(priv->ipu->dev, in do_bh()
1608 dev_dbg(priv->ipu->dev, "%s: task %u: exit\n", __func__, in do_bh()
1757 dev_err(priv->ipu->dev, in eof_irq()
1764 dev_err(priv->ipu->dev, "Received unknown irq %d\n", irq); in eof_irq()
1843 irq = ipu_idmac_channel_irq(priv->ipu, channel, IPU_IRQ_EOF); in get_eof_irq()
1845 ret = request_threaded_irq(irq, eof_irq, do_bh, 0, "ipu-ic", chan); in get_eof_irq()
1847 dev_err(priv->ipu->dev, "could not acquire irq %d\n", irq); in get_eof_irq()
1861 chan->ic = ipu_ic_get(priv->ipu, chan->ic_task); in get_ipu_resources()
1863 dev_err(priv->ipu->dev, "could not acquire IC\n"); in get_ipu_resources()
1869 chan->in_chan = ipu_idmac_get(priv->ipu, dma->in); in get_ipu_resources()
1870 chan->out_chan = ipu_idmac_get(priv->ipu, dma->out); in get_ipu_resources()
1872 dev_err(priv->ipu->dev, "could not acquire idmac channels\n"); in get_ipu_resources()
1877 chan->rotation_in_chan = ipu_idmac_get(priv->ipu, dma->rot_in); in get_ipu_resources()
1878 chan->rotation_out_chan = ipu_idmac_get(priv->ipu, dma->rot_out); in get_ipu_resources()
1880 dev_err(priv->ipu->dev, in get_ipu_resources()
1933 dev_err(priv->ipu->dev, "pixelformat not supported for %s\n", in fill_image()
1963 /* Adjusts input/output images to IPU restrictions */
2069 ipu_image_convert_prepare(struct ipu_soc *ipu, enum ipu_ic_task ic_task, in ipu_image_convert_prepare() argument
2075 struct ipu_image_convert_priv *priv = ipu->image_convert_priv; in ipu_image_convert_prepare()
2092 dev_err(priv->ipu->dev, "%s: in/out formats invalid\n", in ipu_image_convert_prepare()
2103 dev_dbg(priv->ipu->dev, "%s: task %u: ctx %p\n", __func__, in ipu_image_convert_prepare()
2176 * the IPU's IDMAC channels allow only a single U and V plane in ipu_image_convert_prepare()
2280 dev_dbg(priv->ipu->dev, "%s: task %u: ctx %p run %p\n", __func__, in ipu_image_convert_queue()
2336 dev_dbg(priv->ipu->dev, in __ipu_image_convert_abort()
2347 dev_dbg(priv->ipu->dev, in __ipu_image_convert_abort()
2354 dev_warn(priv->ipu->dev, "%s: timeout\n", __func__); in __ipu_image_convert_abort()
2377 dev_dbg(priv->ipu->dev, "%s: task %u: removing ctx %p\n", __func__, in ipu_image_convert_unprepare()
2404 ipu_image_convert(struct ipu_soc *ipu, enum ipu_ic_task ic_task, in ipu_image_convert() argument
2414 ctx = ipu_image_convert_prepare(ipu, ic_task, in, out, rot_mode, in ipu_image_convert()
2449 int ipu_image_convert_sync(struct ipu_soc *ipu, enum ipu_ic_task ic_task, in ipu_image_convert_sync() argument
2459 run = ipu_image_convert(ipu, ic_task, in, out, rot_mode, in ipu_image_convert_sync()
2474 int ipu_image_convert_init(struct ipu_soc *ipu, struct device *dev) in ipu_image_convert_init() argument
2483 ipu->image_convert_priv = priv; in ipu_image_convert_init()
2484 priv->ipu = ipu; in ipu_image_convert_init()
2506 void ipu_image_convert_exit(struct ipu_soc *ipu) in ipu_image_convert_exit() argument