Lines Matching refs:tape

310 static inline char *tape_name(struct scsi_tape *tape)  in tape_name()  argument
312 return tape->disk->disk_name; in tape_name()
4171 static int create_one_cdev(struct scsi_tape *tape, int mode, int rew) in create_one_cdev() argument
4177 struct st_modedef *STm = &(tape->modes[mode]); in create_one_cdev()
4179 int dev_num = tape->index; in create_one_cdev()
4203 tape->disk->disk_name, st_formats[i]); in create_one_cdev()
4205 dev = device_create(&st_sysfs_class, &tape->device->sdev_gendev, in create_one_cdev()
4206 cdev_devno, &tape->modes[mode], "%s", name); in create_one_cdev()
4224 static int create_cdevs(struct scsi_tape *tape) in create_cdevs() argument
4228 error = create_one_cdev(tape, mode, 0); in create_cdevs()
4231 error = create_one_cdev(tape, mode, 1); in create_cdevs()
4236 return sysfs_create_link(&tape->device->sdev_gendev.kobj, in create_cdevs()
4237 &tape->modes[0].devs[0]->kobj, "tape"); in create_cdevs()
4240 static void remove_cdevs(struct scsi_tape *tape) in remove_cdevs() argument
4243 sysfs_remove_link(&tape->device->sdev_gendev.kobj, "tape"); in remove_cdevs()
4245 struct st_modedef *STm = &(tape->modes[mode]); in remove_cdevs()
4355 STm->tape = tpnt; in st_probe()
4655 struct scsi_tape *STp = STm->tape; in options_show()
4694 (long long)atomic64_read(&STm->tape->stats->read_cnt)); in read_cnt_show()
4712 (long long)atomic64_read(&STm->tape->stats->read_byte_cnt)); in read_byte_cnt_show()
4728 (long long)atomic64_read(&STm->tape->stats->tot_read_time)); in read_ns_show()
4745 (long long)atomic64_read(&STm->tape->stats->write_cnt)); in write_cnt_show()
4762 (long long)atomic64_read(&STm->tape->stats->write_byte_cnt)); in write_byte_cnt_show()
4779 (long long)atomic64_read(&STm->tape->stats->tot_write_time)); in write_ns_show()
4797 (long long)atomic64_read(&STm->tape->stats->in_flight)); in in_flight_show()
4817 (long long)atomic64_read(&STm->tape->stats->tot_io_time)); in io_ns_show()
4836 (long long)atomic64_read(&STm->tape->stats->other_cnt)); in other_cnt_show()
4854 (long long)atomic64_read(&STm->tape->stats->resid_cnt)); in resid_cnt_show()