Defined in 1 files as a prototype:
Defined in 1 files as a function:
Referenced in 8 files:
- drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c, line 1111
- drivers/vfio/pci/mlx5/main.c, line 1249
- drivers/vfio/pci/pds/vfio_dev.c, line 59
- drivers/vfio/pci/qat/main.c, line 494
- drivers/vfio/pci/virtio/migrate.c, line 1211
- drivers/vfio/pci/xe/main.c, line 409
- drivers/vfio/vfio_main.c, line 898
- samples/vfio-mdev/mtty.c, line 1233
Smatch caller information:
drivers/vfio/pci/pds/vfio_dev.c pds_vfio_set_device_state() -> vfio_mig_get_next_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 1 | cur_fsm | 1-2,4-5 |
| PARAM_VALUE | 3 | next_fsm | 6118306774136705024 |
| DATA_SOURCE | 0 | device | $0 |
| DATA_SOURCE | 2 | new_fsm | $1 |
| PARAM_COMPARE | 1 | cur_fsm | != $2 |
| PARAM_COMPARE | 2 | new_fsm | != $1 |
| USER_DATA | 2 | new_fsm | 0-u32max |
| LOCK2 | &pds_vfio->state_mutex | ||
| TYPE_LOCK | (struct pds_vfio_pci_device)->state_mutex |
drivers/vfio/pci/mlx5/main.c mlx5vf_pci_set_device_state() -> vfio_mig_get_next_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 1 | cur_fsm | 1-7 |
| PARAM_VALUE | 3 | next_fsm | 5965719003183804416 |
| DATA_SOURCE | 0 | device | $0 |
| DATA_SOURCE | 2 | new_fsm | $1 |
| PARAM_COMPARE | 1 | cur_fsm | != $2 |
| PARAM_COMPARE | 2 | new_fsm | != $1 |
| USER_DATA | 2 | new_fsm | 0-u32max |
| UNITS | 1 | cur_fsm | unit_array_size |
| UNITS | 2 | new_fsm | unit_array_size |
| LOCK2 | &mvdev->state_mutex | ||
| TYPE_LOCK | (struct mlx5vf_pci_core_device)->state_mutex |
drivers/vfio/pci/xe/main.c xe_vfio_pci_set_device_state() -> vfio_mig_get_next_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 1 | cur_fsm | 1-5 |
| PARAM_VALUE | 3 | next_fsm | 3027164129394335744 |
| DATA_SOURCE | 0 | device | $0 |
| DATA_SOURCE | 2 | new_fsm | $1 |
| PARAM_COMPARE | 1 | cur_fsm | != $2 |
| PARAM_COMPARE | 2 | new_fsm | != $1 |
| USER_DATA | 2 | new_fsm | 0-u32max |
| LOCK2 | &xe_vdev->state_mutex | ||
| TYPE_LOCK | (struct xe_vfio_pci_core_device)->state_mutex |
drivers/vfio/pci/qat/main.c qat_vf_pci_set_device_state() -> vfio_mig_get_next_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 1 | cur_fsm | 1-7 |
| PARAM_VALUE | 3 | next_fsm | 2332820516319490048 |
| DATA_SOURCE | 0 | device | $0 |
| DATA_SOURCE | 2 | new_fsm | $1 |
| PARAM_COMPARE | 1 | cur_fsm | != $2 |
| PARAM_COMPARE | 2 | new_fsm | != $1 |
| USER_DATA | 2 | new_fsm | 0-u32max |
| UNITS | 1 | cur_fsm | unit_array_size |
| UNITS | 2 | new_fsm | unit_array_size |
| LOCK2 | &qat_vdev->state_mutex | ||
| TYPE_LOCK | (struct qat_vf_core_device)->state_mutex |
drivers/vfio/pci/hisilicon/hisi_acc_vfio_pci.c hisi_acc_vfio_pci_set_device_state() -> vfio_mig_get_next_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 1 | cur_fsm | 1-4,6 |
| PARAM_VALUE | 3 | next_fsm | 776293224021975040 |
| DATA_SOURCE | 0 | device | $0 |
| DATA_SOURCE | 2 | new_fsm | $1 |
| PARAM_COMPARE | 1 | cur_fsm | != $2 |
| PARAM_COMPARE | 2 | new_fsm | != $1 |
| USER_DATA | 2 | new_fsm | 0-u32max |
| LOCK2 | &hisi_acc_vdev->state_mutex | ||
| TYPE_LOCK | (struct hisi_acc_vf_core_device)->state_mutex |
samples/vfio-mdev/mtty.c mtty_set_state() -> vfio_mig_get_next_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 1 | cur_fsm | 1-7 |
| PARAM_VALUE | 3 | next_fsm | 8612880525104734208 |
| DATA_SOURCE | 0 | device | $0 |
| DATA_SOURCE | 2 | new_fsm | $1 |
| PARAM_COMPARE | 1 | cur_fsm | != $2 |
| USER_DATA | 2 | new_fsm | 0-u32max |
| LOCK2 | &mdev_state->state_mutex | ||
| TYPE_LOCK | (struct mdev_state)->state_mutex |
drivers/vfio/pci/virtio/migrate.c virtiovf_pci_set_device_state() -> vfio_mig_get_next_state()
| Type | Parameter | Key | Value |
|---|---|---|---|
| PARAM_VALUE | 0 | device | 4096-ptr_max |
| PARAM_VALUE | 1 | cur_fsm | 1-7 |
| PARAM_VALUE | 3 | next_fsm | 9174751931268956160 |
| DATA_SOURCE | 0 | device | $0 |
| DATA_SOURCE | 2 | new_fsm | $1 |
| PARAM_COMPARE | 1 | cur_fsm | != $2 |
| PARAM_COMPARE | 2 | new_fsm | != $1 |
| USER_DATA | 2 | new_fsm | 0-u32max |
| UNITS | 1 | cur_fsm | unit_array_size |
| UNITS | 2 | new_fsm | unit_array_size |
| LOCK2 | &virtvdev->state_mutex | ||
| TYPE_LOCK | (struct virtiovf_pci_core_device)->state_mutex |