Defined in 1 files as a function:

Referenced in 8 files:

Smatch caller information:

drivers/vfio/mdev/mdev_driver.c mdev_probe() -> to_mdev_device()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
BUF_SIZE 0 dev (-1)-0,4,16,24,56,64,120,168-s32max
BUF_SIZE 0 dev (-1)-0,4,16,24,56,64,120,168-s32max
CAPPED_DATA 0 dev 1
DATA_SOURCE 0 dev $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 0 &dev->mutex

drivers/vfio/mdev/mdev_driver.c mdev_remove() -> to_mdev_device()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
BUF_SIZE 0 dev (-1)-0,4,16,24,56,64,120,168-s32max
BUF_SIZE 0 dev (-1)-0,4,16,24,56,64,120,168-s32max
CAPPED_DATA 0 dev 1
CAPPED_DATA 0 dev->bus 1
CAPPED_DATA 0 dev->driver 1
DATA_SOURCE 0 dev $0
RX_PATH
TASK_NOT_RUNNING
HALF_LOCKED2 0 &dev->mutex

drivers/gpu/drm/i915/gvt/kvmgt.c intel_vgpu_init_dev() -> to_mdev_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

samples/vfio-mdev/mdpy.c mdpy_init_dev() -> to_mdev_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

samples/vfio-mdev/mbochs.c mbochs_init_dev() -> to_mdev_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/vfio/mdev/mdev_sysfs.c remove_store() -> to_mdev_device()

Type Parameter Key Value
DATA_SOURCE 0 dev $0
RX_PATH
TASK_NOT_RUNNING
LOCK2 &of->mutex
HALF_LOCKED2 &of->prealloc_mutex
HALF_LOCKED2 &pool->lock
TYPE_LOCK (struct kernfs_open_file)->mutex

samples/vfio-mdev/mtty.c mtty_init_dev() -> to_mdev_device()

Type Parameter Key Value
RX_PATH
TASK_NOT_RUNNING

drivers/vfio/mdev/mdev_core.c mdev_device_release() -> to_mdev_device()

Type Parameter Key Value
BUF_SIZE 0 dev (-1),1616
BUF_SIZE 0 dev (-1),1616
BUF_SIZE 0 dev->bus (-1),168
BUF_SIZE 0 dev->init_name (-1),32
BUF_SIZE 0 dev->parent (-1),1616
BUF_SIZE 0 dev->platform_data (-1),1360
DATA_SOURCE 0 dev $0
STR_LEN 0 dev->init_name (-1),31
RX_PATH
TASK_NOT_RUNNING

drivers/vfio/mdev/mdev_core.c mdev_device_remove_cb() -> to_mdev_device()

Type Parameter Key Value
PARAM_VALUE 0 dev 4096-ptr_max
DATA_SOURCE 0 dev $0