Lines Matching refs:SCp
272 if (cmd->SCp.phase & in_arbitration) { in fdomain_work()
279 cmd->SCp.phase = in_selection; in fdomain_work()
288 } else if (cmd->SCp.phase & in_selection) { in fdomain_work()
300 cmd->SCp.phase = in_other; in fdomain_work()
312 outb(cmd->cmnd[cmd->SCp.sent_command++], in fdomain_work()
316 if (fd->chip != tmc1800 && !cmd->SCp.have_data_in) { in fdomain_work()
317 cmd->SCp.have_data_in = -1; in fdomain_work()
323 if (fd->chip != tmc1800 && !cmd->SCp.have_data_in) { in fdomain_work()
324 cmd->SCp.have_data_in = 1; in fdomain_work()
330 cmd->SCp.Status = inb(fd->base + REG_SCSI_DATA); in fdomain_work()
336 cmd->SCp.Message = inb(fd->base + REG_SCSI_DATA); in fdomain_work()
337 if (cmd->SCp.Message == COMMAND_COMPLETE) in fdomain_work()
343 if (fd->chip == tmc1800 && !cmd->SCp.have_data_in && in fdomain_work()
344 cmd->SCp.sent_command >= cmd->cmd_len) { in fdomain_work()
346 cmd->SCp.have_data_in = -1; in fdomain_work()
350 cmd->SCp.have_data_in = 1; in fdomain_work()
356 if (cmd->SCp.have_data_in == -1) /* DATA OUT */ in fdomain_work()
359 if (cmd->SCp.have_data_in == 1) /* DATA IN */ in fdomain_work()
363 set_status_byte(cmd, cmd->SCp.Status); in fdomain_work()
365 scsi_msg_to_host_byte(cmd, cmd->SCp.Message); in fdomain_work()
368 if (cmd->SCp.phase & disconnect) { in fdomain_work()
404 cmd->SCp.Status = 0; in fdomain_queue()
405 cmd->SCp.Message = 0; in fdomain_queue()
406 cmd->SCp.have_data_in = 0; in fdomain_queue()
407 cmd->SCp.sent_command = 0; in fdomain_queue()
408 cmd->SCp.phase = in_arbitration; in fdomain_queue()
443 fd->cur_cmd->SCp.phase |= aborted; in fdomain_abort()