Searched refs:mseg (Results 1 – 3 of 3) sorted by relevance
715 int ftape_ecc_set_segment_parity(struct memory_segment *mseg) in ftape_ecc_set_segment_parity() argument720 parity_bytes = &mseg->data[(mseg->blocks - 3) * FT_SECTOR_SIZE]; in ftape_ecc_set_segment_parity()722 set_parity((unsigned long *) &mseg->data[i], mseg->blocks - 3, in ftape_ecc_set_segment_parity()726 if (!sanity_check((unsigned long *) &mseg->data[i], in ftape_ecc_set_segment_parity()727 mseg->blocks)) { in ftape_ecc_set_segment_parity()739 int ftape_ecc_correct_data(struct memory_segment *mseg) in ftape_ecc_correct_data() argument750 mseg->corrected = 0; in ftape_ecc_correct_data()754 if (!compute_syndromes((unsigned long *) &mseg->data[col], in ftape_ecc_correct_data()755 mseg->blocks, ss)) { in ftape_ecc_correct_data()765 if (mseg->read_bad) { in ftape_ecc_correct_data()[all …]
102 struct memory_segment mseg; in correct_and_copy_fraction() local107 mseg.read_bad = convert_sector_map(buff); in correct_and_copy_fraction()108 mseg.marked_bad = 0; /* not used... */ in correct_and_copy_fraction()109 mseg.blocks = buff->bytes / FT_SECTOR_SIZE; in correct_and_copy_fraction()110 mseg.data = buff->address; in correct_and_copy_fraction()113 if (mseg.blocks <= 3) { in correct_and_copy_fraction()116 read_bad = mseg.read_bad; in correct_and_copy_fraction()118 result = ftape_ecc_correct_data(&mseg); in correct_and_copy_fraction()119 if (read_bad != 0 || mseg.corrected != 0) { in correct_and_copy_fraction()121 TRACE(ft_t_noise, "corrected map: 0x%08lx", (unsigned long)mseg.corrected); in correct_and_copy_fraction()[all …]
67 struct memory_segment mseg; in copy_and_gen_ecc() local76 mseg.blocks = 0; /* skip entire segment */ in copy_and_gen_ecc()79 mseg.blocks = FT_SECTORS_PER_SEGMENT - bads; in copy_and_gen_ecc()80 mseg.data = destination; in copy_and_gen_ecc()81 memcpy(mseg.data, source, (mseg.blocks - 3) * FT_SECTOR_SIZE); in copy_and_gen_ecc()82 result = ftape_ecc_set_segment_parity(&mseg); in copy_and_gen_ecc()86 result = (mseg.blocks - 3) * FT_SECTOR_SIZE; in copy_and_gen_ecc()