Lines Matching refs:next_msg
687 struct scmi_vio_msg *next_msg, *msg = xfer->priv; in virtio_poll_done() local
728 while ((next_msg = virtqueue_get_buf(vioch->vqueue, &length))) { in virtio_poll_done()
735 spin_lock(&next_msg->poll_lock); in virtio_poll_done()
736 if (next_msg->poll_status == VIO_MSG_POLLING) { in virtio_poll_done()
737 next_msg->poll_status = VIO_MSG_POLL_DONE; in virtio_poll_done()
740 spin_unlock(&next_msg->poll_lock); in virtio_poll_done()
742 next_msg->rx_len = length; in virtio_poll_done()
744 if (next_msg == msg) { in virtio_poll_done()
756 spin_lock(&next_msg->poll_lock); in virtio_poll_done()
757 if (next_msg->poll_status == VIO_MSG_NOT_POLLED || in virtio_poll_done()
758 next_msg->poll_status == VIO_MSG_POLL_TIMEOUT) { in virtio_poll_done()
759 spin_unlock(&next_msg->poll_lock); in virtio_poll_done()
763 list_add_tail(&next_msg->list, in virtio_poll_done()
767 spin_unlock(&next_msg->poll_lock); in virtio_poll_done()