Lines Matching refs:dcdb
1897 memcpy(&scb->dcdb, &pt->CoppCP.dcdb, sizeof (IPS_DCDB_TABLE)); in ips_usrcmd()
1926 if (scb->cmd.dcdb.op_code == IPS_CMD_DCDB) in ips_usrcmd()
1927 scb->cmd.dcdb.dcdb_address = cpu_to_le32(scb->scb_busaddr + in ips_usrcmd()
1929 dcdb - in ips_usrcmd()
1933 if (scb->cmd.dcdb.op_code == IPS_CMD_DCDB) in ips_usrcmd()
1934 scb->dcdb.buffer_pointer = in ips_usrcmd()
1946 scb->dcdb.cmd_attribute |= IPS_TIMEOUT10; in ips_usrcmd()
1948 scb->dcdb.cmd_attribute |= IPS_TIMEOUT60; in ips_usrcmd()
1950 scb->dcdb.cmd_attribute |= IPS_TIMEOUT20M; in ips_usrcmd()
1985 if (scb->cmd.dcdb.op_code == IPS_CMD_DCDB) /* Copy DCDB Back to Caller's Area */ in ips_cleanup_passthru()
1986 memcpy(&pt->CoppCP.dcdb, &scb->dcdb, sizeof (IPS_DCDB_TABLE)); in ips_cleanup_passthru()
2659 scb->dcdb.transfer_length = scb->data_len; in ips_next()
2664 scb->dcdb.transfer_length = 0; in ips_next()
2667 scb->dcdb.cmd_attribute = in ips_next()
2674 scb->dcdb.cmd_attribute = 0; in ips_next()
2676 if (!(scb->dcdb.cmd_attribute & 0x3)) in ips_next()
2677 scb->dcdb.transfer_length = 0; in ips_next()
2680 scb->dcdb.cmd_attribute |= IPS_TRANSFER64K; in ips_next()
2681 scb->dcdb.transfer_length = 0; in ips_next()
3171 scb->dcdb.transfer_length = scb->data_len; in ips_done()
3172 scb->dcdb.cmd_attribute |= in ips_done()
3175 if (!(scb->dcdb.cmd_attribute & 0x3)) in ips_done()
3176 scb->dcdb.transfer_length = 0; in ips_done()
3179 scb->dcdb.cmd_attribute |= IPS_TRANSFER64K; in ips_done()
3180 scb->dcdb.transfer_length = 0; in ips_done()
3247 IPS_ERR_CKCOND ? scb->dcdb.sense_info[2] & 0xf : 0, in ips_map_status()
3249 IPS_ERR_CKCOND ? scb->dcdb.sense_info[12] : 0, in ips_map_status()
3251 IPS_ERR_CKCOND ? scb->dcdb.sense_info[13] : 0); in ips_map_status()
3279 if ((scb->cmd.dcdb.op_code == IPS_CMD_EXTENDED_DCDB) || in ips_map_status()
3280 (scb->cmd.dcdb.op_code == in ips_map_status()
3282 tapeDCDB = (IPS_DCDB_TABLE_TAPE *) & scb->dcdb; in ips_map_status()
3286 (uint32_t) scb->dcdb.transfer_length; in ips_map_status()
3321 if ((scb->cmd.dcdb.op_code == in ips_map_status()
3323 || (scb->cmd.dcdb.op_code == in ips_map_status()
3326 (IPS_DCDB_TABLE_TAPE *) & scb->dcdb; in ips_map_status()
3334 scb->dcdb.sense_info, in ips_map_status()
3335 sizeof(scb->dcdb.sense_info), 0); in ips_map_status()
3705 scb->cmd.dcdb.command_id = IPS_COMMAND_ID(ha, scb); in ips_send_cmd()
3706 scb->cmd.dcdb.dcdb_address = cpu_to_le32(scb->scb_busaddr + in ips_send_cmd()
3708 dcdb - in ips_send_cmd()
3710 scb->cmd.dcdb.reserved = 0; in ips_send_cmd()
3711 scb->cmd.dcdb.reserved2 = 0; in ips_send_cmd()
3712 scb->cmd.dcdb.reserved3 = 0; in ips_send_cmd()
3713 scb->cmd.dcdb.segment_4G = 0; in ips_send_cmd()
3714 scb->cmd.dcdb.enhanced_sg = 0; in ips_send_cmd()
3720 scb->cmd.dcdb.op_code = IPS_CMD_EXTENDED_DCDB; in ips_send_cmd()
3722 scb->cmd.dcdb.op_code = in ips_send_cmd()
3724 scb->cmd.dcdb.enhanced_sg = in ips_send_cmd()
3728 tapeDCDB = (IPS_DCDB_TABLE_TAPE *) & scb->dcdb; /* Use Same Data Area as Old DCDB Struct */ in ips_send_cmd()
3746 if (scb->cmd.dcdb.op_code == IPS_CMD_EXTENDED_DCDB_SG) in ips_send_cmd()
3760 scb->cmd.dcdb.op_code = IPS_CMD_DCDB; in ips_send_cmd()
3762 scb->cmd.dcdb.op_code = IPS_CMD_DCDB_SG; in ips_send_cmd()
3763 scb->cmd.dcdb.enhanced_sg = in ips_send_cmd()
3767 scb->dcdb.device_address = in ips_send_cmd()
3769 scb->dcdb.cmd_attribute |= IPS_DISCONNECT_ALLOWED; in ips_send_cmd()
3773 scb->dcdb.cmd_attribute |= IPS_TIMEOUT10; /* TimeOut is 10 Seconds */ in ips_send_cmd()
3775 scb->dcdb.cmd_attribute |= IPS_TIMEOUT60; /* TimeOut is 60 Seconds */ in ips_send_cmd()
3777 scb->dcdb.cmd_attribute |= IPS_TIMEOUT20M; /* TimeOut is 20 Minutes */ in ips_send_cmd()
3780 scb->dcdb.transfer_length = scb->data_len; in ips_send_cmd()
3781 if (scb->dcdb.cmd_attribute & IPS_TRANSFER64K) in ips_send_cmd()
3782 scb->dcdb.transfer_length = 0; in ips_send_cmd()
3783 if (scb->cmd.dcdb.op_code == IPS_CMD_DCDB_SG) in ips_send_cmd()
3784 scb->dcdb.buffer_pointer = in ips_send_cmd()
3787 scb->dcdb.buffer_pointer = in ips_send_cmd()
3789 scb->dcdb.cdb_length = scb->scsi_cmd->cmd_len; in ips_send_cmd()
3790 scb->dcdb.sense_length = sizeof (scb->dcdb.sense_info); in ips_send_cmd()
3791 scb->dcdb.sg_count = scb->sg_len; in ips_send_cmd()
3792 scb->dcdb.reserved = 0; in ips_send_cmd()
3793 memcpy(scb->dcdb.scsi_cdb, scb->scsi_cmd->cmnd, in ips_send_cmd()
3795 scb->dcdb.scsi_status = 0; in ips_send_cmd()
3796 scb->dcdb.reserved2[0] = 0; in ips_send_cmd()
3797 scb->dcdb.reserved2[1] = 0; in ips_send_cmd()
3798 scb->dcdb.reserved2[2] = 0; in ips_send_cmd()