Lines Matching refs:status
148 u8 status;
150 status = ops->get_status(vdpa);
152 if (copy_to_user(statusp, &status, sizeof(status)))
162 u8 status, status_old;
166 if (copy_from_user(&status, statusp, sizeof(status)))
172 * Userspace shouldn't remove status bits unless reset the
173 * status to 0.
175 if (status != 0 && (ops->get_status(vdpa) & ~status) != 0)
178 ops->set_status(vdpa, status);
180 if ((status & VIRTIO_CONFIG_S_DRIVER_OK) && !(status_old & VIRTIO_CONFIG_S_DRIVER_OK))
184 if ((status_old & VIRTIO_CONFIG_S_DRIVER_OK) && !(status & VIRTIO_CONFIG_S_DRIVER_OK))