Lines Matching refs:nsels
133 int nsels; member
1372 int nsels; in mtk_nfc_nand_chip_init() local
1377 if (!of_get_property(np, "reg", &nsels)) in mtk_nfc_nand_chip_init()
1380 nsels /= sizeof(u32); in mtk_nfc_nand_chip_init()
1381 if (!nsels || nsels > MTK_NAND_MAX_NSELS) { in mtk_nfc_nand_chip_init()
1382 dev_err(dev, "invalid reg property size %d\n", nsels); in mtk_nfc_nand_chip_init()
1386 chip = devm_kzalloc(dev, sizeof(*chip) + nsels * sizeof(u8), in mtk_nfc_nand_chip_init()
1391 chip->nsels = nsels; in mtk_nfc_nand_chip_init()
1392 for (i = 0; i < nsels; i++) { in mtk_nfc_nand_chip_init()
1443 ret = nand_scan(nand, nsels); in mtk_nfc_nand_chip_init()
1654 for (i = 0; i < chip->nsels; i++) in mtk_nfc_resume()