Lines Matching refs:io_parms

4216 static inline bool smb3_use_rdma_offload(struct cifs_io_parms *io_parms)
4218 struct TCP_Server_Info *server = io_parms->server;
4219 struct cifs_tcon *tcon = io_parms->tcon;
4238 if (io_parms->length < server->smbd_conn->rdma_readwrite_threshold)
4251 struct cifs_io_parms *io_parms, struct cifs_readdata *rdata,
4257 struct TCP_Server_Info *server = io_parms->server;
4259 rc = smb2_plain_req_init(SMB2_READ, io_parms->tcon, server,
4268 shdr->Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid);
4270 req->PersistentFileId = io_parms->persistent_fid;
4271 req->VolatileFileId = io_parms->volatile_fid;
4276 req->Length = cpu_to_le32(io_parms->length);
4277 req->Offset = cpu_to_le64(io_parms->offset);
4280 io_parms->persistent_fid,
4281 io_parms->tcon->tid, io_parms->tcon->ses->Suid,
4282 io_parms->offset, io_parms->length);
4288 if (smb3_use_rdma_offload(io_parms)) {
4331 if (remaining_bytes > io_parms->length)
4435 struct cifs_io_parms io_parms;
4449 io_parms.tcon = tlink_tcon(rdata->cfile->tlink);
4450 io_parms.server = server = rdata->server;
4451 io_parms.offset = rdata->offset;
4452 io_parms.length = rdata->bytes;
4453 io_parms.persistent_fid = rdata->cfile->fid.persistent_fid;
4454 io_parms.volatile_fid = rdata->cfile->fid.volatile_fid;
4455 io_parms.pid = rdata->pid;
4458 (void **) &buf, &total_len, &io_parms, rdata, 0, 0);
4462 if (smb3_encryption_required(io_parms.tcon))
4495 cifs_stats_fail_inc(io_parms.tcon, SMB2_READ_HE);
4496 trace_smb3_read_err(0 /* xid */, io_parms.persistent_fid,
4497 io_parms.tcon->tid,
4498 io_parms.tcon->ses->Suid,
4499 io_parms.offset, io_parms.length, rc);
4508 SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms,
4519 struct cifs_ses *ses = io_parms->tcon->ses;
4521 if (!io_parms->server)
4522 io_parms->server = cifs_pick_channel(io_parms->tcon->ses);
4525 rc = smb2_new_read_req((void **)&req, &total_len, io_parms, NULL, 0, 0);
4529 if (smb3_encryption_required(io_parms->tcon))
4539 rc = cifs_send_recv(xid, ses, io_parms->server,
4545 cifs_stats_fail_inc(io_parms->tcon, SMB2_READ_HE);
4549 io_parms->tcon->tid, ses->Suid,
4550 io_parms->offset, io_parms->length,
4553 trace_smb3_read_done(xid, req->PersistentFileId, io_parms->tcon->tid,
4554 ses->Suid, io_parms->offset, 0);
4561 io_parms->tcon->tid, ses->Suid,
4562 io_parms->offset, io_parms->length);
4568 (*nbytes > io_parms->length)) {
4570 *nbytes, io_parms->length);
4688 struct cifs_io_parms *io_parms = NULL;
4707 io_parms = &_io_parms;
4718 shdr->Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid);
4720 req->PersistentFileId = io_parms->persistent_fid;
4721 req->VolatileFileId = io_parms->volatile_fid;
4725 req->Offset = cpu_to_le64(io_parms->offset);
4731 io_parms->persistent_fid,
4732 io_parms->tcon->tid,
4733 io_parms->tcon->ses->Suid,
4734 io_parms->offset,
4735 io_parms->length);
4742 if (smb3_use_rdma_offload(io_parms)) {
4781 io_parms->offset, io_parms->length, iov_iter_count(&rqst.rq_iter));
4786 req->Length = cpu_to_le32(io_parms->length);
4788 req->Length = cpu_to_le32(io_parms->length);
4802 rc = adjust_credits(server, &wdata->credits, io_parms->length);
4815 io_parms->persistent_fid,
4816 io_parms->tcon->tid,
4817 io_parms->tcon->ses->Suid,
4818 io_parms->offset,
4819 io_parms->length,
4832 * The length field from io_parms must be at least 1 and indicates a number of
4837 SMB2_write(const unsigned int xid, struct cifs_io_parms *io_parms,
4855 if (!io_parms->server)
4856 io_parms->server = cifs_pick_channel(io_parms->tcon->ses);
4857 server = io_parms->server;
4861 rc = smb2_plain_req_init(SMB2_WRITE, io_parms->tcon, server,
4866 if (smb3_encryption_required(io_parms->tcon))
4869 req->hdr.Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid);
4871 req->PersistentFileId = io_parms->persistent_fid;
4872 req->VolatileFileId = io_parms->volatile_fid;
4876 req->Length = cpu_to_le32(io_parms->length);
4877 req->Offset = cpu_to_le64(io_parms->offset);
4882 trace_smb3_write_enter(xid, io_parms->persistent_fid,
4883 io_parms->tcon->tid, io_parms->tcon->ses->Suid,
4884 io_parms->offset, io_parms->length);
4894 rc = cifs_send_recv(xid, io_parms->tcon->ses, server,
4902 io_parms->tcon->tid,
4903 io_parms->tcon->ses->Suid,
4904 io_parms->offset, io_parms->length, rc);
4905 cifs_stats_fail_inc(io_parms->tcon, SMB2_WRITE_HE);
4911 io_parms->tcon->tid,
4912 io_parms->tcon->ses->Suid,
4913 io_parms->offset, *nbytes);