static uint8_t *scsi_get_buf(SCSIDevice *d, uint32_t tag)

{

    SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);

    SCSIDiskReq *r;



    r = scsi_find_request(s, tag);

    if (!r) {

        BADF("Bad buffer tag 0x%x\n", tag);

        return NULL;

    }

    return (uint8_t *)r->iov.iov_base;

}

static uint8_t *scsi_get_buf(SCSIDevice *d, uint32_t tag)

{

    SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);

    SCSIDiskReq *r;



    r = scsi_find_request(s, tag);

    if (!r) {

        BADF("Bad buffer tag 0x%x\n", tag);

        return NULL;

    }

    return (uint8_t *)r->iov.iov_base;

}

    SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);     SCSIDiskReq *r;     r = scsi_find_request(s, tag);     SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);     SCSIDiskReq *r;     r = scsi_find_request(s, tag);     if (!r) {     SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);     SCSIDiskReq *r;     r = scsi_find_request(s, tag);     if (!r) { static uint8_t *scsi_get_buf(SCSIDevice *d, uint32_t tag)     SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);     SCSIDiskReq *r;     r = scsi_find_request(s, tag);     if (!r) {         BADF("Bad buffer tag 0x%x\n", tag);         return NULL;     SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);     SCSIDiskReq *r;     r = scsi_find_request(s, tag);     r = scsi_find_request(s, tag);     r = scsi_find_request(s, tag);     if (!r) {     r = scsi_find_request(s, tag);     if (!r) { static uint8_t *scsi_get_buf(SCSIDevice *d, uint32_t tag)     r = scsi_find_request(s, tag);     if (!r) {         BADF("Bad buffer tag 0x%x\n", tag);         return NULL;     r = scsi_find_request(s, tag);
static uint8_t *FUNC_0(SCSIDevice *d, uint32_t tag)

{

    SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d);

    SCSIDiskReq *r;



    r = scsi_find_request(s, tag);

    if (!r) {

        BADF("Bad buffer tag 0x%x\n", tag);

        return NULL;

    }

    return (uint8_t *)r->iov.iov_base;

}

static uint8_t *FUNC_0(SCSIDevice *d, uint32_t tag)
{ SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, d); SCSIDiskReq *r; r = scsi_find_request(s, tag); if (!r) { BADF("Bad buffer tag 0x%x\n", tag); return NULL; } return (uint8_t *)r->iov.iov_base; }