Home
last modified time | relevance | path

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

/fs/cifs/
Dsmb2transport.c623 is_binding = shdr->Command == SMB2_SESSION_SETUP && in smb2_sign_rqst()
649 if ((shdr->Command == SMB2_NEGOTIATE) || in smb2_verify_signature()
650 (shdr->Command == SMB2_SESSION_SETUP) || in smb2_verify_signature()
651 (shdr->Command == SMB2_OPLOCK_BREAK) || in smb2_verify_signature()
664 shdr->Command); in smb2_verify_signature()
681 shdr->Command, shdr->MessageId); in smb2_verify_signature()
721 temp->command = shdr->Command; /* Always LE */ in smb2_mid_entry_alloc()
737 le16_to_cpu(shdr->Command), temp->mid); in smb2_mid_entry_alloc()
754 shdr->Command != SMB2_NEGOTIATE) in smb2_get_mid_entry()
758 if ((shdr->Command != SMB2_SESSION_SETUP) && in smb2_get_mid_entry()
[all …]
Dsmb2misc.c36 if (shdr->Command == SMB2_OPLOCK_BREAK) in check_smb2_hdr()
199 command = le16_to_cpu(shdr->Command); in smb2_check_message()
225 if (shdr->Command == SMB2_NEGOTIATE) in smb2_check_message()
318 switch (shdr->Command) { in smb2_get_data_area_len()
367 cifs_dbg(VFS, "no length check for command %d\n", le16_to_cpu(shdr->Command)); in smb2_get_data_area_len()
411 if (has_smb2_data_area[le16_to_cpu(shdr->Command)] == false) in smb2_calc_size()
666 if (rsp->sync_hdr.Command != SMB2_OPLOCK_BREAK) in smb2_is_valid_oplock_break()
818 if ((mid->optype & CIFS_CP_CREATE_CLOSE_OP) || sync_hdr->Command != SMB2_CREATE || in smb2_handle_cancelled_mid()
828 le16_to_cpu(sync_hdr->Command), in smb2_handle_cancelled_mid()
858 if (hdr->Command == SMB2_NEGOTIATE) in smb311_update_preauth_hash()
[all …]
Dtransport.c55 temp->command = cpu_to_le16(smb_buffer->Command); in AllocMidQEntry()
56 cifs_dbg(FYI, "For smb_command %d\n", smb_buffer->Command); in AllocMidQEntry()
737 if ((in_buf->Command != SMB_COM_SESSION_SETUP_ANDX) && in allocate_mid()
738 (in_buf->Command != SMB_COM_NEGOTIATE)) in allocate_mid()
745 if (in_buf->Command != SMB_COM_LOGOFF_ANDX) in allocate_mid()
1554 if (in_buf->Command == SMB_COM_TRANSACTION2) { in SendReceiveBlockingLock()
Dmisc.c250 buffer->Command = smb_command; in header_assemble()
297 if (smb->Command == SMB_COM_LOCKING_ANDX) in check_smb_hdr()
405 if ((pSMB->hdr.Command == SMB_COM_NT_TRANSACT) && in is_valid_oplock_break()
437 if (pSMB->hdr.Command != SMB_COM_LOCKING_ANDX) in is_valid_oplock_break()
Dcifsencrypt.c212 if (cifs_pdu->Command == SMB_COM_LOCKING_ANDX) { in cifs_verify_signature()
225 cifs_pdu->Command); in cifs_verify_signature()
Dsmb1ops.c36 in_buf->Command = SMB_COM_NT_CANCEL; in send_nt_cancel()
98 le16_to_cpu(mid->command) == buf->Command) { in cifs_find_mid()
245 if (pSMB->Command != SMB_COM_TRANSACTION2) in check2ndT2()
Dsmb2maperror.c2449 le16_to_cpu(shdr->Command), le64_to_cpu(shdr->MessageId)); in map_smb2_to_linux_error()
2474 le16_to_cpu(shdr->Command), in map_smb2_to_linux_error()
Dcifs_debug.c42 smb->Command, smb->Status.CifsError, in cifs_dump_detail()
Dsmb2pdu.h99 __le16 Command; member
Dsmb2ops.c341 (mid->command == shdr->Command)) { in __smb2_find_mid()
374 shdr->Command, shdr->Status, shdr->Flags, shdr->MessageId, in smb2_dump_detail()
2523 le16_to_cpu(shdr->Command), in smb2_is_session_expired()
4825 if (shdr->Command != SMB2_READ) { in handle_read_data()
Dcifspdu.h397 __u8 Command; member
Dsmb2pdu.c93 shdr->Command = smb2_cmd; in smb2_hdr_assemble()
/fs/ksmbd/
Dsmb2misc.c99 switch (hdr->Command) { in smb2_get_data_area_len()
218 if (hdr->Command == SMB2_LOCK) in smb2_calc_size()
221 if (has_smb2_data_area[le16_to_cpu(hdr->Command)] == false) in smb2_calc_size()
298 switch (hdr->Command) { in smb2_validate_credit_charge()
386 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.c91 unsigned int cmd = le16_to_cpu(req_hdr->Command); in smb2_get_ksmbd_tcon()
181 if (hdr->Command != SMB2_NEGOTIATE) in is_smb2_neg_cmd()
222 return le16_to_cpu(rcv_hdr->Command); in get_smb2_cmd_val()
262 rsp_hdr->Command = SMB2_NEGOTIATE; in init_smb2_neg_rsp()
350 if (hdr->Command == SMB2_NEGOTIATE) in smb2_set_rsp_credits()
390 if (req->Command == SMB2_CREATE && rsp->Status == STATUS_SUCCESS) { in init_chained_smb2_rsp()
423 rsp_hdr->Command = rcv_hdr->Command; in init_chained_smb2_rsp()
503 rsp_hdr->Command = rcv_hdr->Command; in init_smb2_rsp_hdr()
531 int cmd = le16_to_cpu(hdr->Command); in smb2_allocate_rsp_buf()
569 unsigned int cmd = le16_to_cpu(req_hdr->Command); in smb2_check_user_session()
[all …]
Dsmb_common.h220 __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()
Dsmb2pdu.h139 __le16 Command; member
Dtransport_rdma.c504 hdr->ProtocolId, hdr->Command); in smb_direct_check_recvmsg()