Lines Matching refs:rqd
624 static inline void nvme_nvm_rqtocmd(struct nvm_rq *rqd, struct nvme_ns *ns,
627 c->ph_rw.opcode = rqd->opcode;
629 c->ph_rw.spba = cpu_to_le64(rqd->ppa_addr.ppa);
630 c->ph_rw.metadata = cpu_to_le64(rqd->dma_meta_list);
631 c->ph_rw.control = cpu_to_le16(rqd->flags);
632 c->ph_rw.length = cpu_to_le16(rqd->nr_ppas - 1);
637 struct nvm_rq *rqd = rq->end_io_data;
639 rqd->ppa_status = le64_to_cpu(nvme_req(rq)->result.u64);
640 rqd->error = nvme_req(rq)->status;
641 nvm_end_io(rqd);
648 struct nvm_rq *rqd,
654 nvme_nvm_rqtocmd(rqd, ns, cmd);
662 if (rqd->bio)
663 blk_rq_append_bio(rq, &rqd->bio);
670 static int nvme_nvm_submit_io(struct nvm_dev *dev, struct nvm_rq *rqd,
683 rq = nvme_nvm_alloc_request(q, rqd, cmd);
690 ret = blk_rq_map_kern(q, rq, buf, geo->csecs * rqd->nr_ppas,
696 rq->end_io_data = rqd;