Lines Matching refs:periph
60 struct scsipi_periph *periph = xs->xs_periph; in atapi_interpret_sense() local
69 if (periph->periph_switch->psw_error != NULL) { in atapi_interpret_sense()
70 SC_DEBUG(periph, SCSIPI_DB2, in atapi_interpret_sense()
72 error = (*periph->periph_switch->psw_error)(xs); in atapi_interpret_sense()
94 if ((periph->periph_flags & PERIPH_REMOVABLE) != 0) in atapi_interpret_sense()
95 periph->periph_flags &= ~PERIPH_MEDIA_LOADED; in atapi_interpret_sense()
121 if ((periph->periph_flags & PERIPH_REMOVABLE) != 0) in atapi_interpret_sense()
122 periph->periph_flags &= ~PERIPH_MEDIA_LOADED; in atapi_interpret_sense()
126 (periph->periph_flags & PERIPH_REMOVABLE) == 0) in atapi_interpret_sense()
170 scsipi_printaddr(periph); in atapi_interpret_sense()
174 scsipi_printaddr(periph); in atapi_interpret_sense()
192 atapi_print_addr(struct scsipi_periph *periph) in atapi_print_addr() argument
194 struct scsipi_channel *chan = periph->periph_channel; in atapi_print_addr()
197 printf("%s(%s:%d:%d): ", periph->periph_dev != NULL ? in atapi_print_addr()
198 device_xname(periph->periph_dev) : "probe", in atapi_print_addr()
200 chan->chan_channel, periph->periph_target); in atapi_print_addr()
212 struct scsipi_periph *periph = xs->xs_periph; in atapi_scsipi_cmd() local
214 SC_DEBUG(periph, SCSIPI_DB2, ("atapi_cmd\n")); in atapi_scsipi_cmd()
216 xs->cmdlen = (periph->periph_cap & PERIPH_CAP_CMD16) ? 16 : 12; in atapi_scsipi_cmd()