Defined in 1 files as a prototype:

Defined in 1 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/gpu/drm/radeon/radeon_connectors.c radeon_connector_set_property() -> (struct drm_crtc_funcs)->gamma_set()

Type Parameter Key Value
PARAM_VALUE 0 crtc 4096-ptr_max
PARAM_VALUE 0 crtc->funcs 4096-ptr_max
PARAM_VALUE 1 r 0
PARAM_VALUE 2 g 0
PARAM_VALUE 3 b 0
PARAM_VALUE 4 size 0
PARAM_VALUE 5 ctx 0
CONTAINER 0 -32-536+0 $(-1)
NOCHECK_CALL
HALF_LOCKED2 &dev->mode_config.connection_mutex
HALF_LOCKED2 &dev->mode_config.mutex

drivers/gpu/drm/drm_fb_helper.c setcmap_legacy() -> (struct drm_crtc_funcs)->gamma_set()

Type Parameter Key Value
PARAM_VALUE 0 crtc 4096-ptr_max
PARAM_VALUE 0 crtc->funcs 4096-ptr_max
PARAM_VALUE 0 crtc->funcs->gamma_set 1-u64max
PARAM_VALUE 0 crtc->gamma_size 1-u32max
PARAM_VALUE 2 g 4096-ptr_max
PARAM_VALUE 4 size 1-u32max
PARAM_VALUE 5 ctx 0
BUF_SIZE 1 r 6
BUF_SIZE 1 r 6
CONTAINER 0 -32-536+0 $(-1)
CONTAINER 1 *(-32-536+552) $(-1)
CONTAINER 4 *(-32-536+544) $(-1)
PARAM_COMPARE 1 r < $2
PARAM_COMPARE 2 g < $3
PARAM_COMPARE 2 g > $1
PARAM_COMPARE 2 g > $1
PARAM_COMPARE 3 b > $2
PARAM_COMPARE 3 b > $2
PARAM_COMPARE 4 size < $3
PARAM_COMPARE 4 size <= $2
RX_PATH
TASK_NOT_RUNNING
LOCK2 &dev->master_mutex
LOCK2 &fb_helper->client.modeset_mutex
LOCK2 &fb_helper->dev->mode_config.mutex
LOCK2 &fb_helper->lock
HALF_LOCKED2 &info->lock
HALF_LOCKED2 global &console_sem
TYPE_LOCK (struct drm_client_dev)->modeset_mutex
TYPE_LOCK (struct drm_device)->master_mutex
TYPE_LOCK (struct drm_fb_helper)->lock
TYPE_LOCK (struct drm_mode_config)->mutex

drivers/gpu/drm/drm_color_mgmt.c drm_crtc_legacy_gamma_set() -> (struct drm_crtc_funcs)->gamma_set()

Type Parameter Key Value
PARAM_VALUE 0 crtc 4096-ptr_max
PARAM_VALUE 0 crtc->dev 4096-ptr_max
PARAM_VALUE 0 crtc->dev->mode_config.degamma_lut_property 4096-ptr_max
PARAM_VALUE 0 crtc->dev->mode_config.gamma_lut_property 4096-ptr_max
PARAM_VALUE 0 crtc->funcs 4096-ptr_max
PARAM_VALUE 0 crtc->funcs->gamma_set 4096-ptr_max
PARAM_VALUE 0 crtc->gamma_size 1-u32max
PARAM_VALUE 2 g 4096-ptr_max
PARAM_VALUE 4 size 1-u32max
PARAM_VALUE 5 ctx 8254934107519012864
BUF_SIZE 1 r 6
BUF_SIZE 1 r 6
CAPPED_DATA 0 crtc->gamma_size 1
CAPPED_DATA 4 size 1
DATA_SOURCE 0 crtc $0
DATA_SOURCE 1 r $1
DATA_SOURCE 2 g $2
DATA_SOURCE 3 b $3
DATA_SOURCE 4 size $4
DATA_SOURCE 5 ctx $5
CONTAINER 0 -32-536+0 $(-1)
MEM_ZERO 5 ctx
USER_DATA 1 *r 0-u16max
USER_DATA 2 *g 0-u16max
USER_DATA 3 *b 0-u16max
NO_OVERFLOW_SIMPLE 0 crtc->dev->mode_config.num_colorop
NO_OVERFLOW_SIMPLE 0 crtc->dev->mode_config.num_crtc
NO_OVERFLOW_SIMPLE 0 crtc->dev->mode_config.num_total_plane
USER_PTR 1 r
USER_PTR 2 g
USER_PTR 3 b
HALF_LOCKED2 &dev->mode_config.connection_mutex
HALF_LOCKED2 &dev->mode_config.mutex