Lines Matching refs:num
154 static int mtd_device_validate(u8 type, u8 num, u32 *size) in mtd_device_validate() argument
158 if (num < CONFIG_SYS_MAX_FLASH_BANKS) { in mtd_device_validate()
160 *size = flash_info[num].size; in mtd_device_validate()
166 MTD_DEV_TYPE(type), num, CONFIG_SYS_MAX_FLASH_BANKS - 1); in mtd_device_validate()
172 struct mtd_info *mtd = get_nand_dev_by_index(num); in mtd_device_validate()
179 MTD_DEV_TYPE(type), num, CONFIG_SYS_MAX_NAND_DEVICE - 1); in mtd_device_validate()
251 mtd = get_nand_dev_by_index(id->num); in get_part_sector_size_nand()
269 flash = &flash_info[id->num]; in get_part_sector_size_nor()
369 if ((mtd_id_parse(dev_name, NULL, &id->type, &id->num) != 0) || in mtdparts_init()
370 (mtd_device_validate(id->type, id->num, &size) != 0)) { in mtdparts_init()
371 printf("incorrect device: %s%d\n", MTD_DEV_TYPE(id->type), id->num); in mtdparts_init()
379 id->type, id->num, id->size, id->mtd_id); in mtdparts_init()
433 int num; in jffs2_part_info() local
440 dev->id->num, dev->id->mtd_id); in jffs2_part_info()
445 dev->id->num, dev->id->mtd_id); in jffs2_part_info()
450 num = 0; in jffs2_part_info()
454 if (part_num == num++) { in jffs2_part_info()