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_dumb_buffers.c, line 257
- drivers/gpu/drm/drm_gem.c, line 462
- drivers/gpu/drm/exynos/exynos_drm_gem.c, line 261
- drivers/gpu/drm/msm/msm_drv.c
- drivers/gpu/drm/virtio/virtgpu_ioctl.c, line 83
Smatch caller information:
drivers/gpu/drm/virtio/virtgpu_ioctl.c virtio_gpu_map_ioctl() -> drm_gem_dumb_map_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->master_lookup_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 0 | file->minor | 4096-ptr_max |
| PARAM_VALUE | 0 | file->minor->dev | 4096-ptr_max |
| PARAM_VALUE | 3 | offset | 4096-ptr_max |
| BUF_SIZE | 0 | file | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | file | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | file | $2 |
| USER_DATA | 2 | handle | 0-u32max[u] |
| USER_DATA | 3 | *offset | 0-u64max[u] |
| USER_PTR | 3 | offset |
drivers/gpu/drm/drm_dumb_buffers.c drm_mode_mmap_dumb() -> drm_gem_dumb_map_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->master_lookup_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->driver | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->driver->dumb_create | 1-u64max |
| PARAM_VALUE | 1 | dev->driver->dumb_map_offset | 0 |
| PARAM_VALUE | 1 | dev->unplugged | 0 |
| PARAM_VALUE | 3 | offset | 4096-ptr_max |
| BUF_SIZE | 0 | file | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | file | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | file | $2 |
| DATA_SOURCE | 1 | dev | $0 |
| USER_DATA | 2 | handle | 0-u32max[u] |
| USER_DATA | 3 | *offset | 0-u64max[u] |
| UNITS | 1 | dev | unit_byte |
| USER_PTR | 3 | offset |
drivers/gpu/drm/exynos/exynos_drm_gem.c exynos_drm_gem_map_ioctl() -> drm_gem_dumb_map_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->master_lookup_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->unplugged | 0 |
| PARAM_VALUE | 3 | offset | 4096-ptr_max |
| BUF_SIZE | 0 | file | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | file | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | file | $2 |
| DATA_SOURCE | 1 | dev | $0 |
| USER_DATA | 2 | handle | 0-u32max[u] |
| USER_DATA | 3 | *offset | 0-u64max[u] |
| UNITS | 1 | dev | unit_byte |
| USER_PTR | 3 | offset |
drivers/gpu/drm/drm_dumb_buffers.c drm_mode_mmap_dumb() -> (struct drm_driver)->dumb_map_offset()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | file | 4096-ptr_max |
| PARAM_VALUE | 0 | file->master_lookup_lock.rlock.dep_map->name | 0-255 |
| PARAM_VALUE | 1 | dev | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->driver | 4096-ptr_max |
| PARAM_VALUE | 1 | dev->driver->dumb_create | 1-u64max |
| PARAM_VALUE | 1 | dev->driver->dumb_map_offset | 1-u64max |
| PARAM_VALUE | 1 | dev->unplugged | 0 |
| PARAM_VALUE | 3 | offset | 4096-ptr_max |
| BUF_SIZE | 0 | file | s32min-(-2),1-s32max |
| BUF_SIZE | 0 | file | s32min-(-2),1-s32max |
| DATA_SOURCE | 0 | file | $2 |
| DATA_SOURCE | 1 | dev | $0 |
| CONTAINER | 1 | -112-120+0 | $(-1) |
| USER_DATA | 2 | handle | 0-u32max[u] |
| USER_DATA | 3 | *offset | 0-u64max[u] |
| USER_PTR | 3 | offset |