Home
last modified time | relevance | path

Searched refs:nsels (Results 1 – 12 of 12) sorted by relevance

/Linux-v6.1/drivers/mtd/nand/raw/
Ddenali_pci.c36 int nsels, ret, i; in denali_pci_probe() local
93 nsels = denali->nbanks; in denali_pci_probe()
95 dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels), in denali_pci_probe()
104 dchip->nsels = nsels; in denali_pci_probe()
106 for (i = 0; i < nsels; i++) in denali_pci_probe()
Ddenali_dt.c87 int nsels, i, ret; in denali_dt_chip_init() local
89 nsels = of_property_count_u32_elems(chip_np, "reg"); in denali_dt_chip_init()
90 if (nsels < 0) in denali_dt_chip_init()
91 return nsels; in denali_dt_chip_init()
93 dchip = devm_kzalloc(denali->dev, struct_size(dchip, sels, nsels), in denali_dt_chip_init()
98 dchip->nsels = nsels; in denali_dt_chip_init()
100 for (i = 0; i < nsels; i++) { in denali_dt_chip_init()
Drockchip-nand-controller.c161 u8 nsels; member
1105 int nsels; in rk_nfc_nand_chip_init() local
1110 if (!of_get_property(np, "reg", &nsels)) in rk_nfc_nand_chip_init()
1112 nsels /= sizeof(u32); in rk_nfc_nand_chip_init()
1113 if (!nsels || nsels > NFC_MAX_NSELS) { in rk_nfc_nand_chip_init()
1114 dev_err(dev, "invalid reg property size %d\n", nsels); in rk_nfc_nand_chip_init()
1118 rknand = devm_kzalloc(dev, sizeof(*rknand) + nsels * sizeof(u8), in rk_nfc_nand_chip_init()
1123 rknand->nsels = nsels; in rk_nfc_nand_chip_init()
1124 for (i = 0; i < nsels; i++) { in rk_nfc_nand_chip_init()
1168 ret = nand_scan(chip, nsels); in rk_nfc_nand_chip_init()
[all …]
Dmeson_nand.c124 u32 nsels; member
232 if (chip < 0 || WARN_ON_ONCE(chip >= meson_chip->nsels)) in meson_nfc_select_chip()
1244 u32 tmp, nsels; in meson_nfc_nand_chip_init() local
1246 nsels = of_property_count_elems_of_size(np, "reg", sizeof(u32)); in meson_nfc_nand_chip_init()
1247 if (!nsels || nsels > MAX_CE_NUM) { in meson_nfc_nand_chip_init()
1252 meson_chip = devm_kzalloc(dev, struct_size(meson_chip, sels, nsels), in meson_nfc_nand_chip_init()
1257 meson_chip->nsels = nsels; in meson_nfc_nand_chip_init()
1259 for (i = 0; i < nsels; i++) { in meson_nfc_nand_chip_init()
1284 ret = nand_scan(nand, nsels); in meson_nfc_nand_chip_init()
Drenesas-nand-controller.c203 unsigned int nsels; member
1203 int nsels, ret, i; in rnandc_chip_init() local
1206 nsels = of_property_count_elems_of_size(np, "reg", sizeof(u32)); in rnandc_chip_init()
1207 if (nsels <= 0) { in rnandc_chip_init()
1208 ret = (nsels < 0) ? nsels : -EINVAL; in rnandc_chip_init()
1214 rnand = devm_kzalloc(rnandc->dev, struct_size(rnand, sels, nsels), in rnandc_chip_init()
1219 rnand->nsels = nsels; in rnandc_chip_init()
1222 for (i = 0; i < nsels; i++) { in rnandc_chip_init()
1257 ret = nand_scan(chip, rnand->nsels); in rnandc_chip_init()
Dmtk_nand.c133 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()
[all …]
Dsunxi_nand.c200 int nsels; member
424 if (cs > 0 && cs >= sunxi_nand->nsels) in sunxi_nfc_select_chip()
1959 int nsels; in sunxi_nand_chip_init() local
1964 if (!of_get_property(np, "reg", &nsels)) in sunxi_nand_chip_init()
1967 nsels /= sizeof(u32); in sunxi_nand_chip_init()
1968 if (!nsels) { in sunxi_nand_chip_init()
1973 sunxi_nand = devm_kzalloc(dev, struct_size(sunxi_nand, sels, nsels), in sunxi_nand_chip_init()
1978 sunxi_nand->nsels = nsels; in sunxi_nand_chip_init()
1980 for (i = 0; i < nsels; i++) { in sunxi_nand_chip_init()
2024 ret = nand_scan(nand, nsels); in sunxi_nand_chip_init()
Dmarvell_nand.c341 unsigned int nsels; member
2569 int nsels, ret, i; in marvell_nand_chip_init() local
2582 nsels = 1; in marvell_nand_chip_init()
2584 nsels = of_property_count_elems_of_size(np, "reg", sizeof(u32)); in marvell_nand_chip_init()
2585 if (nsels <= 0) { in marvell_nand_chip_init()
2593 struct_size(marvell_nand, sels, nsels), in marvell_nand_chip_init()
2600 marvell_nand->nsels = nsels; in marvell_nand_chip_init()
2603 for (i = 0; i < nsels; i++) { in marvell_nand_chip_init()
2696 ret = nand_scan(chip, marvell_nand->nsels); in marvell_nand_chip_init()
Dcadence-nand-controller.c509 u8 nsels; member
2700 int nsels, ret, i; in cadence_nand_chip_init() local
2703 nsels = of_property_count_elems_of_size(np, "reg", sizeof(u32)); in cadence_nand_chip_init()
2704 if (nsels <= 0) { in cadence_nand_chip_init()
2711 (nsels * sizeof(u8)), in cadence_nand_chip_init()
2718 cdns_chip->nsels = nsels; in cadence_nand_chip_init()
2720 for (i = 0; i < nsels; i++) { in cadence_nand_chip_init()
2759 ret = nand_scan(chip, cdns_chip->nsels); in cadence_nand_chip_init()
Ddenali.h330 unsigned int nsels; member
Dtegra_nand.c1072 int nsels, nchips = of_get_child_count(np); in tegra_nand_chips_init() local
1086 nsels = of_property_count_elems_of_size(np_nand, "reg", sizeof(u32)); in tegra_nand_chips_init()
1087 if (nsels != 1) { in tegra_nand_chips_init()
Ddenali.c1190 for (i = 0; i < dchip->nsels; i++) { in denali_chip_init()
1208 for (j = 0; j < dchip2->nsels; j++) { in denali_chip_init()
1251 ret = nand_scan(chip, dchip->nsels); in denali_chip_init()