Lines Matching full:int
31 extern void free_rsp_buf(int, void *);
32 extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *,
33 unsigned int /* length */);
34 extern unsigned int _get_xid(void);
35 extern void _free_xid(unsigned int);
38 unsigned int __xid = _get_xid(); \
50 __func__, curr_xid, (int)rc); \
52 trace_smb3_exit_err(curr_xid, __func__, (int)rc); \
56 extern int init_cifs_idmap(void);
58 extern int init_cifs_spnego(void);
62 const char *tree, int tree_len,
80 int add_treename);
86 extern int cifs_handle_standard(struct TCP_Server_Info *server,
90 extern int smb3_parse_devname(const char *devname, struct smb3_fs_context *ctx);
91 extern int smb3_parse_opt(const char *options, const char *key, char **val);
92 extern int cifs_ipaddr_cmp(struct sockaddr *srcaddr, struct sockaddr *rhs);
94 extern int cifs_discard_remaining_data(struct TCP_Server_Info *server);
95 extern int cifs_call_async(struct TCP_Server_Info *server,
98 mid_handle_t *handle, void *cbdata, const int flags,
101 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
103 struct smb_rqst *rqst, int *resp_buf_type,
104 const int flags, struct kvec *resp_iov);
105 extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
107 const int flags, const int num_rqst,
108 struct smb_rqst *rqst, int *resp_buf_type,
110 extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *,
113 int * /* bytes returned */ , const int);
114 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
115 char *in_buf, int flags);
121 extern int cifs_check_receive(struct mid_q_entry *mid,
123 extern int cifs_wait_mtu_credits(struct TCP_Server_Info *server,
124 unsigned int size, unsigned int *num,
126 extern int SendReceive2(const unsigned int /* xid */ , struct cifs_ses *,
127 struct kvec *, int /* nvec to send */,
128 int * /* type of buf returned */, const int flags,
130 extern int SendReceiveBlockingLock(const unsigned int xid,
134 int *bytes_returned);
142 extern int cifs_reconnect(struct TCP_Server_Info *server,
144 extern int checkSMB(char *buf, unsigned int len, struct TCP_Server_Info *srvr);
149 unsigned int bytes_written);
150 extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *, int);
151 extern int cifs_get_writable_file(struct cifsInodeInfo *cifs_inode,
152 int flags,
154 extern int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name,
155 int flags,
158 extern int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name,
160 extern unsigned int smbCalcSize(void *buf);
161 extern int decode_negTokenInit(unsigned char *security_blob, int length,
163 extern int cifs_convert_address(struct sockaddr *dst, const char *src, int len);
164 extern void cifs_set_port(struct sockaddr *addr, const unsigned short int port);
165 extern int map_smb_to_linux_error(char *buf, bool logErr);
166 extern int map_and_check_smb_error(struct mid_q_entry *mid, bool logErr);
168 const struct cifs_tcon *, int /* length of
170 extern int small_smb_init_no_tc(const int smb_cmd, const int wct,
175 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
181 int offset);
183 extern int cifs_get_writer(struct cifsInodeInfo *cinode);
186 extern int cifs_unlock_range(struct cifsFileInfo *cfile,
187 struct file_lock *flock, const unsigned int xid);
188 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile);
194 extern int cifs_posix_open(const char *full_path, struct inode **inode,
195 struct super_block *sb, int mode,
196 unsigned int f_flags, __u32 *oplock, __u16 *netfid,
197 unsigned int xid);
204 extern int cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr);
208 int cifs_get_inode_info(struct inode **inode, const char *full_path,
209 struct cifs_open_info_data *data, struct super_block *sb, int xid,
215 extern int smb311_posix_get_inode_info(struct inode **inode,
219 const unsigned int xid);
220 extern int cifs_get_inode_info_unix(struct inode **pinode,
222 struct super_block *sb, unsigned int xid);
223 extern int cifs_set_file_info(struct inode *inode, struct iattr *attrs,
224 unsigned int xid, const char *full_path, __u32 dosattr);
225 extern int cifs_rename_pending_delete(const char *full_path,
227 const unsigned int xid);
228 extern int sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid,
230 extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb,
234 extern int id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 *pnmode,
241 struct dentry *dentry, int type);
242 extern int cifs_set_acl(struct mnt_idmap *idmap,
243 struct dentry *dentry, struct posix_acl *acl, int type);
244 extern int set_cifs_acl(struct cifs_ntsd *, __u32, struct inode *,
245 const char *, int);
246 extern unsigned int setup_authusers_ACE(struct cifs_ace *pace);
247 extern unsigned int setup_special_mode_ACE(struct cifs_ace *pace, __u64 nmode);
248 extern unsigned int setup_special_user_owner_ACE(struct cifs_ace *pace);
251 extern int cifs_read_from_socket(struct TCP_Server_Info *server, char *buf,
252 unsigned int to_read);
255 extern int cifs_read_page_from_socket(struct TCP_Server_Info *server,
257 unsigned int page_offset,
258 unsigned int to_read);
259 int cifs_read_iter_from_socket(struct TCP_Server_Info *server,
261 unsigned int to_read);
262 extern int cifs_setup_cifs_sb(struct cifs_sb_info *cifs_sb);
264 int cifs_mount_get_session(struct cifs_mount_ctx *mnt_ctx);
265 int cifs_is_path_remote(struct cifs_mount_ctx *mnt_ctx);
266 int cifs_mount_get_tcon(struct cifs_mount_ctx *mnt_ctx);
267 extern int cifs_match_super(struct super_block *, void *);
268 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx);
276 int rw_check);
303 int from_reconnect);
315 extern int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon,
318 extern int cifs_negotiate_protocol(const unsigned int xid,
321 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
324 extern int cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required);
325 extern int CIFSSMBNegotiate(const unsigned int xid,
329 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
333 extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
339 extern int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
343 extern int CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon,
346 extern int CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
348 extern int CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
350 int legacy /* whether to use old info level */,
351 const struct nls_table *nls_codepage, int remap);
352 extern int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon,
354 const struct nls_table *nls_codepage, int remap);
356 extern int CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
358 extern int CIFSSMBUnixQPathInfo(const unsigned int xid,
362 const struct nls_table *nls_codepage, int remap);
364 extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
367 unsigned int *num_of_nodes,
368 const struct nls_table *nls_codepage, int remap);
370 extern int parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size,
371 unsigned int *num_of_nodes,
373 const struct nls_table *nls_codepage, int remap,
375 extern void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
378 extern int CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
380 extern int SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
382 extern int CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon,
385 extern int CIFSSMBQFSAttributeInfo(const unsigned int xid,
387 extern int CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon);
388 extern int CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon);
389 extern int CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon,
392 extern int CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
396 extern int CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
399 extern int CIFSSMBSetFileDisposition(const unsigned int xid,
403 extern int CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon,
406 extern int CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon,
420 extern int CIFSSMBUnixSetFileInfo(const unsigned int xid,
425 extern int CIFSSMBUnixSetPathInfo(const unsigned int xid,
429 int remap);
431 extern int CIFSSMBMkDir(const unsigned int xid, struct inode *inode,
434 extern int CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon,
436 extern int CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
439 int remap_special_chars);
440 extern int CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon,
442 int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
446 extern int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *tcon,
447 int netfid, const char *target_name,
449 int remap_special_chars);
450 int CIFSCreateHardLink(const unsigned int xid,
455 extern int CIFSUnixCreateHardLink(const unsigned int xid,
459 int remap_special_chars);
460 extern int CIFSUnixCreateSymLink(const unsigned int xid,
463 const struct nls_table *nls_codepage, int remap);
464 extern int CIFSSMBUnixQuerySymLink(const unsigned int xid,
467 const struct nls_table *nls_codepage, int remap);
468 extern int cifs_query_reparse_point(const unsigned int xid,
473 int *rsp_buftype);
474 extern int CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon,
477 extern int CIFSSMB_set_compression(const unsigned int xid,
479 extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms,
480 int *oplock, FILE_ALL_INFO *buf);
481 extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
482 const char *fileName, const int disposition,
483 const int access_flags, const int omode,
484 __u16 *netfid, int *pOplock, FILE_ALL_INFO *,
485 const struct nls_table *nls_codepage, int remap);
486 extern int CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
490 const struct nls_table *nls_codepage, int remap);
491 extern int CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon,
492 const int smb_file_id);
494 extern int CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon,
495 const int smb_file_id);
497 extern int CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms,
498 unsigned int *nbytes, char **buf,
499 int *return_buf_type);
500 extern int CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms,
501 unsigned int *nbytes, const char *buf);
502 extern int CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
503 unsigned int *nbytes, struct kvec *iov, const int nvec);
504 extern int CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
507 int remap);
509 extern int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
513 extern int CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
518 extern int CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
523 extern int CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon);
524 extern int CIFSSMBEcho(struct TCP_Server_Info *server);
525 extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses);
532 extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server,
534 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
536 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
537 extern int cifs_verify_signature(struct smb_rqst *rqst,
540 extern int setup_ntlmv2_rsp(struct cifs_ses *, const struct nls_table *);
542 extern int calc_seckey(struct cifs_ses *);
543 extern int generate_smb30signingkey(struct cifs_ses *ses,
545 extern int generate_smb311signingkey(struct cifs_ses *ses,
549 extern int CIFSSMBCopy(unsigned int xid,
553 const char *toName, const int flags,
555 int remap_special_chars);
556 extern ssize_t CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
560 extern int CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
565 extern int CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon,
567 extern int CIFSSMBSetCIFSACL(const unsigned int, struct cifs_tcon *, __u16,
568 struct cifs_ntsd *, __u32, int);
569 extern int cifs_do_get_acl(const unsigned int xid, struct cifs_tcon *tcon,
571 struct posix_acl **acl, const int acl_type,
572 const struct nls_table *nls_codepage, int remap);
573 extern int cifs_do_set_acl(const unsigned int xid, struct cifs_tcon *tcon,
575 const struct posix_acl *acl, const int acl_type,
576 const struct nls_table *nls_codepage, int remap);
577 extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
578 const int netfid, __u64 *pExtAttrBits, __u64 *pMask);
582 extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
586 extern int E_md4hash(const unsigned char *passwd, unsigned char *p16,
598 int cifs_async_readv(struct cifs_readdata *rdata);
599 int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid);
601 int cifs_async_writev(struct cifs_writedata *wdata,
606 int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
609 unsigned int *pbytes_read);
610 int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
613 unsigned int *pbytes_written);
614 int __cifs_calc_signature(struct smb_rqst *rqst,
622 int cifs_alloc_hash(const char *name, struct shash_desc **sdesc);
627 int cifs_try_adding_channels(struct cifs_ses *ses);
633 int
661 int
662 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount);
665 int copy_path_name(char *dst, const char *src);
666 int smb2_parse_query_directory(struct cifs_tcon *tcon, struct kvec *rsp_iov,
667 int resp_buftype,
672 int cifs_update_super_prepath(struct cifs_sb_info *cifs_sb, char *prefix);
675 int parse_reparse_point(struct reparse_data_buffer *buf,
678 int cifs_sfu_make_node(unsigned int xid, struct inode *inode,
683 static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses, in get_dfs_path()
686 struct dfs_info3_param *referral, int remap) in get_dfs_path()
692 int match_target_ip(struct TCP_Server_Info *server,
695 int cifs_inval_name_dfs_link_error(const unsigned int xid,
701 static inline int cifs_inval_name_dfs_link_error(const unsigned int xid, in cifs_inval_name_dfs_link_error()
712 static inline int cifs_create_options(struct cifs_sb_info *cifs_sb, int options) in cifs_create_options()
722 int cifs_wait_for_server_reconnect(struct TCP_Server_Info *server, bool retry);