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,
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);
150 unsigned int bytes_written);
153 extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *, int);
154 extern int cifs_get_writable_file(struct cifsInodeInfo *cifs_inode,
155 int flags,
157 extern int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name,
158 int flags,
161 extern int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name,
163 extern unsigned int smbCalcSize(void *buf);
164 extern int decode_negTokenInit(unsigned char *security_blob, int length,
166 extern int cifs_convert_address(struct sockaddr *dst, const char *src, int len);
167 extern void cifs_set_port(struct sockaddr *addr, const unsigned short int port);
168 extern int map_smb_to_linux_error(char *buf, bool logErr);
169 extern int map_and_check_smb_error(struct mid_q_entry *mid, bool logErr);
171 const struct cifs_tcon *, int /* length of
173 extern int small_smb_init_no_tc(const int smb_cmd, const int wct,
178 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
184 int offset);
186 extern int cifs_get_writer(struct cifsInodeInfo *cinode);
189 extern int cifs_unlock_range(struct cifsFileInfo *cfile,
190 struct file_lock *flock, const unsigned int xid);
191 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile);
197 extern int cifs_posix_open(const char *full_path, struct inode **inode,
198 struct super_block *sb, int mode,
199 unsigned int f_flags, __u32 *oplock, __u16 *netfid,
200 unsigned int xid);
207 extern int cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr,
212 int cifs_get_inode_info(struct inode **inode, const char *full_path,
213 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 smb_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 smb_ntsd *pntsd, __u32 len, struct inode *ino,
245 const char *path, int flag);
246 extern unsigned int setup_authusers_ACE(struct smb_ace *pace);
247 extern unsigned int setup_special_mode_ACE(struct smb_ace *pace, __u64 nmode);
248 extern unsigned int setup_special_user_owner_ACE(struct smb_ace *pace);
251 extern int cifs_read_from_socket(struct TCP_Server_Info *server, char *buf,
252 unsigned int to_read);
255 int cifs_read_iter_from_socket(struct TCP_Server_Info *server,
257 unsigned int to_read);
258 extern int cifs_setup_cifs_sb(struct cifs_sb_info *cifs_sb);
260 int cifs_mount_get_session(struct cifs_mount_ctx *mnt_ctx);
261 int cifs_is_path_remote(struct cifs_mount_ctx *mnt_ctx);
262 int cifs_mount_get_tcon(struct cifs_mount_ctx *mnt_ctx);
263 extern int cifs_match_super(struct super_block *, void *);
264 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx);
272 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,
407 extern int CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon,
421 extern int CIFSSMBUnixSetFileInfo(const unsigned int xid,
426 extern int CIFSSMBUnixSetPathInfo(const unsigned int xid,
430 int remap);
432 extern int CIFSSMBMkDir(const unsigned int xid, struct inode *inode,
435 extern int CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon,
437 extern int CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
440 int remap_special_chars);
441 extern int CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon,
444 int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
448 extern int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *tcon,
449 int netfid, const char *target_name,
451 int remap_special_chars);
452 int CIFSCreateHardLink(const unsigned int xid,
457 extern int CIFSUnixCreateHardLink(const unsigned int xid,
461 int remap_special_chars);
462 extern int CIFSUnixCreateSymLink(const unsigned int xid,
465 const struct nls_table *nls_codepage, int remap);
466 extern int CIFSSMBUnixQuerySymLink(const unsigned int xid,
469 const struct nls_table *nls_codepage, int remap);
470 extern int cifs_query_reparse_point(const unsigned int xid,
475 int *rsp_buftype);
476 extern int CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon,
479 extern int CIFSSMB_set_compression(const unsigned int xid,
481 extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms,
482 int *oplock, FILE_ALL_INFO *buf);
483 extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
484 const char *fileName, const int disposition,
485 const int access_flags, const int omode,
486 __u16 *netfid, int *pOplock, FILE_ALL_INFO *,
487 const struct nls_table *nls_codepage, int remap);
488 extern int CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
492 const struct nls_table *nls_codepage, int remap);
493 extern int CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon,
494 const int smb_file_id);
496 extern int CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon,
497 const int smb_file_id);
499 extern int CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms,
500 unsigned int *nbytes, char **buf,
501 int *return_buf_type);
502 extern int CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms,
503 unsigned int *nbytes, const char *buf);
504 extern int CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
505 unsigned int *nbytes, struct kvec *iov, const int nvec);
506 extern int CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
509 int remap);
511 extern int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
515 extern int CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
520 extern int CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
525 extern int CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon);
526 extern int CIFSSMBEcho(struct TCP_Server_Info *server);
527 extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses);
535 extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server,
537 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
539 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
540 extern int cifs_verify_signature(struct smb_rqst *rqst,
543 extern int setup_ntlmv2_rsp(struct cifs_ses *, const struct nls_table *);
545 extern int calc_seckey(struct cifs_ses *);
546 extern int generate_smb30signingkey(struct cifs_ses *ses,
548 extern int generate_smb311signingkey(struct cifs_ses *ses,
552 extern int CIFSSMBCopy(unsigned int xid,
556 const char *toName, const int flags,
558 int remap_special_chars);
559 extern ssize_t CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
563 extern int CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
568 extern int CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon,
570 extern int CIFSSMBSetCIFSACL(const unsigned int, struct cifs_tcon *, __u16,
571 struct smb_ntsd *pntsd, __u32 len, int aclflag);
572 extern int cifs_do_get_acl(const unsigned int xid, struct cifs_tcon *tcon,
574 struct posix_acl **acl, const int acl_type,
575 const struct nls_table *nls_codepage, int remap);
576 extern int cifs_do_set_acl(const unsigned int xid, struct cifs_tcon *tcon,
578 const struct posix_acl *acl, const int acl_type,
579 const struct nls_table *nls_codepage, int remap);
580 extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
581 const int netfid, __u64 *pExtAttrBits, __u64 *pMask);
585 extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
589 extern int E_md4hash(const unsigned char *passwd, unsigned char *p16,
600 int cifs_async_readv(struct cifs_io_subrequest *rdata);
601 int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid);
605 int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
608 unsigned int *pbytes_read);
609 int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
612 unsigned int *pbytes_written);
613 int __cifs_calc_signature(struct smb_rqst *rqst,
619 int cifs_alloc_hash(const char *name, struct shash_desc **sdesc);
622 int cifs_try_adding_channels(struct cifs_ses *ses);
628 int
653 int
654 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount);
657 int copy_path_name(char *dst, const char *src);
658 int smb2_parse_query_directory(struct cifs_tcon *tcon, struct kvec *rsp_iov,
659 int resp_buftype,
664 int cifs_update_super_prepath(struct cifs_sb_info *cifs_sb, char *prefix);
667 int parse_reparse_point(struct reparse_data_buffer *buf,
670 int __cifs_sfu_make_node(unsigned int xid, struct inode *inode,
674 int cifs_sfu_make_node(unsigned int xid, struct inode *inode,
679 static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses, in get_dfs_path()
682 struct dfs_info3_param *referral, int remap) in get_dfs_path()
688 int match_target_ip(struct TCP_Server_Info *server,
691 int cifs_inval_name_dfs_link_error(const unsigned int xid,
697 static inline int cifs_inval_name_dfs_link_error(const unsigned int xid, in cifs_inval_name_dfs_link_error()
708 static inline int cifs_create_options(struct cifs_sb_info *cifs_sb, int options) in cifs_create_options()
716 int cifs_wait_for_server_reconnect(struct TCP_Server_Info *server, bool retry);