tag | line | file | source code |
segment_id | 411 | drivers/char/ftape/fdc-isr.c | unsigned last_segment = buff->segment_id; |
segment_id | 427 | drivers/char/ftape/fdc-isr.c | if (write && next != buff->segment_id) { |
segment_id | 478 | drivers/char/ftape/fdc-isr.c | pause_tape(buff->segment_id, 1, fdc_mode); |
segment_id | 574 | drivers/char/ftape/fdc-isr.c | i, buffer[i].status, buffer[i].segment_id); |
segment_id | 581 | drivers/char/ftape/fdc-isr.c | TRACEi(5, "reading segment", buff->segment_id); |
segment_id | 583 | drivers/char/ftape/fdc-isr.c | TRACEi(4, "error reading segment", buff->segment_id); |
segment_id | 615 | drivers/char/ftape/fdc-isr.c | if (buff->segment_id == 0) { |
segment_id | 618 | drivers/char/ftape/fdc-isr.c | buff->next_segment = buff->segment_id + 1; /* force read-ahead */ |
segment_id | 693 | drivers/char/ftape/fdc-isr.c | TRACEi(5, "writing segment", buff->segment_id); |
segment_id | 695 | drivers/char/ftape/fdc-isr.c | TRACEi(4, "error writing segment", buff->segment_id); |
segment_id | 267 | drivers/char/ftape/ftape-bsm.c | int forward_seek_entry(int segment_id, byte ** ptr, unsigned long *map) |
segment_id | 277 | drivers/char/ftape/ftape-bsm.c | } while (sector != 0 && segment < segment_id); |
segment_id | 281 | drivers/char/ftape/ftape-bsm.c | if (format_code == 4 && (sector & 0x800000) && segment == segment_id) { |
segment_id | 287 | drivers/char/ftape/ftape-bsm.c | while (sector != 0 && segment == segment_id) { |
segment_id | 298 | drivers/char/ftape/ftape-bsm.c | int backwards_seek_entry(int segment_id, byte ** ptr, unsigned long *map) |
segment_id | 309 | drivers/char/ftape/ftape-bsm.c | } while (*ptr > bad_sector_map && segment > segment_id); |
segment_id | 311 | drivers/char/ftape/ftape-bsm.c | if (segment > segment_id) { |
segment_id | 313 | drivers/char/ftape/ftape-bsm.c | } else if (segment < segment_id) { |
segment_id | 330 | drivers/char/ftape/ftape-bsm.c | } while (segment == segment_id); |
segment_id | 331 | drivers/char/ftape/ftape-bsm.c | if (segment < segment_id) { |
segment_id | 342 | drivers/char/ftape/ftape-bsm.c | void put_bad_sector_entry(int segment_id, unsigned long new_map) |
segment_id | 350 | drivers/char/ftape/ftape-bsm.c | count = forward_seek_entry(segment_id, &ptr, &map); |
segment_id | 368 | drivers/char/ftape/ftape-bsm.c | put_sector(&ptr, 0x800001 + segment_id * SECTORS_PER_SEGMENT); |
segment_id | 374 | drivers/char/ftape/ftape-bsm.c | put_sector(&ptr, 1 + segment_id * SECTORS_PER_SEGMENT + i); |
segment_id | 381 | drivers/char/ftape/ftape-bsm.c | ((unsigned long *) bad_sector_map)[segment_id] = new_map; |
segment_id | 386 | drivers/char/ftape/ftape-bsm.c | unsigned long get_bad_sector_entry(int segment_id) |
segment_id | 408 | drivers/char/ftape/ftape-bsm.c | if (segment_id > last_reference) { |
segment_id | 411 | drivers/char/ftape/ftape-bsm.c | forward_seek_entry(segment_id, &ptr, &map); |
segment_id | 412 | drivers/char/ftape/ftape-bsm.c | } else if (segment_id < last_reference) { |
segment_id | 415 | drivers/char/ftape/ftape-bsm.c | backwards_seek_entry(segment_id, &ptr, &map); |
segment_id | 417 | drivers/char/ftape/ftape-bsm.c | last_reference = segment_id; |
segment_id | 419 | drivers/char/ftape/ftape-bsm.c | map = ((unsigned long *) bad_sector_map)[segment_id]; |
segment_id | 55 | drivers/char/ftape/ftape-bsm.h | extern unsigned long get_bad_sector_entry(int segment_id); |
segment_id | 56 | drivers/char/ftape/ftape-bsm.h | extern void put_bad_sector_entry(int segment_id, unsigned long mask); |
segment_id | 78 | drivers/char/ftape/ftape-read.c | unsigned long bad_map = get_bad_sector_entry(buff->segment_id); |
segment_id | 137 | drivers/char/ftape/ftape-read.c | TRACEi(3, "ecc corrected segment:", buffer[tail].segment_id); |
segment_id | 147 | drivers/char/ftape/ftape-read.c | TRACEi(1, "ecc failure on segment", buffer[tail].segment_id); |
segment_id | 158 | drivers/char/ftape/ftape-read.c | int read_segment(unsigned segment_id, byte * address, int *eof_mark, |
segment_id | 167 | drivers/char/ftape/ftape-read.c | TRACEi(5, "segment_id =", segment_id); |
segment_id | 184 | drivers/char/ftape/ftape-read.c | if (segment_id >= segments_per_track * tracks_per_tape) { |
segment_id | 194 | drivers/char/ftape/ftape-read.c | if (buffer[tail].segment_id == segment_id) { |
segment_id | 197 | drivers/char/ftape/ftape-read.c | unsigned long bsm = get_bad_sector_entry(segment_id); |
segment_id | 203 | drivers/char/ftape/ftape-read.c | TRACEi(5, "found segment in cache :", segment_id); |
segment_id | 211 | drivers/char/ftape/ftape-read.c | TRACEi(5, "found segment in cache :", segment_id); |
segment_id | 212 | drivers/char/ftape/ftape-read.c | eof_sector = check_for_eof(segment_id); |
segment_id | 249 | drivers/char/ftape/ftape-read.c | TRACEi(5, "zapping segment in cache :", buffer[tail].segment_id); |
segment_id | 255 | drivers/char/ftape/ftape-read.c | if (buffer[tail].segment_id == segment_id) { |
segment_id | 305 | drivers/char/ftape/ftape-read.c | if (get_bad_sector_entry(segment_id) == EMPTY_SEGMENT) { |
segment_id | 335 | drivers/char/ftape/ftape-read.c | setup_new_segment(&buffer[head], segment_id, -1); |
segment_id | 341 | drivers/char/ftape/ftape-read.c | result = ftape_start_tape(segment_id, |
segment_id | 344 | drivers/char/ftape/ftape-read.c | TRACEx1(1, "Error: segment %d unreachable", segment_id); |
segment_id | 105 | drivers/char/ftape/ftape-rw.c | static int setup_segment(buffer_struct * buff, unsigned int segment_id, |
segment_id | 112 | drivers/char/ftape/ftape-rw.c | buff->segment_id = segment_id; |
segment_id | 115 | drivers/char/ftape/ftape-rw.c | buff->head = segment_id / segments_per_head; |
segment_id | 116 | drivers/char/ftape/ftape-rw.c | buff->cyl = (segment_id % segments_per_head) / segments_per_cylinder; |
segment_id | 117 | drivers/char/ftape/ftape-rw.c | buff->sect = (segment_id % segments_per_cylinder) * SECTORS_PER_SEGMENT + 1; |
segment_id | 120 | drivers/char/ftape/ftape-rw.c | mask = get_bad_sector_entry(segment_id) & offset_mask; |
segment_id | 135 | drivers/char/ftape/ftape-rw.c | buff->bad_sector_map = get_bad_sector_entry(buff->segment_id); |
segment_id | 138 | drivers/char/ftape/ftape-rw.c | buff->segment_id, buff->bad_sector_map); |
segment_id | 140 | drivers/char/ftape/ftape-rw.c | TRACEx1(5, "segment: %d", buff->segment_id); |
segment_id | 168 | drivers/char/ftape/ftape-rw.c | buff->next_segment = segment_id + 1; |
segment_id | 175 | drivers/char/ftape/ftape-rw.c | int setup_new_segment(buffer_struct * buff, unsigned int segment_id, int skip) |
segment_id | 187 | drivers/char/ftape/ftape-rw.c | segment_id, old_segment_id); |
segment_id | 192 | drivers/char/ftape/ftape-rw.c | if (segment_id == old_segment_id) { |
segment_id | 205 | drivers/char/ftape/ftape-rw.c | old_segment_id = segment_id; |
segment_id | 207 | drivers/char/ftape/ftape-rw.c | result = setup_segment(buff, segment_id, offset, count, retry); |
segment_id | 444 | drivers/char/ftape/ftape-rw.c | /* forward */ static int seek_forward(int segment_id); |
segment_id | 544 | drivers/char/ftape/ftape-rw.c | static int seek_forward(int segment_id) |
segment_id | 554 | drivers/char/ftape/ftape-rw.c | int target = segment_id - margin; |
segment_id | 560 | drivers/char/ftape/ftape-rw.c | } else if (!validate(segment_id)) { |
segment_id | 569 | drivers/char/ftape/ftape-rw.c | location.sector, segment_id, margin); |
segment_id | 574 | drivers/char/ftape/ftape-rw.c | expected = segment_id - margin; |
segment_id | 580 | drivers/char/ftape/ftape-rw.c | while (location.segment < segment_id) { |
segment_id | 627 | drivers/char/ftape/ftape-rw.c | if (location.segment > segment_id) { |
segment_id | 637 | drivers/char/ftape/ftape-rw.c | static int skip_reverse(int segment_id, int *pstatus) |
segment_id | 648 | drivers/char/ftape/ftape-rw.c | int target = segment_id - margin; |
segment_id | 650 | drivers/char/ftape/ftape-rw.c | if (location.known && !validate(segment_id)) { |
segment_id | 661 | drivers/char/ftape/ftape-rw.c | location.segment, location.sector, segment_id, margin); |
segment_id | 732 | drivers/char/ftape/ftape-rw.c | } while (location.segment > segment_id && |
segment_id | 842 | drivers/char/ftape/ftape-rw.c | int ftape_start_tape(int segment_id, int sector_offset) |
segment_id | 845 | drivers/char/ftape/ftape-rw.c | int track = segment_id / segments_per_track; |
segment_id | 864 | drivers/char/ftape/ftape-rw.c | TRACEx3(4, "target segment: %d/%d%s", segment_id, sector_offset, |
segment_id | 874 | drivers/char/ftape/ftape-rw.c | last_segment = segment_id; |
segment_id | 889 | drivers/char/ftape/ftape-rw.c | if (location.known && location.segment >= segment_id - |
segment_id | 904 | drivers/char/ftape/ftape-rw.c | if (segment_id % segments_per_track < start_offset) { |
segment_id | 915 | drivers/char/ftape/ftape-rw.c | result = skip_reverse(segment_id - start_offset, &status); |
segment_id | 933 | drivers/char/ftape/ftape-rw.c | if (location.segment < segment_id - |
segment_id | 936 | drivers/char/ftape/ftape-rw.c | result = seek_forward(segment_id); |
segment_id | 938 | drivers/char/ftape/ftape-rw.c | result = seek_forward(segment_id - 1); |
segment_id | 942 | drivers/char/ftape/ftape-rw.c | location.segment != segment_id - (sector_offset > 0 ? 0 : 1)) { |
segment_id | 58 | drivers/char/ftape/ftape-rw.h | volatile unsigned segment_id; |
segment_id | 159 | drivers/char/ftape/ftape-rw.h | extern int setup_new_segment(buffer_struct * buff, unsigned int segment_id, |
segment_id | 167 | drivers/char/ftape/ftape-rw.h | extern int ftape_start_tape(int segment_id, int offset); |
segment_id | 113 | drivers/char/ftape/ftape-write.c | int segment_id = buff->segment_id; |
segment_id | 116 | drivers/char/ftape/ftape-write.c | setup_new_segment(buff, segment_id, 1); |
segment_id | 123 | drivers/char/ftape/ftape-write.c | TRACEi(5, "starting runner for segment", segment_id); |
segment_id | 124 | drivers/char/ftape/ftape-write.c | result = ftape_start_tape(segment_id, buff->sector_offset); |
segment_id | 151 | drivers/char/ftape/ftape-write.c | i, buffer[i].segment_id, buffer[i].status); |
segment_id | 193 | drivers/char/ftape/ftape-write.c | int write_segment(unsigned segment_id, byte * address, int flushing) |
segment_id | 199 | drivers/char/ftape/ftape-write.c | TRACEi(5, "segment_id =", segment_id); |
segment_id | 265 | drivers/char/ftape/ftape-write.c | get_bad_sector_entry(segment_id) == EMPTY_SEGMENT)) { |
segment_id | 273 | drivers/char/ftape/ftape-write.c | get_bad_sector_entry(segment_id)); |
segment_id | 276 | drivers/char/ftape/ftape-write.c | buffer[tail].segment_id = segment_id; |
segment_id | 300 | drivers/char/ftape/ftape-write.c | int _write_segment(unsigned int segment_id, byte * buffer, int flush) |
segment_id | 308 | drivers/char/ftape/ftape-write.c | if (segment_id > ftape_last_segment.id && !flush) { |
segment_id | 312 | drivers/char/ftape/ftape-write.c | result = write_segment(segment_id, buffer, flush); |