Lines Matching refs:scsi_tape

212 static int st_compression(struct scsi_tape *, int);
214 static int find_partition(struct scsi_tape *);
215 static int switch_partition(struct scsi_tape *);
217 static int st_int_ioctl(struct scsi_tape *, unsigned int, unsigned long);
221 #define to_scsi_tape(obj) container_of(obj, struct scsi_tape, kref)
240 static struct scsi_tape *scsi_tape_get(int dev) in scsi_tape_get()
242 struct scsi_tape *STp = NULL; in scsi_tape_get()
269 static void scsi_tape_put(struct scsi_tape *STp) in scsi_tape_put()
310 static inline char *tape_name(struct scsi_tape *tape) in tape_name()
357 static int st_chk_result(struct scsi_tape *STp, struct st_request * SRpnt) in st_chk_result()
449 static struct st_request *st_allocate_request(struct scsi_tape *stp) in st_allocate_request()
473 static void st_do_stats(struct scsi_tape *STp, struct request *req) in st_do_stats()
518 struct scsi_tape *STp = SRpnt->stp; in st_scsi_execute_end()
544 struct scsi_tape *STp = SRpnt->stp; in st_scsi_execute()
592 st_do_scsi(struct st_request * SRpnt, struct scsi_tape * STp, unsigned char *cmd, in st_do_scsi()
661 static int write_behind_check(struct scsi_tape * STp) in write_behind_check()
725 static int cross_eof(struct scsi_tape * STp, int forward) in cross_eof()
761 static int st_flush_write_buffer(struct scsi_tape * STp) in st_flush_write_buffer()
828 static int flush_buffer(struct scsi_tape *STp, int seek_next) in flush_buffer()
880 static int set_mode_densblk(struct scsi_tape * STp, struct st_modedef * STm) in set_mode_densblk()
914 static int do_door_lock(struct scsi_tape * STp, int do_lock) in do_door_lock()
931 static void reset_state(struct scsi_tape *STp) in reset_state()
963 static int test_ready(struct scsi_tape *STp, int do_wait) in test_ready()
1037 static int check_tape(struct scsi_tape *STp, struct file *filp) in check_tape()
1248 struct scsi_tape *STp; in st_open()
1343 struct scsi_tape *STp = filp->private_data; in st_flush()
1457 struct scsi_tape *STp = filp->private_data; in st_release()
1473 static ssize_t rw_checks(struct scsi_tape *STp, struct file *filp, size_t count) in rw_checks()
1541 static int setup_buffering(struct scsi_tape *STp, const char __user *buf, in setup_buffering()
1603 static void release_buffering(struct scsi_tape *STp, int is_read) in release_buffering()
1628 struct scsi_tape *STp = filp->private_data; in st_write()
1897 static long read_tape(struct scsi_tape *STp, long count, in read_tape()
2100 struct scsi_tape *STp = filp->private_data; in st_read()
2242 static void st_log_options(struct scsi_tape * STp, struct st_modedef * STm) in DEB()
2271 static int st_set_options(struct scsi_tape *STp, long options)
2474 static int read_mode_page(struct scsi_tape *STp, int page, int omit_block_descs) in read_mode_page()
2499 static int write_mode_page(struct scsi_tape *STp, int page, int slow) in write_mode_page()
2548 static int st_compression(struct scsi_tape * STp, int state) in st_compression()
2599 static int do_load_unload(struct scsi_tape *STp, struct file *filp, int load_code) in do_load_unload()
2673 static void deb_space_print(struct scsi_tape *STp, int direction, char *units, unsigned char *cmd) in deb_space_print()
2690 static void deb_space_print(struct scsi_tape *STp, int direction, char *units, unsigned char *cmd) … in deb_space_print()
2695 static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned long arg) in st_int_ioctl()
3100 static int get_location(struct scsi_tape *STp, unsigned int *block, int *partition, in get_location()
3160 static int set_location(struct scsi_tape *STp, unsigned int block, int partition, in set_location()
3262 static int find_partition(struct scsi_tape *STp) in find_partition()
3276 static int switch_partition(struct scsi_tape *STp) in switch_partition()
3307 static int nbr_partitions(struct scsi_tape *STp) in nbr_partitions()
3329 static int format_medium(struct scsi_tape *STp, int format) in format_medium()
3373 static int partition_tape(struct scsi_tape *STp, int size) in partition_tape()
3504 struct scsi_tape *STp = file->private_data; in st_ioctl()
3858 struct scsi_tape *STp = file->private_data; in st_compat_ioctl()
4167 static int create_one_cdev(struct scsi_tape *tape, int mode, int rew) in create_one_cdev()
4220 static int create_cdevs(struct scsi_tape *tape) in create_cdevs()
4236 static void remove_cdevs(struct scsi_tape *tape) in remove_cdevs()
4255 struct scsi_tape *tpnt = NULL; in st_probe()
4290 tpnt = kzalloc(sizeof(struct scsi_tape), GFP_KERNEL); in st_probe()
4426 struct scsi_tape *tpnt = dev_get_drvdata(dev); in st_remove()
4452 struct scsi_tape *tpnt = to_scsi_tape(kref); in scsi_tape_release()
4650 struct scsi_tape *STp = STm->tape; in options_show()