Lines Matching refs:rdata
1476 struct cifs_readdata *rdata = mid->callback_data; in cifs_readv_discard() local
1478 return __cifs_readv_discard(server, mid, rdata->result); in cifs_readv_discard()
1486 struct cifs_readdata *rdata = mid->callback_data; in cifs_readv_receive() local
1493 __func__, mid->mid, rdata->offset, rdata->bytes); in cifs_readv_receive()
1523 rdata->iov[0].iov_base = buf; in cifs_readv_receive()
1524 rdata->iov[0].iov_len = server->vals->header_preamble_size; in cifs_readv_receive()
1525 rdata->iov[1].iov_base = buf + server->vals->header_preamble_size; in cifs_readv_receive()
1526 rdata->iov[1].iov_len = in cifs_readv_receive()
1529 rdata->iov[0].iov_base, rdata->iov[0].iov_len); in cifs_readv_receive()
1531 rdata->iov[1].iov_base, rdata->iov[1].iov_len); in cifs_readv_receive()
1534 rdata->result = server->ops->map_error(buf, false); in cifs_readv_receive()
1535 if (rdata->result != 0) { in cifs_readv_receive()
1537 __func__, rdata->result); in cifs_readv_receive()
1547 rdata->result = -EIO; in cifs_readv_receive()
1566 rdata->result = -EIO; in cifs_readv_receive()
1585 use_rdma_mr = rdata->mr; in cifs_readv_receive()
1590 rdata->result = -EIO; in cifs_readv_receive()
1594 length = rdata->read_into_pages(server, rdata, data_len); in cifs_readv_receive()
1616 struct cifs_readdata *rdata = mid->callback_data; in cifs_readv_callback() local
1617 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback()
1619 struct smb_rqst rqst = { .rq_iov = rdata->iov, in cifs_readv_callback()
1621 .rq_pages = rdata->pages, in cifs_readv_callback()
1622 .rq_npages = rdata->nr_pages, in cifs_readv_callback()
1623 .rq_pagesz = rdata->pagesz, in cifs_readv_callback()
1624 .rq_tailsz = rdata->tailsz }; in cifs_readv_callback()
1627 __func__, mid->mid, mid->mid_state, rdata->result, in cifs_readv_callback()
1628 rdata->bytes); in cifs_readv_callback()
1643 task_io_account_read(rdata->got_bytes); in cifs_readv_callback()
1644 cifs_stats_bytes_read(tcon, rdata->got_bytes); in cifs_readv_callback()
1648 rdata->result = -EAGAIN; in cifs_readv_callback()
1649 if (server->sign && rdata->got_bytes) in cifs_readv_callback()
1651 rdata->got_bytes = 0; in cifs_readv_callback()
1653 task_io_account_read(rdata->got_bytes); in cifs_readv_callback()
1654 cifs_stats_bytes_read(tcon, rdata->got_bytes); in cifs_readv_callback()
1657 rdata->result = -EIO; in cifs_readv_callback()
1660 queue_work(cifsiod_wq, &rdata->work); in cifs_readv_callback()
1667 cifs_async_readv(struct cifs_readdata *rdata) in cifs_async_readv() argument
1672 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv()
1673 struct smb_rqst rqst = { .rq_iov = rdata->iov, in cifs_async_readv()
1677 __func__, rdata->offset, rdata->bytes); in cifs_async_readv()
1683 if ((rdata->offset >> 32) > 0) { in cifs_async_readv()
1693 smb->hdr.Pid = cpu_to_le16((__u16)rdata->pid); in cifs_async_readv()
1694 smb->hdr.PidHigh = cpu_to_le16((__u16)(rdata->pid >> 16)); in cifs_async_readv()
1697 smb->Fid = rdata->cfile->fid.netfid; in cifs_async_readv()
1698 smb->OffsetLow = cpu_to_le32(rdata->offset & 0xFFFFFFFF); in cifs_async_readv()
1700 smb->OffsetHigh = cpu_to_le32(rdata->offset >> 32); in cifs_async_readv()
1702 smb->MaxCount = cpu_to_le16(rdata->bytes & 0xFFFF); in cifs_async_readv()
1703 smb->MaxCountHigh = cpu_to_le32(rdata->bytes >> 16); in cifs_async_readv()
1714 rdata->iov[0].iov_base = smb; in cifs_async_readv()
1715 rdata->iov[0].iov_len = 4; in cifs_async_readv()
1716 rdata->iov[1].iov_base = (char *)smb + 4; in cifs_async_readv()
1717 rdata->iov[1].iov_len = get_rfc1002_length(smb); in cifs_async_readv()
1719 kref_get(&rdata->refcount); in cifs_async_readv()
1721 cifs_readv_callback, NULL, rdata, 0); in cifs_async_readv()
1726 kref_put(&rdata->refcount, cifs_readdata_release); in cifs_async_readv()