Home
last modified time | relevance | path

Searched refs:smb_hdr (Results 1 – 13 of 13) sorted by relevance

/fs/cifs/
Dcifspdu.h403 struct smb_hdr { struct
437 BCC(struct smb_hdr *smb) in BCC()
447 get_bcc(struct smb_hdr *hdr) in get_bcc()
456 put_bcc(__u16 count, struct smb_hdr *hdr) in put_bcc()
507 struct smb_hdr hdr; /* wct = 0 */
517 struct smb_hdr hdr; /* wct = 13 */
541 struct smb_hdr hdr; /* wct = 17 */
597 struct smb_hdr hdr; /* wct = 12 */
616 struct smb_hdr hdr; /* wct = 13 */
639 struct smb_hdr hdr; /* wct = 4 */
[all …]
Dmisc.c141 struct smb_hdr *
144 struct smb_hdr *ret_buf = NULL; in cifs_buf_get()
145 size_t buf_size = sizeof(struct smb_hdr); in cifs_buf_get()
188 struct smb_hdr *
191 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get()
236 header_assemble(struct smb_hdr *buffer, char smb_command /* command */ , in header_assemble()
245 (2 * word_count) + sizeof(struct smb_hdr) - in header_assemble()
285 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr()
310 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB()
317 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
[all …]
Dcifssmb.c267 header_assemble((struct smb_hdr *) *request_buf, smb_command, in small_smb_init()
281 struct smb_hdr *buffer; in small_smb_init_no_tc()
287 buffer = (struct smb_hdr *)*request_buf; in small_smb_init_no_tc()
319 header_assemble((struct smb_hdr *) *request_buf, smb_command, tcon, in __smb_init()
605 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB, in CIFSSMBNegotiate()
606 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
675 struct smb_hdr *smb_buffer; in CIFSSMBTDis()
874 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSPOSIXDelFile()
875 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXDelFile()
921 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBDelFile()
[all …]
Dcifsproto.h35 extern struct smb_hdr *cifs_buf_get(void);
37 extern struct smb_hdr *cifs_small_buf_get(void);
42 extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *,
72 extern struct mid_q_entry *AllocMidQEntry(const struct smb_hdr *smb_buffer,
82 struct smb_hdr * /* input */ ,
83 struct smb_hdr * /* out */ ,
101 struct smb_hdr *in_buf ,
102 struct smb_hdr *out_buf,
119 extern void header_assemble(struct smb_hdr *, char /* command */ ,
436 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
Dtransport.c47 AllocMidQEntry(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in AllocMidQEntry()
379 smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, in smb_send()
460 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid()
512 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_async_request()
695 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_request()
842 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive()
955 struct smb_hdr *in_buf, in send_lock_cancel()
956 struct smb_hdr *out_buf) in send_lock_cancel()
977 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceiveBlockingLock()
Dsess.c579 struct smb_hdr *smb_buf; in sess_alloc_buffer()
657 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive()
685 struct smb_hdr *smb_buf; in sess_auth_lanman()
743 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_lanman()
790 struct smb_hdr *smb_buf; in sess_auth_ntlm()
854 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlm()
900 struct smb_hdr *smb_buf; in sess_auth_ntlmv2()
962 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1009 struct smb_hdr *smb_buf; in sess_auth_kerberos()
1088 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
[all …]
Dsmb1ops.c43 struct smb_hdr *in_buf = (struct smb_hdr *)buf; in send_nt_cancel()
46 in_buf->smb_buf_length = cpu_to_be32(sizeof(struct smb_hdr) - 4 + 2); in send_nt_cancel()
100 struct smb_hdr *buf = (struct smb_hdr *)buffer; in cifs_find_mid()
248 struct smb_hdr *pSMB = (struct smb_hdr *)buf; in check2ndT2()
289 coalesce_t2(char *second_buf, struct smb_hdr *target_hdr) in coalesce_t2()
1125 .header_size = sizeof(struct smb_hdr),
Dcifsencrypt.c157 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_sign_rqst()
197 int cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server, in cifs_sign_smb()
216 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_verify_signature()
Dnetmisc.c826 struct smb_hdr *smb = (struct smb_hdr *)buf; in map_smb_to_linux_error()
904 struct smb_hdr *ptr = (struct smb_hdr *)buf; in smbCalcSize()
905 return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) + in smbCalcSize()
Dcifs_debug.c62 struct smb_hdr *smb = (struct smb_hdr *)buf; in cifs_dump_detail()
Dfile.c1101 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) { in cifs_push_mandatory_locks()
1106 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_push_mandatory_locks()
1108 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_push_mandatory_locks()
1110 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks()
1436 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) in cifs_unlock_range()
1439 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_unlock_range()
1441 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_unlock_range()
1443 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()
Dcifsglob.h699 get_mid(const struct smb_hdr *smb) in get_mid()
705 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid()
Dconnect.c3113 struct smb_hdr *smb_buf; in ip_rfc1001_connect()
3150 smb_buf = (struct smb_hdr *)ses_init_buf; in ip_rfc1001_connect()
3926 struct smb_hdr *smb_buffer; in CIFSTCon()
3927 struct smb_hdr *smb_buffer_response; in CIFSTCon()