Lines Matching refs:UBI_MAX_DEVICES
78 static struct mtd_dev_param __initdata mtd_dev_param[UBI_MAX_DEVICES];
112 static struct ubi_device *ubi_devices[UBI_MAX_DEVICES];
114 struct ubi_device *ubi_devices[UBI_MAX_DEVICES];
266 for (i = 0; i < UBI_MAX_DEVICES; i++) { in ubi_enumerate_volumes()
327 for (i = 0; i < UBI_MAX_DEVICES; i++) { in ubi_get_by_major()
355 for (i = 0; i < UBI_MAX_DEVICES; i++) { in ubi_major2num()
897 for (i = 0; i < UBI_MAX_DEVICES; i++) { in ubi_attach_mtd_dev()
922 for (ubi_num = 0; ubi_num < UBI_MAX_DEVICES; ubi_num++) in ubi_attach_mtd_dev()
925 if (ubi_num == UBI_MAX_DEVICES) { in ubi_attach_mtd_dev()
927 UBI_MAX_DEVICES); in ubi_attach_mtd_dev()
931 if (ubi_num >= UBI_MAX_DEVICES) in ubi_attach_mtd_dev()
1108 if (ubi_num < 0 || ubi_num >= UBI_MAX_DEVICES) in ubi_detach_mtd_dev()
1252 if (mtd_devs > UBI_MAX_DEVICES) { in ubi_init()
1254 UBI_MAX_DEVICES); in ubi_init()
1371 for (i = 0; i < UBI_MAX_DEVICES; i++) in ubi_exit()
1459 if (mtd_devs == UBI_MAX_DEVICES) { in ubi_mtd_param_parse()
1461 UBI_MAX_DEVICES); in ubi_mtd_param_parse()