Home
last modified time | relevance | path

Searched refs:smb2_hdr (Results 1 – 20 of 20) sorted by relevance

/linux-6.1.9/fs/smbfs_common/
Dsmb2pdu.h135 struct smb2_hdr { struct
157 struct smb2_hdr hdr; argument
165 struct smb2_hdr hdr;
306 struct smb2_hdr hdr;
351 struct smb2_hdr hdr;
361 struct smb2_hdr hdr;
367 struct smb2_hdr hdr;
568 struct smb2_hdr hdr;
583 struct smb2_hdr hdr;
610 struct smb2_hdr hdr;
[all …]
/linux-6.1.9/fs/cifs/
Dsmb2transport.c221 struct smb2_hdr *shdr = (struct smb2_hdr *)iov[0].iov_base; in smb2_calc_signature()
542 struct smb2_hdr *shdr = (struct smb2_hdr *)iov[0].iov_base; in smb3_calc_signature()
616 struct smb2_hdr *shdr; in smb2_sign_rqst()
621 shdr = (struct smb2_hdr *)rqst->rq_iov[0].iov_base; in smb2_sign_rqst()
652 struct smb2_hdr *shdr = in smb2_verify_signature()
653 (struct smb2_hdr *)rqst->rq_iov[0].iov_base; in smb2_verify_signature()
699 struct smb2_hdr *shdr) in smb2_seq_num_into_buf()
710 smb2_mid_entry_alloc(const struct smb2_hdr *shdr, in smb2_mid_entry_alloc()
750 struct smb2_hdr *shdr, struct mid_q_entry **mid) in smb2_get_mid_entry()
831 struct smb2_hdr *shdr = in smb2_setup_request()
[all …]
Dsmb2misc.c22 check_smb2_hdr(struct smb2_hdr *shdr, __u64 mid) in check_smb2_hdr()
84 #define SMB311_NEGPROT_BASE_SIZE (sizeof(struct smb2_hdr) + sizeof(struct smb2_negotiate_rsp))
86 static __u32 get_neg_ctxt_len(struct smb2_hdr *hdr, __u32 len, in get_neg_ctxt_len()
139 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_check_message()
141 int hdr_size = sizeof(struct smb2_hdr); in smb2_check_message()
314 smb2_get_data_area_len(int *off, int *len, struct smb2_hdr *shdr) in smb2_get_data_area_len()
420 struct smb2_hdr *shdr = &pdu->hdr; in smb2_calc_size()
841 struct smb2_hdr *hdr = mid->resp_buf; in smb2_handle_cancelled_mid()
882 struct smb2_hdr *hdr; in smb311_update_preauth_hash()
885 hdr = (struct smb2_hdr *)iov[0].iov_base; in smb311_update_preauth_hash()
Dsmb2ops.c342 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in __smb2_find_mid()
384 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_dump_detail()
829 struct smb2_hdr *hdr = err_iov.iov_base; in smb2_is_path_accessible()
2273 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_is_status_pending()
2300 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_is_session_expired()
2318 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_is_status_io_timeout()
2329 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_is_network_name_deleted()
2373 struct smb2_hdr *shdr; in smb2_set_related()
2375 shdr = (struct smb2_hdr *)(rqst->rq_iov[0].iov_base); in smb2_set_related()
2388 struct smb2_hdr *shdr; in smb2_set_next_command()
[all …]
Dsmb2inode.c544 struct smb2_hdr *hdr = err_iov[0].iov_base; in smb2_query_path_info()
615 ((struct smb2_hdr *)err_iov[0].iov_base)->Command == SMB2_CREATE && in smb311_posix_query_path_info()
616 ((struct smb2_hdr *)err_iov[0].iov_base)->Status == STATUS_STOPPED_ON_SYMLINK) { in smb311_posix_query_path_info()
Dsmb2pdu.h22 #define SMB2_READWRITE_PDU_HEADER_SIZE (48 + sizeof(struct smb2_hdr))
Dsmb2pdu.c87 smb2_hdr_assemble(struct smb2_hdr *shdr, __le16 smb2_cmd, in smb2_hdr_assemble()
371 *total_len = parmsize + sizeof(struct smb2_hdr); in fill_small_buf()
394 (struct smb2_hdr *)(*request_buf), in __smb2_plain_req_init()
1057 (struct smb2_hdr *)rsp); in SMB2_negotiate()
4068 struct smb2_hdr *shdr; in smb2_new_read_req()
4162 struct smb2_hdr *shdr = in smb2_readv_callback()
4163 (struct smb2_hdr *)rdata->iov[0].iov_base; in smb2_readv_callback()
4252 struct smb2_hdr *shdr; in smb2_async_readv()
4285 shdr = (struct smb2_hdr *)buf; in smb2_async_readv()
4492 struct smb2_hdr *shdr; in smb2_async_writev()
[all …]
Dsmb2file.c122 struct smb2_hdr *hdr = err_iov.iov_base; in smb2_open_file()
Dsmb2proto.h28 struct smb2_hdr *shdr);
Dsmb2maperror.c2442 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in map_smb2_to_linux_error()
Dconnect.c866 struct smb2_hdr *shdr = (struct smb2_hdr *)buffer; in smb2_get_credits_from_hdr()
1115 struct smb2_hdr *shdr = (struct smb2_hdr *)buffer; in smb2_add_credits_from_hdr()
Dmisc.c162 size_t buf_size = sizeof(struct smb2_hdr); in cifs_buf_get()
Dcifsglob.h863 const struct smb2_hdr *shdr) in revert_current_mid_from_hdr()
/linux-6.1.9/fs/ksmbd/
Dsmb2misc.c14 static int check_smb2_hdr(struct smb2_hdr *hdr) in check_smb2_hdr()
86 struct smb2_hdr *hdr) in smb2_get_data_area_len()
193 struct smb2_hdr *hdr = &pdu->hdr; in smb2_calc_size()
285 struct smb2_hdr *hdr) in smb2_validate_credit_charge()
354 struct smb2_hdr *hdr = &pdu->hdr; in ksmbd_smb2_check_message()
Dsmb_common.c137 struct smb2_hdr *smb2_hdr = ksmbd_req_buf_next(work); in ksmbd_verify_smb_message() local
140 if (smb2_hdr->ProtocolId == SMB2_PROTO_NUMBER) in ksmbd_verify_smb_message()
246 __le32 proto = ((struct smb2_hdr *)smb2_get_msg(buf))->ProtocolId; in ksmbd_negotiate_smb_dialect()
460 struct smb2_hdr *smb2_hdr = smb2_get_msg(work->request_buf); in ksmbd_smb_negotiate_common() local
462 if (smb2_hdr->ProtocolId != SMB2_PROTO_NUMBER) { in ksmbd_smb_negotiate_common()
Dsmb2ops.c27 .header_size = sizeof(struct smb2_hdr),
53 .header_size = sizeof(struct smb2_hdr),
80 .header_size = sizeof(struct smb2_hdr),
107 .header_size = sizeof(struct smb2_hdr),
Dsmb2pdu.c96 struct smb2_hdr *req_hdr = smb2_get_msg(work->request_buf); in smb2_get_ksmbd_tcon()
154 struct smb2_hdr *hdr = smb2_get_msg(work->request_buf); in is_smb2_neg_cmd()
178 struct smb2_hdr *hdr = smb2_get_msg(work->response_buf); in is_smb2_rsp()
199 struct smb2_hdr *rcv_hdr; in get_smb2_cmd_val()
215 struct smb2_hdr *rsp_hdr; in set_smb2_rsp_status()
234 struct smb2_hdr *rsp_hdr; in init_smb2_neg_rsp()
245 memset(rsp_hdr, 0, sizeof(struct smb2_hdr) + 2); in init_smb2_neg_rsp()
283 sizeof(struct smb2_hdr) - sizeof(rsp->Buffer) + in init_smb2_neg_rsp()
300 struct smb2_hdr *req_hdr = ksmbd_req_buf_next(work); in smb2_set_rsp_credits()
301 struct smb2_hdr *hdr = ksmbd_resp_buf_next(work); in smb2_set_rsp_credits()
[all …]
Doplock.c615 struct smb2_hdr *rsp_hdr; in __smb2_oplock_break_noti()
629 memset(rsp_hdr, 0, sizeof(struct smb2_hdr) + 2); in __smb2_oplock_break_noti()
734 struct smb2_hdr *rsp_hdr; in __smb2_lease_break_noti()
742 memset(rsp_hdr, 0, sizeof(struct smb2_hdr) + 2); in __smb2_lease_break_noti()
Dtransport_rdma.c497 struct smb2_hdr *hdr = (struct smb2_hdr *)(recvmsg->packet in smb_direct_check_recvmsg()
Dauth.c914 struct smb2_hdr *rcv_hdr = smb2_get_msg(buf); in ksmbd_gen_preauth_integrity_hash()