Lines Matching full:int

32 extern void free_rsp_buf(int, void *);
33 extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *,
34 unsigned int /* length */);
35 extern int smb_send_kvec(struct TCP_Server_Info *server,
38 extern unsigned int _get_xid(void);
39 extern void _free_xid(unsigned int);
42 unsigned int __xid = _get_xid(); \
54 __func__, curr_xid, (int)rc); \
56 trace_smb3_exit_err(curr_xid, __func__, (int)rc); \
60 extern int init_cifs_idmap(void);
62 extern int init_cifs_spnego(void);
66 const char *tree, int tree_len,
84 int add_treename);
90 extern int cifs_handle_standard(struct TCP_Server_Info *server,
94 extern int smb3_parse_devname(const char *devname, struct smb3_fs_context *ctx);
95 extern int smb3_parse_opt(const char *options, const char *key, char **val);
96 extern int cifs_ipaddr_cmp(struct sockaddr *srcaddr, struct sockaddr *rhs);
98 extern int cifs_discard_remaining_data(struct TCP_Server_Info *server);
99 extern int cifs_call_async(struct TCP_Server_Info *server,
102 mid_handle_t *handle, void *cbdata, const int flags,
105 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
107 struct smb_rqst *rqst, int *resp_buf_type,
108 const int flags, struct kvec *resp_iov);
109 extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
111 const int flags, const int num_rqst,
112 struct smb_rqst *rqst, int *resp_buf_type,
114 extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *,
117 int * /* bytes returned */ , const int);
118 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
119 char *in_buf, int flags);
120 int cifs_sync_mid_result(struct mid_q_entry *mid, struct TCP_Server_Info *server);
126 int __smb_send_rqst(struct TCP_Server_Info *server, int num_rqst,
128 extern int cifs_check_receive(struct mid_q_entry *mid,
130 int wait_for_free_request(struct TCP_Server_Info *server, const int flags,
131 unsigned int *instance);
132 extern int cifs_wait_mtu_credits(struct TCP_Server_Info *server,
136 static inline int
144 int wait_for_response(struct TCP_Server_Info *server, struct mid_q_entry *midQ);
145 extern int SendReceive2(const unsigned int /* xid */ , struct cifs_ses *,
146 struct kvec *, int /* nvec to send */,
147 int * /* type of buf returned */, const int flags,
149 extern int SendReceiveBlockingLock(const unsigned int xid,
153 int *bytes_returned);
162 extern int cifs_reconnect(struct TCP_Server_Info *server,
164 extern int checkSMB(char *buf, unsigned int len, struct TCP_Server_Info *srvr);
170 unsigned int bytes_written);
172 extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *, int);
173 extern int cifs_get_writable_file(struct cifsInodeInfo *cifs_inode,
174 int flags,
176 extern int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name,
177 int flags,
180 extern int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name,
182 extern int cifs_get_hardlink_path(struct cifs_tcon *tcon, struct inode *inode,
184 extern unsigned int smbCalcSize(void *buf);
185 extern int decode_negTokenInit(unsigned char *security_blob, int length,
187 extern int cifs_convert_address(struct sockaddr *dst, const char *src, int len);
188 extern void cifs_set_port(struct sockaddr *addr, const unsigned short int port);
189 extern int map_smb_to_linux_error(char *buf, bool logErr);
190 extern int map_and_check_smb_error(struct mid_q_entry *mid, bool logErr);
192 const struct cifs_tcon *, int /* length of
194 extern int small_smb_init_no_tc(const int smb_cmd, const int wct,
199 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
205 int offset);
207 extern int cifs_get_writer(struct cifsInodeInfo *cinode);
210 extern int cifs_unlock_range(struct cifsFileInfo *cfile,
211 struct file_lock *flock, const unsigned int xid);
212 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile);
218 extern int cifs_posix_open(const char *full_path, struct inode **inode,
219 struct super_block *sb, int mode,
220 unsigned int f_flags, __u32 *oplock, __u16 *netfid,
221 unsigned int xid);
228 extern int cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr,
233 int cifs_get_inode_info(struct inode **inode, const char *full_path,
234 struct cifs_open_info_data *data, struct super_block *sb, int xid,
236 extern int smb311_posix_get_inode_info(struct inode **inode,
240 const unsigned int xid);
241 extern int cifs_get_inode_info_unix(struct inode **pinode,
243 struct super_block *sb, unsigned int xid);
244 extern int cifs_set_file_info(struct inode *inode, struct iattr *attrs,
245 unsigned int xid, const char *full_path, __u32 dosattr);
246 extern int cifs_rename_pending_delete(const char *full_path,
248 const unsigned int xid);
249 extern int sid_to_id(struct cifs_sb_info *cifs_sb, struct smb_sid *psid,
251 extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb,
255 extern int id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 *pnmode,
262 struct dentry *dentry, int type);
263 extern int cifs_set_acl(struct mnt_idmap *idmap,
264 struct dentry *dentry, struct posix_acl *acl, int type);
265 extern int set_cifs_acl(struct smb_ntsd *pntsd, __u32 len, struct inode *ino,
266 const char *path, int flag);
267 extern unsigned int setup_authusers_ACE(struct smb_ace *pace);
268 extern unsigned int setup_special_mode_ACE(struct smb_ace *pace,
271 extern unsigned int setup_special_user_owner_ACE(struct smb_ace *pace);
274 extern int cifs_read_from_socket(struct TCP_Server_Info *server, char *buf,
275 unsigned int to_read);
278 int cifs_read_iter_from_socket(struct TCP_Server_Info *server,
280 unsigned int to_read);
281 extern int cifs_setup_cifs_sb(struct cifs_sb_info *cifs_sb);
283 int cifs_mount_get_session(struct cifs_mount_ctx *mnt_ctx);
284 int cifs_is_path_remote(struct cifs_mount_ctx *mnt_ctx);
285 int cifs_mount_get_tcon(struct cifs_mount_ctx *mnt_ctx);
286 extern int cifs_match_super(struct super_block *, void *);
287 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx);
295 int rw_check);
326 int from_reconnect);
338 int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon);
340 extern int cifs_negotiate_protocol(const unsigned int xid,
343 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
346 extern int cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required);
347 extern int CIFSSMBNegotiate(const unsigned int xid,
351 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
355 extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
361 extern int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
365 extern int CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon,
368 extern int CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
370 extern int CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
372 int legacy /* whether to use old info level */,
373 const struct nls_table *nls_codepage, int remap);
374 extern int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon,
376 const struct nls_table *nls_codepage, int remap);
378 extern int CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
380 extern int CIFSSMBUnixQPathInfo(const unsigned int xid,
384 const struct nls_table *nls_codepage, int remap);
386 extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
389 unsigned int *num_of_nodes,
390 const struct nls_table *nls_codepage, int remap);
392 extern int parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size,
393 unsigned int *num_of_nodes,
395 const struct nls_table *nls_codepage, int remap,
397 extern void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
400 extern int CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
402 extern int SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
404 extern int CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon,
407 extern int CIFSSMBQFSAttributeInfo(const unsigned int xid,
409 extern int CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon);
410 extern int CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon);
411 extern int CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon,
414 extern int SMBSetInformation(const unsigned int xid, struct cifs_tcon *tcon,
418 extern int CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
422 extern int CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
425 extern int CIFSSMBSetFileDisposition(const unsigned int xid,
429 extern int CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon,
433 extern int CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon,
447 extern int CIFSSMBUnixSetFileInfo(const unsigned int xid,
452 extern int CIFSSMBUnixSetPathInfo(const unsigned int xid,
456 int remap);
458 extern int CIFSSMBMkDir(const unsigned int xid, struct inode *inode,
461 extern int CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon,
463 extern int CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
466 int remap_special_chars);
467 extern int CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon,
470 int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
474 extern int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *tcon,
475 int netfid, const char *target_name,
477 int remap_special_chars);
478 int CIFSCreateHardLink(const unsigned int xid,
483 extern int CIFSUnixCreateHardLink(const unsigned int xid,
487 int remap_special_chars);
488 extern int CIFSUnixCreateSymLink(const unsigned int xid,
491 const struct nls_table *nls_codepage, int remap);
492 extern int CIFSSMBUnixQuerySymLink(const unsigned int xid,
495 const struct nls_table *nls_codepage, int remap);
496 extern int cifs_query_reparse_point(const unsigned int xid,
501 int *rsp_buftype);
504 const unsigned int xid,
510 extern int CIFSSMB_set_compression(const unsigned int xid,
512 extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms,
513 int *oplock, FILE_ALL_INFO *buf);
514 extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
515 const char *fileName, const int disposition,
516 const int access_flags, const int omode,
517 __u16 *netfid, int *pOplock, FILE_ALL_INFO *,
518 const struct nls_table *nls_codepage, int remap);
519 extern int CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
523 const struct nls_table *nls_codepage, int remap);
524 extern int CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon,
525 const int smb_file_id);
527 extern int CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon,
528 const int smb_file_id);
530 extern int CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms,
531 unsigned int *nbytes, char **buf,
532 int *return_buf_type);
533 extern int CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms,
534 unsigned int *nbytes, const char *buf);
535 extern int CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
536 unsigned int *nbytes, struct kvec *iov, const int nvec);
537 extern int CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
540 int remap);
542 extern int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
546 extern int CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
551 extern int CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
556 extern int CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon);
557 extern int CIFSSMBEcho(struct TCP_Server_Info *server);
558 extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses);
566 extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server,
568 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
570 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
571 extern int cifs_verify_signature(struct smb_rqst *rqst,
574 extern int setup_ntlmv2_rsp(struct cifs_ses *, const struct nls_table *);
576 extern int calc_seckey(struct cifs_ses *);
577 extern int generate_smb30signingkey(struct cifs_ses *ses,
579 extern int generate_smb311signingkey(struct cifs_ses *ses,
583 extern ssize_t CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
587 extern int CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
592 extern int CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon,
594 extern int CIFSSMBSetCIFSACL(const unsigned int, struct cifs_tcon *, __u16,
595 struct smb_ntsd *pntsd, __u32 len, int aclflag);
596 extern int cifs_do_get_acl(const unsigned int xid, struct cifs_tcon *tcon,
598 struct posix_acl **acl, const int acl_type,
599 const struct nls_table *nls_codepage, int remap);
600 extern int cifs_do_set_acl(const unsigned int xid, struct cifs_tcon *tcon,
602 const struct posix_acl *acl, const int acl_type,
603 const struct nls_table *nls_codepage, int remap);
604 extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
605 const int netfid, __u64 *pExtAttrBits, __u64 *pMask);
609 extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
613 extern int E_md4hash(const unsigned char *passwd, unsigned char *p16,
626 int cifs_async_readv(struct cifs_io_subrequest *rdata);
627 int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid);
630 int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
633 unsigned int *pbytes_read);
634 int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
637 unsigned int *pbytes_written);
643 int __cifs_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server,
648 int cifs_alloc_hash(const char *name, struct shash_desc **sdesc);
651 int cifs_try_adding_channels(struct cifs_ses *ses);
655 int
680 int
681 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount);
684 int copy_path_name(char *dst, const char *src);
685 int smb2_parse_query_directory(struct cifs_tcon *tcon, struct kvec *rsp_iov,
686 int resp_buftype,
691 int cifs_update_super_prepath(struct cifs_sb_info *cifs_sb, char *prefix);
694 int parse_reparse_point(struct reparse_data_buffer *buf,
698 int __cifs_sfu_make_node(unsigned int xid, struct inode *inode,
702 int cifs_sfu_make_node(unsigned int xid, struct inode *inode,
708 static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses, in get_dfs_path()
711 struct dfs_info3_param *referral, int remap) in get_dfs_path()
717 int match_target_ip(struct TCP_Server_Info *server,
720 int cifs_inval_name_dfs_link_error(const unsigned int xid,
726 static inline int cifs_inval_name_dfs_link_error(const unsigned int xid, in cifs_inval_name_dfs_link_error()
737 static inline int cifs_create_options(struct cifs_sb_info *cifs_sb, int options) in cifs_create_options()
745 int cifs_wait_for_server_reconnect(struct TCP_Server_Info *server, bool retry);