Lines Matching defs:hs
82 struct scsi_softc *hs;
90 hs = &scsi_softc[i];
91 hs->sc_addr = hw->hw_kva;
96 hs->sc_alive = 1;
122 struct scsi_softc *hs;
125 hs = &scsi_softc[unit];
126 hd = (void *)hs->sc_addr;
148 hs->sc_scsi_addr = 1 << i;
163 scsiabort(struct scsi_softc *hs, volatile struct scsidevice *hd)
166 printf("scsi%d error: scsiabort\n", hs - scsi_softc);
168 scsireset(hs - scsi_softc);
267 scsiicmd(struct scsi_softc *hs, int target, uint8_t *cbuf, int clen,
270 volatile struct scsidevice *hd = (void *)hs->sc_addr;
275 if (issue_select(hd, target, hs->sc_scsi_addr))
283 hs->sc_stat = -1;
318 if (ixfer_start(hd, sizeof(hs->sc_stat), phase, wait) ||
320 ixfer_in(hd, sizeof(hs->sc_stat),
321 (uint8_t *)&hs->sc_stat);
326 if (ixfer_start(hd, sizeof(hs->sc_msg), phase, wait) ||
328 ixfer_in(hd, sizeof(hs->sc_msg),
329 (uint8_t *)&hs->sc_msg);
340 hs - scsi_softc, phase);
367 scsiabort(hs, hd);
369 return hs->sc_stat;
375 struct scsi_softc *hs = &scsi_softc[ctlr];
378 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), NULL, 0,
385 struct scsi_softc *hs = &scsi_softc[ctlr];
389 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len,
396 struct scsi_softc *hs = &scsi_softc[ctlr];
399 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len,
407 struct scsi_softc *hs = &scsi_softc[ctlr];
411 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len,
420 struct scsi_softc *hs = &scsi_softc[ctlr];
431 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len,
439 struct scsi_softc *hs = &scsi_softc[ctlr];
450 return scsiicmd(hs, slave, (uint8_t *)&cdb, sizeof(cdb), buf, len,