Lines Matching refs:nsels
132 int nsels; member
1345 int nsels; in mtk_nfc_nand_chip_init() local
1350 if (!of_get_property(np, "reg", &nsels)) in mtk_nfc_nand_chip_init()
1353 nsels /= sizeof(u32); in mtk_nfc_nand_chip_init()
1354 if (!nsels || nsels > MTK_NAND_MAX_NSELS) { in mtk_nfc_nand_chip_init()
1355 dev_err(dev, "invalid reg property size %d\n", nsels); in mtk_nfc_nand_chip_init()
1359 chip = devm_kzalloc(dev, sizeof(*chip) + nsels * sizeof(u8), in mtk_nfc_nand_chip_init()
1364 chip->nsels = nsels; in mtk_nfc_nand_chip_init()
1365 for (i = 0; i < nsels; i++) { in mtk_nfc_nand_chip_init()
1416 ret = nand_scan(nand, nsels); in mtk_nfc_nand_chip_init()
1627 for (i = 0; i < chip->nsels; i++) in mtk_nfc_resume()