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);
88 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);
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(const 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);
195 extern int cifs_fattr_to_inode(struct inode *inode, struct cifs_fattr *fattr);
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, const 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 *pnmode,
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 cifs_sb_info *cifs_sb);
240 extern int cifs_match_super(struct super_block *, void *);
241 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb3_fs_context *ctx);
249 int rw_check);
275 int from_reconnect);
291 extern int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon,
294 extern int cifs_negotiate_protocol(const unsigned int xid,
296 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
298 extern int cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required);
299 extern int CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses);
301 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
305 extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
311 extern int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
315 extern int CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon,
318 extern int CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
320 extern int CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
322 int legacy /* whether to use old info level */,
323 const struct nls_table *nls_codepage, int remap);
324 extern int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon,
326 const struct nls_table *nls_codepage, int remap);
328 extern int CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
330 extern int CIFSSMBUnixQPathInfo(const unsigned int xid,
334 const struct nls_table *nls_codepage, int remap);
336 extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
339 unsigned int *num_of_nodes,
340 const struct nls_table *nls_codepage, int remap);
342 extern int parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size,
343 unsigned int *num_of_nodes,
345 const struct nls_table *nls_codepage, int remap,
347 extern void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
350 extern int CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
352 extern int SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
354 extern int CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon,
357 extern int CIFSSMBQFSAttributeInfo(const unsigned int xid,
359 extern int CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon);
360 extern int CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon);
361 extern int CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon,
364 extern int CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
368 extern int CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
371 extern int CIFSSMBSetFileDisposition(const unsigned int xid,
375 extern int CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon,
378 extern int CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon,
392 extern int CIFSSMBUnixSetFileInfo(const unsigned int xid,
397 extern int CIFSSMBUnixSetPathInfo(const unsigned int xid,
401 int remap);
403 extern int CIFSSMBMkDir(const unsigned int xid, struct inode *inode,
406 extern int CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon,
408 extern int CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
411 int remap_special_chars);
412 extern int CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon,
414 extern int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
417 extern int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *tcon,
418 int netfid, const char *target_name,
420 int remap_special_chars);
421 extern int CIFSCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon,
424 extern int CIFSUnixCreateHardLink(const unsigned int xid,
428 int remap_special_chars);
429 extern int CIFSUnixCreateSymLink(const unsigned int xid,
432 const struct nls_table *nls_codepage, int remap);
433 extern int CIFSSMBUnixQuerySymLink(const unsigned int xid,
436 const struct nls_table *nls_codepage, int remap);
437 extern int CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon,
440 extern int CIFSSMB_set_compression(const unsigned int xid,
442 extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms,
443 int *oplock, FILE_ALL_INFO *buf);
444 extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
445 const char *fileName, const int disposition,
446 const int access_flags, const int omode,
447 __u16 *netfid, int *pOplock, FILE_ALL_INFO *,
448 const struct nls_table *nls_codepage, int remap);
449 extern int CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
453 const struct nls_table *nls_codepage, int remap);
454 extern int CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon,
455 const int smb_file_id);
457 extern int CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon,
458 const int smb_file_id);
460 extern int CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms,
461 unsigned int *nbytes, char **buf,
462 int *return_buf_type);
463 extern int CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms,
464 unsigned int *nbytes, const char *buf);
465 extern int CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
466 unsigned int *nbytes, struct kvec *iov, const int nvec);
467 extern int CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
470 int remap);
472 extern int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
476 extern int CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
481 extern int CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
486 extern int CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon);
487 extern int CIFSSMBEcho(struct TCP_Server_Info *server);
488 extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses);
495 extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server,
497 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
499 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
500 extern int cifs_verify_signature(struct smb_rqst *rqst,
503 extern int setup_ntlmv2_rsp(struct cifs_ses *, const struct nls_table *);
505 extern int calc_seckey(struct cifs_ses *);
506 extern int generate_smb30signingkey(struct cifs_ses *);
507 extern int generate_smb311signingkey(struct cifs_ses *);
509 extern int CIFSSMBCopy(unsigned int xid,
513 const char *toName, const int flags,
515 int remap_special_chars);
516 extern ssize_t CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
520 extern int CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
525 extern int CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon,
527 extern int CIFSSMBSetCIFSACL(const unsigned int, struct cifs_tcon *, __u16,
528 struct cifs_ntsd *, __u32, int);
529 extern int CIFSSMBGetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
531 char *acl_inf, const int buflen, const int acl_type,
532 const struct nls_table *nls_codepage, int remap_special_chars);
533 extern int CIFSSMBSetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
535 const char *local_acl, const int buflen, const int acl_type,
536 const struct nls_table *nls_codepage, int remap_special_chars);
537 extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
538 const int netfid, __u64 *pExtAttrBits, __u64 *pMask);
541 extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
545 extern int E_md4hash(const unsigned char *passwd, unsigned char *p16,
548 extern int
560 int cifs_async_readv(struct cifs_readdata *rdata);
561 int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid);
563 int cifs_async_writev(struct cifs_writedata *wdata,
566 struct cifs_writedata *cifs_writedata_alloc(unsigned int nr_pages,
571 int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
574 unsigned int *pbytes_read);
575 int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
578 unsigned int *pbytes_written);
579 int __cifs_calc_signature(struct smb_rqst *rqst,
586 int setup_aio_ctx_iter(struct cifs_aio_ctx *ctx, struct iov_iter *iter, int rw);
589 int cifs_alloc_hash(const char *name, struct crypto_shash **shash,
593 extern void rqst_page_get_length(struct smb_rqst *rqst, unsigned int page,
594 unsigned int *len, unsigned int *offset);
597 int cifs_try_adding_channels(struct cifs_sb_info *cifs_sb, struct cifs_ses *ses);
603 int copy_path_name(char *dst, const char *src);
604 int smb2_parse_query_directory(struct cifs_tcon *tcon, struct kvec *rsp_iov,
605 int resp_buftype,
610 int update_super_prepath(struct cifs_tcon *tcon, char *prefix);
615 static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses, in get_dfs_path()
618 struct dfs_info3_param *referral, int remap) in get_dfs_path()
624 int match_target_ip(struct TCP_Server_Info *server,
629 static inline int cifs_create_options(struct cifs_sb_info *cifs_sb, int options) in cifs_create_options()