Lines Matching full:free

16  * - BCH6  : Generate 10 ECC bytes from 512 data bytes plus 6 free bytes
17 * - BCH12 : Generate 20 ECC bytes from 512 data bytes plus 6 free bytes
29 * - tag : 6 User/free bytes. First tag "contains" 2 bytes BBI. Protected by ECC!
37 * | data | data | data | data | BBI | free | free | free | free | ECC | ECC | ECC | ECC |
51 * The engine is fed with two DMA regions. One for data (always 512 bytes) and one for free bytes
146 .free = rtl_ecc_ooblayout_free,
169 * and 6 free bytes. In case the NAND area has been erased and all data and oob is in rtl_ecc_wait_for_engine()
191 static int rtl_ecc_run_engine(struct rtl_ecc_ctx *ctx, char *data, char *free, in rtl_ecc_run_engine() argument
203 memcpy(buf_free, free, RTL_ECC_FREE_SIZE); in rtl_ecc_run_engine()
213 memcpy(free, buf_free, RTL_ECC_FREE_SIZE); in rtl_ecc_run_engine()
226 char *data, *free, *parity; in rtl_ecc_prepare_io_req() local
237 free = req->oobbuf.in; in rtl_ecc_prepare_io_req()
242 ret |= rtl_ecc_run_engine(ctx, data, free, parity, RTL_ECC_OP_ENCODE); in rtl_ecc_prepare_io_req()
244 free += RTL_ECC_FREE_SIZE; in rtl_ecc_prepare_io_req()
260 char *data, *free, *parity; in rtl_ecc_finish_io_req() local
272 free = req->oobbuf.in; in rtl_ecc_finish_io_req()
277 int ret = rtl_ecc_run_engine(ctx, data, free, parity, RTL_ECC_OP_DECODE); in rtl_ecc_finish_io_req()
283 free, RTL_ECC_FREE_SIZE, in rtl_ecc_finish_io_req()
293 free += RTL_ECC_FREE_SIZE; in rtl_ecc_finish_io_req()
368 dev_dbg(dev, "using bch%d with geometry data=%dx%d, free=%dx6, parity=%dx%d", in rtl_ecc_init_ctx()