Lines Matching refs:max_loop
81 static int max_loop = 8; variable
470 if (MINOR(rbh->b_rdev) >= max_loop) in loop_make_request()
874 if (dev >= max_loop) in lo_ioctl()
929 if (dev >= max_loop) in lo_open()
957 if (dev >= max_loop) in lo_release()
982 MODULE_PARM(max_loop, "i");
983 MODULE_PARM_DESC(max_loop, "Maximum number of loop devices (1-256)");
1000 for (lo = &loop_dev[0]; lo < &loop_dev[max_loop]; lo++) { in loop_unregister_transfer()
1019 if ((max_loop < 1) || (max_loop > 256)) { in loop_init()
1022 max_loop = 8; in loop_init()
1032 loop_dev = kmalloc(max_loop * sizeof(struct loop_device), GFP_KERNEL); in loop_init()
1036 loop_sizes = kmalloc(max_loop * sizeof(int), GFP_KERNEL); in loop_init()
1040 loop_blksizes = kmalloc(max_loop * sizeof(int), GFP_KERNEL); in loop_init()
1046 for (i = 0; i < max_loop; i++) { in loop_init()
1056 memset(loop_sizes, 0, max_loop * sizeof(int)); in loop_init()
1057 memset(loop_blksizes, 0, max_loop * sizeof(int)); in loop_init()
1060 for (i = 0; i < max_loop; i++) in loop_init()
1064 devfs_register_series(devfs_handle, "%u", max_loop, DEVFS_FL_DEFAULT, in loop_init()
1069 printk(KERN_INFO "loop: loaded (max %d devices)\n", max_loop); in loop_init()
1098 max_loop = simple_strtol(str, NULL, 0); in max_loop_setup()