Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/scsi/
Dst.c242 struct scsi_tape *STp = NULL; in scsi_tape_get() local
247 STp = idr_find(&st_index_idr, dev); in scsi_tape_get()
248 if (!STp) goto out; in scsi_tape_get()
250 kref_get(&STp->kref); in scsi_tape_get()
252 if (!STp->device) in scsi_tape_get()
255 if (scsi_device_get(STp->device)) in scsi_tape_get()
261 kref_put(&STp->kref, scsi_tape_release); in scsi_tape_get()
262 STp = NULL; in scsi_tape_get()
266 return STp; in scsi_tape_get()
269 static void scsi_tape_put(struct scsi_tape *STp) in scsi_tape_put() argument
[all …]
D53c700.c1964 NCR_700_set_period(struct scsi_target *STp, int period) in NCR_700_set_period() argument
1966 struct Scsi_Host *SHp = dev_to_shost(STp->dev.parent); in NCR_700_set_period()
1976 spi_period(STp) = period; in NCR_700_set_period()
1977 spi_flags(STp) &= ~(NCR_700_DEV_NEGOTIATED_SYNC | in NCR_700_set_period()
1979 spi_flags(STp) |= NCR_700_DEV_PRINT_SYNC_NEGOTIATION; in NCR_700_set_period()
1983 NCR_700_set_offset(struct scsi_target *STp, int offset) in NCR_700_set_offset() argument
1985 struct Scsi_Host *SHp = dev_to_shost(STp->dev.parent); in NCR_700_set_offset()
1998 if(spi_offset(STp) == 0 && (spi_period(STp) < hostdata->min_period || in NCR_700_set_offset()
1999 spi_period(STp) > 0xff)) in NCR_700_set_offset()
2000 spi_period(STp) = hostdata->min_period; in NCR_700_set_offset()
[all …]