Lines Matching refs:string
980 char *string; in get_option_ul() local
982 string = match_strdup(args); in get_option_ul()
983 if (string == NULL) in get_option_ul()
985 rc = kstrtoul(string, 0, option); in get_option_ul()
986 kfree(string); in get_option_ul()
1205 char *string = NULL; in cifs_parse_mount_options() local
1592 string = match_strdup(args); in cifs_parse_mount_options()
1593 if (string == NULL) in cifs_parse_mount_options()
1596 if (strnlen(string, CIFS_MAX_USERNAME_LEN) > in cifs_parse_mount_options()
1603 vol->username = kstrdup(string, GFP_KERNEL); in cifs_parse_mount_options()
1682 string = match_strdup(args); in cifs_parse_mount_options()
1683 if (string == NULL) in cifs_parse_mount_options()
1686 if (!cifs_convert_address(dstaddr, string, in cifs_parse_mount_options()
1687 strlen(string))) { in cifs_parse_mount_options()
1688 pr_err("CIFS: bad ip= option (%s).\n", string); in cifs_parse_mount_options()
1694 string = match_strdup(args); in cifs_parse_mount_options()
1695 if (string == NULL) in cifs_parse_mount_options()
1698 if (strnlen(string, CIFS_MAX_DOMAINNAME_LEN) in cifs_parse_mount_options()
1705 vol->domainname = kstrdup(string, GFP_KERNEL); in cifs_parse_mount_options()
1713 string = match_strdup(args); in cifs_parse_mount_options()
1714 if (string == NULL) in cifs_parse_mount_options()
1719 string, strlen(string))) { in cifs_parse_mount_options()
1721 string); in cifs_parse_mount_options()
1726 string = match_strdup(args); in cifs_parse_mount_options()
1727 if (string == NULL) in cifs_parse_mount_options()
1730 if (strnlen(string, 1024) >= 65) { in cifs_parse_mount_options()
1735 if (strncasecmp(string, "default", 7) != 0) { in cifs_parse_mount_options()
1737 vol->iocharset = kstrdup(string, in cifs_parse_mount_options()
1747 cifs_dbg(FYI, "iocharset set to %s\n", string); in cifs_parse_mount_options()
1750 string = match_strdup(args); in cifs_parse_mount_options()
1751 if (string == NULL) in cifs_parse_mount_options()
1763 if (string[i] == 0) in cifs_parse_mount_options()
1765 vol->source_rfc1001_name[i] = string[i]; in cifs_parse_mount_options()
1770 if (i == RFC1001_NAME_LEN && string[i] != 0) in cifs_parse_mount_options()
1775 string = match_strdup(args); in cifs_parse_mount_options()
1776 if (string == NULL) in cifs_parse_mount_options()
1790 if (string[i] == 0) in cifs_parse_mount_options()
1792 vol->target_rfc1001_name[i] = string[i]; in cifs_parse_mount_options()
1796 if (i == RFC1001_NAME_LEN && string[i] != 0) in cifs_parse_mount_options()
1800 string = match_strdup(args); in cifs_parse_mount_options()
1801 if (string == NULL) in cifs_parse_mount_options()
1804 if (strncasecmp(string, "1", 1) == 0) { in cifs_parse_mount_options()
1812 string = match_strdup(args); in cifs_parse_mount_options()
1813 if (string == NULL) in cifs_parse_mount_options()
1816 if (cifs_parse_smb_version(string, vol) != 0) in cifs_parse_mount_options()
1820 string = match_strdup(args); in cifs_parse_mount_options()
1821 if (string == NULL) in cifs_parse_mount_options()
1824 if (cifs_parse_security_flavors(string, vol) != 0) in cifs_parse_mount_options()
1828 string = match_strdup(args); in cifs_parse_mount_options()
1829 if (string == NULL) in cifs_parse_mount_options()
1832 if (cifs_parse_cache_flavor(string, vol) != 0) in cifs_parse_mount_options()
1845 kfree(string); in cifs_parse_mount_options()
1846 string = NULL; in cifs_parse_mount_options()
1900 kfree(string); in cifs_parse_mount_options()