Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 4 files:
- drivers/gpu/drm/drm_crtc.c, line 690
- drivers/gpu/drm/drm_framebuffer.c, line 102
- drivers/gpu/drm/drm_plane.c
- drivers/gpu/drm/tests/drm_framebuffer_test.c, line 490
Smatch caller information:
drivers/gpu/drm/tests/drm_framebuffer_test.c drm_test_framebuffer_check_src_coords() -> drm_framebuffer_check_src_coords()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 4 | fb | 6908825260138201088 |
| PARAM_VALUE | 4 | fb->base.id | 0 |
| PARAM_VALUE | 4 | fb->dev | 0 |
| PARAM_VALUE | 4 | fb->flags | 0 |
| PARAM_VALUE | 4 | fb->format | 0 |
| PARAM_VALUE | 4 | fb->funcs | 0 |
| PARAM_VALUE | 4 | fb->modifier | 0 |
drivers/gpu/drm/drm_plane.c __setplane_check() -> drm_framebuffer_check_src_coords()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 4 | fb | 4096-ptr_max |
| PARAM_VALUE | 4 | fb->format | 4096-ptr_max |
| CAPPED_DATA | 4 | fb->format->format | 1 |
| DATA_SOURCE | 0 | src_x | $7 |
| DATA_SOURCE | 1 | src_y | $8 |
| DATA_SOURCE | 2 | src_w | $9 |
| DATA_SOURCE | 3 | src_h | $10 |
| DATA_SOURCE | 4 | fb | $2 |
| USER_DATA | 0 | src_x | 0-u32max |
| USER_DATA | 1 | src_y | 0-u32max |
| USER_DATA | 2 | src_w | 0-u32max |
| USER_DATA | 3 | src_h | 0-u32max |
| HALF_LOCKED2 | &crtc->cursor->mutex | ||
| HALF_LOCKED2 | &crtc->mutex | ||
| HALF_LOCKED2 | &plane->dev->mode_config.connection_mutex | ||
| HALF_LOCKED2 | &plane->dev->mode_config.mutex |
drivers/gpu/drm/drm_plane.c drm_mode_page_flip_ioctl() -> drm_framebuffer_check_src_coords()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 4 | fb | 4096-ptr_max |
| DATA_SOURCE | 4 | fb | r drm_framebuffer_lookup |
| UNITS | 2 | src_w | unit_array_size |
| UNITS | 3 | src_h | unit_array_size |
| LOCK2 | &crtc->mutex | ||
| LOCK2 | &plane->mutex | ||
| TYPE_LOCK | (struct drm_crtc)->mutex | ||
| TYPE_LOCK | (struct drm_plane)->mutex |
drivers/gpu/drm/drm_crtc.c drm_crtc_check_viewport() -> drm_framebuffer_check_src_coords()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | src_x | 0,65536-4294901760 |
| PARAM_VALUE | 1 | src_y | 0,65536-4294901760 |
| PARAM_VALUE | 2 | src_w | 0,65536-4294901760 |
| PARAM_VALUE | 3 | src_h | 0,65536-4294901760 |
| PARAM_VALUE | 4 | fb | 4096-ptr_max |
| DATA_SOURCE | 4 | fb | $4 |
| BIT_INFO | 0 | src_x | 0x0,0xffff0000 |
| BIT_INFO | 1 | src_y | 0x0,0xffff0000 |
| BIT_INFO | 2 | src_w | 0x0,0xffff0000 |
| BIT_INFO | 3 | src_h | 0x0,0xffff0000 |
| USER_DATA | 0 | src_x | 0,65536-4294836224[c] |
| USER_DATA | 1 | src_y | 0,65536-4294836224[c] |
| USER_DATA | 2 | src_w | 0,65536-4294901760[c] |
| USER_DATA | 3 | src_h | 0,65536-4294901760[c] |
| HALF_LOCKED2 | &crtc->mutex | ||
| HALF_LOCKED2 | &plane->mutex |