Defined in 1 files as a prototype:

Defined in 4 files as a function:

Referenced in 3 files:

Smatch caller information:

drivers/pci/proc.c proc_bus_pci_mmap() -> pci_resource_to_user()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 bar 0-5
PARAM_VALUE 2 rsrc 4096-ptr_max
PARAM_VALUE 3 start 6821273567977439232
PARAM_VALUE 4 end 5519805613256978432
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
DATA_SOURCE 0 dev r pde_data
FUZZY_MAX 1 bar 5
CAPABLE 0 17
HARD_MAX 1 bar 5
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &ipcp->lock

drivers/pci/proc.c show_device() -> pci_resource_to_user()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 bar 0-6
PARAM_VALUE 2 rsrc 4096-ptr_max
PARAM_VALUE 3 start 6121791586798456832
PARAM_VALUE 4 end 1124535557091454976
DATA_SOURCE 0 dev $1
FUZZY_MAX 1 bar 6
HARD_MAX 1 bar 6
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

drivers/pci/proc.c show_device() -> pci_resource_to_user()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 bar 0-6
PARAM_VALUE 2 rsrc 4096-ptr_max
PARAM_VALUE 3 start 6121791586798456832
PARAM_VALUE 4 end 1124535557091454976
DATA_SOURCE 0 dev $1
FUZZY_MAX 1 bar 6
HARD_MAX 1 bar 6
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &m->lock
TYPE_LOCK (struct seq_file)->lock

drivers/pci/mmap.c pci_mmap_fits() -> pci_resource_to_user()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 bar 0-5
PARAM_VALUE 2 rsrc 4096-ptr_max
PARAM_VALUE 3 start 6014690818576850944
PARAM_VALUE 3 *start 0
PARAM_VALUE 4 end 3156543947073744896
BUF_SIZE 0 dev s32min-(-2),1-s32max
BUF_SIZE 0 dev s32min-(-2),1-s32max
DATA_SOURCE 0 dev $0
DATA_SOURCE 1 bar $1
FUZZY_MAX 1 bar 5
CAPABLE 0 17
HARD_MAX 1 bar 5
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
HALF_LOCKED2 &ipcp->lock

drivers/pci/pci-sysfs.c resource_show() -> pci_resource_to_user()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
PARAM_VALUE 1 bar 0-16
PARAM_VALUE 2 rsrc 4096-ptr_max
PARAM_VALUE 3 start 2312780345018200064
PARAM_VALUE 4 end 3908819565176061952
BUF_SIZE 2 rsrc (-1),64
BUF_SIZE 2 rsrc (-1),64
CAPPED_DATA 1 bar 1
RX_PATH
TASK_NOT_RUNNING
NOCHECK_CALL
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex