Home
last modified time | relevance | path

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

/fs/smb/client/
Dsmb2inode.c182 struct smb_rqst *rqst; in smb2_compound_op() local
211 rqst = &vars->rqst[0]; in smb2_compound_op()
254 rqst[num_rqst].rq_iov = &vars->open_iov[0]; in smb2_compound_op()
255 rqst[num_rqst].rq_nvec = SMB2_CREATE_IOV_SIZE; in smb2_compound_op()
257 &rqst[num_rqst], &oplock, &vars->oparms, in smb2_compound_op()
263 smb2_set_next_command(tcon, &rqst[num_rqst]); in smb2_compound_op()
272 rqst[num_rqst].rq_iov = &vars->qi_iov; in smb2_compound_op()
273 rqst[num_rqst].rq_nvec = 1; in smb2_compound_op()
277 &rqst[num_rqst], in smb2_compound_op()
286 &rqst[num_rqst], in smb2_compound_op()
[all …]
Dsmb2pdu.c1048 struct smb_rqst rqst; in SMB2_negotiate() local
1127 memset(&rqst, 0, sizeof(struct smb_rqst)); in SMB2_negotiate()
1128 rqst.rq_iov = iov; in SMB2_negotiate()
1129 rqst.rq_nvec = 1; in SMB2_negotiate()
1132 &rqst, &resp_buftype, flags, &rsp_iov); in SMB2_negotiate()
1544 struct smb_rqst rqst; in SMB2_sess_sendreceive() local
1553 memset(&rqst, 0, sizeof(struct smb_rqst)); in SMB2_sess_sendreceive()
1554 rqst.rq_iov = sess_data->iov; in SMB2_sess_sendreceive()
1555 rqst.rq_nvec = 2; in SMB2_sess_sendreceive()
1560 &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,
124 struct smb_rqst *rqst);
126 struct smb_rqst *rqst);
127 extern void smb2_set_related(struct smb_rqst *rqst);
129 struct smb_rqst *rqst);
156 struct smb_rqst *rqst,
159 extern void SMB2_open_free(struct smb_rqst *rqst);
[all …]
Dtransport.c247 smb_rqst_len(struct TCP_Server_Info *server, struct smb_rqst *rqst) in smb_rqst_len() argument
254 if (!is_smb1(server) && rqst->rq_nvec >= 2 && in smb_rqst_len()
255 rqst->rq_iov[0].iov_len == 4) { in smb_rqst_len()
256 iov = &rqst->rq_iov[1]; in smb_rqst_len()
257 nvec = rqst->rq_nvec - 1; in smb_rqst_len()
259 iov = rqst->rq_iov; in smb_rqst_len()
260 nvec = rqst->rq_nvec; in smb_rqst_len()
267 buflen += iov_iter_count(&rqst->rq_iter); in smb_rqst_len()
273 struct smb_rqst *rqst) in __smb_send_rqst() argument
291 rc = smbd_send(server, num_rqst, rqst); in __smb_send_rqst()
[all …]
Dsmb2ops.c1113 struct smb_rqst *rqst; in smb2_set_ea() local
1152 rqst = vars->rqst; in smb2_set_ea()
1198 rqst[0].rq_iov = vars->open_iov; in smb2_set_ea()
1199 rqst[0].rq_nvec = SMB2_CREATE_IOV_SIZE; in smb2_set_ea()
1212 &rqst[0], &oplock, &oparms, utf16_path); in smb2_set_ea()
1215 smb2_set_next_command(tcon, &rqst[0]); in smb2_set_ea()
1219 rqst[1].rq_iov = vars->si_iov; in smb2_set_ea()
1220 rqst[1].rq_nvec = 1; in smb2_set_ea()
1238 &rqst[1], COMPOUND_FID, in smb2_set_ea()
1244 smb2_set_next_command(tcon, &rqst[1]); in smb2_set_ea()
[all …]
Dcifsencrypt.c171 int __cifs_calc_signature(struct smb_rqst *rqst, in __cifs_calc_signature() argument
177 struct kvec *iov = rqst->rq_iov; in __cifs_calc_signature()
178 int n_vec = rqst->rq_nvec; in __cifs_calc_signature()
208 rc = cifs_shash_iter(&rqst->rq_iter, iov_iter_count(&rqst->rq_iter), shash); in __cifs_calc_signature()
226 static int cifs_calc_signature(struct smb_rqst *rqst, in cifs_calc_signature() argument
231 if (!rqst->rq_iov || !signature || !server) in cifs_calc_signature()
251 return __cifs_calc_signature(rqst, server, signature, server->secmech.md5); in cifs_calc_signature()
255 int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server, in cifs_sign_rqst() argument
260 struct smb_hdr *cifs_pdu = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in cifs_sign_rqst()
262 if (rqst->rq_iov[0].iov_len != 4 || in cifs_sign_rqst()
[all …]
Dcached_dir.c136 struct smb_rqst rqst[2]; in open_cached_dir() local
229 memset(rqst, 0, sizeof(rqst)); in open_cached_dir()
235 rqst[0].rq_iov = open_iov; in open_cached_dir()
236 rqst[0].rq_nvec = SMB2_CREATE_IOV_SIZE; in open_cached_dir()
250 &rqst[0], &oplock, &oparms, utf16_path); in open_cached_dir()
253 smb2_set_next_command(tcon, &rqst[0]); in open_cached_dir()
256 rqst[1].rq_iov = qi_iov; in open_cached_dir()
257 rqst[1].rq_nvec = 1; in open_cached_dir()
260 &rqst[1], COMPOUND_FID, in open_cached_dir()
268 smb2_set_related(&rqst[1]); in open_cached_dir()
[all …]
Dsmb2transport.c231 smb2_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, in smb2_calc_signature() argument
237 struct kvec *iov = rqst->rq_iov; in smb2_calc_signature()
285 drqst = *rqst; in smb2_calc_signature()
561 smb3_calc_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server, in smb3_calc_signature() argument
567 struct kvec *iov = rqst->rq_iov; in smb3_calc_signature()
614 drqst = *rqst; in smb3_calc_signature()
639 smb2_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server) in smb2_sign_rqst() argument
647 shdr = (struct smb2_hdr *)rqst->rq_iov[0].iov_base; in smb2_sign_rqst()
668 rc = server->ops->calc_signature(rqst, server, false); in smb2_sign_rqst()
674 smb2_verify_signature(struct smb_rqst *rqst, struct TCP_Server_Info *server) in smb2_verify_signature() argument
[all …]
Dsmbdirect.c1958 struct smb_rqst *rqst; in smbd_send() local
1987 rqst = &rqst_array[rqst_idx]; in smbd_send()
1990 rqst_idx, smb_rqst_len(server, rqst)); in smbd_send()
1991 for (i = 0; i < rqst->rq_nvec; i++) in smbd_send()
1992 dump_smb(rqst->rq_iov[i].iov_base, rqst->rq_iov[i].iov_len); in smbd_send()
1995 rqst_idx, rqst->rq_nvec, remaining_data_length, in smbd_send()
1996 iov_iter_count(&rqst->rq_iter), smb_rqst_len(server, rqst)); in smbd_send()
2000 for (i = 0; i < rqst->rq_nvec; i++) in smbd_send()
2001 klen += rqst->rq_iov[i].iov_len; in smbd_send()
2002 iov_iter_kvec(&iter, ITER_SOURCE, rqst->rq_iov, rqst->rq_nvec, klen); in smbd_send()
[all …]
Dcifsglob.h1313 extern void smb3_free_compound_rqst(int num_rqst, struct smb_rqst *rqst);
2220 static inline int cifs_get_num_sgs(const struct smb_rqst *rqst, in cifs_get_num_sgs() argument
2243 data_size = iov_iter_count(&rqst[i].rq_iter); in cifs_get_num_sgs()
2250 WARN_ON_ONCE(user_backed_iter(&rqst[i].rq_iter))) in cifs_get_num_sgs()
2257 WARN_ON_ONCE(iov_iter_extract_will_pin(&rqst[i].rq_iter))) in cifs_get_num_sgs()
2260 for (j = 0; j < rqst[i].rq_nvec; j++) { in cifs_get_num_sgs()
2261 struct kvec *iov = &rqst[i].rq_iov[j]; in cifs_get_num_sgs()
2274 nents += iov_iter_npages(&rqst[i].rq_iter, INT_MAX); in cifs_get_num_sgs()
2322 struct smb_rqst rqst[MAX_COMPOUND]; member
Dsmbdirect.h277 int num_rqst, struct smb_rqst *rqst);
316 static inline int smbd_send(struct TCP_Server_Info *server, int num_rqst, struct smb_rqst *rqst) {r… in smbd_send() argument
Dcifsproto.h96 struct smb_rqst *rqst,
103 struct smb_rqst *rqst, int *resp_buf_type,
108 struct smb_rqst *rqst, int *resp_buf_type,
537 extern int cifs_sign_rqst(struct smb_rqst *rqst, struct TCP_Server_Info *server,
542 extern int cifs_verify_signature(struct smb_rqst *rqst,
619 int __cifs_calc_signature(struct smb_rqst *rqst,
Dcifssmb.c575 struct smb_rqst rqst = { .rq_iov = iov, in CIFSSMBEcho() local
600 rc = cifs_call_async(server, &rqst, NULL, cifs_echo_callback, NULL, in CIFSSMBEcho()
1268 struct smb_rqst rqst = { .rq_iov = rdata->iov, in cifs_readv_callback() local
1284 rc = cifs_verify_signature(&rqst, server, in cifs_readv_callback()
1321 struct smb_rqst rqst = { .rq_iov = rdata->iov, in cifs_async_readv() local
1368 rc = cifs_call_async(tcon->ses->server, &rqst, cifs_readv_receive, in cifs_async_readv()
1671 struct smb_rqst rqst = { }; in cifs_async_writev() local
1708 rqst.rq_iov = iov; in cifs_async_writev()
1709 rqst.rq_nvec = 2; in cifs_async_writev()
1710 rqst.rq_iter = wdata->iter; in cifs_async_writev()
[all …]
Dsmb1ops.c29 send_nt_cancel(struct TCP_Server_Info *server, struct smb_rqst *rqst, in send_nt_cancel() argument
33 struct smb_hdr *in_buf = (struct smb_hdr *)rqst->rq_iov[0].iov_base; in send_nt_cancel()
/fs/nfsd/
Dvfs.h91 __be32 nfsd_commit(struct svc_rqst *rqst, struct svc_fh *fhp,
Dtrace.h91 const struct svc_rqst *rqst,
96 TP_ARGS(rqst, tag, taglen, opcnt),
103 __entry->xid = be32_to_cpu(rqst->rq_xid);
Dnfs4state.c3741 static __be32 nfsd4_match_existing_connection(struct svc_rqst *rqst, in nfsd4_match_existing_connection() argument
3745 struct svc_xprt *xpt = rqst->rq_xprt; in nfsd4_match_existing_connection()
4960 struct svc_rqst *rqst; in nfsd_breaker_owns_lease() local
4965 rqst = kthread_data(current); in nfsd_breaker_owns_lease()
4967 if (rqst->rq_prog != NFS_PROGRAM || rqst->rq_vers < 4) in nfsd_breaker_owns_lease()
4969 clp = *(rqst->rq_lease_breaker); in nfsd_breaker_owns_lease()
/fs/nfs/
Dnfstrace.h1695 xdr->rqst->rq_task->tk_client->cl_program->name)
1697 xdr->rqst->rq_task->tk_msg.rpc_proc->p_name)
1701 const struct rpc_rqst *rqstp = xdr->rqst;
Dnfs4trace.h397 const struct rpc_rqst *rqstp = xdr->rqst;
432 const struct rpc_rqst *rqstp = xdr->rqst;