Lines Matching refs:string

991 	char *string;  in get_option_ul()  local
993 string = match_strdup(args); in get_option_ul()
994 if (string == NULL) in get_option_ul()
996 rc = kstrtoul(string, 0, option); in get_option_ul()
997 kfree(string); in get_option_ul()
1222 char *string = NULL; in cifs_parse_mount_options() local
1636 string = match_strdup(args); in cifs_parse_mount_options()
1637 if (string == NULL) in cifs_parse_mount_options()
1640 if (strnlen(string, CIFS_MAX_USERNAME_LEN) > in cifs_parse_mount_options()
1647 vol->username = kstrdup(string, GFP_KERNEL); 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 (!cifs_convert_address(dstaddr, string, in cifs_parse_mount_options()
1731 strlen(string))) { in cifs_parse_mount_options()
1732 pr_err("CIFS: bad ip= option (%s).\n", string); in cifs_parse_mount_options()
1738 string = match_strdup(args); in cifs_parse_mount_options()
1739 if (string == NULL) in cifs_parse_mount_options()
1742 if (strnlen(string, CIFS_MAX_DOMAINNAME_LEN) in cifs_parse_mount_options()
1749 vol->domainname = kstrdup(string, GFP_KERNEL); in cifs_parse_mount_options()
1757 string = match_strdup(args); in cifs_parse_mount_options()
1758 if (string == NULL) in cifs_parse_mount_options()
1763 string, strlen(string))) { in cifs_parse_mount_options()
1765 string); in cifs_parse_mount_options()
1770 string = match_strdup(args); in cifs_parse_mount_options()
1771 if (string == NULL) in cifs_parse_mount_options()
1774 if (strnlen(string, 1024) >= 65) { in cifs_parse_mount_options()
1779 if (strncasecmp(string, "default", 7) != 0) { in cifs_parse_mount_options()
1781 vol->iocharset = kstrdup(string, in cifs_parse_mount_options()
1791 cifs_dbg(FYI, "iocharset set to %s\n", string); in cifs_parse_mount_options()
1794 string = match_strdup(args); in cifs_parse_mount_options()
1795 if (string == NULL) in cifs_parse_mount_options()
1807 if (string[i] == 0) in cifs_parse_mount_options()
1809 vol->source_rfc1001_name[i] = string[i]; in cifs_parse_mount_options()
1814 if (i == RFC1001_NAME_LEN && string[i] != 0) in cifs_parse_mount_options()
1819 string = match_strdup(args); in cifs_parse_mount_options()
1820 if (string == NULL) in cifs_parse_mount_options()
1834 if (string[i] == 0) in cifs_parse_mount_options()
1836 vol->target_rfc1001_name[i] = string[i]; in cifs_parse_mount_options()
1840 if (i == RFC1001_NAME_LEN && string[i] != 0) in cifs_parse_mount_options()
1844 string = match_strdup(args); in cifs_parse_mount_options()
1845 if (string == NULL) in cifs_parse_mount_options()
1848 if (strncasecmp(string, "1", 1) == 0) { in cifs_parse_mount_options()
1856 string = match_strdup(args); in cifs_parse_mount_options()
1857 if (string == NULL) in cifs_parse_mount_options()
1860 if (cifs_parse_smb_version(string, vol) != 0) in cifs_parse_mount_options()
1864 string = match_strdup(args); in cifs_parse_mount_options()
1865 if (string == NULL) in cifs_parse_mount_options()
1868 if (cifs_parse_security_flavors(string, vol) != 0) in cifs_parse_mount_options()
1872 string = match_strdup(args); in cifs_parse_mount_options()
1873 if (string == NULL) in cifs_parse_mount_options()
1876 if (cifs_parse_cache_flavor(string, vol) != 0) in cifs_parse_mount_options()
1889 kfree(string); in cifs_parse_mount_options()
1890 string = NULL; in cifs_parse_mount_options()
1944 kfree(string); in cifs_parse_mount_options()