Lines Matching full:int

30 extern void free_rsp_buf(int, void *);
31 extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *,
32 unsigned int /* length */);
33 extern unsigned int _get_xid(void);
34 extern void _free_xid(unsigned int);
37 unsigned int __xid = _get_xid(); \
49 __func__, curr_xid, (int)rc); \
51 trace_smb3_exit_err(curr_xid, __func__, (int)rc); \
55 extern int init_cifs_idmap(void);
57 extern int init_cifs_spnego(void);
76 int add_treename);
84 extern int cifs_handle_standard(struct TCP_Server_Info *server,
86 extern int smb3_parse_devname(const char *devname, struct smb3_fs_context *ctx);
87 extern int smb3_parse_opt(const char *options, const char *key, char **val);
89 extern int cifs_discard_remaining_data(struct TCP_Server_Info *server);
90 extern int cifs_call_async(struct TCP_Server_Info *server,
93 mid_handle_t *handle, void *cbdata, const int flags,
96 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
98 struct smb_rqst *rqst, int *resp_buf_type,
99 const int flags, struct kvec *resp_iov);
100 extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
102 const int flags, const int num_rqst,
103 struct smb_rqst *rqst, int *resp_buf_type,
105 extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *,
108 int * /* bytes returned */ , const int);
109 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
110 char *in_buf, int flags);
116 extern int cifs_check_receive(struct mid_q_entry *mid,
118 extern int cifs_wait_mtu_credits(struct TCP_Server_Info *server,
119 unsigned int size, unsigned int *num,
121 extern int SendReceive2(const unsigned int /* xid */ , struct cifs_ses *,
122 struct kvec *, int /* nvec to send */,
123 int * /* type of buf returned */, const int flags,
125 extern int SendReceiveBlockingLock(const unsigned int xid,
129 int *bytes_returned);
136 extern int cifs_reconnect(struct TCP_Server_Info *server,
138 extern int checkSMB(char *buf, unsigned int len, struct TCP_Server_Info *srvr);
143 unsigned int bytes_written);
144 extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *, int);
145 extern int cifs_get_writable_file(struct cifsInodeInfo *cifs_inode,
146 int flags,
148 extern int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name,
149 int flags,
152 extern int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name,
154 extern unsigned int smbCalcSize(void *buf);
155 extern int decode_negTokenInit(unsigned char *security_blob, int length,
157 extern int cifs_convert_address(struct sockaddr *dst, const char *src, int len);
158 extern void cifs_set_port(struct sockaddr *addr, const unsigned short int port);
159 extern int map_smb_to_linux_error(char *buf, bool logErr);
160 extern int map_and_check_smb_error(struct mid_q_entry *mid, bool logErr);
162 const struct cifs_tcon *, int /* length of
164 extern int small_smb_init_no_tc(const int smb_cmd, const int wct,
169 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
175 int offset);
177 extern int cifs_get_writer(struct cifsInodeInfo *cinode);
180 extern int cifs_unlock_range(struct cifsFileInfo *cfile,
181 struct file_lock *flock, const unsigned int xid);
182 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile);
188 extern int cifs_posix_open(const char *full_path, struct inode **inode,
189 struct super_block *sb, int mode,
190 unsigned int f_flags, __u32 *oplock, __u16 *netfid,
191 unsigned int xid);
198 extern int cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr);
202 int cifs_get_inode_info(struct inode **inode, const char *full_path,
203 struct cifs_open_info_data *data, struct super_block *sb, int xid,
205 extern int smb311_posix_get_inode_info(struct inode **pinode, const char *search_path,
206 struct super_block *sb, unsigned int xid);
207 extern int cifs_get_inode_info_unix(struct inode **pinode,
209 struct super_block *sb, unsigned int xid);
210 extern int cifs_set_file_info(struct inode *inode, struct iattr *attrs,
211 unsigned int xid, const char *full_path, __u32 dosattr);
212 extern int cifs_rename_pending_delete(const char *full_path,
214 const unsigned int xid);
215 extern int sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid,
217 extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb,
221 extern int id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 *pnmode,
227 extern int set_cifs_acl(struct cifs_ntsd *, __u32, struct inode *,
228 const char *, int);
229 extern unsigned int setup_authusers_ACE(struct cifs_ace *pace);
230 extern unsigned int setup_special_mode_ACE(struct cifs_ace *pace, __u64 nmode);
231 extern unsigned int setup_special_user_owner_ACE(struct cifs_ace *pace);
234 extern int cifs_read_from_socket(struct TCP_Server_Info *server, char *buf,
235 unsigned int to_read);
238 extern int cifs_read_page_from_socket(struct TCP_Server_Info *server,
240 unsigned int page_offset,
241 unsigned int to_read);
242 extern int cifs_setup_cifs_sb(struct cifs_sb_info *cifs_sb);
243 extern int cifs_match_super(struct super_block *, void *);
244 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx);
252 int rw_check);
279 int from_reconnect);
295 extern int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon,
298 extern int cifs_negotiate_protocol(const unsigned int xid,
301 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
304 extern int cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required);
305 extern int CIFSSMBNegotiate(const unsigned int xid,
309 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
313 extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
319 extern int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
323 extern int CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon,
326 extern int CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
328 extern int CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
330 int legacy /* whether to use old info level */,
331 const struct nls_table *nls_codepage, int remap);
332 extern int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon,
334 const struct nls_table *nls_codepage, int remap);
336 extern int CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
338 extern int CIFSSMBUnixQPathInfo(const unsigned int xid,
342 const struct nls_table *nls_codepage, int remap);
344 extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
347 unsigned int *num_of_nodes,
348 const struct nls_table *nls_codepage, int remap);
350 extern int parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size,
351 unsigned int *num_of_nodes,
353 const struct nls_table *nls_codepage, int remap,
355 extern void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
358 extern int CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
360 extern int SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
362 extern int CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon,
365 extern int CIFSSMBQFSAttributeInfo(const unsigned int xid,
367 extern int CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon);
368 extern int CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon);
369 extern int CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon,
372 extern int CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
376 extern int CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
379 extern int CIFSSMBSetFileDisposition(const unsigned int xid,
383 extern int CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon,
386 extern int CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon,
400 extern int CIFSSMBUnixSetFileInfo(const unsigned int xid,
405 extern int CIFSSMBUnixSetPathInfo(const unsigned int xid,
409 int remap);
411 extern int CIFSSMBMkDir(const unsigned int xid, struct inode *inode,
414 extern int CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon,
416 extern int CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
419 int remap_special_chars);
420 extern int CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon,
422 extern int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
425 extern int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *tcon,
426 int netfid, const char *target_name,
428 int remap_special_chars);
429 extern int CIFSCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon,
432 extern int CIFSUnixCreateHardLink(const unsigned int xid,
436 int remap_special_chars);
437 extern int CIFSUnixCreateSymLink(const unsigned int xid,
440 const struct nls_table *nls_codepage, int remap);
441 extern int CIFSSMBUnixQuerySymLink(const unsigned int xid,
444 const struct nls_table *nls_codepage, int remap);
445 extern int CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon,
448 extern int CIFSSMB_set_compression(const unsigned int xid,
450 extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms,
451 int *oplock, FILE_ALL_INFO *buf);
452 extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
453 const char *fileName, const int disposition,
454 const int access_flags, const int omode,
455 __u16 *netfid, int *pOplock, FILE_ALL_INFO *,
456 const struct nls_table *nls_codepage, int remap);
457 extern int CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
461 const struct nls_table *nls_codepage, int remap);
462 extern int CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon,
463 const int smb_file_id);
465 extern int CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon,
466 const int smb_file_id);
468 extern int CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms,
469 unsigned int *nbytes, char **buf,
470 int *return_buf_type);
471 extern int CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms,
472 unsigned int *nbytes, const char *buf);
473 extern int CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
474 unsigned int *nbytes, struct kvec *iov, const int nvec);
475 extern int CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
478 int remap);
480 extern int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
484 extern int CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
489 extern int CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
494 extern int CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon);
495 extern int CIFSSMBEcho(struct TCP_Server_Info *server);
496 extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses);
503 extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server,
505 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
507 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
508 extern int cifs_verify_signature(struct smb_rqst *rqst,
511 extern int setup_ntlmv2_rsp(struct cifs_ses *, const struct nls_table *);
513 extern int calc_seckey(struct cifs_ses *);
514 extern int generate_smb30signingkey(struct cifs_ses *ses,
516 extern int generate_smb311signingkey(struct cifs_ses *ses,
520 extern int CIFSSMBCopy(unsigned int xid,
524 const char *toName, const int flags,
526 int remap_special_chars);
527 extern ssize_t CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
531 extern int CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
536 extern int CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon,
538 extern int CIFSSMBSetCIFSACL(const unsigned int, struct cifs_tcon *, __u16,
539 struct cifs_ntsd *, __u32, int);
540 extern int CIFSSMBGetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
542 char *acl_inf, const int buflen, const int acl_type,
543 const struct nls_table *nls_codepage, int remap_special_chars);
544 extern int CIFSSMBSetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
546 const char *local_acl, const int buflen, const int acl_type,
547 const struct nls_table *nls_codepage, int remap_special_chars);
548 extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
549 const int netfid, __u64 *pExtAttrBits, __u64 *pMask);
553 extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
557 extern int E_md4hash(const unsigned char *passwd, unsigned char *p16,
560 extern int
572 int cifs_async_readv(struct cifs_readdata *rdata);
573 int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid);
575 int cifs_async_writev(struct cifs_writedata *wdata,
578 struct cifs_writedata *cifs_writedata_alloc(unsigned int nr_pages,
583 int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
586 unsigned int *pbytes_read);
587 int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
590 unsigned int *pbytes_written);
591 int __cifs_calc_signature(struct smb_rqst *rqst,
598 int setup_aio_ctx_iter(struct cifs_aio_ctx *ctx, struct iov_iter *iter, int rw);
600 int cifs_alloc_hash(const char *name, struct shash_desc **sdesc);
603 extern void rqst_page_get_length(struct smb_rqst *rqst, unsigned int page,
604 unsigned int *len, unsigned int *offset);
607 int cifs_try_adding_channels(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses);
613 unsigned int
637 int
639 int
640 SMB3_request_interfaces(const unsigned int xid, struct cifs_tcon *tcon, bool in_mount);
643 int copy_path_name(char *dst, const char *src);
644 int smb2_parse_query_directory(struct cifs_tcon *tcon, struct kvec *rsp_iov,
645 int resp_buftype,
650 int cifs_update_super_prepath(struct cifs_sb_info *cifs_sb, char *prefix);
655 static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses, in get_dfs_path()
658 struct dfs_info3_param *referral, int remap) in get_dfs_path()
664 int match_target_ip(struct TCP_Server_Info *server,
668 int cifs_dfs_query_info_nonascii_quirk(const unsigned int xid,
674 static inline int cifs_create_options(struct cifs_sb_info *cifs_sb, int options) in cifs_create_options()