Lines Matching refs:io_parms
4056 struct cifs_io_parms *io_parms, struct cifs_readdata *rdata, in smb2_new_read_req() argument
4062 struct TCP_Server_Info *server = io_parms->server; in smb2_new_read_req()
4064 rc = smb2_plain_req_init(SMB2_READ, io_parms->tcon, server, in smb2_new_read_req()
4073 shdr->Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid); in smb2_new_read_req()
4075 req->PersistentFileId = io_parms->persistent_fid; in smb2_new_read_req()
4076 req->VolatileFileId = io_parms->volatile_fid; in smb2_new_read_req()
4081 req->Length = cpu_to_le32(io_parms->length); in smb2_new_read_req()
4082 req->Offset = cpu_to_le64(io_parms->offset); in smb2_new_read_req()
4085 io_parms->persistent_fid, in smb2_new_read_req()
4086 io_parms->tcon->tid, io_parms->tcon->ses->Suid, in smb2_new_read_req()
4087 io_parms->offset, io_parms->length); in smb2_new_read_req()
4140 if (remaining_bytes > io_parms->length) in smb2_new_read_req()
4243 struct cifs_io_parms io_parms; in smb2_async_readv() local
4256 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
4257 io_parms.server = server = rdata->server; in smb2_async_readv()
4258 io_parms.offset = rdata->offset; in smb2_async_readv()
4259 io_parms.length = rdata->bytes; in smb2_async_readv()
4260 io_parms.persistent_fid = rdata->cfile->fid.persistent_fid; in smb2_async_readv()
4261 io_parms.volatile_fid = rdata->cfile->fid.volatile_fid; in smb2_async_readv()
4262 io_parms.pid = rdata->pid; in smb2_async_readv()
4265 (void **) &buf, &total_len, &io_parms, rdata, 0, 0); in smb2_async_readv()
4269 if (smb3_encryption_required(io_parms.tcon)) in smb2_async_readv()
4296 cifs_stats_fail_inc(io_parms.tcon, SMB2_READ_HE); in smb2_async_readv()
4297 trace_smb3_read_err(0 /* xid */, io_parms.persistent_fid, in smb2_async_readv()
4298 io_parms.tcon->tid, in smb2_async_readv()
4299 io_parms.tcon->ses->Suid, in smb2_async_readv()
4300 io_parms.offset, io_parms.length, rc); in smb2_async_readv()
4309 SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms, in SMB2_read() argument
4320 struct cifs_ses *ses = io_parms->tcon->ses; in SMB2_read()
4322 if (!io_parms->server) in SMB2_read()
4323 io_parms->server = cifs_pick_channel(io_parms->tcon->ses); in SMB2_read()
4326 rc = smb2_new_read_req((void **)&req, &total_len, io_parms, NULL, 0, 0); in SMB2_read()
4330 if (smb3_encryption_required(io_parms->tcon)) in SMB2_read()
4340 rc = cifs_send_recv(xid, ses, io_parms->server, in SMB2_read()
4346 cifs_stats_fail_inc(io_parms->tcon, SMB2_READ_HE); in SMB2_read()
4350 io_parms->tcon->tid, ses->Suid, in SMB2_read()
4351 io_parms->offset, io_parms->length, in SMB2_read()
4354 trace_smb3_read_done(xid, req->PersistentFileId, io_parms->tcon->tid, in SMB2_read()
4355 ses->Suid, io_parms->offset, 0); in SMB2_read()
4362 io_parms->tcon->tid, ses->Suid, in SMB2_read()
4363 io_parms->offset, io_parms->length); in SMB2_read()
4369 (*nbytes > io_parms->length)) { in SMB2_read()
4371 *nbytes, io_parms->length); in SMB2_read()
4621 SMB2_write(const unsigned int xid, struct cifs_io_parms *io_parms, in SMB2_write() argument
4639 if (!io_parms->server) in SMB2_write()
4640 io_parms->server = cifs_pick_channel(io_parms->tcon->ses); in SMB2_write()
4641 server = io_parms->server; in SMB2_write()
4645 rc = smb2_plain_req_init(SMB2_WRITE, io_parms->tcon, server, in SMB2_write()
4650 if (smb3_encryption_required(io_parms->tcon)) in SMB2_write()
4653 req->hdr.Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid); in SMB2_write()
4655 req->PersistentFileId = io_parms->persistent_fid; in SMB2_write()
4656 req->VolatileFileId = io_parms->volatile_fid; in SMB2_write()
4660 req->Length = cpu_to_le32(io_parms->length); in SMB2_write()
4661 req->Offset = cpu_to_le64(io_parms->offset); in SMB2_write()
4666 trace_smb3_write_enter(xid, io_parms->persistent_fid, in SMB2_write()
4667 io_parms->tcon->tid, io_parms->tcon->ses->Suid, in SMB2_write()
4668 io_parms->offset, io_parms->length); in SMB2_write()
4678 rc = cifs_send_recv(xid, io_parms->tcon->ses, server, in SMB2_write()
4686 io_parms->tcon->tid, in SMB2_write()
4687 io_parms->tcon->ses->Suid, in SMB2_write()
4688 io_parms->offset, io_parms->length, rc); in SMB2_write()
4689 cifs_stats_fail_inc(io_parms->tcon, SMB2_WRITE_HE); in SMB2_write()
4695 io_parms->tcon->tid, in SMB2_write()
4696 io_parms->tcon->ses->Suid, in SMB2_write()
4697 io_parms->offset, *nbytes); in SMB2_write()