Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/media/platform/rockchip/rga/rga.c rga_open() -> (struct rga_hw)->adjust_and_map_format()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->cmdbuf_dirty 1
PARAM_VALUE 0 ctx->cmdbuf_virt 1-ptr_max
PARAM_VALUE 0 ctx->in.crop.left 0
PARAM_VALUE 0 ctx->in.crop.top 0
PARAM_VALUE 0 ctx->in.fmt 0
PARAM_VALUE 0 ctx->in.pix.colorspace 0
PARAM_VALUE 0 ctx->in.pix.field 0
PARAM_VALUE 0 ctx->in.pix.flags 0
PARAM_VALUE 0 ctx->in.pix.height 0
PARAM_VALUE 0 ctx->in.pix.hsv_enc 0
PARAM_VALUE 0 ctx->in.pix.num_planes 0
PARAM_VALUE 0 ctx->in.pix.pixelformat 0
PARAM_VALUE 0 ctx->in.pix.quantization 0
PARAM_VALUE 0 ctx->in.pix.width 0
PARAM_VALUE 0 ctx->in.pix.xfer_func 0
PARAM_VALUE 0 ctx->in.pix.ycbcr_enc 0
PARAM_VALUE 0 ctx->out.crop.left 0
PARAM_VALUE 0 ctx->out.crop.top 0
PARAM_VALUE 0 ctx->out.fmt 0
PARAM_VALUE 0 ctx->out.pix.colorspace 0
PARAM_VALUE 0 ctx->out.pix.field 0
PARAM_VALUE 0 ctx->out.pix.flags 0
PARAM_VALUE 0 ctx->out.pix.height 0
PARAM_VALUE 0 ctx->out.pix.hsv_enc 0
PARAM_VALUE 0 ctx->out.pix.num_planes 0
PARAM_VALUE 0 ctx->out.pix.pixelformat 0
PARAM_VALUE 0 ctx->out.pix.quantization 0
PARAM_VALUE 0 ctx->out.pix.width 0
PARAM_VALUE 0 ctx->out.pix.xfer_func 0
PARAM_VALUE 0 ctx->out.pix.ycbcr_enc 0
PARAM_VALUE 0 ctx->rga 4096-ptr_max
PARAM_VALUE 0 ctx->rga->dev 4096-ptr_max
PARAM_VALUE 0 ctx->rga->hw 4096-ptr_max
PARAM_VALUE 1 format 4096-ptr_max
PARAM_VALUE 1 format->colorspace 0
PARAM_VALUE 1 format->field 0
PARAM_VALUE 1 format->flags 0
PARAM_VALUE 1 format->height 0
PARAM_VALUE 1 format->hsv_enc 0
PARAM_VALUE 1 format->num_planes 0
PARAM_VALUE 1 format->pixelformat 0
PARAM_VALUE 1 format->quantization 0
PARAM_VALUE 1 format->width 0
PARAM_VALUE 1 format->xfer_func 0
PARAM_VALUE 1 format->ycbcr_enc 0
PARAM_VALUE 2 is_output 1
BUF_SIZE 0 ctx 1144
BUF_SIZE 0 ctx->cmdbuf_virt 0-u64max
BUF_SIZE 0 ctx->rga s32min-(-2),1-s32max
DATA_SOURCE 0 ctx r _kzalloc_noprof
MEM_ZERO 0 ctx->cmdbuf_virt
RX_PATH
TASK_NOT_RUNNING

