Home
last modified time | relevance | path

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

/linux/fs/cifs/
A Dcifspdu.h392 struct smb_hdr { struct
426 BCC(struct smb_hdr *smb) in BCC()
436 get_bcc(struct smb_hdr *hdr) in get_bcc()
496 struct smb_hdr hdr; /* wct = 0 */
700 struct smb_hdr hdr; /* wct = 4 */
766 struct smb_hdr hdr;
773 struct smb_hdr hdr;
780 struct smb_hdr hdr; /* wct = 2 */
1563 struct smb_hdr hdr;
1587 struct smb_hdr hdr;
[all …]
A Dcifssmb.c275 struct smb_hdr *buffer; in small_smb_init_no_tc()
281 buffer = (struct smb_hdr *)*request_buf; in small_smb_init_no_tc()
522 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBNegotiate()
588 struct smb_hdr *smb_buffer; in CIFSSMBTDis()
1168 (struct smb_hdr *)pSMBr, &bytes_returned, 0); in SMBLegacyOpen()
1292 (struct smb_hdr *)rsp, &bytes_returned, 0); in CIFS_open()
2377 (struct smb_hdr *) pSMB, &bytes_returned); in CIFSSMBLock()
2464 (struct smb_hdr *) pSMBr, &bytes_returned); in CIFSSMBPosixLock()
2775 (struct smb_hdr *) pSMBr, &bytes_returned, 0); in CIFSSMBCopy()
5604 offsetof(struct smb_hdr, Protocol) + offset; in CIFSSMBSetFileInfo()
[all …]
A Dmisc.c146 struct smb_hdr *
149 struct smb_hdr *ret_buf = NULL; in cifs_buf_get()
188 struct smb_hdr *
191 struct smb_hdr *ret_buf = NULL; in cifs_small_buf_get()
243 (2 * word_count) + sizeof(struct smb_hdr) - in header_assemble()
284 check_smb_hdr(struct smb_hdr *smb) in check_smb_hdr()
309 struct smb_hdr *smb = (struct smb_hdr *)buf; in checkSMB()
316 if (total_read < 2 + sizeof(struct smb_hdr)) { in checkSMB()
328 if (tmp[sizeof(struct smb_hdr)] == 0) { in checkSMB()
336 tmp[sizeof(struct smb_hdr)+1] = 0; in checkSMB()
[all …]
A Dcifsproto.h26 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 */ ,
500 extern int cifs_sign_smb(struct smb_hdr *, struct TCP_Server_Info *, __u32 *);
A Dtransport.c41 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()
1335 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceive()
1450 struct smb_hdr *in_buf, in send_lock_cancel()
1451 struct smb_hdr *out_buf) in send_lock_cancel()
1472 struct smb_hdr *in_buf, struct smb_hdr *out_buf, in SendReceiveBlockingLock()
A Dsess.c935 struct smb_hdr *smb_buf; in sess_alloc_buffer()
1013 struct smb_hdr *smb_buf = (struct smb_hdr *) sess_data->iov[0].iov_base; in sess_sendreceive()
1035 struct smb_hdr *smb_buf; in sess_auth_ntlmv2()
1097 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_ntlmv2()
1144 struct smb_hdr *smb_buf; in sess_auth_kerberos()
1222 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_kerberos()
1324 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_negotiate()
1370 smb_buf = (struct smb_hdr *)sess_data->iov[0].iov_base; in sess_auth_rawntlmssp_negotiate()
1426 struct smb_hdr *smb_buf; in sess_auth_rawntlmssp_authenticate()
1443 smb_buf = (struct smb_hdr *)pSMB; in sess_auth_rawntlmssp_authenticate()
[all …]
A Dsmb1ops.c32 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),
A Dcifsencrypt.c135 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()
A Dnetmisc.c812 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()
A Dcifs_debug.c39 struct smb_hdr *smb = (struct smb_hdr *)buf; in cifs_dump_detail()
A Dfile.c1272 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()
A Dcifsglob.h814 get_mid(const struct smb_hdr *smb) in get_mid()
820 compare_mid(__u16 mid, const struct smb_hdr *smb) in compare_mid()
A Dconnect.c2615 struct smb_hdr *smb_buf; in ip_rfc1001_connect()
2651 smb_buf = (struct smb_hdr *)ses_init_buf; in ip_rfc1001_connect()
3641 struct smb_hdr *smb_buffer; in CIFSTCon()
3642 struct smb_hdr *smb_buffer_response; in CIFSTCon()
/linux/fs/ksmbd/
A Dsmb_common.h163 struct smb_hdr { struct
194 struct smb_hdr hdr; /* wct = 0 */ argument
200 struct smb_hdr hdr; /* wct = 17 */
A Dsmb_common.c136 struct smb_hdr *hdr; in ksmbd_verify_smb_message()
261 proto = *(__le32 *)((struct smb_hdr *)buf)->Protocol; in ksmbd_negotiate_smb_dialect()
A Dserver.c94 struct smb_hdr *rsp_hdr; in check_conn_state()

Completed in 75 milliseconds