Lines Matching refs:mseg
102 struct memory_segment mseg; in correct_and_copy_fraction() local
107 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()
122 ft_history.corrected += count_ones(mseg.corrected); in correct_and_copy_fraction()
131 if((start+size) > ((mseg.blocks - 3) * FT_SECTOR_SIZE)) { in correct_and_copy_fraction()
132 size = (mseg.blocks - 3) * FT_SECTOR_SIZE - start; in correct_and_copy_fraction()
138 memcpy(destination + start, mseg.data + start, size); in correct_and_copy_fraction()
140 if ((read_bad ^ mseg.corrected) & mseg.corrected) { in correct_and_copy_fraction()