Home
last modified time | relevance | path

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

/Linux-v5.4/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.c155 struct smb_hdr *
158 struct smb_hdr *ret_buf = NULL; in cifs_buf_get()
197 struct smb_hdr *
200 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get()
243 header_assemble(struct smb_hdr *buffer, char smb_command /* command */ , in header_assemble()
252 (2 * word_count) + sizeof(struct smb_hdr) - in header_assemble()
292 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr()
317 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB()
324 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
325 if ((total_read >= sizeof(struct smb_hdr) - 1) in checkSMB()
[all …]
Dcifssmb.c367 header_assemble((struct smb_hdr *) *request_buf, smb_command, in small_smb_init()
381 struct smb_hdr *buffer; in small_smb_init_no_tc()
387 buffer = (struct smb_hdr *)*request_buf; in small_smb_init_no_tc()
419 header_assemble((struct smb_hdr *) *request_buf, smb_command, tcon, in __smb_init()
708 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB, in CIFSSMBNegotiate()
709 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
778 struct smb_hdr *smb_buffer; in CIFSSMBTDis()
979 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSPOSIXDelFile()
980 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXDelFile()
1024 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBDelFile()
[all …]
Dcifsproto.h39 extern struct smb_hdr *cifs_buf_get(void);
41 extern struct smb_hdr *cifs_small_buf_get(void);
44 extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *,
84 extern struct mid_q_entry *AllocMidQEntry(const struct smb_hdr *smb_buffer,
106 struct smb_hdr * /* input */ ,
107 struct smb_hdr * /* out */ ,
126 struct smb_hdr *in_buf ,
127 struct smb_hdr *out_buf,
151 extern void header_assemble(struct smb_hdr *, char /* command */ ,
472 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
Dsess.c587 struct smb_hdr *smb_buf; in sess_alloc_buffer()
665 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive()
696 struct smb_hdr *smb_buf; in sess_auth_lanman()
755 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_lanman()
802 struct smb_hdr *smb_buf; in sess_auth_ntlm()
866 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlm()
912 struct smb_hdr *smb_buf; in sess_auth_ntlmv2()
974 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1021 struct smb_hdr *smb_buf; in sess_auth_kerberos()
1100 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
[all …]
Dtransport.c54 AllocMidQEntry(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in AllocMidQEntry()
493 smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, in smb_send()
668 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid()
720 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_async_request()
933 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_request()
1244 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive()
1359 struct smb_hdr *in_buf, in send_lock_cancel()
1360 struct smb_hdr *out_buf) in send_lock_cancel()
1381 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceiveBlockingLock()
Dsmb1ops.c31 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_nt_cancel()
34 in_buf->smb_buf_length = cpu_to_be32(sizeof(struct smb_hdr) - 4 + 2); in send_nt_cancel()
90 struct smb_hdr *buf = (struct smb_hdr *)buffer; in cifs_find_mid()
239 struct smb_hdr *pSMB = (struct smb_hdr *)buf; in check2ndT2()
280 coalesce_t2(char *second_buf, struct smb_hdr *target_hdr) in coalesce_t2()
1243 .header_size = sizeof(struct smb_hdr),
Dcifsencrypt.c148 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_sign_rqst()
192 int cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server, in cifs_sign_smb()
213 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_verify_signature()
Dnetmisc.c813 struct smb_hdr *smb = (struct smb_hdr *)buf; in map_smb_to_linux_error()
891 struct smb_hdr *ptr = (struct smb_hdr *)buf; in smbCalcSize()
892 return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) + in smbCalcSize()
Dcifs_debug.c38 struct smb_hdr *smb = (struct smb_hdr *)buf; in cifs_dump_detail()
Dfile.c1175 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) { in cifs_push_mandatory_locks()
1180 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_push_mandatory_locks()
1182 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_push_mandatory_locks()
1184 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks()
1519 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) in cifs_unlock_range()
1522 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_unlock_range()
1524 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_unlock_range()
1526 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()
Dcifsglob.h862 get_mid(const struct smb_hdr *smb) in get_mid()
868 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid()
Dconnect.c3756 struct smb_hdr *smb_buf; in ip_rfc1001_connect()
3792 smb_buf = (struct smb_hdr *)ses_init_buf; in ip_rfc1001_connect()
4948 struct smb_hdr *smb_buffer; in CIFSTCon()
4949 struct smb_hdr *smb_buffer_response; in CIFSTCon()