Lines Matching refs:io_parms
3834 struct cifs_io_parms *io_parms, struct cifs_readdata *rdata,
3840 struct TCP_Server_Info *server = io_parms->server;
3842 rc = smb2_plain_req_init(SMB2_READ, io_parms->tcon, server,
3851 shdr->ProcessId = cpu_to_le32(io_parms->pid);
3853 req->PersistentFileId = io_parms->persistent_fid;
3854 req->VolatileFileId = io_parms->volatile_fid;
3859 req->Length = cpu_to_le32(io_parms->length);
3860 req->Offset = cpu_to_le64(io_parms->offset);
3863 io_parms->persistent_fid,
3864 io_parms->tcon->tid, io_parms->tcon->ses->Suid,
3865 io_parms->offset, io_parms->length);
3918 if (remaining_bytes > io_parms->length)
4024 struct cifs_io_parms io_parms;
4037 io_parms.tcon = tlink_tcon(rdata->cfile->tlink);
4038 io_parms.server = server = rdata->server;
4039 io_parms.offset = rdata->offset;
4040 io_parms.length = rdata->bytes;
4041 io_parms.persistent_fid = rdata->cfile->fid.persistent_fid;
4042 io_parms.volatile_fid = rdata->cfile->fid.volatile_fid;
4043 io_parms.pid = rdata->pid;
4046 (void **) &buf, &total_len, &io_parms, rdata, 0, 0);
4050 if (smb3_encryption_required(io_parms.tcon))
4077 cifs_stats_fail_inc(io_parms.tcon, SMB2_READ_HE);
4078 trace_smb3_read_err(0 /* xid */, io_parms.persistent_fid,
4079 io_parms.tcon->tid,
4080 io_parms.tcon->ses->Suid,
4081 io_parms.offset, io_parms.length, rc);
4090 SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms,
4101 struct cifs_ses *ses = io_parms->tcon->ses;
4103 if (!io_parms->server)
4104 io_parms->server = cifs_pick_channel(io_parms->tcon->ses);
4107 rc = smb2_new_read_req((void **)&req, &total_len, io_parms, NULL, 0, 0);
4111 if (smb3_encryption_required(io_parms->tcon))
4121 rc = cifs_send_recv(xid, ses, io_parms->server,
4127 cifs_stats_fail_inc(io_parms->tcon, SMB2_READ_HE);
4130 io_parms->tcon->tid, ses->Suid,
4131 io_parms->offset, io_parms->length,
4135 io_parms->tcon->tid, ses->Suid,
4136 io_parms->offset, 0);
4142 io_parms->tcon->tid, ses->Suid,
4143 io_parms->offset, io_parms->length);
4149 (*nbytes > io_parms->length)) {
4151 *nbytes, io_parms->length);
4395 * The length field from io_parms must be at least 1 and indicates a number of
4400 SMB2_write(const unsigned int xid, struct cifs_io_parms *io_parms,
4418 if (!io_parms->server)
4419 io_parms->server = cifs_pick_channel(io_parms->tcon->ses);
4420 server = io_parms->server;
4424 rc = smb2_plain_req_init(SMB2_WRITE, io_parms->tcon, server,
4429 if (smb3_encryption_required(io_parms->tcon))
4432 req->sync_hdr.ProcessId = cpu_to_le32(io_parms->pid);
4434 req->PersistentFileId = io_parms->persistent_fid;
4435 req->VolatileFileId = io_parms->volatile_fid;
4439 req->Length = cpu_to_le32(io_parms->length);
4440 req->Offset = cpu_to_le64(io_parms->offset);
4445 trace_smb3_write_enter(xid, io_parms->persistent_fid,
4446 io_parms->tcon->tid, io_parms->tcon->ses->Suid,
4447 io_parms->offset, io_parms->length);
4457 rc = cifs_send_recv(xid, io_parms->tcon->ses, server,
4464 io_parms->tcon->tid,
4465 io_parms->tcon->ses->Suid,
4466 io_parms->offset, io_parms->length, rc);
4467 cifs_stats_fail_inc(io_parms->tcon, SMB2_WRITE_HE);
4472 io_parms->tcon->tid,
4473 io_parms->tcon->ses->Suid,
4474 io_parms->offset, *nbytes);