Lines Matching defs:xfer
72 struct ata_xfer *xfer = &chp->recovery_xfer;
83 memset(xfer, 0, sizeof(*xfer));
94 xfer->c_flags |= C_SKIP_QUEUE;
95 xfer->c_ata_c.r_command = WDCC_READ_LOG_EXT;
96 xfer->c_ata_c.r_lba = page = WDCC_LOG_PAGE_NCQ;
97 xfer->c_ata_c.r_st_bmask = WDCS_DRDY;
98 xfer->c_ata_c.r_st_pmask = WDCS_DRDY;
99 xfer->c_ata_c.r_count = 1;
100 xfer->c_ata_c.r_device = WDSD_LBA;
101 xfer->c_ata_c.flags = AT_READ | AT_LBA | AT_LBA48 | flags;
102 xfer->c_ata_c.timeout = 1000; /* 1s */
103 xfer->c_ata_c.data = tb;
104 xfer->c_ata_c.bcount = sizeof(chp->recovery_blk);
106 (*atac->atac_bustype_ata->ata_exec_command)(drvp, xfer);
107 ata_wait_cmd(chp, xfer);
109 if (xfer->c_ata_c.flags & (AT_ERROR | AT_TIMEOU | AT_DF)) {
165 struct ata_xfer *xfer;
193 /* Error out the particular NCQ xfer, then requeue the others */
195 xfer = ata_queue_hwslot_to_xfer(chp, eslot);
196 xfer->c_flags |= C_RECOVERED;
197 xfer->ops->c_intr(chp, xfer, ATACH_ERR_ST(err, st));
208 xfer = ata_queue_hwslot_to_xfer(chp, slot);
209 xfer->ops->c_intr(chp, xfer, tfd);
240 xfer = ata_queue_hwslot_to_xfer(chp, slot);
241 if (drive != xfer->c_drive)
244 xfer->ops->c_kill_xfer(chp, xfer,