Lines Matching refs:nsectors

267 	u8 nsectors;  member
509 u8 nsectors; in mtk_snand_setup_pagefmt() local
517 nsectors = page_size / snf->caps->sector_size; in mtk_snand_setup_pagefmt()
518 if (nsectors > snf->caps->max_sectors) { in mtk_snand_setup_pagefmt()
561 spare_size = oob_size / nsectors; in mtk_snand_setup_pagefmt()
591 snf->nfi_cfg.nsectors = nsectors; in mtk_snand_setup_pagefmt()
595 snf->caps->sector_size, spare_size, nsectors); in mtk_snand_setup_pagefmt()
616 if (section >= ms->nfi_cfg.nsectors) in mtk_snand_ooblayout_free()
665 strength = desired_correction / snf->nfi_cfg.nsectors; in mtk_snand_ecc_init_ctx()
669 ecc_cfg->sectors = snf->nfi_cfg.nsectors; in mtk_snand_ecc_init_ctx()
761 for (i = 0; i < snf->nfi_cfg.nsectors; i++) { in mtk_snand_read_fdm()
779 for (i = 0; i < snf->nfi_cfg.nsectors; i++) { in mtk_snand_write_fdm()
803 if (!snf->caps->bbm_swap || snf->nfi_cfg.nsectors == 1) in mtk_snand_bm_swap()
809 (snf->nfi_cfg.nsectors - 1) * snf->nfi_cfg.spare_size; in mtk_snand_bm_swap()
811 (snf->nfi_cfg.nsectors - 1) * snf->caps->fdm_size; in mtk_snand_bm_swap()
820 if (!snf->caps->bbm_swap || snf->nfi_cfg.nsectors == 1) in mtk_snand_fdm_bm_swap()
826 (snf->nfi_cfg.nsectors - 1) * snf->caps->fdm_size; in mtk_snand_fdm_bm_swap()
894 snf->nfi_cfg.nsectors; in mtk_snand_read_page_cache()
903 nfi_write32(snf, NFI_CON, (snf->nfi_cfg.nsectors << CON_SEC_NUM_S)); in mtk_snand_read_page_cache()
938 BUS_SEC_CNTR(val) >= snf->nfi_cfg.nsectors, 0, in mtk_snand_read_page_cache()
962 snf->nfi_cfg.nsectors); in mtk_snand_read_page_cache()
1085 snf->nfi_cfg.nsectors; in mtk_snand_write_page_cache()
1094 nfi_write32(snf, NFI_CON, (snf->nfi_cfg.nsectors << CON_SEC_NUM_S)); in mtk_snand_write_page_cache()
1129 NFI_SEC_CNTR(val) >= snf->nfi_cfg.nsectors, 0, in mtk_snand_write_page_cache()
1238 l *= ms->nfi_cfg.nsectors; in mtk_snand_adjust_op_size()