Lines Matching refs:string

23 #include <linux/string.h>
116 /* Mount options which take string value */
1248 /* extract the host portion of the UNC string */
1256 /* skip double chars at beginning of string */
1284 char *string;
1286 string = match_strdup(args);
1287 if (string == NULL)
1289 rc = kstrtoul(string, 0, option);
1290 kfree(string);
1360 /* now go until next delimiter or end of string */
1401 char *string = NULL;
1955 string = match_strdup(args);
1956 if (string == NULL)
1959 if (strnlen(string, CIFS_MAX_USERNAME_LEN) >
1966 vol->username = kstrdup(string, GFP_KERNEL);
1990 /* Obtain the value string */
1994 /* Set tmp_end to end of the string */
2018 * string */
2023 /* Now build new password string */
2045 string = match_strdup(args);
2046 if (string == NULL)
2049 if (!cifs_convert_address(dstaddr, string,
2050 strlen(string))) {
2051 pr_err("bad ip= option (%s)\n", string);
2057 string = match_strdup(args);
2058 if (string == NULL)
2061 if (strnlen(string, CIFS_MAX_DOMAINNAME_LEN)
2068 vol->domainname = kstrdup(string, GFP_KERNEL);
2076 string = match_strdup(args);
2077 if (string == NULL)
2082 string, strlen(string))) {
2084 string);
2089 string = match_strdup(args);
2090 if (string == NULL)
2093 if (strnlen(string, 1024) >= 65) {
2098 if (strncasecmp(string, "default", 7) != 0) {
2100 vol->iocharset = kstrdup(string,
2110 cifs_dbg(FYI, "iocharset set to %s\n", string);
2113 string = match_strdup(args);
2114 if (string == NULL)
2126 if (string[i] == 0)
2128 vol->source_rfc1001_name[i] = string[i];
2130 /* The string has 16th byte zero still from
2133 if (i == RFC1001_NAME_LEN && string[i] != 0)
2138 string = match_strdup(args);
2139 if (string == NULL)
2153 if (string[i] == 0)
2155 vol->target_rfc1001_name[i] = string[i];
2157 /* The string has 16th byte zero still from
2159 if (i == RFC1001_NAME_LEN && string[i] != 0)
2164 string = match_strdup(args);
2165 if (string == NULL)
2169 if (strncasecmp(string, "1", 1) == 0) {
2170 if (strlen(string) > 1) {
2172 string);
2183 string = match_strdup(args);
2184 if (string == NULL)
2187 if (cifs_parse_smb_version(string, vol, is_smb3) != 0)
2192 string = match_strdup(args);
2193 if (string == NULL)
2196 if (cifs_parse_security_flavors(string, vol) != 0)
2200 string = match_strdup(args);
2201 if (string == NULL)
2204 if (cifs_parse_cache_flavor(string, vol) != 0)
2216 /* Free up any allocated string */
2217 kfree(string);
2218 string = NULL;
2239 cifs_dbg(VFS, "CIFS mount error: No usable UNC path provided in device string!\n");
2285 kfree(string);
4233 * to a string containing updated options for the submount. Otherwise it