Lines Matching refs:stat
158 unsigned char is, stat, inst; in fas216_dumpstate() local
161 stat = fas216_readb(info, REG_STAT); in fas216_dumpstate()
168 fas216_readb(info, REG_CMD), stat, inst, is, in fas216_dumpstate()
250 static const char *fas216_bus_phase(int stat) in fas216_bus_phase() argument
259 return phases[stat & STAT_BUSMASK]; in fas216_bus_phase()
352 static struct { int stat, ssr, isr, ph; } ph_list[PH_SIZE]; member
355 static void add_debug_list(int stat, int ssr, int isr, int ph) in add_debug_list() argument
357 ph_list[ph_ptr].stat = stat; in add_debug_list()
387 ph_list[i].stat, ph_list[i].ssr, in print_debug_list()
1171 int stat; in fas216_wait_cmd() local
1176 stat = fas216_readb(info, REG_STAT); in fas216_wait_cmd()
1177 if (stat & (STAT_INT|STAT_PARITYERROR)) in fas216_wait_cmd()
1182 return stat; in fas216_wait_cmd()
1187 unsigned int stat = fas216_wait_cmd(info, CMD_MSGACCEPTED); in fas216_get_msg_byte() local
1189 if ((stat & STAT_INT) == 0) in fas216_get_msg_byte()
1192 if ((stat & STAT_BUSMASK) != STAT_MESGIN) in fas216_get_msg_byte()
1197 stat = fas216_wait_cmd(info, CMD_TRANSFERINFO); in fas216_get_msg_byte()
1199 if ((stat & STAT_INT) == 0) in fas216_get_msg_byte()
1202 if (stat & STAT_PARITYERROR) in fas216_get_msg_byte()
1205 if ((stat & STAT_BUSMASK) != STAT_MESGIN) in fas216_get_msg_byte()
1217 fas216_log(info, LOG_ERROR, "unexpected phase change: status = %02x", stat); in fas216_get_msg_byte()
1354 static void fas216_busservice_intr(FAS216_Info *info, unsigned int stat, unsigned int is) in fas216_busservice_intr() argument
1360 stat, is, info->scsi.phase); in fas216_busservice_intr()
1376 if ((stat & STAT_BUSMASK) == STAT_MESGIN) in fas216_busservice_intr()
1395 switch (STATE(stat & STAT_BUSMASK, info->scsi.phase)) { in fas216_busservice_intr()
1523 fas216_bus_phase(stat)); in fas216_busservice_intr()
1534 fas216_bus_phase(stat), in fas216_busservice_intr()
1555 static void fas216_funcdone_intr(FAS216_Info *info, unsigned int stat, unsigned int is) in fas216_funcdone_intr() argument
1563 stat, is, info->scsi.phase); in fas216_funcdone_intr()
1585 if ((stat & STAT_BUSMASK) == STAT_MESGIN) { in fas216_funcdone_intr()
1638 unsigned char inst, is, stat; in fas216_intr() local
1643 stat = fas216_readb(info, REG_STAT); in fas216_intr()
1647 add_debug_list(stat, is, inst, info->scsi.phase); in fas216_intr()
1649 if (stat & STAT_INT) { in fas216_intr()
1663 fas216_busservice_intr(info, stat, is); in fas216_intr()
1665 fas216_funcdone_intr(info, stat, is); in fas216_intr()
1669 fas216_drv_phase(info), inst, is, stat); in fas216_intr()