Lines Matching refs:sector_size
224 u16 sector_size; member
239 .sector_size = 512,
252 .sector_size = 512,
517 nsectors = page_size / snf->caps->sector_size; in mtk_snand_setup_pagefmt()
523 if (snf->caps->sector_size == 512) { in mtk_snand_setup_pagefmt()
536 if (snf->caps->sector_size == 512) in mtk_snand_setup_pagefmt()
542 if (snf->caps->sector_size == 512) in mtk_snand_setup_pagefmt()
548 if (snf->caps->sector_size == 512) in mtk_snand_setup_pagefmt()
564 if (snf->caps->sector_size == 1024) in mtk_snand_setup_pagefmt()
570 if (snf->caps->sector_size == 1024) in mtk_snand_setup_pagefmt()
595 snf->caps->sector_size, spare_size, nsectors); in mtk_snand_setup_pagefmt()
670 ecc_cfg->len = snf->caps->sector_size + snf->caps->fdm_ecc_size; in mtk_snand_ecc_init_ctx()
696 conf->step_size = snf->caps->sector_size; in mtk_snand_ecc_init_ctx()
703 ecc_cfg->strength, snf->caps->sector_size); in mtk_snand_ecc_init_ctx()
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()
1408 ret = mtk_snand_setup_pagefmt(ms, ms->caps->sector_size, in mtk_snand_probe()