Lines Matching refs:rdata
1425 struct cifs_readdata *rdata = mid->callback_data; in cifs_readv_discard() local
1428 dequeue_mid(mid, rdata->result); in cifs_readv_discard()
1439 struct cifs_readdata *rdata = mid->callback_data; in cifs_readv_receive() local
1444 __func__, mid->mid, rdata->offset, rdata->bytes); in cifs_readv_receive()
1474 rdata->result = server->ops->map_error(buf, false); in cifs_readv_receive()
1475 if (rdata->result != 0) { in cifs_readv_receive()
1477 __func__, rdata->result); in cifs_readv_receive()
1486 rdata->result = -EIO; in cifs_readv_receive()
1504 rdata->result = -EIO; in cifs_readv_receive()
1522 rdata->iov.iov_base = buf; in cifs_readv_receive()
1523 rdata->iov.iov_len = server->total_read; in cifs_readv_receive()
1525 rdata->iov.iov_base, rdata->iov.iov_len); in cifs_readv_receive()
1531 rdata->result = -EIO; in cifs_readv_receive()
1535 length = rdata->read_into_pages(server, rdata, data_len); in cifs_readv_receive()
1557 struct cifs_readdata *rdata = mid->callback_data; in cifs_readv_callback() local
1558 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_readv_callback()
1560 struct smb_rqst rqst = { .rq_iov = &rdata->iov, in cifs_readv_callback()
1562 .rq_pages = rdata->pages, in cifs_readv_callback()
1563 .rq_npages = rdata->nr_pages, in cifs_readv_callback()
1564 .rq_pagesz = rdata->pagesz, in cifs_readv_callback()
1565 .rq_tailsz = rdata->tailsz }; in cifs_readv_callback()
1568 __func__, mid->mid, mid->mid_state, rdata->result, in cifs_readv_callback()
1569 rdata->bytes); in cifs_readv_callback()
1584 task_io_account_read(rdata->got_bytes); in cifs_readv_callback()
1585 cifs_stats_bytes_read(tcon, rdata->got_bytes); in cifs_readv_callback()
1589 rdata->result = -EAGAIN; in cifs_readv_callback()
1590 if (server->sign && rdata->got_bytes) in cifs_readv_callback()
1592 rdata->got_bytes = 0; in cifs_readv_callback()
1594 task_io_account_read(rdata->got_bytes); in cifs_readv_callback()
1595 cifs_stats_bytes_read(tcon, rdata->got_bytes); in cifs_readv_callback()
1598 rdata->result = -EIO; in cifs_readv_callback()
1601 queue_work(cifsiod_wq, &rdata->work); in cifs_readv_callback()
1610 cifs_async_readv(struct cifs_readdata *rdata) in cifs_async_readv() argument
1615 struct cifs_tcon *tcon = tlink_tcon(rdata->cfile->tlink); in cifs_async_readv()
1616 struct smb_rqst rqst = { .rq_iov = &rdata->iov, in cifs_async_readv()
1620 __func__, rdata->offset, rdata->bytes); in cifs_async_readv()
1626 if ((rdata->offset >> 32) > 0) { in cifs_async_readv()
1636 smb->hdr.Pid = cpu_to_le16((__u16)rdata->pid); in cifs_async_readv()
1637 smb->hdr.PidHigh = cpu_to_le16((__u16)(rdata->pid >> 16)); in cifs_async_readv()
1640 smb->Fid = rdata->cfile->fid.netfid; in cifs_async_readv()
1641 smb->OffsetLow = cpu_to_le32(rdata->offset & 0xFFFFFFFF); in cifs_async_readv()
1643 smb->OffsetHigh = cpu_to_le32(rdata->offset >> 32); in cifs_async_readv()
1645 smb->MaxCount = cpu_to_le16(rdata->bytes & 0xFFFF); in cifs_async_readv()
1646 smb->MaxCountHigh = cpu_to_le32(rdata->bytes >> 16); in cifs_async_readv()
1657 rdata->iov.iov_base = smb; in cifs_async_readv()
1658 rdata->iov.iov_len = be32_to_cpu(smb->hdr.smb_buf_length) + 4; in cifs_async_readv()
1660 kref_get(&rdata->refcount); in cifs_async_readv()
1662 cifs_readv_callback, rdata, 0); in cifs_async_readv()
1667 kref_put(&rdata->refcount, cifs_readdata_release); in cifs_async_readv()