Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/staging/media/tegra-video/vi.c tegra_channel_set_subdev_active_fmt() -> tegra_get_format_idx_by_code()

Type Parameter Key Value
PARAM_VALUE 1 code 0
PARAM_VALUE 2 offset 0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 global &list_lock

drivers/staging/media/tegra-video/vi.c vi_fmts_bitmap_init() -> tegra_get_format_idx_by_code()

Type Parameter Key Value
PARAM_VALUE 1 code 0
PARAM_VALUE 2 offset 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &list_lock
HALF_LOCKED2 &device->clients_lock

drivers/staging/media/tegra-video/vi.c vi_fmts_bitmap_init() -> tegra_get_format_idx_by_code()

Type Parameter Key Value
PARAM_VALUE 0 vi 4096-ptr_max
PARAM_VALUE 0 vi->soc 4096-ptr_max
PARAM_VALUE 0 vi->soc->nformats 1-u32max
PARAM_VALUE 1 code 0
PARAM_VALUE 2 offset 1-2
CAPPED_DATA 2 offset 1
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &list_lock
HALF_LOCKED2 &device->clients_lock

drivers/staging/media/tegra-video/vi.c vi_fmts_bitmap_init() -> tegra_get_format_idx_by_code()

Type Parameter Key Value
PARAM_VALUE 0 vi 4096-ptr_max
PARAM_VALUE 0 vi->soc 4096-ptr_max
PARAM_VALUE 2 offset 0
RX_PATH
TASK_NOT_RUNNING
LOCK2 global &list_lock
HALF_LOCKED2 &device->clients_lock

drivers/staging/media/tegra-video/vi.c vi_tpg_fmts_bitmap_init() -> tegra_get_format_idx_by_code()

Type Parameter Key Value
PARAM_VALUE 1 code 12303
PARAM_VALUE 2 offset 0

drivers/staging/media/tegra-video/vi.c vi_tpg_fmts_bitmap_init() -> tegra_get_format_idx_by_code()

Type Parameter Key Value
PARAM_VALUE 0 vi 4096-ptr_max
PARAM_VALUE 0 vi->soc 4096-ptr_max
PARAM_VALUE 1 code 4111
PARAM_VALUE 2 offset 0
CAPPED_DATA 0 vi->soc->nformats 1