Lines Matching refs:state

173  * an initial state.  All device file descriptors must be released
175 * from a container, the IOMMU will be disabled and all state lost,
177 * state.
378 * Set display link state and EDID blob.
400 * @link_state: display link state (read/write).
407 * (1) set link-state to down.
409 * (3) set link-state to up.
431 __u32 device_state; /* VFIO device state */
440 #define VFIO_DEVICE_STATE_VALID(state) \
441 (state & VFIO_DEVICE_STATE_V1_RESUMING ? \
442 (state & VFIO_DEVICE_STATE_MASK) == VFIO_DEVICE_STATE_V1_RESUMING : 1)
444 #define VFIO_DEVICE_STATE_IS_ERROR(state) \
445 ((state & VFIO_DEVICE_STATE_MASK) == (VFIO_DEVICE_STATE_V1_SAVING | \
448 #define VFIO_DEVICE_STATE_SET_ERROR(state) \
449 ((state & ~VFIO_DEVICE_STATE_MASK) | VFIO_DEVICE_STATE_V1_SAVING | \
966 * space. After it, the device should be in a blocking DMA state. This is only
1018 * Upon VFIO_DEVICE_FEATURE_SET, execute a migration state change on the VFIO
1019 * device. The new state is supplied in device_state, see enum
1022 * The kernel migration driver must fully transition the device to the new state
1025 * The kernel migration driver must not generate asynchronous device state
1030 * operating state or some other state along the combination transition path.
1032 * to return to the original state, or attempt to return to some other state
1042 * Upon VFIO_DEVICE_FEATURE_GET, get the current migration state of the VFIO
1059 * STOP - The device does not change the internal or external state
1060 * STOP_COPY - The device internal state can be read out
1061 * RESUMING - The device is stopped and is loading a new internal state
1067 * PRE_COPY - The device is running normally but tracking internal state
1078 * must not generate interrupts, DMA, or any other change to external state.
1079 * It must not change its internal state. When stopped the device and kernel
1081 * subsystems in the STOP state, for example PCI MSI-X and PCI config space.
1091 * to the data transfer FD into the device internal state and perform
1092 * final validity and consistency checking of the new device state. If the
1095 * optionally go to the ERROR state as described below.
1106 * and the device may advance its internal state.
1114 * state defined below.
1126 * These arcs begin the process of saving the device state and will return a
1128 * dirty logging of device state when entering PRE_COPY or PER_COPY_P2P.
1131 * RUNNING, P2P quiesced or in STOP. The STOP_COPY state is described below
1136 * However, while in the PRE_COPY_P2P state, the device is partially running
1137 * in the P2P quiescent state defined below, like RUNNING_P2P.
1144 * While in the STOP_COPY state the device has the same behavior as STOP
1146 * migration state. End of stream on the FD indicates the entire device
1147 * state has been transferred.
1154 * Entering the RESUMING state starts a process of restoring the device state
1158 * device state for this arc if required to prepare the device to receive the
1169 * ERROR cannot be specified as a device state, however any transition request
1176 * The optional peer to peer (P2P) quiescent state is intended to be a quiescent
1177 * state for the device for the purposes of managing multiple devices within a
1183 * FSM arc into a P2P state. For the purpose of specification the states
1185 * STOP or STOP_COPY the user must not touch the device, otherwise the state
1231 * return -EINVAL from any other migration state.
1244 * The dirty_bytes field tracks device state changes relative to data
1246 * the internal device state is modified or decrease as that modified
1247 * state is read from the device.
1252 * state, but these fields are not required to have any bearing relative
1261 * state. When read() is done on this temporary end of stream the kernel driver
1284 * state with the platform-based power management. Device use of lower power
1289 * know the current power state of the device. If any device access happens
1291 * low power state, then the host will move the device out of the low power
1292 * state as necessary prior to the access. Once the access is completed, the
1293 * device may re-enter the low power state. For single shot low power support
1305 * the low power state for the wake-up, the host will not allow the device to
1306 * re-enter a low power state without a subsequent user call to one of the low
1315 * the device has entered and is resumed from a low power state after
1317 * state, as managed through the runtime power management core, will not
1334 * in the latter case if the device had previously entered a low power state.
1428 * Note: Can be called on each device state.
1699 * - read PE state;
1724 #define VFIO_EEH_PE_GET_STATE 4 /* PE state retrieval */
1725 #define VFIO_EEH_PE_STATE_NORMAL 0 /* PE in functional state */