Lines Matching refs:nsectors

297 	u8 nsectors;  member
540 u8 nsectors; in mtk_snand_setup_pagefmt() local
548 nsectors = page_size / snf->caps->sector_size; in mtk_snand_setup_pagefmt()
549 if (nsectors > snf->caps->max_sectors) { in mtk_snand_setup_pagefmt()
592 spare_size = oob_size / nsectors; in mtk_snand_setup_pagefmt()
622 snf->nfi_cfg.nsectors = nsectors; in mtk_snand_setup_pagefmt()
626 snf->caps->sector_size, spare_size, nsectors); in mtk_snand_setup_pagefmt()
647 if (section >= ms->nfi_cfg.nsectors) in mtk_snand_ooblayout_free()
696 strength = desired_correction / snf->nfi_cfg.nsectors; in mtk_snand_ecc_init_ctx()
700 ecc_cfg->sectors = snf->nfi_cfg.nsectors; in mtk_snand_ecc_init_ctx()
792 for (i = 0; i < snf->nfi_cfg.nsectors; i++) { in mtk_snand_read_fdm()
810 for (i = 0; i < snf->nfi_cfg.nsectors; i++) { in mtk_snand_write_fdm()
834 if (!snf->caps->bbm_swap || snf->nfi_cfg.nsectors == 1) in mtk_snand_bm_swap()
840 (snf->nfi_cfg.nsectors - 1) * snf->nfi_cfg.spare_size; in mtk_snand_bm_swap()
842 (snf->nfi_cfg.nsectors - 1) * snf->caps->fdm_size; in mtk_snand_bm_swap()
851 if (!snf->caps->bbm_swap || snf->nfi_cfg.nsectors == 1) in mtk_snand_fdm_bm_swap()
857 (snf->nfi_cfg.nsectors - 1) * snf->caps->fdm_size; in mtk_snand_fdm_bm_swap()
925 snf->nfi_cfg.nsectors; in mtk_snand_read_page_cache()
934 nfi_write32(snf, NFI_CON, (snf->nfi_cfg.nsectors << CON_SEC_NUM_S)); in mtk_snand_read_page_cache()
969 BUS_SEC_CNTR(val) >= snf->nfi_cfg.nsectors, 0, in mtk_snand_read_page_cache()
993 snf->nfi_cfg.nsectors); in mtk_snand_read_page_cache()
1116 snf->nfi_cfg.nsectors; in mtk_snand_write_page_cache()
1125 nfi_write32(snf, NFI_CON, (snf->nfi_cfg.nsectors << CON_SEC_NUM_S)); in mtk_snand_write_page_cache()
1160 NFI_SEC_CNTR(val) >= snf->nfi_cfg.nsectors, 0, in mtk_snand_write_page_cache()
1269 l *= ms->nfi_cfg.nsectors; in mtk_snand_adjust_op_size()