taglinefilesource code
segment_id411drivers/char/ftape/fdc-isr.cunsigned last_segment = buff->segment_id;
segment_id427drivers/char/ftape/fdc-isr.cif (write && next != buff->segment_id) {
segment_id478drivers/char/ftape/fdc-isr.cpause_tape(buff->segment_id, 1, fdc_mode);
segment_id574drivers/char/ftape/fdc-isr.ci, buffer[i].status, buffer[i].segment_id);
segment_id581drivers/char/ftape/fdc-isr.cTRACEi(5, "reading segment", buff->segment_id);
segment_id583drivers/char/ftape/fdc-isr.cTRACEi(4, "error reading segment", buff->segment_id);
segment_id615drivers/char/ftape/fdc-isr.cif (buff->segment_id == 0) {
segment_id618drivers/char/ftape/fdc-isr.cbuff->next_segment = buff->segment_id + 1;  /* force read-ahead */
segment_id693drivers/char/ftape/fdc-isr.cTRACEi(5, "writing segment", buff->segment_id);
segment_id695drivers/char/ftape/fdc-isr.cTRACEi(4, "error writing segment", buff->segment_id);
segment_id267drivers/char/ftape/ftape-bsm.cint forward_seek_entry(int segment_id, byte ** ptr, unsigned long *map)
segment_id277drivers/char/ftape/ftape-bsm.c} while (sector != 0 && segment < segment_id);
segment_id281drivers/char/ftape/ftape-bsm.cif (format_code == 4 && (sector & 0x800000) && segment == segment_id) {
segment_id287drivers/char/ftape/ftape-bsm.cwhile (sector != 0 && segment == segment_id) {
segment_id298drivers/char/ftape/ftape-bsm.cint backwards_seek_entry(int segment_id, byte ** ptr, unsigned long *map)
segment_id309drivers/char/ftape/ftape-bsm.c} while (*ptr > bad_sector_map && segment > segment_id);
segment_id311drivers/char/ftape/ftape-bsm.cif (segment > segment_id) {
segment_id313drivers/char/ftape/ftape-bsm.c} else if (segment < segment_id) {
segment_id330drivers/char/ftape/ftape-bsm.c} while (segment == segment_id);
segment_id331drivers/char/ftape/ftape-bsm.cif (segment < segment_id) {
segment_id342drivers/char/ftape/ftape-bsm.cvoid put_bad_sector_entry(int segment_id, unsigned long new_map)
segment_id350drivers/char/ftape/ftape-bsm.ccount = forward_seek_entry(segment_id, &ptr, &map);
segment_id368drivers/char/ftape/ftape-bsm.cput_sector(&ptr, 0x800001 + segment_id * SECTORS_PER_SEGMENT);
segment_id374drivers/char/ftape/ftape-bsm.cput_sector(&ptr, 1 + segment_id * SECTORS_PER_SEGMENT + i);
segment_id381drivers/char/ftape/ftape-bsm.c((unsigned long *) bad_sector_map)[segment_id] = new_map;
segment_id386drivers/char/ftape/ftape-bsm.cunsigned long get_bad_sector_entry(int segment_id)
segment_id408drivers/char/ftape/ftape-bsm.cif (segment_id > last_reference) {
segment_id411drivers/char/ftape/ftape-bsm.cforward_seek_entry(segment_id, &ptr, &map);
segment_id412drivers/char/ftape/ftape-bsm.c} else if (segment_id < last_reference) {
segment_id415drivers/char/ftape/ftape-bsm.cbackwards_seek_entry(segment_id, &ptr, &map);
segment_id417drivers/char/ftape/ftape-bsm.clast_reference = segment_id;
segment_id419drivers/char/ftape/ftape-bsm.cmap = ((unsigned long *) bad_sector_map)[segment_id];
segment_id55drivers/char/ftape/ftape-bsm.hextern unsigned long get_bad_sector_entry(int segment_id);
segment_id56drivers/char/ftape/ftape-bsm.hextern void put_bad_sector_entry(int segment_id, unsigned long mask);
segment_id78drivers/char/ftape/ftape-read.cunsigned long bad_map = get_bad_sector_entry(buff->segment_id);
segment_id137drivers/char/ftape/ftape-read.cTRACEi(3, "ecc corrected segment:", buffer[tail].segment_id);
segment_id147drivers/char/ftape/ftape-read.cTRACEi(1, "ecc failure on segment", buffer[tail].segment_id);
segment_id158drivers/char/ftape/ftape-read.cint read_segment(unsigned segment_id, byte * address, int *eof_mark,
segment_id167drivers/char/ftape/ftape-read.cTRACEi(5, "segment_id =", segment_id);
segment_id184drivers/char/ftape/ftape-read.cif (segment_id >= segments_per_track * tracks_per_tape) {
segment_id194drivers/char/ftape/ftape-read.cif (buffer[tail].segment_id == segment_id) {
segment_id197drivers/char/ftape/ftape-read.cunsigned long bsm = get_bad_sector_entry(segment_id);
segment_id203drivers/char/ftape/ftape-read.cTRACEi(5, "found segment in cache :", segment_id);
segment_id211drivers/char/ftape/ftape-read.cTRACEi(5, "found segment in cache :", segment_id);
segment_id212drivers/char/ftape/ftape-read.ceof_sector = check_for_eof(segment_id);
segment_id249drivers/char/ftape/ftape-read.cTRACEi(5, "zapping segment in cache :", buffer[tail].segment_id);
segment_id255drivers/char/ftape/ftape-read.cif (buffer[tail].segment_id == segment_id) {
segment_id305drivers/char/ftape/ftape-read.cif (get_bad_sector_entry(segment_id) == EMPTY_SEGMENT) {
segment_id335drivers/char/ftape/ftape-read.csetup_new_segment(&buffer[head], segment_id, -1);
segment_id341drivers/char/ftape/ftape-read.cresult = ftape_start_tape(segment_id,
segment_id344drivers/char/ftape/ftape-read.cTRACEx1(1, "Error: segment %d unreachable", segment_id);
segment_id105drivers/char/ftape/ftape-rw.cstatic int setup_segment(buffer_struct * buff, unsigned int segment_id,
segment_id112drivers/char/ftape/ftape-rw.cbuff->segment_id = segment_id;
segment_id115drivers/char/ftape/ftape-rw.cbuff->head = segment_id / segments_per_head;
segment_id116drivers/char/ftape/ftape-rw.cbuff->cyl = (segment_id % segments_per_head) / segments_per_cylinder;
segment_id117drivers/char/ftape/ftape-rw.cbuff->sect = (segment_id % segments_per_cylinder) * SECTORS_PER_SEGMENT + 1;
segment_id120drivers/char/ftape/ftape-rw.cmask = get_bad_sector_entry(segment_id) & offset_mask;
segment_id135drivers/char/ftape/ftape-rw.cbuff->bad_sector_map = get_bad_sector_entry(buff->segment_id);
segment_id138drivers/char/ftape/ftape-rw.cbuff->segment_id, buff->bad_sector_map);
segment_id140drivers/char/ftape/ftape-rw.cTRACEx1(5, "segment: %d", buff->segment_id);
segment_id168drivers/char/ftape/ftape-rw.cbuff->next_segment = segment_id + 1;
segment_id175drivers/char/ftape/ftape-rw.cint setup_new_segment(buffer_struct * buff, unsigned int segment_id, int skip)
segment_id187drivers/char/ftape/ftape-rw.csegment_id, old_segment_id);
segment_id192drivers/char/ftape/ftape-rw.cif (segment_id == old_segment_id) {
segment_id205drivers/char/ftape/ftape-rw.cold_segment_id = segment_id;
segment_id207drivers/char/ftape/ftape-rw.cresult = setup_segment(buff, segment_id, offset, count, retry);
segment_id444drivers/char/ftape/ftape-rw.c/* forward */ static int seek_forward(int segment_id);
segment_id544drivers/char/ftape/ftape-rw.cstatic int seek_forward(int segment_id)
segment_id554drivers/char/ftape/ftape-rw.cint target = segment_id - margin;
segment_id560drivers/char/ftape/ftape-rw.c} else if (!validate(segment_id)) {
segment_id569drivers/char/ftape/ftape-rw.clocation.sector, segment_id, margin);
segment_id574drivers/char/ftape/ftape-rw.cexpected = segment_id - margin;
segment_id580drivers/char/ftape/ftape-rw.cwhile (location.segment < segment_id) {
segment_id627drivers/char/ftape/ftape-rw.cif (location.segment > segment_id) {
segment_id637drivers/char/ftape/ftape-rw.cstatic int skip_reverse(int segment_id, int *pstatus)
segment_id648drivers/char/ftape/ftape-rw.cint target = segment_id - margin;
segment_id650drivers/char/ftape/ftape-rw.cif (location.known && !validate(segment_id)) {
segment_id661drivers/char/ftape/ftape-rw.clocation.segment, location.sector, segment_id, margin);
segment_id732drivers/char/ftape/ftape-rw.c} while (location.segment > segment_id &&
segment_id842drivers/char/ftape/ftape-rw.cint ftape_start_tape(int segment_id, int sector_offset)
segment_id845drivers/char/ftape/ftape-rw.cint track = segment_id / segments_per_track;
segment_id864drivers/char/ftape/ftape-rw.cTRACEx3(4, "target segment: %d/%d%s", segment_id, sector_offset,
segment_id874drivers/char/ftape/ftape-rw.clast_segment = segment_id;
segment_id889drivers/char/ftape/ftape-rw.cif (location.known && location.segment >= segment_id -
segment_id904drivers/char/ftape/ftape-rw.cif (segment_id % segments_per_track < start_offset) {
segment_id915drivers/char/ftape/ftape-rw.cresult = skip_reverse(segment_id - start_offset, &status);
segment_id933drivers/char/ftape/ftape-rw.cif (location.segment < segment_id -
segment_id936drivers/char/ftape/ftape-rw.cresult = seek_forward(segment_id);
segment_id938drivers/char/ftape/ftape-rw.cresult = seek_forward(segment_id - 1);
segment_id942drivers/char/ftape/ftape-rw.clocation.segment != segment_id - (sector_offset > 0 ? 0 : 1)) {
segment_id58drivers/char/ftape/ftape-rw.hvolatile unsigned segment_id;
segment_id159drivers/char/ftape/ftape-rw.hextern int setup_new_segment(buffer_struct * buff, unsigned int segment_id,
segment_id167drivers/char/ftape/ftape-rw.hextern int ftape_start_tape(int segment_id, int offset);
segment_id113drivers/char/ftape/ftape-write.cint segment_id = buff->segment_id;
segment_id116drivers/char/ftape/ftape-write.csetup_new_segment(buff, segment_id, 1);
segment_id123drivers/char/ftape/ftape-write.cTRACEi(5, "starting runner for segment", segment_id);
segment_id124drivers/char/ftape/ftape-write.cresult = ftape_start_tape(segment_id, buff->sector_offset);
segment_id151drivers/char/ftape/ftape-write.ci, buffer[i].segment_id, buffer[i].status);
segment_id193drivers/char/ftape/ftape-write.cint write_segment(unsigned segment_id, byte * address, int flushing)
segment_id199drivers/char/ftape/ftape-write.cTRACEi(5, "segment_id =", segment_id);
segment_id265drivers/char/ftape/ftape-write.cget_bad_sector_entry(segment_id) == EMPTY_SEGMENT)) {
segment_id273drivers/char/ftape/ftape-write.cget_bad_sector_entry(segment_id));
segment_id276drivers/char/ftape/ftape-write.cbuffer[tail].segment_id = segment_id;
segment_id300drivers/char/ftape/ftape-write.cint _write_segment(unsigned int segment_id, byte * buffer, int flush)
segment_id308drivers/char/ftape/ftape-write.cif (segment_id > ftape_last_segment.id && !flush) {
segment_id312drivers/char/ftape/ftape-write.cresult = write_segment(segment_id, buffer, flush);