Lines Matching refs:dcdb
2024 memcpy(&scb->dcdb, &pt->CoppCP.dcdb, sizeof (IPS_DCDB_TABLE));
2053 if (scb->cmd.dcdb.op_code == IPS_CMD_DCDB)
2054 scb->cmd.dcdb.dcdb_address = cpu_to_le32(scb->scb_busaddr +
2056 dcdb -
2060 if (scb->cmd.dcdb.op_code == IPS_CMD_DCDB)
2061 scb->dcdb.buffer_pointer =
2073 scb->dcdb.cmd_attribute |= IPS_TIMEOUT10;
2075 scb->dcdb.cmd_attribute |= IPS_TIMEOUT60;
2077 scb->dcdb.cmd_attribute |= IPS_TIMEOUT20M;
2112 if (scb->cmd.dcdb.op_code == IPS_CMD_DCDB) /* Copy DCDB Back to Caller's Area */
2113 memcpy(&pt->CoppCP.dcdb, &scb->dcdb, sizeof (IPS_DCDB_TABLE));
2870 scb->dcdb.transfer_length = scb->data_len;
2883 scb->dcdb.transfer_length = scb->data_len;
2888 scb->dcdb.transfer_length = 0;
2893 scb->dcdb.cmd_attribute =
2899 scb->dcdb.cmd_attribute = 0;
2901 if (!(scb->dcdb.cmd_attribute & 0x3))
2902 scb->dcdb.transfer_length = 0;
2905 scb->dcdb.cmd_attribute |= IPS_TRANSFER64K;
2906 scb->dcdb.transfer_length = 0;
3416 scb->dcdb.transfer_length = scb->data_len;
3417 scb->dcdb.cmd_attribute |=
3420 if (!(scb->dcdb.cmd_attribute & 0x3))
3421 scb->dcdb.transfer_length = 0;
3424 scb->dcdb.cmd_attribute |= IPS_TRANSFER64K;
3425 scb->dcdb.transfer_length = 0;
3491 IPS_ERR_CKCOND ? scb->dcdb.sense_info[2] & 0xf : 0,
3493 IPS_ERR_CKCOND ? scb->dcdb.sense_info[12] : 0,
3495 IPS_ERR_CKCOND ? scb->dcdb.sense_info[13] : 0);
3523 if ((scb->cmd.dcdb.op_code == IPS_CMD_EXTENDED_DCDB) ||
3524 (scb->cmd.dcdb.op_code ==
3526 tapeDCDB = (IPS_DCDB_TABLE_TAPE *) & scb->dcdb;
3530 (uint32_t) scb->dcdb.transfer_length;
3565 if ((scb->cmd.dcdb.op_code ==
3567 || (scb->cmd.dcdb.op_code ==
3570 (IPS_DCDB_TABLE_TAPE *) & scb->dcdb;
3577 scb->dcdb.sense_info,
3985 scb->cmd.dcdb.command_id = IPS_COMMAND_ID(ha, scb);
3986 scb->cmd.dcdb.dcdb_address = cpu_to_le32(scb->scb_busaddr +
3988 dcdb -
3990 scb->cmd.dcdb.reserved = 0;
3991 scb->cmd.dcdb.reserved2 = 0;
3992 scb->cmd.dcdb.reserved3 = 0;
3993 scb->cmd.dcdb.segment_4G = 0;
3994 scb->cmd.dcdb.enhanced_sg = 0;
4000 scb->cmd.dcdb.op_code = IPS_CMD_EXTENDED_DCDB;
4002 scb->cmd.dcdb.op_code =
4004 scb->cmd.dcdb.enhanced_sg =
4008 tapeDCDB = (IPS_DCDB_TABLE_TAPE *) & scb->dcdb; /* Use Same Data Area as Old DCDB Struct */
4026 if (scb->cmd.dcdb.op_code == IPS_CMD_EXTENDED_DCDB_SG)
4040 scb->cmd.dcdb.op_code = IPS_CMD_DCDB;
4042 scb->cmd.dcdb.op_code = IPS_CMD_DCDB_SG;
4043 scb->cmd.dcdb.enhanced_sg =
4047 scb->dcdb.device_address =
4049 scb->dcdb.cmd_attribute |= IPS_DISCONNECT_ALLOWED;
4053 scb->dcdb.cmd_attribute |= IPS_TIMEOUT10; /* TimeOut is 10 Seconds */
4055 scb->dcdb.cmd_attribute |= IPS_TIMEOUT60; /* TimeOut is 60 Seconds */
4057 scb->dcdb.cmd_attribute |= IPS_TIMEOUT20M; /* TimeOut is 20 Minutes */
4060 scb->dcdb.transfer_length = scb->data_len;
4061 if (scb->dcdb.cmd_attribute & IPS_TRANSFER64K)
4062 scb->dcdb.transfer_length = 0;
4063 if (scb->cmd.dcdb.op_code == IPS_CMD_DCDB_SG)
4064 scb->dcdb.buffer_pointer =
4067 scb->dcdb.buffer_pointer =
4069 scb->dcdb.cdb_length = scb->scsi_cmd->cmd_len;
4070 scb->dcdb.sense_length = sizeof (scb->dcdb.sense_info);
4071 scb->dcdb.sg_count = scb->sg_len;
4072 scb->dcdb.reserved = 0;
4073 memcpy(scb->dcdb.scsi_cdb, scb->scsi_cmd->cmnd,
4075 scb->dcdb.scsi_status = 0;
4076 scb->dcdb.reserved2[0] = 0;
4077 scb->dcdb.reserved2[1] = 0;
4078 scb->dcdb.reserved2[2] = 0;