Lines Matching defs:cp
422 static inline void init_dma(struct dbdma_cmd *cp, int cmd,
425 cp->req_count = cpu_to_le16(count);
426 cp->command = cpu_to_le16(cmd);
427 cp->phy_addr = cpu_to_le32(swim3_phys_to_bus(paddr));
428 cp->xfer_status = 0;
435 struct dbdma_cmd *cp = fs->dma_cmd;
459 out_le32(&dr->cmdptr, swim3_phys_to_bus(virt_to_phys(cp)));
462 init_dma(cp, OUTPUT_MORE, virt_to_phys(write_preamble),
464 ++cp;
465 init_dma(cp, OUTPUT_MORE, swim3_bio_phys(req->bio), 512);
466 ++cp;
467 init_dma(cp, OUTPUT_LAST, virt_to_phys(write_postamble),
470 init_dma(cp, INPUT_LAST, swim3_bio_phys(req->bio), n * 512);
472 ++cp;
473 out_le16(&cp->command, DBDMA_STOP);
662 struct dbdma_cmd *cp;
732 cp = fs->dma_cmd;
734 ++cp;
742 if ((intr & ERROR_INTR) == 0 && cp->xfer_status == 0) {
745 if (cp->xfer_status != 0)
753 stat = le16_to_cpu(cp->xfer_status);
754 resid = le16_to_cpu(cp->res_count);