Lines Matching refs:srbcmd

1410 	struct aac_srb * srbcmd;  in aac_scsi_common()  local
1431 srbcmd = (struct aac_srb*) fib_data(fib); in aac_scsi_common()
1432 srbcmd->function = cpu_to_le32(SRBF_ExecuteScsi); in aac_scsi_common()
1433 srbcmd->channel = cpu_to_le32(aac_logical_to_phys(scmd_channel(cmd))); in aac_scsi_common()
1434 srbcmd->id = cpu_to_le32(scmd_id(cmd)); in aac_scsi_common()
1435 srbcmd->lun = cpu_to_le32(cmd->device->lun); in aac_scsi_common()
1436 srbcmd->flags = cpu_to_le32(flag); in aac_scsi_common()
1440 srbcmd->timeout = cpu_to_le32(timeout); // timeout in seconds in aac_scsi_common()
1441 srbcmd->retry_limit = 0; /* Obsolete parameter */ in aac_scsi_common()
1442 srbcmd->cdb_size = cpu_to_le32(cmd->cmd_len); in aac_scsi_common()
1443 return srbcmd; in aac_scsi_common()
1451 struct aac_srb * srbcmd = aac_scsi_common(fib, cmd); in aac_scsi_64() local
1454 ret = aac_build_sg64(cmd, (struct sgmap64 *) &srbcmd->sg); in aac_scsi_64()
1457 srbcmd->count = cpu_to_le32(scsi_bufflen(cmd)); in aac_scsi_64()
1459 memset(srbcmd->cdb, 0, sizeof(srbcmd->cdb)); in aac_scsi_64()
1460 memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); in aac_scsi_64()
1465 ((le32_to_cpu(srbcmd->sg.count) & 0xff) * in aac_scsi_64()
1482 struct aac_srb * srbcmd = aac_scsi_common(fib, cmd); in aac_scsi_32() local
1485 ret = aac_build_sg(cmd, (struct sgmap *)&srbcmd->sg); in aac_scsi_32()
1488 srbcmd->count = cpu_to_le32(scsi_bufflen(cmd)); in aac_scsi_32()
1490 memset(srbcmd->cdb, 0, sizeof(srbcmd->cdb)); in aac_scsi_32()
1491 memcpy(srbcmd->cdb, cmd->cmnd, cmd->cmd_len); in aac_scsi_32()
1496 (((le32_to_cpu(srbcmd->sg.count) & 0xff) - 1) * in aac_scsi_32()