Home
last modified time | relevance | path

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

/linux/fs/smb/client/
H A Dsmb2transport.c212 struct smb2_hdr *shdr = (struct smb2_hdr *)iov[0].iov_base; in smb2_calc_signature()
464 struct smb2_hdr *shdr = (struct smb2_hdr *)iov[0].iov_base; in smb3_calc_signature()
516 struct smb2_hdr *shdr; in smb2_sign_rqst()
521 shdr = (struct smb2_hdr *)rqst->rq_iov[0].iov_base; in smb2_sign_rqst()
550 struct smb2_hdr *shdr = in smb2_verify_signature()
551 (struct smb2_hdr *)rqst->rq_iov[0].iov_base; in smb2_verify_signature()
598 struct smb2_hdr *shdr) in smb2_seq_num_into_buf()
609 smb2_mid_entry_alloc(const struct smb2_hdr *shdr, in smb2_mid_entry_alloc()
649 struct smb2_hdr *shdr, struct mid_q_entry **mid) in smb2_get_mid_entry()
722 struct smb2_hdr *shdr = in smb2_setup_request()
[all …]
H A Dsmb2misc.c23 check_smb2_hdr(struct smb2_hdr *shdr, __u64 mid) in check_smb2_hdr()
85 #define SMB311_NEGPROT_BASE_SIZE (sizeof(struct smb2_hdr) + sizeof(struct smb2_negotiate_rsp))
87 static __u32 get_neg_ctxt_len(struct smb2_hdr *hdr, __u32 len, in get_neg_ctxt_len()
141 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_check_message()
143 int hdr_size = sizeof(struct smb2_hdr); in smb2_check_message()
317 smb2_get_data_area_len(int *off, int *len, struct smb2_hdr *shdr) in smb2_get_data_area_len()
417 struct smb2_hdr *shdr = &pdu->hdr; in smb2_calc_size()
848 struct smb2_hdr *hdr = mid->resp_buf; in smb2_handle_cancelled_mid()
889 struct smb2_hdr *hdr; in smb311_update_preauth_hash()
892 hdr = (struct smb2_hdr *)iov[0].iov_base; in smb311_update_preauth_hash()
H A Dsmb2maperror.c52 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in map_smb2_to_linux_error()
H A Dsmb2ops.c407 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in __smb2_find_mid()
449 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_dump_detail()
994 struct smb2_hdr *hdr = err_iov.iov_base; in smb2_is_path_accessible()
2617 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_is_status_pending()
2644 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_is_session_expired()
2662 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_is_status_io_timeout()
2673 struct smb2_hdr *shdr = (struct smb2_hdr *)buf; in smb2_is_network_name_deleted()
2723 struct smb2_hdr *shdr; in smb2_set_replay()
2728 shdr = (struct smb2_hdr *)(rqst->rq_iov[0].iov_base); in smb2_set_replay()
2739 struct smb2_hdr *shdr; in smb2_set_related()
[all …]
H A Dsmb2pdu.h22 #define SMB2_READWRITE_PDU_HEADER_SIZE (48 + sizeof(struct smb2_hdr))
H A Dsmb2inode.c819 struct smb2_hdr *hdr = out_iov[i].iov_base; in ea_unsupported()
851 struct smb2_hdr *hdr; in smb2_query_path_info()
1424 ((struct smb2_hdr *)out_iov[0].iov_base)->Status == STATUS_SUCCESS && in smb2_create_reparse_inode()
1426 ((struct smb2_hdr *)out_iov[1].iov_base)->Status != STATUS_SUCCESS)) in smb2_create_reparse_inode()
H A Dsmb2pdu.c94 smb2_hdr_assemble(struct smb2_hdr *shdr, __le16 smb2_cmd, in smb2_hdr_assemble()
545 *total_len = parmsize + sizeof(struct smb2_hdr); in fill_small_buf()
573 (struct smb2_hdr *)(*request_buf), in __smb2_plain_req_init()
1288 (struct smb2_hdr *)rsp); in SMB2_negotiate()
4520 struct smb2_hdr *shdr; in smb2_new_read_req()
4610 struct smb2_hdr *shdr = (struct smb2_hdr *)rdata->iov[0].iov_base; in smb2_readv_callback()
4761 struct smb2_hdr *shdr; in smb2_async_readv()
4797 shdr = (struct smb2_hdr *)buf; in smb2_async_readv()
5080 struct smb2_hdr *shdr; in smb2_async_writev()
5120 shdr = (struct smb2_hdr *)req; in smb2_async_writev()
H A Dsmb2file.c193 struct smb2_hdr *hdr = err_iov.iov_base; in smb2_open_file()
H A Dsmb2proto.h35 char *smb2_get_data_area_len(int *off, int *len, struct smb2_hdr *shdr);
H A Dconnect.c980 struct smb2_hdr *shdr = (struct smb2_hdr *)buffer; in smb2_get_credits_from_hdr()
1226 struct smb2_hdr *shdr = (struct smb2_hdr *)buffer; in smb2_add_credits_from_hdr()
H A Dmisc.c194 size_t buf_size = sizeof(struct smb2_hdr); in cifs_buf_get()
H A Dcifsglob.h945 const struct smb2_hdr *shdr) in revert_current_mid_from_hdr()
/linux/fs/smb/server/
H A Dsmb2misc.c13 static int check_smb2_hdr(struct smb2_hdr *hdr) in check_smb2_hdr()
85 struct smb2_hdr *hdr) in smb2_get_data_area_len()
209 struct smb2_hdr *hdr = &pdu->hdr; in smb2_calc_size()
301 struct smb2_hdr *hdr) in smb2_validate_credit_charge()
370 struct smb2_hdr *hdr = &pdu->hdr; in ksmbd_smb2_check_message()
H A Dsmb_common.c161 struct smb2_hdr *smb2_hdr = ksmbd_req_buf_next(work); in ksmbd_verify_smb_message() local
164 if (smb2_hdr->ProtocolId == SMB2_PROTO_NUMBER) in ksmbd_verify_smb_message()
286 __le32 proto = ((struct smb2_hdr *)smb_get_msg(buf))->ProtocolId; in ksmbd_negotiate_smb_dialect()
H A Dsmb2pdu.c101 struct smb2_hdr *req_hdr = ksmbd_req_buf_next(work); in smb2_get_ksmbd_tcon()
184 struct smb2_hdr *hdr = smb_get_msg(work->request_buf); in is_smb2_neg_cmd()
208 struct smb2_hdr *hdr = smb_get_msg(work->response_buf); in is_smb2_rsp()
229 struct smb2_hdr *rcv_hdr; in get_smb2_cmd_val()
245 struct smb2_hdr *rsp_hdr; in set_smb2_rsp_status()
265 struct smb2_hdr *rsp_hdr; in init_smb2_neg_rsp()
271 memset(rsp_hdr, 0, sizeof(struct smb2_hdr) + 2); in init_smb2_neg_rsp()
326 struct smb2_hdr *req_hdr = ksmbd_req_buf_next(work); in smb2_set_rsp_credits()
327 struct smb2_hdr *hdr = ksmbd_resp_buf_next(work); in smb2_set_rsp_credits()
388 struct smb2_hdr *req = ksmbd_req_buf_next(work); in init_chained_smb2_rsp()
[all …]
H A Doplock.c644 struct smb2_hdr *rsp_hdr; in __smb2_oplock_break_noti()
658 memset(rsp_hdr, 0, sizeof(struct smb2_hdr) + 2); in __smb2_oplock_break_noti()
757 struct smb2_hdr *rsp_hdr; in __smb2_lease_break_noti()
765 memset(rsp_hdr, 0, sizeof(struct smb2_hdr) + 2); in __smb2_lease_break_noti()
H A Dconnection.c537 if (((struct smb2_hdr *)smb_get_msg(conn->request_buf))->ProtocolId == in ksmbd_conn_handler_loop()
H A Dauth.c676 struct smb2_hdr *rcv_hdr = smb_get_msg(buf); in ksmbd_gen_preauth_integrity_hash()