Lines Matching refs:mscp_index
709 int mscp_index; in ultrastor_queuecommand_lck() local
716 mscp_index = find_and_clear_bit_16(&config.mscp_free); in ultrastor_queuecommand_lck()
719 if (xchgb(0xff, &config.aborted[mscp_index]) != 0) in ultrastor_queuecommand_lck()
725 my_mscp = &config.mscp[mscp_index]; in ultrastor_queuecommand_lck()
770 while (inb(config.ogm_address - 1) != 0 && config.aborted[mscp_index] == 0xff) in ultrastor_queuecommand_lck()
775 …ELL_INTR(config.doorbell_address)) & (config.slot ? 2 : 1)) && config.aborted[mscp_index] == 0xff) in ultrastor_queuecommand_lck()
786 status = xchgb(0, &config.aborted[mscp_index]); in ultrastor_queuecommand_lck()
792 log_ultrastor_abort(&config, mscp_index); in ultrastor_queuecommand_lck()
798 set_bit(mscp_index, &config.mscp_free); in ultrastor_queuecommand_lck()
853 unsigned int mscp_index; in DEF_SCSI_QCMD() local
866 mscp_index = ((struct mscp *)SCpnt->host_scribble) - config.mscp; in DEF_SCSI_QCMD()
867 if (mscp_index >= ULTRASTOR_MAX_CMDS) in DEF_SCSI_QCMD()
911 old_aborted = xchgb(DID_ABORT, &config.aborted[mscp_index]); in DEF_SCSI_QCMD()
925 outl(isa_virt_to_bus(&config.mscp[mscp_index]), config.ogm_address); in DEF_SCSI_QCMD()
930 log_ultrastor_abort(&config, mscp_index); in DEF_SCSI_QCMD()
939 log_ultrastor_abort(&config, mscp_index); in DEF_SCSI_QCMD()
953 if (config.mscp[mscp_index].SCint != SCpnt) in DEF_SCSI_QCMD()
955 config.mscp[mscp_index].SCint, SCpnt); in DEF_SCSI_QCMD()
957 if (config.mscp[mscp_index].SCint == NULL) in DEF_SCSI_QCMD()
960 if (config.mscp[mscp_index].SCint != SCpnt) panic("Bad abort"); in DEF_SCSI_QCMD()
961 config.mscp[mscp_index].SCint = NULL; in DEF_SCSI_QCMD()
962 done = config.mscp[mscp_index].done; in DEF_SCSI_QCMD()
963 config.mscp[mscp_index].done = NULL; in DEF_SCSI_QCMD()
1055 unsigned int mscp_index; in ultrastor_interrupt() local
1065 mscp_index = mscp - config.mscp; in ultrastor_interrupt()
1066 if (mscp_index >= ULTRASTOR_MAX_CMDS) { in ultrastor_interrupt()
1081 mscp_index, (unsigned int) mscp); in ultrastor_interrupt()
1110 printk("MSCP %d (%x): no command\n", mscp_index, (unsigned int) mscp); in ultrastor_interrupt()
1115 set_bit(mscp_index, &config.mscp_free); in ultrastor_interrupt()
1117 config.aborted[mscp_index] = 0; in ultrastor_interrupt()
1155 set_bit(mscp_index, &config.mscp_free); in ultrastor_interrupt()
1159 if (config.aborted[mscp_index]) in ultrastor_interrupt()
1161 mscp_index, (unsigned int) mscp, config.aborted[mscp_index]); in ultrastor_interrupt()
1163 config.aborted[mscp_index] = 0; in ultrastor_interrupt()