void scsi_req_build_sense(SCSIRequest *req, SCSISense sense)

{

    trace_scsi_req_build_sense(req->dev->id, req->lun, req->tag,

                               sense.key, sense.asc, sense.ascq);

    memset(req->sense, 0, 18);

    req->sense[0] = 0xf0;

    req->sense[2] = sense.key;

    req->sense[7] = 10;

    req->sense[12] = sense.asc;

    req->sense[13] = sense.ascq;

    req->sense_len = 18;

}

void scsi_req_build_sense(SCSIRequest *req, SCSISense sense)

{

    trace_scsi_req_build_sense(req->dev->id, req->lun, req->tag,

                               sense.key, sense.asc, sense.ascq);

    memset(req->sense, 0, 18);

    req->sense[0] = 0xf0;

    req->sense[2] = sense.key;

    req->sense[7] = 10;

    req->sense[12] = sense.asc;

    req->sense[13] = sense.ascq;

    req->sense_len = 18;

}

void FUNC_0(SCSIRequest *VAR_0, SCSISense VAR_1)

{

    trace_scsi_req_build_sense(VAR_0->dev->id, VAR_0->lun, VAR_0->tag,

                               VAR_1.key, VAR_1.asc, VAR_1.ascq);

    memset(VAR_0->VAR_1, 0, 18);

    VAR_0->VAR_1[0] = 0xf0;

    VAR_0->VAR_1[2] = VAR_1.key;

    VAR_0->VAR_1[7] = 10;

    VAR_0->VAR_1[12] = VAR_1.asc;

    VAR_0->VAR_1[13] = VAR_1.ascq;

    VAR_0->sense_len = 18;

}

void FUNC_0(SCSIRequest *VAR_0, SCSISense VAR_1)
{ trace_scsi_req_build_sense(VAR_0->dev->id, VAR_0->lun, VAR_0->tag,
VAR_1.key, VAR_1.asc, VAR_1.ascq); memset(VAR_0->VAR_1, 0, 18); VAR_0->VAR_1[0] = 0xf0; VAR_0->VAR_1[2] = VAR_1.key; VAR_0->VAR_1[7] = 10; VAR_0->VAR_1[12] = VAR_1.asc; VAR_0->VAR_1[13] = VAR_1.ascq; VAR_0->sense_len = 18; }