Defined in 1 files as a function:

Referenced in 2 files:

Smatch caller information:

drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c compute_crc() -> vmw_surface_get_size_in_blocks()

Type Parameter Key Value
PARAM_VALUE 0 desc 4096-ptr_max
PARAM_VALUE 1 pixel_size 4096-ptr_max
PARAM_VALUE 2 block_size 3411632887549587456
BUF_SIZE 0 desc (-1),5544
BUF_SIZE 0 desc (-1),5544
DATA_SOURCE 0 desc r vmw_surface_get_desc
NOCHECK_CALL
HALF_LOCKED2 &pool->lock

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

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

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

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