static int blk_get_request(struct XenBlkDev *blkdev, struct ioreq *ioreq, RING_IDX rc)

{

    switch (blkdev->protocol) {

    case BLKIF_PROTOCOL_NATIVE:

        memcpy(&ioreq->req, RING_GET_REQUEST(&blkdev->rings.native, rc),

               sizeof(ioreq->req));

        break;

    case BLKIF_PROTOCOL_X86_32:

        blkif_get_x86_32_req(&ioreq->req,

                             RING_GET_REQUEST(&blkdev->rings.x86_32_part, rc));

        break;

    case BLKIF_PROTOCOL_X86_64:

        blkif_get_x86_64_req(&ioreq->req,

                             RING_GET_REQUEST(&blkdev->rings.x86_64_part, rc));

        break;

    }



    return 0;

}
static int blk_get_request(struct XenBlkDev *blkdev, struct ioreq *ioreq, RING_IDX rc)

{

    switch (blkdev->protocol) {

    case BLKIF_PROTOCOL_NATIVE:

        memcpy(&ioreq->req, RING_GET_REQUEST(&blkdev->rings.native, rc),

               sizeof(ioreq->req));

        break;

    case BLKIF_PROTOCOL_X86_32:

        blkif_get_x86_32_req(&ioreq->req,

                             RING_GET_REQUEST(&blkdev->rings.x86_32_part, rc));

        break;

    case BLKIF_PROTOCOL_X86_64:

        blkif_get_x86_64_req(&ioreq->req,

                             RING_GET_REQUEST(&blkdev->rings.x86_64_part, rc));

        break;

    }



    return 0;

}
static int FUNC_0(struct XenBlkDev *VAR_0, struct VAR_1 *VAR_1, RING_IDX VAR_2)

{

    switch (VAR_0->protocol) {

    case BLKIF_PROTOCOL_NATIVE:

        memcpy(&VAR_1->req, RING_GET_REQUEST(&VAR_0->rings.native, VAR_2),

               sizeof(VAR_1->req));

        break;

    case BLKIF_PROTOCOL_X86_32:

        blkif_get_x86_32_req(&VAR_1->req,

                             RING_GET_REQUEST(&VAR_0->rings.x86_32_part, VAR_2));

        break;

    case BLKIF_PROTOCOL_X86_64:

        blkif_get_x86_64_req(&VAR_1->req,

                             RING_GET_REQUEST(&VAR_0->rings.x86_64_part, VAR_2));

        break;

    }



    return 0;

}
static int FUNC_0(struct XenBlkDev *VAR_0, struct VAR_1 *VAR_1, RING_IDX VAR_2)
{ switch (VAR_0->protocol) { case BLKIF_PROTOCOL_NATIVE:
memcpy(&VAR_1->req, RING_GET_REQUEST(&VAR_0->rings.native, VAR_2),
sizeof(VAR_1->req)); break; case BLKIF_PROTOCOL_X86_32:
blkif_get_x86_32_req(&VAR_1->req,
RING_GET_REQUEST(&VAR_0->rings.x86_32_part, VAR_2)); break; case BLKIF_PROTOCOL_X86_64:
blkif_get_x86_64_req(&VAR_1->req,
RING_GET_REQUEST(&VAR_0->rings.x86_64_part, VAR_2)); break; } return 0; }