Home
last modified time | relevance | path

Searched refs:Command (Results 1 – 19 of 19) sorted by relevance

/fs/smb/client/
Dsmb2transport.c641 is_binding = shdr->Command == SMB2_SESSION_SETUP && in smb2_sign_rqst()
672 if ((shdr->Command == SMB2_NEGOTIATE) || in smb2_verify_signature()
673 (shdr->Command == SMB2_SESSION_SETUP) || in smb2_verify_signature()
674 (shdr->Command == SMB2_OPLOCK_BREAK) || in smb2_verify_signature()
687 shdr->Command); in smb2_verify_signature()
704 shdr->Command, shdr->MessageId); in smb2_verify_signature()
744 temp->command = shdr->Command; /* Always LE */ in smb2_mid_entry_alloc()
761 le16_to_cpu(shdr->Command), temp->mid); in smb2_mid_entry_alloc()
782 shdr->Command != SMB2_NEGOTIATE) { in smb2_get_mid_entry()
790 if ((shdr->Command != SMB2_SESSION_SETUP) && in smb2_get_mid_entry()
[all …]
Dsmb2misc.c36 if (shdr->Command == SMB2_OPLOCK_BREAK) in check_smb2_hdr()
185 command = le16_to_cpu(shdr->Command); in smb2_check_message()
333 switch (shdr->Command) { in smb2_get_data_area_len()
382 cifs_dbg(VFS, "no length check for command %d\n", le16_to_cpu(shdr->Command)); in smb2_get_data_area_len()
426 if (has_smb2_data_area[le16_to_cpu(shdr->Command)] == false) in smb2_calc_size()
681 if (rsp->hdr.Command != SMB2_OPLOCK_BREAK) in smb2_is_valid_oplock_break()
840 if ((mid->optype & CIFS_CP_CREATE_CLOSE_OP) || hdr->Command != SMB2_CREATE || in smb2_handle_cancelled_mid()
850 le16_to_cpu(hdr->Command), in smb2_handle_cancelled_mid()
881 if (hdr->Command == SMB2_NEGOTIATE) in smb311_update_preauth_hash()
892 if (hdr->Command != SMB2_SESSION_SETUP) in smb311_update_preauth_hash()
Dtransport.c58 temp->command = cpu_to_le16(smb_buffer->Command); in alloc_mid()
59 cifs_dbg(FYI, "For smb_command %d\n", smb_buffer->Command); in alloc_mid()
730 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) && in allocate_mid()
731 (in_buf->Command != SMB_COM_NEGOTIATE)) { in allocate_mid()
740 if (in_buf->Command != SMB_COM_LOGOFF_ANDX) { in allocate_mid()
1579 if (in_buf->Command == SMB_COM_TRANSACTION2) { in SendReceiveBlockingLock()
Dmisc.c260 buffer->Command = smb_command; in header_assemble()
307 if (smb->Command == SMB_COM_LOCKING_ANDX) in check_smb_hdr()
415 if ((pSMB->hdr.Command == SMB_COM_NT_TRANSACT) && in is_valid_oplock_break()
447 if (pSMB->hdr.Command != SMB_COM_LOCKING_ANDX) in is_valid_oplock_break()
Dcifsencrypt.c213 if (cifs_pdu->Command == SMB_COM_LOCKING_ANDX) { in cifs_verify_signature()
226 cifs_pdu->Command); in cifs_verify_signature()
Dsmb1ops.c37 in_buf->Command = SMB_COM_NT_CANCEL; in send_nt_cancel()
99 le16_to_cpu(mid->command) == buf->Command) { in cifs_find_mid()
251 if (pSMB->Command != SMB_COM_TRANSACTION2) in check2ndT2()
Dsmb2inode.c568 if (rc == -EOPNOTSUPP && hdr->Command == SMB2_CREATE && in smb2_query_path_info()
632 ((struct smb2_hdr *)err_iov[0].iov_base)->Command == SMB2_CREATE && in smb311_posix_query_path_info()
Dsmb2maperror.c2450 le16_to_cpu(shdr->Command), in map_smb2_to_linux_error()
2477 le16_to_cpu(shdr->Command), in map_smb2_to_linux_error()
Dcifs_debug.c42 smb->Command, smb->Status.CifsError, smb->Flags, in cifs_dump_detail()
Dsmb2ops.c366 (mid->command == shdr->Command)) { in __smb2_find_mid()
399 shdr->Command, shdr->Status, shdr->Flags, shdr->MessageId, in smb2_dump_detail()
2405 le16_to_cpu(shdr->Command), in smb2_is_session_expired()
4759 if (shdr->Command != SMB2_READ) { in handle_read_data()
Dcifspdu.h385 __u8 Command; member
Dsmb2pdu.c94 shdr->Command = smb2_cmd; in smb2_hdr_assemble()
/fs/smb/server/
Dsmb2misc.c98 switch (hdr->Command) { in smb2_get_data_area_len()
217 if (hdr->Command == SMB2_LOCK) in smb2_calc_size()
220 if (has_smb2_data_area[le16_to_cpu(hdr->Command)] == false) in smb2_calc_size()
297 switch (hdr->Command) { in smb2_validate_credit_charge()
385 command = le16_to_cpu(hdr->Command); in ksmbd_smb2_check_message()
Dsmb_common.c145 hdr->Command == SMB_COM_NEGOTIATE) { in ksmbd_verify_smb_message()
326 rsp_hdr->Command = SMB_COM_NEGOTIATE; in init_smb1_rsp_hdr()
Dsmb2pdu.c90 unsigned int cmd = le16_to_cpu(req_hdr->Command); in smb2_get_ksmbd_tcon()
180 if (hdr->Command != SMB2_NEGOTIATE) in is_smb2_neg_cmd()
221 return le16_to_cpu(rcv_hdr->Command); in get_smb2_cmd_val()
261 rsp_hdr->Command = SMB2_NEGOTIATE; in init_smb2_neg_rsp()
348 if (hdr->Command == SMB2_NEGOTIATE) in smb2_set_rsp_credits()
388 if (req->Command == SMB2_CREATE && rsp->Status == STATUS_SUCCESS) { in init_chained_smb2_rsp()
421 rsp_hdr->Command = rcv_hdr->Command; in init_chained_smb2_rsp()
501 rsp_hdr->Command = rcv_hdr->Command; in init_smb2_rsp_hdr()
529 int cmd = le16_to_cpu(hdr->Command); in smb2_allocate_rsp_buf()
567 unsigned int cmd = le16_to_cpu(req_hdr->Command); in smb2_check_user_session()
[all …]
Dsmb_common.h173 __u8 Command; member
Doplock.c659 rsp_hdr->Command = SMB2_OPLOCK_BREAK; in __smb2_oplock_break_noti()
763 rsp_hdr->Command = SMB2_OPLOCK_BREAK; in __smb2_lease_break_noti()
Dtransport_rdma.c504 hdr->ProtocolId, hdr->Command); in smb_direct_check_recvmsg()
/fs/smb/common/
Dsmb2pdu.h140 __le16 Command; member
162 __le16 Command; member