Lines Matching +full:timeout +full:- +full:sec

1 // SPDX-License-Identifier: GPL-2.0-only
75 root_wait = -1; in rootwait_setup()
83 int sec; in rootwait_timeout_setup() local
85 if (kstrtoint(str, 0, &sec) || sec < 0) { in rootwait_timeout_setup()
90 if (check_mul_overflow(sec, MSEC_PER_SEC, &root_wait)) { in rootwait_timeout_setup()
99 root_wait = -1; in rootwait_timeout_setup()
139 if (p[-1] == ',') { in split_fs_names()
140 p[-1] = '\0'; in split_fs_names()
160 return -ENOMEM; in do_mount_root()
162 /* zero-pad. init_mount() will make sure it's terminated */ in do_mount_root()
171 s = current->fs->pwd.dentry->d_sb; in do_mount_root()
172 ROOT_DEV = s->s_dev; in do_mount_root()
175 s->s_type->name, in do_mount_root()
193 scnprintf(b, BDEVNAME_SIZE, "unknown-block(%u,%u)", in mount_root_generic()
209 case -EACCES: in mount_root_generic()
210 case -EINVAL: in mount_root_generic()
261 unsigned int timeout; in mount_nfs_root() local
272 timeout = NFSROOT_TIMEOUT_MIN; in mount_nfs_root()
280 ssleep(timeout); in mount_nfs_root()
281 timeout <<= 1; in mount_nfs_root()
282 if (timeout > NFSROOT_TIMEOUT_MAX) in mount_nfs_root()
283 timeout = NFSROOT_TIMEOUT_MAX; in mount_nfs_root()
303 unsigned int timeout; in mount_cifs_root() local
309 timeout = CIFSROOT_TIMEOUT_MIN; in mount_cifs_root()
317 ssleep(timeout); in mount_cifs_root()
318 timeout <<= 1; in mount_cifs_root()
319 if (timeout > CIFSROOT_TIMEOUT_MAX) in mount_cifs_root()
320 timeout = CIFSROOT_TIMEOUT_MAX; in mount_cifs_root()
337 ret = !(fs->fs_flags & FS_REQUIRES_DEV); in fs_is_nodev()
347 int err = -EINVAL; in mount_nodev_root()
352 return -EINVAL; in mount_nodev_root()
450 if (error == -EINVAL && root_wait) { in parse_root_device()
460 * Prepare the namespace - decide what/where to mount, load ramdisks, etc.
465 printk(KERN_INFO "Waiting %d sec before mounting root device...\n", in prepare_namespace()