Defined in 1 files as a prototype:
Defined in 4 files as a function:
- drivers/media/platform/raspberrypi/rp1-cfe/cfe.c, line 420 (as a function)
- drivers/media/platform/ti/am437x/am437x-vpfe.c, line 126 (as a function)
- drivers/media/platform/ti/cal/cal-video.c, line 57 (as a function)
- drivers/usb/gadget/function/uvc_v4l2.c, line 124 (as a function)
Referenced in 4 files:
- drivers/media/platform/raspberrypi/rp1-cfe/cfe.c
- drivers/media/platform/ti/am437x/am437x-vpfe.c
- drivers/media/platform/ti/cal/cal-video.c
- drivers/usb/gadget/function/uvc_v4l2.c
Smatch caller information:
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c cfe_enum_framesizes() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| USER_DATA | 0 | ctx | 0-u32max[u] |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock |
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c cfe_find_16bit_code() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 540422489,844257602,909197895,909199186,909201991,1110524752,1194410832,1295074128,1378960208,1731281744 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ve->vdev.entity.graph_obj.mdev->graph_mutex |
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c cfe_find_compressed_code() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 540422489,844257602,909197895,909199186,909201991,1110524752,1194410832,1295074128,1378960208,1731281744 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &ve->vdev.entity.graph_obj.mdev->graph_mutex |
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c cfe_validate_fmt_meta() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | ctx | 0-u32max[u] |
| HALF_LOCKED2 | global &list_lock |
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c cfe_validate_fmt_meta() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 1093747533 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &list_lock |
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c cfe_validate_fmt_vid_cap() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 0 | ctx | 0-u32max[u] |
| HALF_LOCKED2 | global &list_lock |
drivers/media/platform/raspberrypi/rp1-cfe/cfe.c cfe_validate_fmt_vid_cap() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 540422489,844257602,909197895,909199186,909201991,1110524752,1194410832,1295074128,1378960208,1731281744 |
| CAPPED_DATA | 0 | ctx | 1 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | global &list_lock |
drivers/media/platform/ti/cal/cal-video.c cal_legacy_enum_frameintervals() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | ctx | r video_drvdata |
| USER_DATA | 1 | pixelformat | 0-u32max[u] |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock |
drivers/media/platform/ti/cal/cal-video.c cal_legacy_enum_framesizes() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | ctx | r video_drvdata |
| USER_DATA | 1 | pixelformat | 0-u32max[u] |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock |
drivers/media/platform/ti/cal/cal-video.c cal_legacy_s_fmt_vid_cap() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | ctx | r video_drvdata |
| USER_DATA | 1 | pixelformat | 0-u32max[u] |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock |
drivers/media/platform/ti/cal/cal-video.c cal_legacy_try_fmt_vid_cap() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | ctx | r video_drvdata |
| USER_DATA | 1 | pixelformat | 0-u32max[u] |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock |
drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_enum_frameintervals() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| USER_DATA | 1 | pixelformat | 0-u32max[u] |
| UNITS | 0 | ctx | unit_byte |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock |
drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_enum_framesizes() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| USER_DATA | 1 | pixelformat | 0-u32max[u] |
| UNITS | 0 | ctx | unit_byte |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock |
drivers/usb/gadget/function/uvc_v4l2.c uvc_v4l2_try_format() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| USER_DATA | 1 | pixelformat | 0-u32max[u] |
| UNITS | 0 | ctx | unit_byte |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock |
drivers/media/platform/ti/am437x/am437x-vpfe.c vpfe_enum_size() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | ctx | r video_drvdata |
| USER_DATA | 1 | pixelformat | 0-u32max[u] |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock |
drivers/media/platform/ti/am437x/am437x-vpfe.c vpfe_s_fmt() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| PARAM_VALUE | 1 | pixelformat | 138007534,825770306,1111967570,1195528775,1196573255,1346520914,1380075346,1431918169,1448695129,1498765654,1498831189 |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | ctx | r video_drvdata |
| USER_DATA | 1 | pixelformat | 138007534,825770306,1111967570,1195528775,1196573255,1346520914 |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock |
drivers/media/platform/ti/am437x/am437x-vpfe.c vpfe_try_fmt() -> find_format_by_pix()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | ctx | 4096-ptr_max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | ctx | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | ctx | r video_drvdata |
| USER_DATA | 1 | pixelformat | 0-u32max[u] |
| HALF_LOCKED2 | lock | ||
| HALF_LOCKED2 | req_queue_lock |