Defined in 1 files as a function:

Referenced in 1 files:

Smatch caller information:

drivers/xen/gntdev.c gntdev_ioctl_unmap_grant_ref() -> gntdev_find_map_index()

Type Parameter Key Value
BUF_SIZE 0 priv s32min-(-2),1-s32max
BUF_SIZE 0 priv s32min-(-2),1-s32max
CAPPED_DATA 0 &priv->lock 1
DATA_SOURCE 0 priv $0
USER_DATA 1 index s32min-s32max
USER_DATA 2 count s32min-s32max
UNITS 1 index unit_page
LOCK2 0 &priv->lock
TYPE_LOCK (struct gntdev_priv)->lock

drivers/xen/gntdev.c gntdev_mmap() -> gntdev_find_map_index()

Type Parameter Key Value
BUF_SIZE 0 priv (-1),1216
BUF_SIZE 0 priv (-1),1216
CAPPED_DATA 0 &priv->lock 1
DATA_SOURCE 2 count r vma_pages
NOSPEC 1 index
NOSPEC 1 index
RX_PATH
TASK_NOT_RUNNING
USER_DATA 1 index 0-s32max[c]
USER_DATA 2 count 0-s32max[c]
NO_OVERFLOW_SIMPLE 1 index
UNITS 1 index unit_page
LOCK2 0 &priv->lock
HALF_LOCKED2 &ipcp->lock
TYPE_LOCK (struct gntdev_priv)->lock