drivers/media/platform/rockchip/rga/rga.c rga_open() -> (struct rga_hw)->adjust_and_map_format()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->cmdbuf_dirty 1
PARAM_VALUE 0 ctx->cmdbuf_virt 1-ptr_max
PARAM_VALUE 0 ctx->in.crop.left 0
PARAM_VALUE 0 ctx->in.crop.top 0
PARAM_VALUE 0 ctx->in.fmt 4096-ptr_max
PARAM_VALUE 0 ctx->in.pix.colorspace 0
PARAM_VALUE 0 ctx->in.pix.field 0
PARAM_VALUE 0 ctx->in.pix.flags 0
PARAM_VALUE 0 ctx->in.pix.hsv_enc 0-1
PARAM_VALUE 0 ctx->in.pix.num_planes 0-3
PARAM_VALUE 0 ctx->in.pix.quantization 0-2
PARAM_VALUE 0 ctx->in.pix.xfer_func 0
PARAM_VALUE 0 ctx->in.pix.ycbcr_enc 0-1
PARAM_VALUE 0 ctx->out.crop.left 0
PARAM_VALUE 0 ctx->out.crop.top 0
PARAM_VALUE 0 ctx->out.fmt 0
PARAM_VALUE 0 ctx->out.pix.colorspace 0
PARAM_VALUE 0 ctx->out.pix.field 0
PARAM_VALUE 0 ctx->out.pix.flags 0
PARAM_VALUE 0 ctx->out.pix.height 0
PARAM_VALUE 0 ctx->out.pix.hsv_enc 0
PARAM_VALUE 0 ctx->out.pix.num_planes 0
PARAM_VALUE 0 ctx->out.pix.pixelformat 0
PARAM_VALUE 0 ctx->out.pix.quantization 0
PARAM_VALUE 0 ctx->out.pix.width 0
PARAM_VALUE 0 ctx->out.pix.xfer_func 0
PARAM_VALUE 0 ctx->out.pix.ycbcr_enc 0
PARAM_VALUE 0 ctx->rga 4096-ptr_max
PARAM_VALUE 0 ctx->rga->dev 4096-ptr_max
PARAM_VALUE 0 ctx->rga->hw 4096-ptr_max
PARAM_VALUE 1 format 4096-ptr_max
PARAM_VALUE 1 format->colorspace 0
PARAM_VALUE 1 format->field 0
PARAM_VALUE 1 format->flags 0
PARAM_VALUE 1 format->height 0
PARAM_VALUE 1 format->hsv_enc 0
PARAM_VALUE 1 format->num_planes 0
PARAM_VALUE 1 format->pixelformat 0
PARAM_VALUE 1 format->quantization 0
PARAM_VALUE 1 format->width 0
PARAM_VALUE 1 format->xfer_func 0
PARAM_VALUE 1 format->ycbcr_enc 0
PARAM_VALUE 2 is_output 0
BUF_SIZE 0 ctx 1144
BUF_SIZE 0 ctx->cmdbuf_virt 0-u64max
BUF_SIZE 0 ctx->in.fmt (-1),128,184
BUF_SIZE 0 ctx->rga s32min-(-2),1-s32max
DATA_SOURCE 0 ctx r _kzalloc_noprof
MEM_ZERO 0 ctx->cmdbuf_virt
RX_PATH
TASK_NOT_RUNNING

drivers/media/platform/rockchip/rga/rga.c vidioc_s_fmt() -> (struct rga_hw)->adjust_and_map_format()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->rga 4096-ptr_max
PARAM_VALUE 0 ctx->rga->hw 4096-ptr_max
BUF_SIZE 1 format 192
DATA_SOURCE 0 ctx r file_to_rga_ctx
USER_DATA 1 format->colorspace 0-u32max[u]
USER_DATA 1 format->field 0-u32max[u]
USER_DATA 1 format->flags 0-255[u]
USER_DATA 1 format->height 0-u32max[u]
USER_DATA 1 format->hsv_enc 0-255[u]
USER_DATA 1 format->num_planes 0-255[u]
USER_DATA 1 format->pixelformat 0-u32max[u]
USER_DATA 1 format->quantization 0-255[u]
USER_DATA 1 format->width 0-u32max[u]
USER_DATA 1 format->xfer_func 0-255[u]
USER_DATA 1 format->ycbcr_enc 0-255[u]
USER_DATA 2 is_output 0[c]
HALF_LOCKED2 lock
HALF_LOCKED2 req_queue_lock

drivers/media/platform/rockchip/rga/rga.c vidioc_try_fmt() -> (struct rga_hw)->adjust_and_map_format()

Type Parameter Key Value
PARAM_VALUE 0 ctx 4096-ptr_max
PARAM_VALUE 0 ctx->rga 4096-ptr_max
PARAM_VALUE 0 ctx->rga->hw 4096-ptr_max
PARAM_VALUE 1 format 4096-ptr_max
BUF_SIZE 1 format 192
DATA_SOURCE 0 ctx r file_to_rga_ctx
NOCHECK_CALL
USER_DATA 1 format->colorspace 0-u32max[u]
USER_DATA 1 format->field 0-u32max[u]
USER_DATA 1 format->flags 0-255[u]
USER_DATA 1 format->height 0-u32max[u]
USER_DATA 1 format->hsv_enc 0-255[u]
USER_DATA 1 format->num_planes 0-255[u]
USER_DATA 1 format->pixelformat 0-u32max
USER_DATA 1 format->quantization 0-255[u]
USER_DATA 1 format->width 0-u32max[u]
USER_DATA 1 format->xfer_func 0-255[u]
USER_DATA 1 format->ycbcr_enc 0-255[u]
USER_DATA 2 is_output 0[c]
HALF_LOCKED2 lock
HALF_LOCKED2 req_queue_lock