static void qemu_sgl_init_external(VirtIOSCSIReq *req, struct iovec *sg,

                                   hwaddr *addr, int num)

{

    QEMUSGList *qsgl = &req->qsgl;



    qemu_sglist_init(qsgl, DEVICE(req->dev), num, &address_space_memory);

    while (num--) {

        qemu_sglist_add(qsgl, *(addr++), (sg++)->iov_len);

    }

}

static void qemu_sgl_init_external(VirtIOSCSIReq *req, struct iovec *sg,

                                   hwaddr *addr, int num)

{

    QEMUSGList *qsgl = &req->qsgl;



    qemu_sglist_init(qsgl, DEVICE(req->dev), num, &address_space_memory);

    while (num--) {

        qemu_sglist_add(qsgl, *(addr++), (sg++)->iov_len);

    }

}

static void FUNC_0(VirtIOSCSIReq *VAR_0, struct iovec *VAR_1,

                                   hwaddr *VAR_2, int VAR_3)

{

    QEMUSGList *qsgl = &VAR_0->qsgl;



    qemu_sglist_init(qsgl, DEVICE(VAR_0->dev), VAR_3, &address_space_memory);

    while (VAR_3--) {

        qemu_sglist_add(qsgl, *(VAR_2++), (VAR_1++)->iov_len);

    }

}

static void FUNC_0(VirtIOSCSIReq *VAR_0, struct iovec *VAR_1,
hwaddr *VAR_2, int VAR_3)
{ QEMUSGList *qsgl = &VAR_0->qsgl; qemu_sglist_init(qsgl, DEVICE(VAR_0->dev), VAR_3, &address_space_memory); while (VAR_3--) { qemu_sglist_add(qsgl, *(VAR_2++), (VAR_1++)->iov_len); } }