Documented in 1 files:
Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 8 files:
- drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c, line 386
- drivers/gpu/drm/drm_gem_ttm_helper.c, line 119
- drivers/gpu/drm/drm_gem_vram_helper.c, line 693
- drivers/gpu/drm/nouveau/nouveau_gem.c, line 227
- drivers/gpu/drm/qxl/qxl_object.c, line 100
- drivers/gpu/drm/radeon/radeon_gem.c, line 275
- drivers/gpu/drm/vmwgfx/vmwgfx_gem.c, line 132
- drivers/gpu/drm/xe/xe_bo.c, line 2253
Smatch caller information:
drivers/gpu/drm/vmwgfx/vmwgfx_gem.c vmw_gem_mmap() -> drm_gem_ttm_mmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gem | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->mmap | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->vm_ops | 0,4096-ptr_max |
| PARAM_VALUE | 0 | gem->import_attach | 0 |
| PARAM_VALUE | 1 | vma | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_ops | 0,4096-ptr_max |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma->vm_file | (-1)-s32max |
| BUF_SIZE | 1 | vma->vm_private_data | (-1),1-s32max |
| DATA_SOURCE | 0 | gem | $0 |
| DATA_SOURCE | 1 | vma | $1 |
| NOSPEC | 1 | vma->vm_pgoff | |
| NOSPEC | 1 | vma->vm_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | vma->vm_end | 4096-u64max[c] |
| USER_DATA | 1 | vma->vm_pgoff | 0-4503599627370495[c] |
| USER_DATA | 1 | vma->vm_start | 0-18446744073709547520 |
| NO_OVERFLOW_SIMPLE | 1 | vma->vm_pgoff | |
| HALF_LOCKED2 | &info->mm_lock |
drivers/gpu/drm/radeon/radeon_gem.c radeon_gem_object_mmap() -> drm_gem_ttm_mmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gem | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->mmap | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->vm_ops | 0,4096-ptr_max |
| PARAM_VALUE | 1 | vma | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_ops | 0,4096-ptr_max |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma->vm_file | (-1)-s32max |
| BUF_SIZE | 1 | vma->vm_private_data | (-1),1-s32max |
| DATA_SOURCE | 0 | gem | $0 |
| DATA_SOURCE | 1 | vma | $1 |
| NOSPEC | 1 | vma->vm_pgoff | |
| NOSPEC | 1 | vma->vm_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | vma->vm_end | 4096-u64max[c] |
| USER_DATA | 1 | vma->vm_pgoff | 0-4503599627370495[c] |
| USER_DATA | 1 | vma->vm_start | 0-18446744073709547520 |
| NO_OVERFLOW_SIMPLE | 1 | vma->vm_pgoff | |
| HALF_LOCKED2 | &info->mm_lock |
drivers/gpu/drm/xe/xe_bo.c xe_gem_object_mmap() -> drm_gem_ttm_mmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gem | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->mmap | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->vm_ops | 0,4096-ptr_max |
| PARAM_VALUE | 1 | vma | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_ops | 0,4096-ptr_max |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma->vm_file | (-1)-s32max |
| BUF_SIZE | 1 | vma->vm_private_data | (-1),1-s32max |
| DATA_SOURCE | 0 | gem | $0 |
| DATA_SOURCE | 1 | vma | $1 |
| NOSPEC | 1 | vma->vm_pgoff | |
| NOSPEC | 1 | vma->vm_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | vma->vm_end | 4096-u64max[c] |
| USER_DATA | 1 | vma->vm_pgoff | 0-4503599627370495[c] |
| USER_DATA | 1 | vma->vm_start | 0-18446744073709547520 |
| NO_OVERFLOW_SIMPLE | 1 | vma->vm_pgoff | |
| HALF_LOCKED2 | &info->mm_lock |
drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c amdgpu_gem_object_mmap() -> drm_gem_ttm_mmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gem | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->mmap | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->vm_ops | 0,4096-ptr_max |
| PARAM_VALUE | 1 | vma | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->flags.__vma_flags | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_ops | 0,4096-ptr_max |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma->vm_file | (-1)-s32max |
| BUF_SIZE | 1 | vma->vm_private_data | (-1),1-s32max |
| DATA_SOURCE | 0 | gem | $0 |
| DATA_SOURCE | 1 | vma | $1 |
| NOSPEC | 1 | vma->vm_pgoff | |
| NOSPEC | 1 | vma->vm_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | vma->vm_end | 4096-u64max[c] |
| USER_DATA | 1 | vma->vm_pgoff | 0-4503599627370495[c] |
| USER_DATA | 1 | vma->vm_start | 0-18446744073709547520 |
| NO_OVERFLOW_SIMPLE | 1 | vma->vm_pgoff | |
| HALF_LOCKED2 | &info->mm_lock |
drivers/gpu/drm/drm_gem.c drm_gem_mmap_obj() -> (struct drm_gem_object_funcs)->mmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gem | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->mmap | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->vm_ops | 0,4096-ptr_max |
| PARAM_VALUE | 1 | vma | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_ops | 0,4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_private_data | 4096-ptr_max |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma->vm_file | (-1)-s32max |
| BUF_SIZE | 1 | vma->vm_private_data | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| DATA_SOURCE | 0 | gem | $0 |
| DATA_SOURCE | 1 | vma | $2 |
| CONTAINER | 0 | -80-672+0 | $(-1) |
| NOSPEC | 1 | vma->vm_pgoff | |
| NOSPEC | 1 | vma->vm_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | vma->vm_end | 4096-u64max[c] |
| USER_DATA | 1 | vma->vm_pgoff | 0-4503599627370495[c] |
| USER_DATA | 1 | vma->vm_start | 0-18446744073709547520 |
| NO_OVERFLOW_SIMPLE | 1 | vma->vm_pgoff | |
| HALF_LOCKED2 | &info->mm_lock |
drivers/gpu/drm/drm_prime.c drm_gem_prime_mmap() -> (struct drm_gem_object_funcs)->mmap()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | gem | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->mmap | 4096-ptr_max |
| PARAM_VALUE | 0 | gem->funcs->vm_ops | 0,4096-ptr_max |
| PARAM_VALUE | 1 | vma | 4096-ptr_max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->process_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->request_key_auth->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->session_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnbytes | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_file->f_cred->thread_keyring->user->qnkeys | s32min-s32max |
| PARAM_VALUE | 1 | vma->vm_ops | 0,4096-ptr_max |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 0 | gem | (-1),16,24,40,48,56,72,80,112,120,136,168,184,224 |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma | (-1),1-s32max |
| BUF_SIZE | 1 | vma->vm_file | (-1)-0,4,24,64,168-s32max |
| BUF_SIZE | 1 | vma->vm_private_data | (-1),1-s32max |
| DATA_SOURCE | 0 | gem | $0 |
| DATA_SOURCE | 1 | vma | $1 |
| CONTAINER | 0 | -80-672+0 | $(-1) |
| NOSPEC | 1 | vma->vm_pgoff | |
| NOSPEC | 1 | vma->vm_start | |
| RX_PATH | |||
| TASK_NOT_RUNNING | |||
| USER_DATA | 1 | vma->vm_end | 4096-u64max[c] |
| USER_DATA | 1 | vma->vm_pgoff | 0-4503599627370495[c] |
| USER_DATA | 1 | vma->vm_start | 0-18446744073709547520 |
| NO_OVERFLOW_SIMPLE | 1 | vma->vm_pgoff | |
| HALF_LOCKED2 | &info->mm_lock |