Lines Matching refs:ecc_size
105 prz->ecc_info.ecc_size * sizeof(prz->ecc_info.par[0]));
107 for (i = 0; i < prz->ecc_info.ecc_size; i++)
116 for (i = 0; i < prz->ecc_info.ecc_size; i++)
130 int ecc_size = prz->ecc_info.ecc_size;
133 if (!ecc_size)
137 par = prz->par_buffer + (start / ecc_block_size) * ecc_size;
144 par += ecc_size;
152 if (!prz->ecc_info.ecc_size)
165 if (!prz->ecc_info.ecc_size)
184 par += prz->ecc_info.ecc_size;
196 if (!ecc_info || !ecc_info->ecc_size)
200 prz->ecc_info.ecc_size = ecc_info->ecc_size ?: 16;
204 ecc_blocks = DIV_ROUND_UP(prz->buffer_size - prz->ecc_info.ecc_size,
206 prz->ecc_info.ecc_size);
207 ecc_total = (ecc_blocks + 1) * prz->ecc_info.ecc_size;
209 pr_err("%s: invalid ecc_size %u (total %zu, buffer size %zu)\n",
210 __func__, prz->ecc_info.ecc_size,
218 ecc_blocks * prz->ecc_info.ecc_size;
225 0, 1, prz->ecc_info.ecc_size);
232 prz->ecc_info.par = kmalloc_array(prz->ecc_info.ecc_size,
261 if (!prz->ecc_info.ecc_size)
616 prz->ecc_info.ecc_size, prz->ecc_info.block_size);