Searched refs:io_parms (Results 1 - 8 of 8) sorted by relevance

/linux-4.4.14/fs/cifs/
H A Dlink.c333 struct cifs_io_parms io_parms; cifs_query_mf_symlink() local
356 io_parms.netfid = fid.netfid; cifs_query_mf_symlink()
357 io_parms.pid = current->tgid; cifs_query_mf_symlink()
358 io_parms.tcon = tcon; cifs_query_mf_symlink()
359 io_parms.offset = 0; cifs_query_mf_symlink()
360 io_parms.length = CIFS_MF_SYMLINK_FILE_SIZE; cifs_query_mf_symlink()
362 rc = CIFSSMBRead(xid, &io_parms, pbytes_read, &pbuf, &buf_type); cifs_query_mf_symlink()
377 struct cifs_io_parms io_parms; cifs_create_mf_symlink() local
396 io_parms.netfid = fid.netfid; cifs_create_mf_symlink()
397 io_parms.pid = current->tgid; cifs_create_mf_symlink()
398 io_parms.tcon = tcon; cifs_create_mf_symlink()
399 io_parms.offset = 0; cifs_create_mf_symlink()
400 io_parms.length = CIFS_MF_SYMLINK_FILE_SIZE; cifs_create_mf_symlink()
402 rc = CIFSSMBWrite(xid, &io_parms, pbytes_written, pbuf, NULL, 0); cifs_create_mf_symlink()
419 struct cifs_io_parms io_parms; smb3_query_mf_symlink() local
457 io_parms.netfid = fid.netfid; smb3_query_mf_symlink()
458 io_parms.pid = current->tgid; smb3_query_mf_symlink()
459 io_parms.tcon = tcon; smb3_query_mf_symlink()
460 io_parms.offset = 0; smb3_query_mf_symlink()
461 io_parms.length = CIFS_MF_SYMLINK_FILE_SIZE; smb3_query_mf_symlink()
462 io_parms.persistent_fid = fid.persistent_fid; smb3_query_mf_symlink()
463 io_parms.volatile_fid = fid.volatile_fid; smb3_query_mf_symlink()
464 rc = SMB2_read(xid, &io_parms, pbytes_read, &pbuf, &buf_type); smb3_query_mf_symlink()
481 struct cifs_io_parms io_parms; smb3_create_mf_symlink() local
510 io_parms.netfid = fid.netfid; smb3_create_mf_symlink()
511 io_parms.pid = current->tgid; smb3_create_mf_symlink()
512 io_parms.tcon = tcon; smb3_create_mf_symlink()
513 io_parms.offset = 0; smb3_create_mf_symlink()
514 io_parms.length = CIFS_MF_SYMLINK_FILE_SIZE; smb3_create_mf_symlink()
515 io_parms.persistent_fid = fid.persistent_fid; smb3_create_mf_symlink()
516 io_parms.volatile_fid = fid.volatile_fid; smb3_create_mf_symlink()
522 rc = SMB2_write(xid, &io_parms, pbytes_written, iov, 1); smb3_create_mf_symlink()
H A Dsmb2pdu.c1885 smb2_new_read_req(struct kvec *iov, struct cifs_io_parms *io_parms, smb2_new_read_req() argument
1891 rc = small_smb2_init(SMB2_READ, io_parms->tcon, (void **) &req); smb2_new_read_req()
1894 if (io_parms->tcon->ses->server == NULL) smb2_new_read_req()
1897 req->hdr.ProcessId = cpu_to_le32(io_parms->pid); smb2_new_read_req()
1899 req->PersistentFileId = io_parms->persistent_fid; smb2_new_read_req()
1900 req->VolatileFileId = io_parms->volatile_fid; smb2_new_read_req()
1905 req->Length = cpu_to_le32(io_parms->length); smb2_new_read_req()
1906 req->Offset = cpu_to_le64(io_parms->offset); smb2_new_read_req()
1927 if (remaining_bytes > io_parms->length) smb2_new_read_req()
2004 struct cifs_io_parms io_parms; smb2_async_readv() local
2012 io_parms.tcon = tlink_tcon(rdata->cfile->tlink); smb2_async_readv()
2013 io_parms.offset = rdata->offset; smb2_async_readv()
2014 io_parms.length = rdata->bytes; smb2_async_readv()
2015 io_parms.persistent_fid = rdata->cfile->fid.persistent_fid; smb2_async_readv()
2016 io_parms.volatile_fid = rdata->cfile->fid.volatile_fid; smb2_async_readv()
2017 io_parms.pid = rdata->pid; smb2_async_readv()
2019 server = io_parms.tcon->ses->server; smb2_async_readv()
2021 rc = smb2_new_read_req(&rdata->iov, &io_parms, 0, 0); smb2_async_readv()
2050 rc = cifs_call_async(io_parms.tcon->ses->server, &rqst, smb2_async_readv()
2055 cifs_stats_fail_inc(io_parms.tcon, SMB2_READ_HE); smb2_async_readv()
2063 SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms, SMB2_read() argument
2071 rc = smb2_new_read_req(iov, io_parms, 0, 0); SMB2_read()
2075 rc = SendReceive2(xid, io_parms->tcon->ses, iov, 1, SMB2_read()
2086 cifs_stats_fail_inc(io_parms->tcon, SMB2_READ_HE); SMB2_read()
2091 (*nbytes > io_parms->length)) { SMB2_read()
2093 *nbytes, io_parms->length); SMB2_read()
2251 * The length field from io_parms must be at least 1 and indicates a number of
2256 SMB2_write(const unsigned int xid, struct cifs_io_parms *io_parms, SMB2_write() argument
2268 rc = small_smb2_init(SMB2_WRITE, io_parms->tcon, (void **) &req); SMB2_write()
2272 if (io_parms->tcon->ses->server == NULL) SMB2_write()
2275 req->hdr.ProcessId = cpu_to_le32(io_parms->pid); SMB2_write()
2277 req->PersistentFileId = io_parms->persistent_fid; SMB2_write()
2278 req->VolatileFileId = io_parms->volatile_fid; SMB2_write()
2282 req->Length = cpu_to_le32(io_parms->length); SMB2_write()
2283 req->Offset = cpu_to_le64(io_parms->offset); SMB2_write()
2294 inc_rfc1001_len(req, io_parms->length - 1 /* Buffer */); SMB2_write()
2296 rc = SendReceive2(xid, io_parms->tcon->ses, iov, n_vec + 1, SMB2_write()
2301 cifs_stats_fail_inc(io_parms->tcon, SMB2_WRITE_HE); SMB2_write()
H A Dsmb2proto.h130 extern int SMB2_read(const unsigned int xid, struct cifs_io_parms *io_parms,
134 extern int SMB2_write(const unsigned int xid, struct cifs_io_parms *io_parms,
H A Ddir.c577 struct cifs_io_parms io_parms; cifs_mknod() local
675 io_parms.pid = current->tgid; cifs_mknod()
676 io_parms.tcon = tcon; cifs_mknod()
677 io_parms.offset = 0; cifs_mknod()
678 io_parms.length = sizeof(struct win_dev); cifs_mknod()
685 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, cifs_mknod()
691 rc = tcon->ses->server->ops->sync_write(xid, &fid, &io_parms, cifs_mknod()
H A Dinode.c436 struct cifs_io_parms io_parms; cifs_sfu_type() local
482 io_parms.netfid = fid.netfid; cifs_sfu_type()
483 io_parms.pid = current->tgid; cifs_sfu_type()
484 io_parms.tcon = tcon; cifs_sfu_type()
485 io_parms.offset = 0; cifs_sfu_type()
486 io_parms.length = 24; cifs_sfu_type()
488 rc = tcon->ses->server->ops->sync_read(xid, &fid, &io_parms, cifs_sfu_type()
H A Dcifssmb.c1664 CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms, CIFSSMBRead() argument
1674 __u32 pid = io_parms->pid; CIFSSMBRead()
1675 __u16 netfid = io_parms->netfid; CIFSSMBRead()
1676 __u64 offset = io_parms->offset; CIFSSMBRead()
1677 struct cifs_tcon *tcon = io_parms->tcon; CIFSSMBRead()
1678 unsigned int count = io_parms->length; CIFSSMBRead()
1773 CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms, CIFSSMBWrite() argument
1783 __u32 pid = io_parms->pid; CIFSSMBWrite()
1784 __u16 netfid = io_parms->netfid; CIFSSMBWrite()
1785 __u64 offset = io_parms->offset; CIFSSMBWrite()
1786 struct cifs_tcon *tcon = io_parms->tcon; CIFSSMBWrite()
1787 unsigned int count = io_parms->length; CIFSSMBWrite()
2182 CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms, CIFSSMBWrite2() argument
2190 __u32 pid = io_parms->pid; CIFSSMBWrite2()
2191 __u16 netfid = io_parms->netfid; CIFSSMBWrite2()
2192 __u64 offset = io_parms->offset; CIFSSMBWrite2()
2193 struct cifs_tcon *tcon = io_parms->tcon; CIFSSMBWrite2()
2194 unsigned int count = io_parms->length; CIFSSMBWrite2()
H A Dcifsproto.h392 extern int CIFSSMBRead(const unsigned int xid, struct cifs_io_parms *io_parms,
395 extern int CIFSSMBWrite(const unsigned int xid, struct cifs_io_parms *io_parms,
398 extern int CIFSSMBWrite2(const unsigned int xid, struct cifs_io_parms *io_parms,
H A Dfile.c1646 struct cifs_io_parms io_parms; cifs_write() local
1683 io_parms.pid = pid; cifs_write()
1684 io_parms.tcon = tcon; cifs_write()
1685 io_parms.offset = *offset; cifs_write()
1686 io_parms.length = len; cifs_write()
1688 &io_parms, &bytes_written, iov, 1); cifs_write()
3129 struct cifs_io_parms io_parms; cifs_read() local
3181 io_parms.pid = pid; cifs_read()
3182 io_parms.tcon = tcon; cifs_read()
3183 io_parms.offset = *offset; cifs_read()
3184 io_parms.length = current_read_size; cifs_read()
3185 rc = server->ops->sync_read(xid, &open_file->fid, &io_parms, cifs_read()

Completed in 192 milliseconds