Home
last modified time | relevance | path

Searched refs:treename (Results 1 - 7 of 7) sorted by relevance

/kernel/linux/linux-5.10/fs/cifs/
H A Dcache.c56 char *extract_sharename(const char *treename) in extract_sharename() argument
63 src = treename + 2; in extract_sharename()
H A Dsmb2pdu.c2447 const char *treename, const __le16 *path) in alloc_path_with_tree_prefix()
2456 treename_len = strlen(treename); in alloc_path_with_tree_prefix()
2457 if (treename_len < 2 || !(treename[0] == '\\' && treename[1] == '\\')) in alloc_path_with_tree_prefix()
2460 treename += 2; in alloc_path_with_tree_prefix()
2466 * make room for one path separator between the treename and in alloc_path_with_tree_prefix()
2482 cifs_strtoUTF16(*out_path, treename, treename_len, cp); in alloc_path_with_tree_prefix()
2446 alloc_path_with_tree_prefix(__le16 **out_path, int *out_size, int *out_len, const char *treename, const __le16 *path) alloc_path_with_tree_prefix() argument
/kernel/linux/linux-6.6/fs/smb/server/
H A Dunicode.h38 char *ksmbd_extract_sharename(struct unicode_map *um, const char *treename);
H A Dmisc.h24 char *ksmbd_extract_sharename(struct unicode_map *um, const char *treename);
H A Dmisc.c264 * @treename: buffer containing tree name and share name
268 char *ksmbd_extract_sharename(struct unicode_map *um, const char *treename) in ksmbd_extract_sharename() argument
270 const char *name = treename, *pos = strrchr(name, '\\'); in ksmbd_extract_sharename()
H A Dsmb2pdu.c1947 char *treename = NULL, *name = NULL; in smb2_tree_connect() local
1954 treename = smb_strndup_from_utf16(req->Buffer, in smb2_tree_connect()
1957 if (IS_ERR(treename)) { in smb2_tree_connect()
1958 pr_err("treename is NULL\n"); in smb2_tree_connect()
1963 name = ksmbd_extract_sharename(conn->um, treename); in smb2_tree_connect()
1969 ksmbd_debug(SMB, "tree connect request for tree %s treename %s\n", in smb2_tree_connect()
1970 name, treename); in smb2_tree_connect()
2020 if (!IS_ERR(treename)) in smb2_tree_connect()
2021 kfree(treename); in smb2_tree_connect()
/kernel/linux/linux-6.6/fs/smb/client/
H A Dsmb2pdu.c2722 const char *treename, const __le16 *path) in alloc_path_with_tree_prefix()
2731 treename_len = strlen(treename); in alloc_path_with_tree_prefix()
2732 if (treename_len < 2 || !(treename[0] == '\\' && treename[1] == '\\')) in alloc_path_with_tree_prefix()
2735 treename += 2; in alloc_path_with_tree_prefix()
2753 cifs_strtoUTF16(*out_path, treename, treename_len, cp); in alloc_path_with_tree_prefix()
2721 alloc_path_with_tree_prefix(__le16 **out_path, int *out_size, int *out_len, const char *treename, const __le16 *path) alloc_path_with_tree_prefix() argument

Completed in 27 milliseconds