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()
170 s = current->fs->pwd.dentry->d_sb; in do_mount_root()
171 ROOT_DEV = s->s_dev; in do_mount_root()
174 s->s_type->name, in do_mount_root()
192 scnprintf(b, BDEVNAME_SIZE, "unknown-block(%u,%u)", in mount_root_generic()
208 case -EACCES: in mount_root_generic()
209 case -EINVAL: in mount_root_generic()
263 unsigned int timeout; in mount_nfs_root() local
274 timeout = NFSROOT_TIMEOUT_MIN; in mount_nfs_root()
282 ssleep(timeout); in mount_nfs_root()
283 timeout <<= 1; in mount_nfs_root()
284 if (timeout > NFSROOT_TIMEOUT_MAX) in mount_nfs_root()
285 timeout = NFSROOT_TIMEOUT_MAX; in mount_nfs_root()
305 unsigned int timeout; in mount_cifs_root() local
311 timeout = CIFSROOT_TIMEOUT_MIN; in mount_cifs_root()
319 ssleep(timeout); in mount_cifs_root()
320 timeout <<= 1; in mount_cifs_root()
321 if (timeout > CIFSROOT_TIMEOUT_MAX) in mount_cifs_root()
322 timeout = CIFSROOT_TIMEOUT_MAX; in mount_cifs_root()
339 ret = !(fs->fs_flags & FS_REQUIRES_DEV); in fs_is_nodev()
349 int err = -EINVAL; in mount_nodev_root()
354 return -EINVAL; in mount_nodev_root()
452 if (error == -EINVAL && root_wait) { in parse_root_device()
462 * Prepare the namespace - decide what/where to mount, load ramdisks, etc.
467 printk(KERN_INFO "Waiting %d sec before mounting root device...\n", in prepare_namespace()