Lines Matching refs:scsi_tape
215 static int st_compression(struct scsi_tape *, int);
217 static int find_partition(struct scsi_tape *);
218 static int switch_partition(struct scsi_tape *);
220 static int st_int_ioctl(struct scsi_tape *, unsigned int, unsigned long);
224 #define to_scsi_tape(obj) container_of(obj, struct scsi_tape, kref)
243 static struct scsi_tape *scsi_tape_get(int dev)
245 struct scsi_tape *STp = NULL;
272 static void scsi_tape_put(struct scsi_tape *STp)
314 static inline char *tape_name(struct scsi_tape *tape)
363 static int st_chk_result(struct scsi_tape *STp, struct st_request * SRpnt)
455 static struct st_request *st_allocate_request(struct scsi_tape *stp)
479 static void st_do_stats(struct scsi_tape *STp, struct request *req)
524 struct scsi_tape *STp = SRpnt->stp;
550 struct scsi_tape *STp = SRpnt->stp;
598 st_do_scsi(struct st_request * SRpnt, struct scsi_tape * STp, unsigned char *cmd,
667 static int write_behind_check(struct scsi_tape * STp)
731 static int cross_eof(struct scsi_tape * STp, int forward)
767 static int st_flush_write_buffer(struct scsi_tape * STp)
834 static int flush_buffer(struct scsi_tape *STp, int seek_next)
887 static int set_mode_densblk(struct scsi_tape * STp, struct st_modedef * STm)
921 static int do_door_lock(struct scsi_tape * STp, int do_lock)
938 static void reset_state(struct scsi_tape *STp)
971 static int test_ready(struct scsi_tape *STp, int do_wait)
1045 static int check_tape(struct scsi_tape *STp, struct file *filp)
1257 struct scsi_tape *STp;
1353 struct scsi_tape *STp = filp->private_data;
1466 struct scsi_tape *STp = filp->private_data;
1482 static ssize_t rw_checks(struct scsi_tape *STp, struct file *filp, size_t count)
1550 static int setup_buffering(struct scsi_tape *STp, const char __user *buf,
1612 static void release_buffering(struct scsi_tape *STp, int is_read)
1637 struct scsi_tape *STp = filp->private_data;
1907 static long read_tape(struct scsi_tape *STp, long count,
2111 struct scsi_tape *STp = filp->private_data;
2254 static void st_log_options(struct scsi_tape * STp, struct st_modedef * STm)
2283 static int st_set_options(struct scsi_tape *STp, long options)
2487 static int read_mode_page(struct scsi_tape *STp, int page, int omit_block_descs)
2512 static int write_mode_page(struct scsi_tape *STp, int page, int slow)
2561 static int st_compression(struct scsi_tape * STp, int state)
2612 static int do_load_unload(struct scsi_tape *STp, struct file *filp, int load_code)
2687 static void deb_space_print(struct scsi_tape *STp, int direction, char *units, unsigned char *cmd)
2703 static void deb_space_print(struct scsi_tape *STp, int direction, char *units, unsigned char *cmd) {}
2708 static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned long arg)
3116 static int get_location(struct scsi_tape *STp, unsigned int *block, int *partition,
3176 static int set_location(struct scsi_tape *STp, unsigned int block, int partition,
3278 static int find_partition(struct scsi_tape *STp)
3292 static int switch_partition(struct scsi_tape *STp)
3324 static int nbr_partitions(struct scsi_tape *STp)
3346 static int format_medium(struct scsi_tape *STp, int format)
3390 static int partition_tape(struct scsi_tape *STp, int size)
3522 struct scsi_tape *STp = file->private_data;
3875 struct scsi_tape *STp = file->private_data;
3889 struct scsi_tape *STp = file->private_data;
4206 static int create_one_cdev(struct scsi_tape *tape, int mode, int rew)
4259 static int create_cdevs(struct scsi_tape *tape)
4275 static void remove_cdevs(struct scsi_tape *tape)
4294 struct scsi_tape *tpnt = NULL;
4330 tpnt = kzalloc(sizeof(struct scsi_tape), GFP_KERNEL);
4466 struct scsi_tape *tpnt = dev_get_drvdata(dev);
4492 struct scsi_tape *tpnt = to_scsi_tape(kref);
4511 .name = "scsi_tape",
4690 struct scsi_tape *STp = STm->tape;