Lines Matching refs:spare_size
268 u8 spare_size; member
507 u32 spare_size, spare_size_shift, pagesize_idx; in mtk_snand_setup_pagefmt() local
561 spare_size = oob_size / nsectors; in mtk_snand_setup_pagefmt()
565 spare_size /= 2; in mtk_snand_setup_pagefmt()
568 if (snf->caps->spare_sizes[i] <= spare_size) { in mtk_snand_setup_pagefmt()
569 spare_size = snf->caps->spare_sizes[i]; in mtk_snand_setup_pagefmt()
571 spare_size *= 2; in mtk_snand_setup_pagefmt()
578 dev_err(snf->dev, "unsupported spare size: %u\n", spare_size); in mtk_snand_setup_pagefmt()
592 snf->nfi_cfg.spare_size = spare_size; in mtk_snand_setup_pagefmt()
595 snf->caps->sector_size, spare_size, nsectors); in mtk_snand_setup_pagefmt()
674 max_ecc_bytes = snf->nfi_cfg.spare_size - snf->caps->fdm_size; in mtk_snand_ecc_init_ctx()
809 (snf->nfi_cfg.nsectors - 1) * snf->nfi_cfg.spare_size; in mtk_snand_bm_swap()
893 rd_bytes = (snf->nfi_cfg.spare_size + snf->caps->sector_size) * in mtk_snand_read_page_cache()
1084 wr_bytes = (snf->nfi_cfg.spare_size + snf->caps->sector_size) * in mtk_snand_write_page_cache()
1237 l = ms->caps->sector_size + ms->nfi_cfg.spare_size; in mtk_snand_adjust_op_size()