Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/gpu/drm/vmwgfx/vmwgfx_surface.c vmw_dumb_create() -> vmw_surface_calculate_pitch()

Type Parameter Key Value
PARAM_VALUE 0 desc 6148542201024901124,6148542201024901132,6148542201024901508,6148542201024901688
PARAM_VALUE 1 size 8371368824701906944
PARAM_VALUE 1 size->depth 1
PARAM_VALUE 1 size->height 1-u32max
PARAM_VALUE 1 size->width 1-u32max
DATA_SOURCE 0 desc r vmw_surface_get_desc
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size->height 1-s32max[c]
USER_DATA 1 size->width 1-u32max[u]
NO_OVERFLOW_SIMPLE 1 size->height
NO_OVERFLOW_SIMPLE 1 size->width

drivers/gpu/drm/vmwgfx/vmwgfx_surface.c vmw_surface_define_ioctl() -> vmw_surface_calculate_pitch()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
PARAM_VALUE 1 size 1-u64max
BUF_SIZE 0 desc (-1),5544
BUF_SIZE 0 desc (-1),5544
BUF_SIZE 1 size 16,u64max
BUF_SIZE 1 size 16,u64max
DATA_SOURCE 0 desc r vmw_surface_get_desc
USER_DATA 1 size->depth 0-u32max
USER_DATA 1 size->height 0-u32max
USER_DATA 1 size->pad64 0-u32max
USER_DATA 1 size->width 0-u32max
USER_PTR 1 size

drivers/gpu/drm/vmwgfx/vmwgfx_surface.c vmw_surface_dma_encode() -> vmw_surface_calculate_pitch()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
PARAM_VALUE 1 size 4096-ptr_max
BUF_SIZE 0 desc (-1),5544
BUF_SIZE 0 desc (-1),5544
DATA_SOURCE 0 desc r vmw_surface_get_desc
RX_PATH
TASK_NOT_RUNNING

drivers/gpu/drm/vmwgfx/vmwgfx_surface.c vmw_surface_get_image_buffer_size() -> vmw_surface_calculate_pitch()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
PARAM_VALUE 1 size 4096-ptr_max
BUF_SIZE 0 desc (-1),5544
BUF_SIZE 0 desc (-1),5544
BUF_SIZE 1 size (-1),16
BUF_SIZE 1 size (-1),16
DATA_SOURCE 0 desc $0
DATA_SOURCE 1 size $1
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 size->depth 0-u32max
USER_DATA 1 size->height 0-u32max
USER_DATA 1 size->pad64 0-u32max
USER_DATA 1 size->width 0-u32max
USER_PTR 1 size