Lines Matching refs:tail
93 buffer_struct *tail, *head; in ftape_format_track() local
119 tail = ftape_get_buffer(ft_queue_tail); /* tape isn't running yet */ in ftape_format_track()
123 setup_format_buffer(tail, switch_segment, in ftape_format_track()
125 switch_segment = tail->next_segment; in ftape_format_track()
127 ((tail = ftape_next_buffer(ft_queue_tail)) != head)); in ftape_format_track()
143 buffer_struct *tail = ftape_get_buffer(ft_queue_tail); in ftape_format_status() local
148 ftape_get_buffer(ft_queue_head) != tail) { in ftape_format_status()
156 setup_format_buffer(tail, switch_segment, in ftape_format_status()
157 ft_segments_per_track, tail->gap3); in ftape_format_status()
158 switch_segment = tail->next_segment; in ftape_format_status()
160 tail = ftape_next_buffer(ft_queue_tail); in ftape_format_status()
221 buffer_struct *tail; in ftape_verify_segment() local
230 tail = ftape_get_buffer(ft_queue_tail); in ftape_verify_segment()
231 while (!verify_done && tail->status == done) { in ftape_verify_segment()
236 if (tail->segment_id == segment_id) { in ftape_verify_segment()
242 if ((tail->soft_error_map | in ftape_verify_segment()
243 tail->hard_error_map) != 0) { in ftape_verify_segment()
247 (tail->soft_error_map | in ftape_verify_segment()
248 tail->hard_error_map)); in ftape_verify_segment()
249 *bsm = (tail->soft_error_map | in ftape_verify_segment()
250 tail->hard_error_map); in ftape_verify_segment()
255 tail->segment_id); in ftape_verify_segment()
257 tail->status = waiting; in ftape_verify_segment()
258 tail = ftape_next_buffer(ft_queue_tail); in ftape_verify_segment()
260 if (!verify_done && tail->status == verifying) { in ftape_verify_segment()
261 if (tail->segment_id == segment_id) { in ftape_verify_segment()
312 tail = ftape_get_buffer(ft_queue_tail); in ftape_verify_segment()
313 if (tail->status == waiting) { in ftape_verify_segment()