Lines Matching defs:phase
210 ixfer_start(volatile struct scsidevice *hd, int len, uint8_t phase, int wait)
216 hd->scsi_pctl = phase;
271 uint8_t phase, ints;
280 * Wait for a phase change (or error) then let the device
284 phase = CMD_PHASE;
287 switch (phase) {
290 if (ixfer_start(hd, clen, phase, wait))
293 phase = xferphase;
300 if (ixfer_start(hd, len, phase, wait) ||
303 phase = STATUS_PHASE;
310 if (ixfer_start(hd, len, phase, wait))
313 phase = STATUS_PHASE;
318 if (ixfer_start(hd, sizeof(hs->sc_stat), phase, wait) ||
322 phase = MESG_IN_PHASE;
326 if (ixfer_start(hd, sizeof(hs->sc_msg), phase, wait) ||
332 phase = BUS_FREE_PHASE;
339 printf("scsi%d: unexpected scsi phase %d\n",
340 hs - scsi_softc, phase);
360 phase = hd->scsi_psns & PHASE;