Lines Matching refs:option
1187 static int nfs_get_option_str(substring_t args[], char **option) in nfs_get_option_str() argument
1189 kfree(*option); in nfs_get_option_str()
1190 *option = match_strdup(args); in nfs_get_option_str()
1191 return !*option; in nfs_get_option_str()
1194 static int nfs_get_option_ul(substring_t args[], unsigned long *option) in nfs_get_option_ul() argument
1202 rc = kstrtoul(string, 10, option); in nfs_get_option_ul()
1208 static int nfs_get_option_ul_bound(substring_t args[], unsigned long *option, in nfs_get_option_ul_bound() argument
1213 ret = nfs_get_option_ul(args, option); in nfs_get_option_ul_bound()
1216 if (*option < l_bound || *option > u_bound) in nfs_get_option_ul_bound()
1247 unsigned long option; in nfs_parse_mount_options() local
1358 if (nfs_get_option_ul(args, &option) || in nfs_parse_mount_options()
1359 option > USHRT_MAX) in nfs_parse_mount_options()
1361 mnt->nfs_server.port = option; in nfs_parse_mount_options()
1364 if (nfs_get_option_ul(args, &option)) in nfs_parse_mount_options()
1366 mnt->rsize = option; in nfs_parse_mount_options()
1369 if (nfs_get_option_ul(args, &option)) in nfs_parse_mount_options()
1371 mnt->wsize = option; in nfs_parse_mount_options()
1374 if (nfs_get_option_ul(args, &option)) in nfs_parse_mount_options()
1376 mnt->bsize = option; in nfs_parse_mount_options()
1379 if (nfs_get_option_ul_bound(args, &option, 1, INT_MAX)) in nfs_parse_mount_options()
1381 mnt->timeo = option; in nfs_parse_mount_options()
1384 if (nfs_get_option_ul_bound(args, &option, 0, INT_MAX)) in nfs_parse_mount_options()
1386 mnt->retrans = option; in nfs_parse_mount_options()
1389 if (nfs_get_option_ul(args, &option)) in nfs_parse_mount_options()
1391 mnt->acregmin = option; in nfs_parse_mount_options()
1394 if (nfs_get_option_ul(args, &option)) in nfs_parse_mount_options()
1396 mnt->acregmax = option; in nfs_parse_mount_options()
1399 if (nfs_get_option_ul(args, &option)) in nfs_parse_mount_options()
1401 mnt->acdirmin = option; in nfs_parse_mount_options()
1404 if (nfs_get_option_ul(args, &option)) in nfs_parse_mount_options()
1406 mnt->acdirmax = option; in nfs_parse_mount_options()
1409 if (nfs_get_option_ul(args, &option)) in nfs_parse_mount_options()
1412 mnt->acdirmin = mnt->acdirmax = option; in nfs_parse_mount_options()
1415 if (nfs_get_option_ul(args, &option)) in nfs_parse_mount_options()
1417 mnt->namlen = option; in nfs_parse_mount_options()
1420 if (nfs_get_option_ul(args, &option) || in nfs_parse_mount_options()
1421 option > USHRT_MAX) in nfs_parse_mount_options()
1423 mnt->mount_server.port = option; in nfs_parse_mount_options()
1426 if (nfs_get_option_ul(args, &option) || in nfs_parse_mount_options()
1427 option < NFS_MNT_VERSION || in nfs_parse_mount_options()
1428 option > NFS_MNT3_VERSION) in nfs_parse_mount_options()
1430 mnt->mount_server.version = option; in nfs_parse_mount_options()
1433 if (nfs_get_option_ul(args, &option)) in nfs_parse_mount_options()
1435 if (option > NFS4_MAX_MINOR_VERSION) in nfs_parse_mount_options()
1437 mnt->minorversion = option; in nfs_parse_mount_options()
1569 if (nfs_get_option_ul_bound(args, &option, 1, NFS_MAX_CONNECTIONS)) in nfs_parse_mount_options()
1571 mnt->nfs_server.nconnect = option; in nfs_parse_mount_options()