Lines Matching defs:wdata
1618 struct cifs_writedata *wdata = mid->callback_data;
1619 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink);
1626 wdata->result = cifs_check_receive(mid, tcon->ses->server, 0);
1627 if (wdata->result != 0)
1639 if (written > wdata->bytes)
1642 if (written < wdata->bytes)
1643 wdata->result = -ENOSPC;
1645 wdata->bytes = written;
1649 wdata->result = -EAGAIN;
1652 wdata->result = -EIO;
1656 queue_work(cifsiod_wq, &wdata->work);
1663 cifs_async_writev(struct cifs_writedata *wdata,
1669 struct cifs_tcon *tcon = tlink_tcon(wdata->cfile->tlink);
1677 if (wdata->offset >> 32 > 0) {
1687 smb->hdr.Pid = cpu_to_le16((__u16)wdata->pid);
1688 smb->hdr.PidHigh = cpu_to_le16((__u16)(wdata->pid >> 16));
1691 smb->Fid = wdata->cfile->fid.netfid;
1692 smb->OffsetLow = cpu_to_le32(wdata->offset & 0xFFFFFFFF);
1694 smb->OffsetHigh = cpu_to_le32(wdata->offset >> 32);
1710 rqst.rq_iter = wdata->iter;
1711 rqst.rq_iter_size = iov_iter_count(&wdata->iter);
1714 wdata->offset, wdata->bytes);
1716 smb->DataLengthLow = cpu_to_le16(wdata->bytes & 0xFFFF);
1717 smb->DataLengthHigh = cpu_to_le16(wdata->bytes >> 16);
1720 inc_rfc1001_len(&smb->hdr, wdata->bytes + 1);
1721 put_bcc(wdata->bytes + 1, &smb->hdr);
1726 inc_rfc1001_len(&smbw->hdr, wdata->bytes + 5);
1727 put_bcc(wdata->bytes + 5, &smbw->hdr);
1731 kref_get(&wdata->refcount);
1733 cifs_writev_callback, NULL, wdata, 0, NULL);
1738 kref_put(&wdata->refcount, release);