Lines Matching refs:ecc_step_size
23 int ecc_step_size; member
117 int steps = info->usable_page_size / info->ecc_step_size; in write_page()
159 offs = steps * (info->ecc_step_size + eccbytes + 4); in write_page()
181 memset(buffer, 0xff, info->ecc_step_size + eccbytes + 4); in write_page()
182 ecc = buffer + info->ecc_step_size + 4; in write_page()
184 data_offs = i * (info->ecc_step_size + eccbytes + 4); in write_page()
185 ecc_offs = data_offs + info->ecc_step_size + 4; in write_page()
187 data_offs = i * info->ecc_step_size; in write_page()
191 cnt = fread(buffer, 1, info->ecc_step_size, src); in write_page()
198 pad = info->ecc_step_size - cnt; in write_page()
215 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
216 encode_bch(bch, buffer, info->ecc_step_size + 4, ecc); in write_page()
217 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
219 scramble(info, page, buffer, info->ecc_step_size + 4 + eccbytes); in write_page()
222 fwrite(buffer, info->ecc_step_size, 1, dst); in write_page()
364 if (info->ecc_step_size != 512 && info->ecc_step_size != 1024) { in check_image_info()
366 info->ecc_step_size); in check_image_info()
386 eccsteps = info->usable_page_size / info->ecc_step_size; in check_image_info()
437 info.ecc_step_size = strtol(endptr + 1, NULL, 0); in main()