Home
last modified time | relevance | path

Searched refs:STp (Results 1 – 2 of 2) sorted by relevance

/linux-5.19.10/drivers/scsi/
Dst.c245 struct scsi_tape *STp = NULL; in scsi_tape_get() local
250 STp = idr_find(&st_index_idr, dev); in scsi_tape_get()
251 if (!STp) goto out; in scsi_tape_get()
253 kref_get(&STp->kref); in scsi_tape_get()
255 if (!STp->device) in scsi_tape_get()
258 if (scsi_device_get(STp->device)) in scsi_tape_get()
264 kref_put(&STp->kref, scsi_tape_release); in scsi_tape_get()
265 STp = NULL; in scsi_tape_get()
269 return STp; in scsi_tape_get()
272 static void scsi_tape_put(struct scsi_tape *STp) in scsi_tape_put() argument
[all …]
D53c700.c1975 NCR_700_set_period(struct scsi_target *STp, int period) in NCR_700_set_period() argument
1977 struct Scsi_Host *SHp = dev_to_shost(STp->dev.parent); in NCR_700_set_period()
1987 spi_period(STp) = period; in NCR_700_set_period()
1988 spi_flags(STp) &= ~(NCR_700_DEV_NEGOTIATED_SYNC | in NCR_700_set_period()
1990 spi_flags(STp) |= NCR_700_DEV_PRINT_SYNC_NEGOTIATION; in NCR_700_set_period()
1994 NCR_700_set_offset(struct scsi_target *STp, int offset) in NCR_700_set_offset() argument
1996 struct Scsi_Host *SHp = dev_to_shost(STp->dev.parent); in NCR_700_set_offset()
2009 if(spi_offset(STp) == 0 && (spi_period(STp) < hostdata->min_period || in NCR_700_set_offset()
2010 spi_period(STp) > 0xff)) in NCR_700_set_offset()
2011 spi_period(STp) = hostdata->min_period; in NCR_700_set_offset()
[all …]