Lines Matching refs:STATE
568 #define STATE (HOSTDATA(shpnt)->state) macro
1272 STATE = 0;
1464 } else if(STATE==seldi) {
2913 PREVSTATE = STATE;
2914 STATE=unknown;
2917 STATE=rsti;
2921 STATE=seldi;
2923 STATE=seldo;
2925 STATE=selto;
2927 STATE=busfree;
2930 STATE=parerr;
2934 case P_MSGI: STATE=msgi; break;
2935 case P_MSGO: STATE=msgo; break;
2936 case P_DATAO: STATE=datao; break;
2937 case P_DATAI: STATE=datai; break;
2938 case P_STATUS: STATE=status; break;
2939 case P_CMD: STATE=cmd; break;
2944 if((stat0 & SELDI) && STATE!=seldi && !dataphase) {
2949 if(STATE!=PREVSTATE) {
3027 …DPRINTK(debug_phases, LEAD "start %s %s(%s)\n", CMDINFO(CURRENT_SC), states[STATE].name, states[PR…
3033 if(PREVSTATE!=STATE && states[PREVSTATE].end)
3041 if(states[PREVSTATE].spio && !states[STATE].spio) {
3063 if(!states[PREVSTATE].spio && states[STATE].spio) {
3074 if(PREVSTATE!=STATE && states[STATE].init)
3075 states[STATE].init(shpnt);
3081 if(states[STATE].run)
3082 states[STATE].run(shpnt);
3084 printk(ERR_LEAD "unexpected state (%x)\n", CMDINFO(CURRENT_SC), STATE);
3095 HOSTDATA(shpnt)->count[STATE]++;
3096 if(PREVSTATE!=STATE)
3097 HOSTDATA(shpnt)->count_trans[STATE]++;
3098 HOSTDATA(shpnt)->time[STATE] += jiffies-start;
3102 …DPRINTK(debug_phases, LEAD "end %s %s(%s)\n", CMDINFO(CURRENT_SC), states[STATE].name, states[PREV…
3136 states[STATE].name,
3506 …SPRINTF("\n%s: %s(%s) ", CURRENT_SC ? "on bus" : "waiting", states[STATE].name, states[PREVSTATE].…