Lines Matching refs:spare_size
298 u8 spare_size; member
538 u32 spare_size, spare_size_shift, pagesize_idx; in mtk_snand_setup_pagefmt() local
592 spare_size = oob_size / nsectors; in mtk_snand_setup_pagefmt()
596 spare_size /= 2; in mtk_snand_setup_pagefmt()
599 if (snf->caps->spare_sizes[i] <= spare_size) { in mtk_snand_setup_pagefmt()
600 spare_size = snf->caps->spare_sizes[i]; in mtk_snand_setup_pagefmt()
602 spare_size *= 2; in mtk_snand_setup_pagefmt()
609 dev_err(snf->dev, "unsupported spare size: %u\n", spare_size); in mtk_snand_setup_pagefmt()
623 snf->nfi_cfg.spare_size = spare_size; in mtk_snand_setup_pagefmt()
626 snf->caps->sector_size, spare_size, nsectors); in mtk_snand_setup_pagefmt()
705 max_ecc_bytes = snf->nfi_cfg.spare_size - snf->caps->fdm_size; in mtk_snand_ecc_init_ctx()
840 (snf->nfi_cfg.nsectors - 1) * snf->nfi_cfg.spare_size; in mtk_snand_bm_swap()
924 rd_bytes = (snf->nfi_cfg.spare_size + snf->caps->sector_size) * in mtk_snand_read_page_cache()
1115 wr_bytes = (snf->nfi_cfg.spare_size + snf->caps->sector_size) * in mtk_snand_write_page_cache()
1268 l = ms->caps->sector_size + ms->nfi_cfg.spare_size; in mtk_snand_adjust_op_size()