Home
last modified time | relevance | path

Searched refs:STp (Results 1 - 4 of 4) sorted by relevance

/kernel/linux/linux-5.10/drivers/scsi/
H A Dst.c245 struct scsi_tape *STp = NULL; in scsi_tape_get()
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()
244 struct scsi_tape *STp = NULL; scsi_tape_get() local
271 scsi_tape_put(struct scsi_tape *STp) scsi_tape_put() argument
361 st_chk_result(struct scsi_tape *STp, struct st_request * SRpnt) st_chk_result() argument
477 st_do_stats(struct scsi_tape *STp, struct request *req) st_do_stats() argument
522 struct scsi_tape *STp = SRpnt->stp; st_scsi_execute_end() local
548 struct scsi_tape *STp = SRpnt->stp; st_scsi_execute() local
596 st_do_scsi(struct st_request * SRpnt, struct scsi_tape * STp, unsigned char *cmd, int bytes, int direction, int timeout, int retries, int do_wait) st_do_scsi() argument
665 write_behind_check(struct scsi_tape * STp) write_behind_check() argument
729 cross_eof(struct scsi_tape * STp, int forward) cross_eof() argument
765 st_flush_write_buffer(struct scsi_tape * STp) st_flush_write_buffer() argument
832 flush_buffer(struct scsi_tape *STp, int seek_next) flush_buffer() argument
884 set_mode_densblk(struct scsi_tape * STp, struct st_modedef * STm) set_mode_densblk() argument
918 do_door_lock(struct scsi_tape * STp, int do_lock) do_door_lock() argument
935 reset_state(struct scsi_tape *STp) reset_state() argument
967 test_ready(struct scsi_tape *STp, int do_wait) test_ready() argument
1041 check_tape(struct scsi_tape *STp, struct file *filp) check_tape() argument
1252 struct scsi_tape *STp; st_open() local
1347 struct scsi_tape *STp = filp->private_data; st_flush() local
1460 struct scsi_tape *STp = filp->private_data; st_release() local
1476 rw_checks(struct scsi_tape *STp, struct file *filp, size_t count) rw_checks() argument
1544 setup_buffering(struct scsi_tape *STp, const char __user *buf, size_t count, int is_read) setup_buffering() argument
1606 release_buffering(struct scsi_tape *STp, int is_read) release_buffering() argument
1631 struct scsi_tape *STp = filp->private_data; st_write() local
1900 read_tape(struct scsi_tape *STp, long count, struct st_request ** aSRpnt) read_tape() argument
2103 struct scsi_tape *STp = filp->private_data; st_read() local
2274 st_set_options(struct scsi_tape *STp, long options) st_set_options() argument
2477 read_mode_page(struct scsi_tape *STp, int page, int omit_block_descs) read_mode_page() argument
2502 write_mode_page(struct scsi_tape *STp, int page, int slow) write_mode_page() argument
2551 st_compression(struct scsi_tape * STp, int state) st_compression() argument
2602 do_load_unload(struct scsi_tape *STp, struct file *filp, int load_code) do_load_unload() argument
2676 deb_space_print(struct scsi_tape *STp, int direction, char *units, unsigned char *cmd) deb_space_print() argument
2692 deb_space_print(struct scsi_tape *STp, int direction, char *units, unsigned char *cmd) deb_space_print() argument
2697 st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned long arg) st_int_ioctl() argument
3104 get_location(struct scsi_tape *STp, unsigned int *block, int *partition, int logical) get_location() argument
3164 set_location(struct scsi_tape *STp, unsigned int block, int partition, int logical) set_location() argument
3266 find_partition(struct scsi_tape *STp) find_partition() argument
3280 switch_partition(struct scsi_tape *STp) switch_partition() argument
3311 nbr_partitions(struct scsi_tape *STp) nbr_partitions() argument
3333 format_medium(struct scsi_tape *STp, int format) format_medium() argument
3377 partition_tape(struct scsi_tape *STp, int size) partition_tape() argument
3508 struct scsi_tape *STp = file->private_data; st_ioctl_common() local
3861 struct scsi_tape *STp = file->private_data; st_ioctl() local
3875 struct scsi_tape *STp = file->private_data; st_compat_ioctl() local
4675 struct scsi_tape *STp = STm->tape; options_show() local
[all...]
H A 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) > in NCR_700_set_offset()
[all...]
/kernel/linux/linux-6.6/drivers/scsi/
H A Dst.c246 struct scsi_tape *STp = NULL; in scsi_tape_get()
251 STp = idr_find(&st_index_idr, dev); in scsi_tape_get()
252 if (!STp) goto out; in scsi_tape_get()
254 kref_get(&STp->kref); in scsi_tape_get()
256 if (!STp->device) in scsi_tape_get()
259 if (scsi_device_get(STp->device)) in scsi_tape_get()
265 kref_put(&STp->kref, scsi_tape_release); in scsi_tape_get()
266 STp = NULL; in scsi_tape_get()
270 return STp; in scsi_tape_get()
273 static void scsi_tape_put(struct scsi_tape *STp) in scsi_tape_put()
245 struct scsi_tape *STp = NULL; scsi_tape_get() local
272 scsi_tape_put(struct scsi_tape *STp) scsi_tape_put() argument
357 st_chk_result(struct scsi_tape *STp, struct st_request * SRpnt) st_chk_result() argument
475 st_do_stats(struct scsi_tape *STp, struct request *req) st_do_stats() argument
522 struct scsi_tape *STp = SRpnt->stp; st_scsi_execute_end() local
548 struct scsi_tape *STp = SRpnt->stp; st_scsi_execute() local
597 st_do_scsi(struct st_request * SRpnt, struct scsi_tape * STp, unsigned char *cmd, int bytes, int direction, int timeout, int retries, int do_wait) st_do_scsi() argument
666 write_behind_check(struct scsi_tape * STp) write_behind_check() argument
730 cross_eof(struct scsi_tape * STp, int forward) cross_eof() argument
766 st_flush_write_buffer(struct scsi_tape * STp) st_flush_write_buffer() argument
833 flush_buffer(struct scsi_tape *STp, int seek_next) flush_buffer() argument
885 set_mode_densblk(struct scsi_tape * STp, struct st_modedef * STm) set_mode_densblk() argument
919 do_door_lock(struct scsi_tape * STp, int do_lock) do_door_lock() argument
936 reset_state(struct scsi_tape *STp) reset_state() argument
968 test_ready(struct scsi_tape *STp, int do_wait) test_ready() argument
1042 check_tape(struct scsi_tape *STp, struct file *filp) check_tape() argument
1253 struct scsi_tape *STp; st_open() local
1348 struct scsi_tape *STp = filp->private_data; st_flush() local
1461 struct scsi_tape *STp = filp->private_data; st_release() local
1477 rw_checks(struct scsi_tape *STp, struct file *filp, size_t count) rw_checks() argument
1545 setup_buffering(struct scsi_tape *STp, const char __user *buf, size_t count, int is_read) setup_buffering() argument
1607 release_buffering(struct scsi_tape *STp, int is_read) release_buffering() argument
1632 struct scsi_tape *STp = filp->private_data; st_write() local
1901 read_tape(struct scsi_tape *STp, long count, struct st_request ** aSRpnt) read_tape() argument
2104 struct scsi_tape *STp = filp->private_data; st_read() local
2275 st_set_options(struct scsi_tape *STp, long options) st_set_options() argument
2478 read_mode_page(struct scsi_tape *STp, int page, int omit_block_descs) read_mode_page() argument
2503 write_mode_page(struct scsi_tape *STp, int page, int slow) write_mode_page() argument
2552 st_compression(struct scsi_tape * STp, int state) st_compression() argument
2603 do_load_unload(struct scsi_tape *STp, struct file *filp, int load_code) do_load_unload() argument
2677 deb_space_print(struct scsi_tape *STp, int direction, char *units, unsigned char *cmd) deb_space_print() argument
2693 deb_space_print(struct scsi_tape *STp, int direction, char *units, unsigned char *cmd) deb_space_print() argument
2698 st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned long arg) st_int_ioctl() argument
3104 get_location(struct scsi_tape *STp, unsigned int *block, int *partition, int logical) get_location() argument
3164 set_location(struct scsi_tape *STp, unsigned int block, int partition, int logical) set_location() argument
3266 find_partition(struct scsi_tape *STp) find_partition() argument
3280 switch_partition(struct scsi_tape *STp) switch_partition() argument
3311 nbr_partitions(struct scsi_tape *STp) nbr_partitions() argument
3333 format_medium(struct scsi_tape *STp, int format) format_medium() argument
3377 partition_tape(struct scsi_tape *STp, int size) partition_tape() argument
3509 struct scsi_tape *STp = file->private_data; st_ioctl() local
4621 struct scsi_tape *STp = STm->tape; options_show() local
[all...]
H A 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) > in NCR_700_set_offset()
[all...]

Completed in 11 milliseconds