Lines Matching defs:STp
239 struct scsi_tape *STp = NULL; in scsi_tape_get() local
267 static void scsi_tape_put(struct scsi_tape *STp) in scsi_tape_put()
347 static int st_chk_result(struct scsi_tape *STp, struct st_request * SRpnt) in st_chk_result()
464 struct scsi_tape *STp = SRpnt->stp; in st_scsi_execute_end() local
524 st_do_scsi(struct st_request * SRpnt, struct scsi_tape * STp, unsigned char *cmd, in st_do_scsi()
593 static int write_behind_check(struct scsi_tape * STp) in write_behind_check()
656 static int cross_eof(struct scsi_tape * STp, int forward) in cross_eof()
691 static int st_flush_write_buffer(struct scsi_tape * STp) in st_flush_write_buffer()
760 static int flush_buffer(struct scsi_tape *STp, int seek_next) in flush_buffer()
815 static int set_mode_densblk(struct scsi_tape * STp, struct st_modedef * STm) in set_mode_densblk()
849 static int do_door_lock(struct scsi_tape * STp, int do_lock) in do_door_lock()
870 static void reset_state(struct scsi_tape *STp) in reset_state()
902 static int test_ready(struct scsi_tape *STp, int do_wait) in test_ready()
976 static int check_tape(struct scsi_tape *STp, struct file *filp) in check_tape()
1180 struct scsi_tape *STp; in st_open() local
1273 struct scsi_tape *STp = filp->private_data; in st_flush() local
1385 struct scsi_tape *STp = filp->private_data; in st_release() local
1400 static ssize_t rw_checks(struct scsi_tape *STp, struct file *filp, size_t count) in rw_checks()
1467 static int setup_buffering(struct scsi_tape *STp, const char __user *buf, in setup_buffering()
1528 static void release_buffering(struct scsi_tape *STp, int is_read) in release_buffering()
1553 struct scsi_tape *STp = filp->private_data; in st_write() local
1823 static long read_tape(struct scsi_tape *STp, long count, in read_tape()
2018 struct scsi_tape *STp = filp->private_data; in st_read() local
2160 static void st_log_options(struct scsi_tape * STp, struct st_modedef * STm, char *name) in DEB()
2377 static int read_mode_page(struct scsi_tape *STp, int page, int omit_block_descs) in read_mode_page()
2402 static int write_mode_page(struct scsi_tape *STp, int page, int slow) in write_mode_page()
2451 static int st_compression(struct scsi_tape * STp, int state) in st_compression()
2505 static int do_load_unload(struct scsi_tape *STp, struct file *filp, int load_code) in do_load_unload()
2595 static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned long arg) in st_int_ioctl()
2995 static int get_location(struct scsi_tape *STp, unsigned int *block, int *partition, in get_location()
3056 static int set_location(struct scsi_tape *STp, unsigned int block, int partition, in set_location()
3159 static int find_partition(struct scsi_tape *STp) in find_partition()
3173 static int switch_partition(struct scsi_tape *STp) in switch_partition()
3201 static int nbr_partitions(struct scsi_tape *STp) in nbr_partitions()
3244 static int partition_tape(struct scsi_tape *STp, int size) in partition_tape()
3311 struct scsi_tape *STp = file->private_data; in st_ioctl() local
3662 struct scsi_tape *STp = file->private_data; in st_compat_ioctl() local
4441 struct scsi_tape *STp; in st_options_show() local
4478 static int do_create_class_files(struct scsi_tape *STp, int dev_num, int mode) in do_create_class_files()