Lines Matching full:int
43 extern void free_rsp_buf(int, void *);
44 extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *,
45 unsigned int /* length */);
46 extern unsigned int _get_xid(void);
47 extern void _free_xid(unsigned int);
50 unsigned int __xid = _get_xid(); \
62 __func__, curr_xid, (int)rc); \
64 trace_smb3_exit_err(curr_xid, __func__, (int)rc); \
68 extern int init_cifs_idmap(void);
70 extern int init_cifs_spnego(void);
78 int add_treename);
90 extern int cifs_handle_standard(struct TCP_Server_Info *server,
93 extern int cifs_discard_remaining_data(struct TCP_Server_Info *server);
94 extern int cifs_call_async(struct TCP_Server_Info *server,
97 mid_handle_t *handle, void *cbdata, const int flags,
100 extern int cifs_send_recv(const unsigned int xid, struct cifs_ses *ses,
102 struct smb_rqst *rqst, int *resp_buf_type,
103 const int flags, struct kvec *resp_iov);
104 extern int compound_send_recv(const unsigned int xid, struct cifs_ses *ses,
106 const int flags, const int num_rqst,
107 struct smb_rqst *rqst, int *resp_buf_type,
109 extern int SendReceive(const unsigned int /* xid */ , struct cifs_ses *,
112 int * /* bytes returned */ , const int);
113 extern int SendReceiveNoRsp(const unsigned int xid, struct cifs_ses *ses,
114 char *in_buf, int flags);
120 extern int cifs_check_receive(struct mid_q_entry *mid,
122 extern int cifs_wait_mtu_credits(struct TCP_Server_Info *server,
123 unsigned int size, unsigned int *num,
125 extern int SendReceive2(const unsigned int /* xid */ , struct cifs_ses *,
126 struct kvec *, int /* nvec to send */,
127 int * /* type of buf returned */, const int flags,
129 extern int SendReceiveBlockingLock(const unsigned int xid,
133 int *bytes_returned);
134 extern int cifs_reconnect(struct TCP_Server_Info *server);
135 extern int checkSMB(char *buf, unsigned int len, struct TCP_Server_Info *srvr);
140 unsigned int bytes_written);
141 extern struct cifsFileInfo *find_writable_file(struct cifsInodeInfo *, int);
142 extern int cifs_get_writable_file(struct cifsInodeInfo *cifs_inode,
143 int flags,
145 extern int cifs_get_writable_path(struct cifs_tcon *tcon, const char *name,
146 int flags,
149 extern int cifs_get_readable_path(struct cifs_tcon *tcon, const char *name,
151 extern unsigned int smbCalcSize(void *buf, struct TCP_Server_Info *server);
152 extern int decode_negTokenInit(unsigned char *security_blob, int length,
154 extern int cifs_convert_address(struct sockaddr *dst, const char *src, int len);
155 extern void cifs_set_port(struct sockaddr *addr, const unsigned short int port);
156 extern int map_smb_to_linux_error(char *buf, bool logErr);
157 extern int map_and_check_smb_error(struct mid_q_entry *mid, bool logErr);
159 const struct cifs_tcon *, int /* length of
161 extern int small_smb_init_no_tc(const int smb_cmd, const int wct,
166 extern int CIFS_SessSetup(const unsigned int xid, struct cifs_ses *ses,
171 int offset);
173 extern int cifs_get_writer(struct cifsInodeInfo *cinode);
176 extern int cifs_unlock_range(struct cifsFileInfo *cfile,
177 struct file_lock *flock, const unsigned int xid);
178 extern int cifs_push_mandatory_locks(struct cifsFileInfo *cfile);
185 extern int cifs_posix_open(char *full_path, struct inode **inode,
186 struct super_block *sb, int mode,
187 unsigned int f_flags, __u32 *oplock, __u16 *netfid,
188 unsigned int xid);
199 extern int cifs_get_inode_info(struct inode **inode, const char *full_path,
201 int xid, const struct cifs_fid *fid);
202 extern int smb311_posix_get_inode_info(struct inode **pinode, const char *search_path,
203 struct super_block *sb, unsigned int xid);
204 extern int cifs_get_inode_info_unix(struct inode **pinode,
206 struct super_block *sb, unsigned int xid);
207 extern int cifs_set_file_info(struct inode *inode, struct iattr *attrs,
208 unsigned int xid, char *full_path, __u32 dosattr);
209 extern int cifs_rename_pending_delete(const char *full_path,
211 const unsigned int xid);
212 extern int sid_to_id(struct cifs_sb_info *cifs_sb, struct cifs_sid *psid,
214 extern int cifs_acl_to_fattr(struct cifs_sb_info *cifs_sb,
218 extern int id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64,
224 extern int set_cifs_acl(struct cifs_ntsd *, __u32, struct inode *,
225 const char *, int);
226 extern unsigned int setup_authusers_ACE(struct cifs_ace *pace);
227 extern unsigned int setup_special_mode_ACE(struct cifs_ace *pace, __u64 nmode);
228 extern unsigned int setup_special_user_owner_ACE(struct cifs_ace *pace);
231 extern int cifs_read_from_socket(struct TCP_Server_Info *server, char *buf,
232 unsigned int to_read);
235 extern int cifs_read_page_from_socket(struct TCP_Server_Info *server,
237 unsigned int page_offset,
238 unsigned int to_read);
239 extern int cifs_setup_cifs_sb(struct smb_vol *pvolume_info,
241 extern int cifs_match_super(struct super_block *, void *);
245 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *vol);
253 int rw_check);
263 int from_reconnect);
279 extern int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon,
282 extern int cifs_negotiate_protocol(const unsigned int xid,
284 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
286 extern int cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required);
287 extern int CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses);
289 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
293 extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
299 extern int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
303 extern int CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon,
306 extern int CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
308 extern int CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
310 int legacy /* whether to use old info level */,
311 const struct nls_table *nls_codepage, int remap);
312 extern int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon,
314 const struct nls_table *nls_codepage, int remap);
316 extern int CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
318 extern int CIFSSMBUnixQPathInfo(const unsigned int xid,
322 const struct nls_table *nls_codepage, int remap);
324 extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
327 unsigned int *num_of_nodes,
328 const struct nls_table *nls_codepage, int remap);
330 extern int parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size,
331 unsigned int *num_of_nodes,
333 const struct nls_table *nls_codepage, int remap,
335 extern void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
338 extern int CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
340 extern int SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
342 extern int CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon,
345 extern int CIFSSMBQFSAttributeInfo(const unsigned int xid,
347 extern int CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon);
348 extern int CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon);
349 extern int CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon,
352 extern int CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
356 extern int CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
359 extern int CIFSSMBSetFileDisposition(const unsigned int xid,
364 extern int CIFSSMBSetAttrLegacy(unsigned int xid, struct cifs_tcon *tcon,
368 extern int CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon,
371 extern int CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon,
385 extern int CIFSSMBUnixSetFileInfo(const unsigned int xid,
390 extern int CIFSSMBUnixSetPathInfo(const unsigned int xid,
394 int remap);
396 extern int CIFSSMBMkDir(const unsigned int xid, struct inode *inode,
399 extern int CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon,
401 extern int CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
404 int remap_special_chars);
405 extern int CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon,
407 extern int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
410 extern int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *tcon,
411 int netfid, const char *target_name,
413 int remap_special_chars);
414 extern int CIFSCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon,
417 extern int CIFSUnixCreateHardLink(const unsigned int xid,
421 int remap_special_chars);
422 extern int CIFSUnixCreateSymLink(const unsigned int xid,
425 const struct nls_table *nls_codepage, int remap);
426 extern int CIFSSMBUnixQuerySymLink(const unsigned int xid,
429 const struct nls_table *nls_codepage, int remap);
430 extern int CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon,
433 extern int CIFSSMB_set_compression(const unsigned int xid,
435 extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms,
436 int *oplock, FILE_ALL_INFO *buf);
437 extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
438 const char *fileName, const int disposition,
439 const int access_flags, const int omode,
440 __u16 *netfid, int *pOplock, FILE_ALL_INFO *,
441 const struct nls_table *nls_codepage, int remap);
442 extern int CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
446 const struct nls_table *nls_codepage, int remap);
447 extern int CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon,
448 const int smb_file_id);
450 extern int CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon,
451 const int smb_file_id);
453 extern int CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms,
454 unsigned int *nbytes, char **buf,
455 int *return_buf_type);
456 extern int CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms,
457 unsigned int *nbytes, const char *buf);
458 extern int CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
459 unsigned int *nbytes, struct kvec *iov, const int nvec);
460 extern int CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
463 int remap);
465 extern int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
469 extern int CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
474 extern int CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
479 extern int CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon);
480 extern int CIFSSMBEcho(struct TCP_Server_Info *server);
481 extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses);
488 extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server,
490 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
492 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
493 extern int cifs_verify_signature(struct smb_rqst *rqst,
496 extern int SMBNTencrypt(unsigned char *, unsigned char *, unsigned char *,
498 extern int setup_ntlm_response(struct cifs_ses *, const struct nls_table *);
499 extern int setup_ntlmv2_rsp(struct cifs_ses *, const struct nls_table *);
501 extern int calc_seckey(struct cifs_ses *);
502 extern int generate_smb30signingkey(struct cifs_ses *);
503 extern int generate_smb311signingkey(struct cifs_ses *);
506 extern int calc_lanman_hash(const char *password, const char *cryptkey,
510 extern int CIFSSMBNotify(const unsigned int xid, struct cifs_tcon *tcon,
511 const int notify_subdirs, const __u16 netfid,
512 __u32 filter, struct file *file, int multishot,
515 extern int CIFSSMBCopy(unsigned int xid,
519 const char *toName, const int flags,
521 int remap_special_chars);
522 extern ssize_t CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
526 extern int CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
531 extern int CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon,
533 extern int CIFSSMBSetCIFSACL(const unsigned int, struct cifs_tcon *, __u16,
534 struct cifs_ntsd *, __u32, int);
535 extern int CIFSSMBGetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
537 char *acl_inf, const int buflen, const int acl_type,
538 const struct nls_table *nls_codepage, int remap_special_chars);
539 extern int CIFSSMBSetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
541 const char *local_acl, const int buflen, const int acl_type,
542 const struct nls_table *nls_codepage, int remap_special_chars);
543 extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
544 const int netfid, __u64 *pExtAttrBits, __u64 *pMask);
547 extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
551 extern int mdfour(unsigned char *, unsigned char *, int);
552 extern int E_md4hash(const unsigned char *passwd, unsigned char *p16,
554 extern int SMBencrypt(unsigned char *passwd, const unsigned char *c8,
557 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);
601 int cifs_alloc_hash(const char *name, struct crypto_shash **shash,
605 void rqst_page_get_length(const struct smb_rqst *rqst, unsigned int page,
606 unsigned int *len, unsigned int *offset);
609 int cifs_try_adding_channels(struct cifs_ses *ses);
610 int cifs_ses_add_channel(struct cifs_ses *ses,
617 int copy_path_name(char *dst, const char *src);
618 int smb2_parse_query_directory(struct cifs_tcon *tcon, struct kvec *rsp_iov,
619 int resp_buftype,
624 int update_super_prepath(struct cifs_tcon *tcon, char *prefix);
627 static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses, in get_dfs_path()
630 struct dfs_info3_param *referral, int remap) in get_dfs_path()
636 int match_target_ip(struct TCP_Server_Info *server,
641 static inline int cifs_create_options(struct cifs_sb_info *cifs_sb, int options) in cifs_create_options()