Lines Matching refs:mdidx

328 		md_size[mdidx(mddev)] += rdev->size;  in zoned_raid_size()
353 mdidx(mddev), partition_name(rdev->dev)); in md_check_ordering()
368 mdidx(mddev), mddev->sb->raid_disks, mddev->nb_dev); in md_check_ordering()
382 mdidx(mddev), i); in md_check_ordering()
387 mdidx(mddev), i); in md_check_ordering()
630 mdidx(mddev), partition_name(rdev->dev), in bind_rdev_to_array()
744 md_size[mdidx(mddev)] = 0; in free_mddev()
745 md_hd_struct[mdidx(mddev)].nr_sects = 0; in free_mddev()
756 del_mddev_mapping(mddev, MKDEV(MD_MAJOR, mdidx(mddev))); in free_mddev()
830 printk("md%d: ", mdidx(mddev)); in md_print_devices()
1042 mdidx(mddev)); in md_update_sb()
1398 mdidx(mddev),partition_name(rdev->dev)); in analyze_sbs()
1407 mdidx(mddev), partition_name(dev)); in analyze_sbs()
1429 mdidx(mddev), partition_name(dev)); in analyze_sbs()
1525 printk(OLD_VERSION, mdidx(mddev), sb->major_version, in analyze_sbs()
1532 printk(NOT_CLEAN_IGNORE, mdidx(mddev)); in analyze_sbs()
1601 printk(UNKNOWN_LEVEL, mdidx(mddev), sb->level); in device_size_calculation()
1604 if (!md_size[mdidx(mddev)]) in device_size_calculation()
1605 md_size[mdidx(mddev)] = sb->size * data_disks; in device_size_calculation()
1617 md_maxreadahead[mdidx(mddev)] = readahead; in device_size_calculation()
1620 mdidx(mddev), readahead*(PAGE_SIZE/1024)); in device_size_calculation()
1624 mdidx(mddev), data_disks, readahead/data_disks*(PAGE_SIZE/1024)); in device_size_calculation()
1660 md_size[mdidx(mddev)] = 0; in do_md_run()
1736 md_hardsect_sizes[mdidx(mddev)] = 512; in do_md_run()
1742 > md_hardsect_sizes[mdidx(mddev)]) in do_md_run()
1743 md_hardsect_sizes[mdidx(mddev)] = in do_md_run()
1746 md_blocksizes[mdidx(mddev)] = 1024; in do_md_run()
1747 if (md_blocksizes[mdidx(mddev)] < md_hardsect_sizes[mdidx(mddev)]) in do_md_run()
1748 md_blocksizes[mdidx(mddev)] = md_hardsect_sizes[mdidx(mddev)]; in do_md_run()
1766 md_hd_struct[mdidx(mddev)].start_sect = 0; in do_md_run()
1767 register_disk(&md_gendisk, MKDEV(MAJOR_NR,mdidx(mddev)), in do_md_run()
1768 1, &md_fops, md_size[mdidx(mddev)]<<1); in do_md_run()
1797 "md: md%d switched to read-write mode.\n", mdidx(mddev)); in restart_array()
1806 mdidx(mddev)); in restart_array()
1826 printk(STILL_IN_USE, mdidx(mddev)); in do_md_stop()
1890 printk(KERN_INFO "md: md%d stopped.\n", mdidx(mddev)); in do_md_stop()
1894 printk(KERN_INFO "md: md%d switched to read-only mode.\n", mdidx(mddev)); in do_md_stop()
1994 mdidx(mddev), partition_name(rdev0->dev)); in autorun_devices()
2006 printk(KERN_INFO "md: created md%d\n", mdidx(mddev)); in autorun_devices()
2315 partition_name(dev), mdidx(mddev)); in hot_generate_error()
2352 partition_name(dev), mdidx(mddev)); in hot_remove_disk()
2356 mdidx(mddev)); in hot_remove_disk()
2392 partition_name(dev), mdidx(mddev)); in hot_remove_disk()
2407 partition_name(dev), mdidx(mddev)); in hot_add_disk()
2411 mdidx(mddev)); in hot_add_disk()
2433 partition_name(dev), mdidx(mddev)); in hot_add_disk()
2441 mdidx(mddev), size, mddev->sb->size); in hot_add_disk()
2466 mdidx(mddev)); in hot_add_disk()
2665 mdidx(mddev)); in md_ioctl()
2693 mdidx(mddev)); in md_ioctl()
2793 err = md_put_user (md_hd_struct[mdidx(mddev)].nr_sects/8, in md_ioctl()
3253 seq_printf(seq, "md%d : %sactive", mdidx(mddev), in md_seq_show()
3275 md_size[mdidx(mddev)]); in md_seq_show()
3457 mdidx(mddev), mdidx(mddev2)); in md_do_sync()
3476 printk(KERN_INFO "md: syncing RAID array md%d\n", mdidx(mddev)); in md_do_sync()
3576 printk(KERN_INFO "md: md%d: sync done.\n",mdidx(mddev)); in md_do_sync()
3621 "-- continuing in degraded mode\n", mdidx(mddev)); in md_do_recovery()
3631 mdidx(mddev), partition_name(MKDEV(spare->major,spare->minor))); in md_do_recovery()
3641 mdidx(mddev), partition_name(MKDEV(spare->major,spare->minor))); in md_do_recovery()