Lines Matching refs:scsi_tape
216 static int st_compression(struct scsi_tape *, int);
218 static int find_partition(struct scsi_tape *);
219 static int switch_partition(struct scsi_tape *);
221 static int st_int_ioctl(struct scsi_tape *, unsigned int, unsigned long);
225 #define to_scsi_tape(obj) container_of(obj, struct scsi_tape, kref)
244 static struct scsi_tape *scsi_tape_get(int dev)
246 struct scsi_tape *STp = NULL;
273 static void scsi_tape_put(struct scsi_tape *STp)
359 static int st_chk_result(struct scsi_tape *STp, struct st_request * SRpnt)
453 static struct st_request *st_allocate_request(struct scsi_tape *stp)
477 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;
599 st_do_scsi(struct st_request * SRpnt, struct scsi_tape * STp, unsigned char *cmd,
668 static int write_behind_check(struct scsi_tape * STp)
732 static int cross_eof(struct scsi_tape * STp, int forward)
768 static int st_flush_write_buffer(struct scsi_tape * STp)
835 static int flush_buffer(struct scsi_tape *STp, int seek_next)
888 static int set_mode_densblk(struct scsi_tape * STp, struct st_modedef * STm)
922 static int do_door_lock(struct scsi_tape * STp, int do_lock)
939 static void reset_state(struct scsi_tape *STp)
972 static int test_ready(struct scsi_tape *STp, int do_wait)
1046 static int check_tape(struct scsi_tape *STp, struct file *filp)
1258 struct scsi_tape *STp;
1354 struct scsi_tape *STp = filp->private_data;
1467 struct scsi_tape *STp = filp->private_data;
1483 static ssize_t rw_checks(struct scsi_tape *STp, struct file *filp, size_t count)
1551 static int setup_buffering(struct scsi_tape *STp, const char __user *buf,
1613 static void release_buffering(struct scsi_tape *STp, int is_read)
1638 struct scsi_tape *STp = filp->private_data;
1908 static long read_tape(struct scsi_tape *STp, long count,
2112 struct scsi_tape *STp = filp->private_data;
2255 static void st_log_options(struct scsi_tape * STp, struct st_modedef * STm)
2284 static int st_set_options(struct scsi_tape *STp, long options)
2488 static int read_mode_page(struct scsi_tape *STp, int page, int omit_block_descs)
2513 static int write_mode_page(struct scsi_tape *STp, int page, int slow)
2562 static int st_compression(struct scsi_tape * STp, int state)
2613 static int do_load_unload(struct scsi_tape *STp, struct file *filp, int load_code)
2688 static void deb_space_print(struct scsi_tape *STp, int direction, char *units, unsigned char *cmd)
2704 static void deb_space_print(struct scsi_tape *STp, int direction, char *units, unsigned char *cmd) {}
2709 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)
3523 struct scsi_tape *STp = file->private_data;
4176 static int create_one_cdev(struct scsi_tape *tape, int mode, int rew)
4229 static int create_cdevs(struct scsi_tape *tape)
4245 static void remove_cdevs(struct scsi_tape *tape)
4263 struct scsi_tape *tpnt = NULL;
4291 tpnt = kzalloc(sizeof(struct scsi_tape), GFP_KERNEL);
4415 struct scsi_tape *tpnt = dev_get_drvdata(dev);
4441 struct scsi_tape *tpnt = to_scsi_tape(kref);
4457 .name = "scsi_tape",
4636 struct scsi_tape *STp = STm->tape;