virtio_scsi.c (a6da214b7c9d8f1c32e1d1844c78f764db63cd48) | virtio_scsi.c (6c85d6b653caeba2ef982925703cbb4f2b3b3163) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Virtio SCSI HBA driver 4 * 5 * Copyright IBM Corp. 2010 6 * Copyright Red Hat, Inc. 2011 7 * 8 * Authors: --- 865 unchanged lines hidden (view full) --- 874 vqs_info[i].callback = virtscsi_req_done; 875 vqs_info[i].name = "request"; 876 } 877 878 for (; i < num_vqs; i++) 879 vqs_info[i].name = "request_poll"; 880 881 /* Discover virtqueues and write information to configuration. */ | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Virtio SCSI HBA driver 4 * 5 * Copyright IBM Corp. 2010 6 * Copyright Red Hat, Inc. 2011 7 * 8 * Authors: --- 865 unchanged lines hidden (view full) --- 874 vqs_info[i].callback = virtscsi_req_done; 875 vqs_info[i].name = "request"; 876 } 877 878 for (; i < num_vqs; i++) 879 vqs_info[i].name = "request_poll"; 880 881 /* Discover virtqueues and write information to configuration. */ |
882 err = virtio_find_vqs_info(vdev, num_vqs, vqs, vqs_info, &desc); | 882 err = virtio_find_vqs(vdev, num_vqs, vqs, vqs_info, &desc); |
883 if (err) 884 goto out; 885 886 virtscsi_init_vq(&vscsi->ctrl_vq, vqs[0]); 887 virtscsi_init_vq(&vscsi->event_vq, vqs[1]); 888 for (i = VIRTIO_SCSI_VQ_BASE; i < num_vqs; i++) 889 virtscsi_init_vq(&vscsi->req_vqs[i - VIRTIO_SCSI_VQ_BASE], 890 vqs[i]); --- 211 unchanged lines hidden --- | 883 if (err) 884 goto out; 885 886 virtscsi_init_vq(&vscsi->ctrl_vq, vqs[0]); 887 virtscsi_init_vq(&vscsi->event_vq, vqs[1]); 888 for (i = VIRTIO_SCSI_VQ_BASE; i < num_vqs; i++) 889 virtscsi_init_vq(&vscsi->req_vqs[i - VIRTIO_SCSI_VQ_BASE], 890 vqs[i]); --- 211 unchanged lines hidden --- |