Home
last modified time | relevance | path

Searched refs:rqst (Results 1 – 21 of 21) sorted by relevance

/fs/cifs/
Dsmb2inode.c28 free_set_inf_compound(struct smb_rqst *rqst) in free_set_inf_compound() argument
30 if (rqst[1].rq_iov) in free_set_inf_compound()
31 SMB2_set_info_free(&rqst[1]); in free_set_inf_compound()
32 if (rqst[2].rq_iov) in free_set_inf_compound()
33 SMB2_close_free(&rqst[2]); in free_set_inf_compound()
40 struct smb_rqst rqst[3]; member
58 struct smb_rqst *rqst; in smb2_compound_op() local
77 rqst = &vars->rqst[0]; in smb2_compound_op()
107 rqst[num_rqst].rq_iov = &vars->open_iov[0]; in smb2_compound_op()
108 rqst[num_rqst].rq_nvec = SMB2_CREATE_IOV_SIZE; in smb2_compound_op()
[all …]
Dtransport.c255 smb_rqst_len(struct TCP_Server_Info *server, struct smb_rqst *rqst) in smb_rqst_len() argument
263 rqst->rq_nvec >= 2 && rqst->rq_iov[0].iov_len == 4) { in smb_rqst_len()
264 iov = &rqst->rq_iov[1]; in smb_rqst_len()
265 nvec = rqst->rq_nvec - 1; in smb_rqst_len()
267 iov = rqst->rq_iov; in smb_rqst_len()
268 nvec = rqst->rq_nvec; in smb_rqst_len()
281 if (rqst->rq_npages) { in smb_rqst_len()
282 if (rqst->rq_npages == 1) in smb_rqst_len()
283 buflen += rqst->rq_tailsz; in smb_rqst_len()
289 buflen += rqst->rq_pagesz * (rqst->rq_npages - 1) - in smb_rqst_len()
[all …]
Dsmb2pdu.c847 struct smb_rqst rqst; in SMB2_negotiate() local
927 memset(&rqst, 0, sizeof(struct smb_rqst)); in SMB2_negotiate()
928 rqst.rq_iov = iov; in SMB2_negotiate()
929 rqst.rq_nvec = 1; in SMB2_negotiate()
932 &rqst, &resp_buftype, flags, &rsp_iov); in SMB2_negotiate()
1324 struct smb_rqst rqst; in SMB2_sess_sendreceive() local
1333 memset(&rqst, 0, sizeof(struct smb_rqst)); in SMB2_sess_sendreceive()
1334 rqst.rq_iov = sess_data->iov; in SMB2_sess_sendreceive()
1335 rqst.rq_nvec = 2; in SMB2_sess_sendreceive()
1340 &rqst, in SMB2_sess_sendreceive()
[all …]
Dsmb2proto.h37 struct smb_rqst *rqst);
39 struct TCP_Server_Info *server, struct smb_rqst *rqst);
44 extern int smb2_calc_signature(struct smb_rqst *rqst,
47 extern int smb3_calc_signature(struct smb_rqst *rqst,
117 struct smb_rqst *rqst);
119 struct smb_rqst *rqst);
120 extern void smb2_set_related(struct smb_rqst *rqst);
141 struct smb_rqst *rqst,
144 extern void SMB2_open_free(struct smb_rqst *rqst);
151 struct smb_rqst *rqst,
[all …]
Dsmb2ops.c754 struct smb_rqst rqst[2]; in open_cached_dir() local
805 memset(rqst, 0, sizeof(rqst)); in open_cached_dir()
811 rqst[0].rq_iov = open_iov; in open_cached_dir()
812 rqst[0].rq_nvec = SMB2_CREATE_IOV_SIZE; in open_cached_dir()
822 &rqst[0], &oplock, &oparms, &utf16_path); in open_cached_dir()
825 smb2_set_next_command(tcon, &rqst[0]); in open_cached_dir()
828 rqst[1].rq_iov = qi_iov; in open_cached_dir()
829 rqst[1].rq_nvec = 1; in open_cached_dir()
832 &rqst[1], COMPOUND_FID, in open_cached_dir()
840 smb2_set_related(&rqst[1]); in open_cached_dir()
[all …]
Dcifsencrypt.c27 int __cifs_calc_signature(struct smb_rqst *rqst, in __cifs_calc_signature() argument
33 struct kvec *iov = rqst->rq_iov; in __cifs_calc_signature()
34 int n_vec = rqst->rq_nvec; in __cifs_calc_signature()
66 for (i = 0; i < rqst->rq_npages; i++) { in __cifs_calc_signature()
70 rqst_page_get_length(rqst, i, &len, &offset); in __cifs_calc_signature()
72 kaddr = (char *) kmap(rqst->rq_pages[i]) + offset; in __cifs_calc_signature()
78 kunmap(rqst->rq_pages[i]); in __cifs_calc_signature()
82 kunmap(rqst->rq_pages[i]); in __cifs_calc_signature()
99 static int cifs_calc_signature(struct smb_rqst *rqst, in cifs_calc_signature() argument
104 if (!rqst->rq_iov || !signature || !server) in cifs_calc_signature()
[all …]
Dsmb2transport.c209 smb2_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, in smb2_calc_signature() argument
215 struct kvec *iov = rqst->rq_iov; in smb2_calc_signature()
267 drqst = *rqst; in smb2_calc_signature()
529 smb3_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, in smb3_calc_signature() argument
535 struct kvec *iov = rqst->rq_iov; in smb3_calc_signature()
587 drqst = *rqst; in smb3_calc_signature()
612 smb2_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server) in smb2_sign_rqst() argument
620 shdr = (struct smb2_sync_hdr *)rqst->rq_iov[0].iov_base; in smb2_sign_rqst()
636 rc = server->ops->calc_signature(rqst, server, false); in smb2_sign_rqst()
642 smb2_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server) in smb2_verify_signature() argument
[all …]
Dcifsproto.h95 struct smb_rqst *rqst,
102 struct smb_rqst *rqst, int *resp_buf_type,
107 struct smb_rqst *rqst, int *resp_buf_type,
495 extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server,
500 extern int cifs_verify_signature(struct smb_rqst *rqst,
579 int __cifs_calc_signature(struct smb_rqst *rqst,
593 void rqst_page_get_length(const struct smb_rqst *rqst, unsigned int page,
Dmisc.c1147 void rqst_page_get_length(const struct smb_rqst *rqst, unsigned int page, in rqst_page_get_length() argument
1150 *len = rqst->rq_pagesz; in rqst_page_get_length()
1151 *offset = (page == 0) ? rqst->rq_offset : 0; in rqst_page_get_length()
1153 if (rqst->rq_npages == 1 || page == rqst->rq_npages-1) in rqst_page_get_length()
1154 *len = rqst->rq_tailsz; in rqst_page_get_length()
1156 *len = rqst->rq_pagesz - rqst->rq_offset; in rqst_page_get_length()
Dsmbdirect.c2000 struct smb_rqst *rqst; in smbd_send() local
2029 rqst = &rqst_array[rqst_idx]; in smbd_send()
2030 iov = rqst->rq_iov; in smbd_send()
2033 rqst_idx, smb_rqst_len(server, rqst)); in smbd_send()
2034 for (i = 0; i < rqst->rq_nvec; i++) in smbd_send()
2039 rqst_idx, rqst->rq_nvec, rqst->rq_npages, rqst->rq_pagesz, in smbd_send()
2040 rqst->rq_tailsz, smb_rqst_len(server, rqst)); in smbd_send()
2085 if (i == rqst->rq_nvec) in smbd_send()
2092 if (i == rqst->rq_nvec) { in smbd_send()
2109 for (i = 0; i < rqst->rq_npages; i++) { in smbd_send()
[all …]
Dsmbdirect.h273 int num_rqst, struct smb_rqst *rqst);
313 static inline int smbd_send(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *rqst) {r… in smbd_send() argument
Dcifsglob.h1139 extern void smb3_free_compound_rqst(int num_rqst, struct smb_rqst *rqst);
1978 static inline unsigned int cifs_get_num_sgs(const struct smb_rqst *rqst, in cifs_get_num_sgs() argument
1998 for (j = 0; j < rqst[i].rq_nvec; j++) { in cifs_get_num_sgs()
1999 struct kvec *iov = &rqst[i].rq_iov[j]; in cifs_get_num_sgs()
2011 nents += rqst[i].rq_npages; in cifs_get_num_sgs()
Dcifssmb.c647 struct smb_rqst rqst = { .rq_iov = iov, in CIFSSMBEcho() local
672 rc = cifs_call_async(server, &rqst, NULL, cifs_echo_callback, NULL, in CIFSSMBEcho()
1511 struct smb_rqst rqst = { .rq_iov = rdata->iov, in cifs_readv_callback() local
1530 rc = cifs_verify_signature(&rqst, server, in cifs_readv_callback()
1567 struct smb_rqst rqst = { .rq_iov = rdata->iov, in cifs_async_readv() local
1614 rc = cifs_call_async(tcon->ses->server, &rqst, cifs_readv_receive, in cifs_async_readv()
2094 struct smb_rqst rqst = { }; in cifs_async_writev() local
2131 rqst.rq_iov = iov; in cifs_async_writev()
2132 rqst.rq_nvec = 2; in cifs_async_writev()
2133 rqst.rq_pages = wdata->pages; in cifs_async_writev()
[all …]
Dsmb1ops.c28 send_nt_cancel(struct TCP_Server_Info *server, struct smb_rqst *rqst, in send_nt_cancel() argument
32 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_nt_cancel()
/fs/nfsd/
Dvfs.h76 __be32 nfsd_commit(struct svc_rqst *rqst, struct svc_fh *fhp,
Dtrace.h110 TP_PROTO(const struct svc_rqst *rqst,
112 TP_ARGS(rqst, args_opcnt),
118 __entry->xid = be32_to_cpu(rqst->rq_xid);
Dnfs4state.c3594 static __be32 nfsd4_match_existing_connection(struct svc_rqst *rqst, in nfsd4_match_existing_connection() argument
3598 struct svc_xprt *xpt = rqst->rq_xprt; in nfsd4_match_existing_connection()
4724 struct svc_rqst *rqst; in nfsd_breaker_owns_lease() local
4729 rqst = kthread_data(current); in nfsd_breaker_owns_lease()
4731 if (rqst->rq_prog != NFS_PROGRAM || rqst->rq_vers < 4) in nfsd_breaker_owns_lease()
4733 clp = *(rqst->rq_lease_breaker); in nfsd_breaker_owns_lease()
Dnfsproc.c576 xdr->rqst = NULL; in nfsd_init_dirlist_pages()
Dnfs3proc.c469 xdr->rqst = NULL; in nfsd3_init_dirlist_pages()
/fs/nfs/
Dnfstrace.h1411 xdr->rqst->rq_task->tk_client->cl_program->name)
1413 xdr->rqst->rq_task->tk_msg.rpc_proc->p_name)
1417 const struct rpc_rqst *rqstp = xdr->rqst;
Dnfs4trace.h689 const struct rpc_rqst *rqstp = xdr->rqst;
724 const struct rpc_rqst *rqstp = xdr->rqst;