Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 5 files:
- drivers/gpu/drm/drm_atomic_helper.c, line 951
- drivers/gpu/drm/drm_rect.c, line 131
- drivers/gpu/drm/i915/display/intel_plane.c, line 1186
- drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c, line 937
- drivers/gpu/drm/tests/drm_rect_test.c
Smatch caller information:
drivers/gpu/drm/i915/display/intel_plane.c intel_plane_check_clipping() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4096-ptr_max |
| PARAM_VALUE | 1 | dst | 4096-ptr_max |
| PARAM_VALUE | 2 | clip | 4096-ptr_max |
| BUF_SIZE | 0 | src | 16 |
| BUF_SIZE | 1 | dst | 16 |
| BUF_SIZE | 2 | clip | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING |
drivers/gpu/drm/drm_atomic_helper.c drm_atomic_helper_check_plane_state() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4096-ptr_max |
| PARAM_VALUE | 1 | dst | 4096-ptr_max |
| PARAM_VALUE | 2 | clip | 5724760542161854464 |
| PARAM_VALUE | 2 | clip->x1 | 0 |
| PARAM_VALUE | 2 | clip->x2 | 0-u16max |
| PARAM_VALUE | 2 | clip->y1 | 0 |
| PARAM_VALUE | 2 | clip->y2 | 0-u16max |
| BUF_SIZE | 0 | src | 16 |
| BUF_SIZE | 1 | dst | 16 |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 2 | clip->x2 | 2-u16max[c] |
| USER_DATA | 2 | clip->y2 | 0-u16max |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_clipped() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4414293715492917248 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | 131072 |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | 131072 |
| PARAM_VALUE | 1 | dst | 1039042197810339840 |
| PARAM_VALUE | 1 | dst->x1 | 0 |
| PARAM_VALUE | 1 | dst->x2 | 2 |
| PARAM_VALUE | 1 | dst->y1 | 0 |
| PARAM_VALUE | 1 | dst->y2 | 2 |
| PARAM_VALUE | 2 | clip | 2276861390799962112 |
| PARAM_VALUE | 2 | clip->x1 | 0 |
| PARAM_VALUE | 2 | clip->x2 | 1 |
| PARAM_VALUE | 2 | clip->y1 | 0 |
| PARAM_VALUE | 2 | clip->y2 | 1 |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_clipped() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4414293715492917248 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | 131072 |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | 131072 |
| PARAM_VALUE | 1 | dst | 1039042197810339840 |
| PARAM_VALUE | 1 | dst->x1 | 0 |
| PARAM_VALUE | 1 | dst->x2 | 2 |
| PARAM_VALUE | 1 | dst->y1 | 0 |
| PARAM_VALUE | 1 | dst->y2 | 2 |
| PARAM_VALUE | 2 | clip | 2276861390799962112 |
| PARAM_VALUE | 2 | clip->x1 | 1 |
| PARAM_VALUE | 2 | clip->x2 | 2 |
| PARAM_VALUE | 2 | clip->y1 | 1 |
| PARAM_VALUE | 2 | clip->y2 | 2 |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_clipped() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4414293715492917248 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | 262144 |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | 262144 |
| PARAM_VALUE | 1 | dst | 1039042197810339840 |
| PARAM_VALUE | 1 | dst->x1 | 0 |
| PARAM_VALUE | 1 | dst->x2 | 2 |
| PARAM_VALUE | 1 | dst->y1 | 0 |
| PARAM_VALUE | 1 | dst->y2 | 2 |
| PARAM_VALUE | 2 | clip | 2276861390799962112 |
| PARAM_VALUE | 2 | clip->x1 | 0 |
| PARAM_VALUE | 2 | clip->x2 | 1 |
| PARAM_VALUE | 2 | clip->y1 | 0 |
| PARAM_VALUE | 2 | clip->y2 | 1 |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_clipped() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4414293715492917248 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | 262144 |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | 262144 |
| PARAM_VALUE | 1 | dst | 1039042197810339840 |
| PARAM_VALUE | 1 | dst->x1 | 0 |
| PARAM_VALUE | 1 | dst->x2 | 2 |
| PARAM_VALUE | 1 | dst->y1 | 0 |
| PARAM_VALUE | 1 | dst->y2 | 2 |
| PARAM_VALUE | 2 | clip | 2276861390799962112 |
| PARAM_VALUE | 2 | clip->x1 | 1 |
| PARAM_VALUE | 2 | clip->x2 | 2 |
| PARAM_VALUE | 2 | clip->y1 | 1 |
| PARAM_VALUE | 2 | clip->y2 | 2 |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_clipped() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4414293715492917248 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | 131072 |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | 131072 |
| PARAM_VALUE | 1 | dst | 1039042197810339840 |
| PARAM_VALUE | 1 | dst->x1 | 0 |
| PARAM_VALUE | 1 | dst->x2 | 4 |
| PARAM_VALUE | 1 | dst->y1 | 0 |
| PARAM_VALUE | 1 | dst->y2 | 4 |
| PARAM_VALUE | 2 | clip | 2276861390799962112 |
| PARAM_VALUE | 2 | clip->x1 | 0 |
| PARAM_VALUE | 2 | clip->x2 | 2 |
| PARAM_VALUE | 2 | clip->y1 | 0 |
| PARAM_VALUE | 2 | clip->y2 | 2 |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_clipped() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4414293715492917248 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | 131072 |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | 131072 |
| PARAM_VALUE | 1 | dst | 1039042197810339840 |
| PARAM_VALUE | 1 | dst->x1 | 0 |
| PARAM_VALUE | 1 | dst->x2 | 4 |
| PARAM_VALUE | 1 | dst->y1 | 0 |
| PARAM_VALUE | 1 | dst->y2 | 4 |
| PARAM_VALUE | 2 | clip | 2276861390799962112 |
| PARAM_VALUE | 2 | clip->x1 | 2 |
| PARAM_VALUE | 2 | clip->x2 | 4 |
| PARAM_VALUE | 2 | clip->y1 | 2 |
| PARAM_VALUE | 2 | clip->y2 | 4 |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_div_by_zero() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 2783378841927921664 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | 0 |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | 0 |
| PARAM_VALUE | 1 | dst | 1636888789139185664 |
| PARAM_VALUE | 1 | dst->x1 | 0 |
| PARAM_VALUE | 1 | dst->x2 | 0 |
| PARAM_VALUE | 1 | dst->y1 | 0 |
| PARAM_VALUE | 1 | dst->y2 | 0 |
| PARAM_VALUE | 2 | clip | 1083339946069991424 |
| PARAM_VALUE | 2 | clip->x1 | 1 |
| PARAM_VALUE | 2 | clip->x2 | 2 |
| PARAM_VALUE | 2 | clip->y1 | 1 |
| PARAM_VALUE | 2 | clip->y2 | 2 |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_div_by_zero() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 2783378841927921664 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | 0 |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | 0 |
| PARAM_VALUE | 1 | dst | 1636888789139185664 |
| PARAM_VALUE | 1 | dst->x1 | 3 |
| PARAM_VALUE | 1 | dst->x2 | 3 |
| PARAM_VALUE | 1 | dst->y1 | 3 |
| PARAM_VALUE | 1 | dst->y2 | 3 |
| PARAM_VALUE | 2 | clip | 1083339946069991424 |
| PARAM_VALUE | 2 | clip->x1 | 1 |
| PARAM_VALUE | 2 | clip->x2 | 2 |
| PARAM_VALUE | 2 | clip->y1 | 1 |
| PARAM_VALUE | 2 | clip->y2 | 2 |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_not_clipped() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 7954618695724646400 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | 65536 |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | 65536 |
| PARAM_VALUE | 1 | dst | 8364656604340920320 |
| PARAM_VALUE | 1 | dst->x1 | 0 |
| PARAM_VALUE | 1 | dst->x2 | 1 |
| PARAM_VALUE | 1 | dst->y1 | 0 |
| PARAM_VALUE | 1 | dst->y2 | 1 |
| PARAM_VALUE | 2 | clip | 7399515203745845248 |
| PARAM_VALUE | 2 | clip->x1 | 0 |
| PARAM_VALUE | 2 | clip->x2 | 1 |
| PARAM_VALUE | 2 | clip->y1 | 0 |
| PARAM_VALUE | 2 | clip->y2 | 1 |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_not_clipped() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 7954618695724646400 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | 131072 |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | 131072 |
| PARAM_VALUE | 1 | dst | 8364656604340920320 |
| PARAM_VALUE | 1 | dst->x1 | 0 |
| PARAM_VALUE | 1 | dst->x2 | 1 |
| PARAM_VALUE | 1 | dst->y1 | 0 |
| PARAM_VALUE | 1 | dst->y2 | 1 |
| PARAM_VALUE | 2 | clip | 7399515203745845248 |
| PARAM_VALUE | 2 | clip->x1 | 0 |
| PARAM_VALUE | 2 | clip->x2 | 1 |
| PARAM_VALUE | 2 | clip->y1 | 0 |
| PARAM_VALUE | 2 | clip->y2 | 1 |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_not_clipped() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 7954618695724646400 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | 65536 |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | 65536 |
| PARAM_VALUE | 1 | dst | 8364656604340920320 |
| PARAM_VALUE | 1 | dst->x1 | 0 |
| PARAM_VALUE | 1 | dst->x2 | 2 |
| PARAM_VALUE | 1 | dst->y1 | 0 |
| PARAM_VALUE | 1 | dst->y2 | 2 |
| PARAM_VALUE | 2 | clip | 7399515203745845248 |
| PARAM_VALUE | 2 | clip->x1 | 0 |
| PARAM_VALUE | 2 | clip->x2 | 2 |
| PARAM_VALUE | 2 | clip->y1 | 0 |
| PARAM_VALUE | 2 | clip->y2 | 2 |
drivers/gpu/drm/tests/drm_rect_test.c drm_test_rect_clip_scaled_signed_vs_unsigned() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 8040523843368812544 |
| PARAM_VALUE | 0 | src->x1 | 0 |
| PARAM_VALUE | 0 | src->x2 | s32max |
| PARAM_VALUE | 0 | src->y1 | 0 |
| PARAM_VALUE | 0 | src->y2 | s32max |
| PARAM_VALUE | 1 | dst | 7018866305077252096 |
| PARAM_VALUE | 1 | dst->x1 | 0 |
| PARAM_VALUE | 1 | dst->x2 | 2 |
| PARAM_VALUE | 1 | dst->y1 | 0 |
| PARAM_VALUE | 1 | dst->y2 | 2 |
| PARAM_VALUE | 2 | clip | 7116254131823165440 |
| PARAM_VALUE | 2 | clip->x1 | 3 |
| PARAM_VALUE | 2 | clip->x2 | 4 |
| PARAM_VALUE | 2 | clip->y1 | 3 |
| PARAM_VALUE | 2 | clip->y2 | 4 |
drivers/gpu/drm/msm/disp/dpu1/dpu_plane.c dpu_plane_split() -> drm_rect_clip_scaled()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src | 4096-ptr_max |
| PARAM_VALUE | 1 | dst | 4096-ptr_max |
| PARAM_VALUE | 2 | clip | 7039372121230577664 |
| PARAM_VALUE | 2 | clip->y1 | 0 |
| PARAM_VALUE | 2 | clip->y2 | 0-u16max |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| HALF_LOCKED2 | &client->modeset_mutex | ||
| HALF_LOCKED2 | &dev->mode_config.connection_mutex | ||
| HALF_LOCKED2 | &dev->mode_config.connection_mutex.mutex | ||
| HALF_LOCKED2 | &state->dev->mode_config.connection_mutex | ||
| HALF_LOCKED2 | &state->dev->mode_config.connection_mutex.mutex |