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);
233 extern int cifs_read_page_from_socket(struct TCP_Server_Info *server,
235 unsigned int page_offset,
236 unsigned int to_read);
237 extern int cifs_setup_cifs_sb(struct smb_vol *pvolume_info,
239 extern int cifs_match_super(struct super_block *, void *);
243 extern int cifs_mount(struct cifs_sb_info *cifs_sb, struct smb_vol *vol);
251 int rw_check);
261 int from_reconnect);
277 extern int cifs_tree_connect(const unsigned int xid, struct cifs_tcon *tcon,
280 extern int cifs_negotiate_protocol(const unsigned int xid,
282 extern int cifs_setup_session(const unsigned int xid, struct cifs_ses *ses,
284 extern int cifs_enable_signing(struct TCP_Server_Info *server, bool mnt_sign_required);
285 extern int CIFSSMBNegotiate(const unsigned int xid, struct cifs_ses *ses);
287 extern int CIFSTCon(const unsigned int xid, struct cifs_ses *ses,
291 extern int CIFSFindFirst(const unsigned int xid, struct cifs_tcon *tcon,
297 extern int CIFSFindNext(const unsigned int xid, struct cifs_tcon *tcon,
301 extern int CIFSFindClose(const unsigned int xid, struct cifs_tcon *tcon,
304 extern int CIFSSMBQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
306 extern int CIFSSMBQPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
308 int legacy /* whether to use old info level */,
309 const struct nls_table *nls_codepage, int remap);
310 extern int SMBQueryInformation(const unsigned int xid, struct cifs_tcon *tcon,
312 const struct nls_table *nls_codepage, int remap);
314 extern int CIFSSMBUnixQFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
316 extern int CIFSSMBUnixQPathInfo(const unsigned int xid,
320 const struct nls_table *nls_codepage, int remap);
322 extern int CIFSGetDFSRefer(const unsigned int xid, struct cifs_ses *ses,
325 unsigned int *num_of_nodes,
326 const struct nls_table *nls_codepage, int remap);
328 extern int parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size,
329 unsigned int *num_of_nodes,
331 const struct nls_table *nls_codepage, int remap,
333 extern void reset_cifs_unix_caps(unsigned int xid, struct cifs_tcon *tcon,
336 extern int CIFSSMBQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
338 extern int SMBOldQFSInfo(const unsigned int xid, struct cifs_tcon *tcon,
340 extern int CIFSSMBSetFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon,
343 extern int CIFSSMBQFSAttributeInfo(const unsigned int xid,
345 extern int CIFSSMBQFSDeviceInfo(const unsigned int xid, struct cifs_tcon *tcon);
346 extern int CIFSSMBQFSUnixInfo(const unsigned int xid, struct cifs_tcon *tcon);
347 extern int CIFSSMBQFSPosixInfo(const unsigned int xid, struct cifs_tcon *tcon,
350 extern int CIFSSMBSetPathInfo(const unsigned int xid, struct cifs_tcon *tcon,
354 extern int CIFSSMBSetFileInfo(const unsigned int xid, struct cifs_tcon *tcon,
357 extern int CIFSSMBSetFileDisposition(const unsigned int xid,
362 extern int CIFSSMBSetAttrLegacy(unsigned int xid, struct cifs_tcon *tcon,
366 extern int CIFSSMBSetEOF(const unsigned int xid, struct cifs_tcon *tcon,
369 extern int CIFSSMBSetFileSize(const unsigned int xid, struct cifs_tcon *tcon,
383 extern int CIFSSMBUnixSetFileInfo(const unsigned int xid,
388 extern int CIFSSMBUnixSetPathInfo(const unsigned int xid,
392 int remap);
394 extern int CIFSSMBMkDir(const unsigned int xid, struct inode *inode,
397 extern int CIFSSMBRmDir(const unsigned int xid, struct cifs_tcon *tcon,
399 extern int CIFSPOSIXDelFile(const unsigned int xid, struct cifs_tcon *tcon,
402 int remap_special_chars);
403 extern int CIFSSMBDelFile(const unsigned int xid, struct cifs_tcon *tcon,
405 extern int CIFSSMBRename(const unsigned int xid, struct cifs_tcon *tcon,
408 extern int CIFSSMBRenameOpenFile(const unsigned int xid, struct cifs_tcon *tcon,
409 int netfid, const char *target_name,
411 int remap_special_chars);
412 extern int CIFSCreateHardLink(const unsigned int xid, struct cifs_tcon *tcon,
415 extern int CIFSUnixCreateHardLink(const unsigned int xid,
419 int remap_special_chars);
420 extern int CIFSUnixCreateSymLink(const unsigned int xid,
423 const struct nls_table *nls_codepage, int remap);
424 extern int CIFSSMBUnixQuerySymLink(const unsigned int xid,
427 const struct nls_table *nls_codepage, int remap);
428 extern int CIFSSMBQuerySymLink(const unsigned int xid, struct cifs_tcon *tcon,
431 extern int CIFSSMB_set_compression(const unsigned int xid,
433 extern int CIFS_open(const unsigned int xid, struct cifs_open_parms *oparms,
434 int *oplock, FILE_ALL_INFO *buf);
435 extern int SMBLegacyOpen(const unsigned int xid, struct cifs_tcon *tcon,
436 const char *fileName, const int disposition,
437 const int access_flags, const int omode,
438 __u16 *netfid, int *pOplock, FILE_ALL_INFO *,
439 const struct nls_table *nls_codepage, int remap);
440 extern int CIFSPOSIXCreate(const unsigned int xid, struct cifs_tcon *tcon,
444 const struct nls_table *nls_codepage, int remap);
445 extern int CIFSSMBClose(const unsigned int xid, struct cifs_tcon *tcon,
446 const int smb_file_id);
448 extern int CIFSSMBFlush(const unsigned int xid, struct cifs_tcon *tcon,
449 const int smb_file_id);
451 extern int CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms,
452 unsigned int *nbytes, char **buf,
453 int *return_buf_type);
454 extern int CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms,
455 unsigned int *nbytes, const char *buf);
456 extern int CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
457 unsigned int *nbytes, struct kvec *iov, const int nvec);
458 extern int CIFSGetSrvInodeNumber(const unsigned int xid, struct cifs_tcon *tcon,
461 int remap);
463 extern int cifs_lockv(const unsigned int xid, struct cifs_tcon *tcon,
467 extern int CIFSSMBLock(const unsigned int xid, struct cifs_tcon *tcon,
472 extern int CIFSSMBPosixLock(const unsigned int xid, struct cifs_tcon *tcon,
477 extern int CIFSSMBTDis(const unsigned int xid, struct cifs_tcon *tcon);
478 extern int CIFSSMBEcho(struct TCP_Server_Info *server);
479 extern int CIFSSMBLogoff(const unsigned int xid, struct cifs_ses *ses);
486 extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server,
488 extern int cifs_sign_smbv(struct kvec *iov, int n_vec, struct TCP_Server_Info *,
490 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
491 extern int cifs_verify_signature(struct smb_rqst *rqst,
494 extern int SMBNTencrypt(unsigned char *, unsigned char *, unsigned char *,
496 extern int setup_ntlm_response(struct cifs_ses *, const struct nls_table *);
497 extern int setup_ntlmv2_rsp(struct cifs_ses *, const struct nls_table *);
499 extern int calc_seckey(struct cifs_ses *);
500 extern int generate_smb30signingkey(struct cifs_ses *);
501 extern int generate_smb311signingkey(struct cifs_ses *);
504 extern int calc_lanman_hash(const char *password, const char *cryptkey,
508 extern int CIFSSMBNotify(const unsigned int xid, struct cifs_tcon *tcon,
509 const int notify_subdirs, const __u16 netfid,
510 __u32 filter, struct file *file, int multishot,
513 extern int CIFSSMBCopy(unsigned int xid,
517 const char *toName, const int flags,
519 int remap_special_chars);
520 extern ssize_t CIFSSMBQAllEAs(const unsigned int xid, struct cifs_tcon *tcon,
524 extern int CIFSSMBSetEA(const unsigned int xid, struct cifs_tcon *tcon,
529 extern int CIFSSMBGetCIFSACL(const unsigned int xid, struct cifs_tcon *tcon,
531 extern int CIFSSMBSetCIFSACL(const unsigned int, struct cifs_tcon *, __u16,
532 struct cifs_ntsd *, __u32, int);
533 extern int CIFSSMBGetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
535 char *acl_inf, const int buflen, const int acl_type,
536 const struct nls_table *nls_codepage, int remap_special_chars);
537 extern int CIFSSMBSetPosixACL(const unsigned int xid, struct cifs_tcon *tcon,
539 const char *local_acl, const int buflen, const int acl_type,
540 const struct nls_table *nls_codepage, int remap_special_chars);
541 extern int CIFSGetExtAttr(const unsigned int xid, struct cifs_tcon *tcon,
542 const int netfid, __u64 *pExtAttrBits, __u64 *pMask);
545 extern int check_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
549 extern int mdfour(unsigned char *, unsigned char *, int);
550 extern int E_md4hash(const unsigned char *passwd, unsigned char *p16,
552 extern int SMBencrypt(unsigned char *passwd, const unsigned char *c8,
555 extern int
570 int cifs_async_readv(struct cifs_readdata *rdata);
571 int cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid);
573 int cifs_async_writev(struct cifs_writedata *wdata,
576 struct cifs_writedata *cifs_writedata_alloc(unsigned int nr_pages,
581 int cifs_query_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
584 unsigned int *pbytes_read);
585 int cifs_create_mf_symlink(unsigned int xid, struct cifs_tcon *tcon,
588 unsigned int *pbytes_written);
589 int __cifs_calc_signature(struct smb_rqst *rqst,
596 int setup_aio_ctx_iter(struct cifs_aio_ctx *ctx, struct iov_iter *iter, int rw);
599 int cifs_alloc_hash(const char *name, struct crypto_shash **shash,
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_ses *ses);
608 int cifs_ses_add_channel(struct cifs_ses *ses,
615 int copy_path_name(char *dst, const char *src);
616 int smb2_parse_query_directory(struct cifs_tcon *tcon, struct kvec *rsp_iov,
617 int resp_buftype,
622 int update_super_prepath(struct cifs_tcon *tcon, char *prefix);
625 static inline int get_dfs_path(const unsigned int xid, struct cifs_ses *ses, in get_dfs_path()
628 struct dfs_info3_param *referral, int remap) in get_dfs_path()
634 int match_target_ip(struct TCP_Server_Info *server,
639 static inline int cifs_create_options(struct cifs_sb_info *cifs_sb, int options) in cifs_create_options()