Lines Matching refs:mscp_index
685 int mscp_index; in ultrastor_queuecommand() local
693 mscp_index = find_and_clear_bit_16(&config.mscp_free); in ultrastor_queuecommand()
696 if (xchgb(0xff, &config.aborted[mscp_index]) != 0) in ultrastor_queuecommand()
702 my_mscp = &config.mscp[mscp_index]; in ultrastor_queuecommand()
751 config.aborted[mscp_index] == 0xff) barrier(); in ultrastor_queuecommand()
757 && config.aborted[mscp_index] == 0xff) barrier(); in ultrastor_queuecommand()
772 status = xchgb(0, &config.aborted[mscp_index]); in ultrastor_queuecommand()
779 log_ultrastor_abort(&config, mscp_index); in ultrastor_queuecommand()
785 set_bit(mscp_index, &config.mscp_free); in ultrastor_queuecommand()
840 unsigned int mscp_index; in ultrastor_abort() local
851 mscp_index = ((struct mscp *)SCpnt->host_scribble) - config.mscp; in ultrastor_abort()
852 if (mscp_index >= ULTRASTOR_MAX_CMDS) in ultrastor_abort()
897 old_aborted = xchgb(DID_ABORT, &config.aborted[mscp_index]); in ultrastor_abort()
912 outl(virt_to_bus(&config.mscp[mscp_index]), config.ogm_address); in ultrastor_abort()
917 log_ultrastor_abort(&config, mscp_index); in ultrastor_abort()
925 log_ultrastor_abort(&config, mscp_index); in ultrastor_abort()
939 if (config.mscp[mscp_index].SCint != SCpnt) in ultrastor_abort()
941 config.mscp[mscp_index].SCint, SCpnt); in ultrastor_abort()
943 if (config.mscp[mscp_index].SCint == 0) in ultrastor_abort()
946 if (config.mscp[mscp_index].SCint != SCpnt) panic("Bad abort"); in ultrastor_abort()
947 config.mscp[mscp_index].SCint = 0; in ultrastor_abort()
948 done = config.mscp[mscp_index].done; in ultrastor_abort()
949 config.mscp[mscp_index].done = 0; in ultrastor_abort()
1036 unsigned int mscp_index; in ultrastor_interrupt() local
1046 mscp_index = mscp - config.mscp; in ultrastor_interrupt()
1047 if (mscp_index >= ULTRASTOR_MAX_CMDS) { in ultrastor_interrupt()
1062 mscp_index, (unsigned int) mscp); in ultrastor_interrupt()
1091 printk("MSCP %d (%x): no command\n", mscp_index, (unsigned int) mscp); in ultrastor_interrupt()
1096 set_bit(mscp_index, &config.mscp_free); in ultrastor_interrupt()
1098 config.aborted[mscp_index] = 0; in ultrastor_interrupt()
1136 set_bit(mscp_index, &config.mscp_free); in ultrastor_interrupt()
1140 if (config.aborted[mscp_index]) in ultrastor_interrupt()
1142 mscp_index, (unsigned int) mscp, config.aborted[mscp_index]); in ultrastor_interrupt()
1144 config.aborted[mscp_index] = 0; in ultrastor_interrupt()