Lines Matching refs:scsi_tape
182 static struct scsi_tape **scsi_tapes = NULL;
202 static int do_create_class_files(struct scsi_tape *, int, int);
213 static int st_compression(struct scsi_tape *, int);
215 static int find_partition(struct scsi_tape *);
216 static int switch_partition(struct scsi_tape *);
218 static int st_int_ioctl(struct scsi_tape *, unsigned int, unsigned long);
222 #define to_scsi_tape(obj) container_of(obj, struct scsi_tape, kref)
238 static struct scsi_tape *scsi_tape_get(int dev)
240 struct scsi_tape *STp = NULL;
268 static void scsi_tape_put(struct scsi_tape *STp)
309 static inline char *tape_name(struct scsi_tape *tape)
348 static int st_chk_result(struct scsi_tape *STp, struct st_request * SRpnt)
438 static struct st_request *st_allocate_request(struct scsi_tape *stp)
465 struct scsi_tape *STp = SRpnt->stp;
523 st_do_scsi(struct st_request * SRpnt, struct scsi_tape * STp, unsigned char *cmd,
592 static int write_behind_check(struct scsi_tape * STp)
655 static int cross_eof(struct scsi_tape * STp, int forward)
690 static int st_flush_write_buffer(struct scsi_tape * STp)
759 static int flush_buffer(struct scsi_tape *STp, int seek_next)
815 static int set_mode_densblk(struct scsi_tape * STp, struct st_modedef * STm)
849 static int do_door_lock(struct scsi_tape * STp, int do_lock)
870 static void reset_state(struct scsi_tape *STp)
903 static int test_ready(struct scsi_tape *STp, int do_wait)
977 static int check_tape(struct scsi_tape *STp, struct file *filp)
1182 struct scsi_tape *STp;
1276 struct scsi_tape *STp = filp->private_data;
1388 struct scsi_tape *STp = filp->private_data;
1404 static ssize_t rw_checks(struct scsi_tape *STp, struct file *filp, size_t count)
1471 static int setup_buffering(struct scsi_tape *STp, const char __user *buf,
1532 static void release_buffering(struct scsi_tape *STp, int is_read)
1557 struct scsi_tape *STp = filp->private_data;
1828 static long read_tape(struct scsi_tape *STp, long count,
2024 struct scsi_tape *STp = filp->private_data;
2167 static void st_log_options(struct scsi_tape * STp, struct st_modedef * STm, char *name)
2191 static int st_set_options(struct scsi_tape *STp, long options)
2385 static int read_mode_page(struct scsi_tape *STp, int page, int omit_block_descs)
2410 static int write_mode_page(struct scsi_tape *STp, int page, int slow)
2459 static int st_compression(struct scsi_tape * STp, int state)
2513 static int do_load_unload(struct scsi_tape *STp, struct file *filp, int load_code)
2604 static int st_int_ioctl(struct scsi_tape *STp, unsigned int cmd_in, unsigned long arg)
3002 static int get_location(struct scsi_tape *STp, unsigned int *block, int *partition,
3063 static int set_location(struct scsi_tape *STp, unsigned int block, int partition,
3166 static int find_partition(struct scsi_tape *STp)
3180 static int switch_partition(struct scsi_tape *STp)
3209 static int nbr_partitions(struct scsi_tape *STp)
3252 static int partition_tape(struct scsi_tape *STp, int size)
3320 struct scsi_tape *STp = file->private_data;
3671 struct scsi_tape *STp = file->private_data;
3988 struct scsi_tape *tpnt = NULL;
4021 struct scsi_tape **tmp_da;
4034 tmp_da = kzalloc(tmp_dev_max * sizeof(struct scsi_tape *), GFP_ATOMIC);
4043 st_dev_max * sizeof(struct scsi_tape *));
4057 tpnt = kzalloc(sizeof(struct scsi_tape), GFP_ATOMIC);
4210 struct scsi_tape *tpnt;
4254 struct scsi_tape *tpnt = to_scsi_tape(kref);
4280 st_sysfs_class = class_create(THIS_MODULE, "scsi_tape");
4450 struct scsi_tape *STp;
4487 static int do_create_class_files(struct scsi_tape *STp, int dev_num, int mode)