/Linux-v5.15/fs/cifs/ |
D | cifspdu.h | 392 struct smb_hdr { struct 426 BCC(struct smb_hdr *smb) in BCC() 436 get_bcc(struct smb_hdr *hdr) in get_bcc() 445 put_bcc(__u16 count, struct smb_hdr *hdr) in put_bcc() 496 struct smb_hdr hdr; /* wct = 0 */ 508 struct smb_hdr hdr; /* wct = 17 */ 564 struct smb_hdr hdr; /* wct = 12 */ 583 struct smb_hdr hdr; /* wct = 13 */ 606 struct smb_hdr hdr; /* wct = 4 */ 621 struct smb_hdr hdr; /* wct = 10 */ [all …]
|
D | cifssmb.c | 261 header_assemble((struct smb_hdr *) *request_buf, smb_command, in small_smb_init() 275 struct smb_hdr *buffer; in small_smb_init_no_tc() 281 buffer = (struct smb_hdr *)*request_buf; in small_smb_init_no_tc() 313 header_assemble((struct smb_hdr *) *request_buf, smb_command, tcon, in __smb_init() 521 rc = SendReceive(xid, ses, (struct smb_hdr *) pSMB, in CIFSSMBNegotiate() 522 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate() 588 struct smb_hdr *smb_buffer; in CIFSSMBTDis() 792 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSPOSIXDelFile() 793 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSPOSIXDelFile() 837 rc = SendReceive(xid, tcon->ses, (struct smb_hdr *) pSMB, in CIFSSMBDelFile() [all …]
|
D | misc.c | 147 struct smb_hdr * 150 struct smb_hdr *ret_buf = NULL; in cifs_buf_get() 189 struct smb_hdr * 192 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get() 235 header_assemble(struct smb_hdr *buffer, char smb_command /* command */ , in header_assemble() 244 (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() 318 if ((total_read >= sizeof(struct smb_hdr) - 1) in checkSMB() [all …]
|
D | cifsproto.h | 26 extern struct smb_hdr *cifs_buf_get(void); 28 extern struct smb_hdr *cifs_small_buf_get(void); 31 extern int smb_send(struct TCP_Server_Info *, struct smb_hdr *, 82 extern struct mid_q_entry *AllocMidQEntry(const struct smb_hdr *smb_buffer, 110 struct smb_hdr * /* input */ , 111 struct smb_hdr * /* out */ , 131 struct smb_hdr *in_buf , 132 struct smb_hdr *out_buf, 158 extern void header_assemble(struct smb_hdr *, char /* command */ , 499 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
|
D | transport.c | 41 AllocMidQEntry(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server) in AllocMidQEntry() 495 smb_send(struct TCP_Server_Info *server, struct smb_hdr *smb_buffer, in smb_send() 723 static int allocate_mid(struct cifs_ses *ses, struct smb_hdr *in_buf, in allocate_mid() 775 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_async_request() 989 struct smb_hdr *hdr = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_setup_request() 1332 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive() 1447 struct smb_hdr *in_buf, in send_lock_cancel() 1448 struct smb_hdr *out_buf) in send_lock_cancel() 1469 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceiveBlockingLock()
|
D | sess.c | 839 struct smb_hdr *smb_buf; in sess_alloc_buffer() 917 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive() 939 struct smb_hdr *smb_buf; in sess_auth_ntlmv2() 1001 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2() 1048 struct smb_hdr *smb_buf; in sess_auth_kerberos() 1126 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos() 1228 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_negotiate() 1268 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate() 1324 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_authenticate() 1341 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate() [all …]
|
D | smb1ops.c | 32 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_nt_cancel() 35 in_buf->smb_buf_length = cpu_to_be32(sizeof(struct smb_hdr) - 4 + 2); in send_nt_cancel() 91 struct smb_hdr *buf = (struct smb_hdr *)buffer; in cifs_find_mid() 240 struct smb_hdr *pSMB = (struct smb_hdr *)buf; in check2ndT2() 281 coalesce_t2(char *second_buf, struct smb_hdr *target_hdr) in coalesce_t2() 1239 .header_size = sizeof(struct smb_hdr),
|
D | cifsencrypt.c | 135 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_sign_rqst() 179 int cifs_sign_smb(struct smb_hdr *cifs_pdu, struct TCP_Server_Info *server, in cifs_sign_smb() 200 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_verify_signature()
|
D | netmisc.c | 812 struct smb_hdr *smb = (struct smb_hdr *)buf; in map_smb_to_linux_error() 887 struct smb_hdr *smb = (struct smb_hdr *)mid->resp_buf; in map_and_check_smb_error() 917 struct smb_hdr *ptr = (struct smb_hdr *)buf; in smbCalcSize() 918 return (sizeof(struct smb_hdr) + (2 * ptr->WordCount) + in smbCalcSize()
|
D | cifs_debug.c | 39 struct smb_hdr *smb = (struct smb_hdr *)buf; in cifs_dump_detail()
|
D | file.c | 1272 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) { in cifs_push_mandatory_locks() 1277 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_push_mandatory_locks() 1279 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_push_mandatory_locks() 1281 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_push_mandatory_locks() 1616 if (max_buf < (sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE))) in cifs_unlock_range() 1619 BUILD_BUG_ON(sizeof(struct smb_hdr) + sizeof(LOCKING_ANDX_RANGE) > in cifs_unlock_range() 1621 max_buf = min_t(unsigned int, max_buf - sizeof(struct smb_hdr), in cifs_unlock_range() 1623 max_num = (max_buf - sizeof(struct smb_hdr)) / in cifs_unlock_range()
|
D | cifsglob.h | 787 get_mid(const struct smb_hdr *smb) in get_mid() 793 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid()
|
D | connect.c | 2501 struct smb_hdr *smb_buf; in ip_rfc1001_connect() 2537 smb_buf = (struct smb_hdr *)ses_init_buf; in ip_rfc1001_connect() 3661 struct smb_hdr *smb_buffer; in CIFSTCon() 3662 struct smb_hdr *smb_buffer_response; in CIFSTCon()
|
/Linux-v5.15/fs/ksmbd/ |
D | smb_common.h | 210 struct smb_hdr { struct 241 struct smb_hdr hdr; /* wct = 0 */ argument 247 struct smb_hdr hdr; /* wct = 17 */
|
D | smb_common.c | 136 struct smb_hdr *hdr; in ksmbd_verify_smb_message() 261 proto = *(__le32 *)((struct smb_hdr *)buf)->Protocol; in ksmbd_negotiate_smb_dialect()
|
D | connection.c | 161 struct smb_hdr *rsp_hdr = work->response_buf; in ksmbd_conn_write()
|
D | server.c | 94 struct smb_hdr *rsp_hdr; in check_conn_state()
|