Home
last modified time | relevance | path

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

/Linux-v5.10/drivers/scsi/
Dst.c244 struct scsi_tape *STp = NULL; in scsi_tape_get() local
249 STp = idr_find(&st_index_idr, dev); in scsi_tape_get()
250 if (!STp) goto out; in scsi_tape_get()
252 kref_get(&STp->kref); in scsi_tape_get()
254 if (!STp->device) in scsi_tape_get()
257 if (scsi_device_get(STp->device)) in scsi_tape_get()
263 kref_put(&STp->kref, scsi_tape_release); in scsi_tape_get()
264 STp = NULL; in scsi_tape_get()
268 return STp; in scsi_tape_get()
271 static void scsi_tape_put(struct scsi_tape *STp) in scsi_tape_put() argument
[all …]
D53c700.c1981 NCR_700_set_period(struct scsi_target *STp, int period) in NCR_700_set_period() argument
1983 struct Scsi_Host *SHp = dev_to_shost(STp->dev.parent); in NCR_700_set_period()
1993 spi_period(STp) = period; in NCR_700_set_period()
1994 spi_flags(STp) &= ~(NCR_700_DEV_NEGOTIATED_SYNC | in NCR_700_set_period()
1996 spi_flags(STp) |= NCR_700_DEV_PRINT_SYNC_NEGOTIATION; in NCR_700_set_period()
2000 NCR_700_set_offset(struct scsi_target *STp, int offset) in NCR_700_set_offset() argument
2002 struct Scsi_Host *SHp = dev_to_shost(STp->dev.parent); in NCR_700_set_offset()
2015 if(spi_offset(STp) == 0 && (spi_period(STp) < hostdata->min_period || in NCR_700_set_offset()
2016 spi_period(STp) > 0xff)) in NCR_700_set_offset()
2017 spi_period(STp) = hostdata->min_period; in NCR_700_set_offset()
[all …]