Lines Matching refs:io_parms

4063 	struct cifs_io_parms *io_parms, struct cifs_readdata *rdata,  in smb2_new_read_req()  argument
4069 struct TCP_Server_Info *server = io_parms->server; in smb2_new_read_req()
4071 rc = smb2_plain_req_init(SMB2_READ, io_parms->tcon, server, in smb2_new_read_req()
4080 shdr->Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid); in smb2_new_read_req()
4082 req->PersistentFileId = io_parms->persistent_fid; in smb2_new_read_req()
4083 req->VolatileFileId = io_parms->volatile_fid; in smb2_new_read_req()
4088 req->Length = cpu_to_le32(io_parms->length); in smb2_new_read_req()
4089 req->Offset = cpu_to_le64(io_parms->offset); in smb2_new_read_req()
4092 io_parms->persistent_fid, in smb2_new_read_req()
4093 io_parms->tcon->tid, io_parms->tcon->ses->Suid, in smb2_new_read_req()
4094 io_parms->offset, io_parms->length); in smb2_new_read_req()
4147 if (remaining_bytes > io_parms->length) in smb2_new_read_req()
4253 struct cifs_io_parms io_parms; in smb2_async_readv() local
4266 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); in smb2_async_readv()
4267 io_parms.server = server = rdata->server; in smb2_async_readv()
4268 io_parms.offset = rdata->offset; in smb2_async_readv()
4269 io_parms.length = rdata->bytes; in smb2_async_readv()
4270 io_parms.persistent_fid = rdata->cfile->fid.persistent_fid; in smb2_async_readv()
4271 io_parms.volatile_fid = rdata->cfile->fid.volatile_fid; in smb2_async_readv()
4272 io_parms.pid = rdata->pid; in smb2_async_readv()
4275 (void **) &buf, &total_len, &io_parms, rdata, 0, 0); in smb2_async_readv()
4279 if (smb3_encryption_required(io_parms.tcon)) in smb2_async_readv()
4306 cifs_stats_fail_inc(io_parms.tcon, SMB2_READ_HE); in smb2_async_readv()
4307 trace_smb3_read_err(0 /* xid */, io_parms.persistent_fid, in smb2_async_readv()
4308 io_parms.tcon->tid, in smb2_async_readv()
4309 io_parms.tcon->ses->Suid, in smb2_async_readv()
4310 io_parms.offset, io_parms.length, rc); in smb2_async_readv()
4319 SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms, in SMB2_read() argument
4330 struct cifs_ses *ses = io_parms->tcon->ses; in SMB2_read()
4332 if (!io_parms->server) in SMB2_read()
4333 io_parms->server = cifs_pick_channel(io_parms->tcon->ses); in SMB2_read()
4336 rc = smb2_new_read_req((void **)&req, &total_len, io_parms, NULL, 0, 0); in SMB2_read()
4340 if (smb3_encryption_required(io_parms->tcon)) in SMB2_read()
4350 rc = cifs_send_recv(xid, ses, io_parms->server, in SMB2_read()
4356 cifs_stats_fail_inc(io_parms->tcon, SMB2_READ_HE); in SMB2_read()
4360 io_parms->tcon->tid, ses->Suid, in SMB2_read()
4361 io_parms->offset, io_parms->length, in SMB2_read()
4364 trace_smb3_read_done(xid, req->PersistentFileId, io_parms->tcon->tid, in SMB2_read()
4365 ses->Suid, io_parms->offset, 0); in SMB2_read()
4372 io_parms->tcon->tid, ses->Suid, in SMB2_read()
4373 io_parms->offset, io_parms->length); in SMB2_read()
4379 (*nbytes > io_parms->length)) { in SMB2_read()
4381 *nbytes, io_parms->length); in SMB2_read()
4631 SMB2_write(const unsigned int xid, struct cifs_io_parms *io_parms, in SMB2_write() argument
4649 if (!io_parms->server) in SMB2_write()
4650 io_parms->server = cifs_pick_channel(io_parms->tcon->ses); in SMB2_write()
4651 server = io_parms->server; in SMB2_write()
4655 rc = smb2_plain_req_init(SMB2_WRITE, io_parms->tcon, server, in SMB2_write()
4660 if (smb3_encryption_required(io_parms->tcon)) in SMB2_write()
4663 req->hdr.Id.SyncId.ProcessId = cpu_to_le32(io_parms->pid); in SMB2_write()
4665 req->PersistentFileId = io_parms->persistent_fid; in SMB2_write()
4666 req->VolatileFileId = io_parms->volatile_fid; in SMB2_write()
4670 req->Length = cpu_to_le32(io_parms->length); in SMB2_write()
4671 req->Offset = cpu_to_le64(io_parms->offset); in SMB2_write()
4676 trace_smb3_write_enter(xid, io_parms->persistent_fid, in SMB2_write()
4677 io_parms->tcon->tid, io_parms->tcon->ses->Suid, in SMB2_write()
4678 io_parms->offset, io_parms->length); in SMB2_write()
4688 rc = cifs_send_recv(xid, io_parms->tcon->ses, server, in SMB2_write()
4696 io_parms->tcon->tid, in SMB2_write()
4697 io_parms->tcon->ses->Suid, in SMB2_write()
4698 io_parms->offset, io_parms->length, rc); in SMB2_write()
4699 cifs_stats_fail_inc(io_parms->tcon, SMB2_WRITE_HE); in SMB2_write()
4705 io_parms->tcon->tid, in SMB2_write()
4706 io_parms->tcon->ses->Suid, in SMB2_write()
4707 io_parms->offset, *nbytes); in SMB2_write()