Lines Matching refs:tdev
97 struct tape_device *tdev; in tape_medium_state_show() local
99 tdev = dev_get_drvdata(dev); in tape_medium_state_show()
100 return sysfs_emit(buf, "%i\n", tdev->medium_state); in tape_medium_state_show()
109 struct tape_device *tdev; in tape_first_minor_show() local
111 tdev = dev_get_drvdata(dev); in tape_first_minor_show()
112 return sysfs_emit(buf, "%i\n", tdev->first_minor); in tape_first_minor_show()
121 struct tape_device *tdev; in tape_state_show() local
123 tdev = dev_get_drvdata(dev); in tape_state_show()
124 return sysfs_emit(buf, "%s\n", (tdev->first_minor < 0) ? in tape_state_show()
125 "OFFLINE" : tape_state_verbose[tdev->tape_state]); in tape_state_show()
134 struct tape_device *tdev; in tape_operation_show() local
137 tdev = dev_get_drvdata(dev); in tape_operation_show()
138 if (tdev->first_minor < 0) in tape_operation_show()
141 spin_lock_irq(get_ccwdev_lock(tdev->cdev)); in tape_operation_show()
142 if (list_empty(&tdev->req_queue)) in tape_operation_show()
147 req = list_entry(tdev->req_queue.next, struct tape_request, in tape_operation_show()
151 spin_unlock_irq(get_ccwdev_lock(tdev->cdev)); in tape_operation_show()
161 struct tape_device *tdev; in tape_blocksize_show() local
163 tdev = dev_get_drvdata(dev); in tape_blocksize_show()
165 return sysfs_emit(buf, "%i\n", tdev->char_data.block_size); in tape_blocksize_show()