Lines Matching refs:tf

140  *	@tf: Taskfile to convert
151 void ata_tf_to_fis(const struct ata_taskfile *tf, u8 pmp, int is_cmd, u8 *fis)
158 fis[2] = tf->command;
159 fis[3] = tf->feature;
161 fis[4] = tf->lbal;
162 fis[5] = tf->lbam;
163 fis[6] = tf->lbah;
164 fis[7] = tf->device;
166 fis[8] = tf->hob_lbal;
167 fis[9] = tf->hob_lbam;
168 fis[10] = tf->hob_lbah;
169 fis[11] = tf->hob_feature;
171 fis[12] = tf->nsect;
172 fis[13] = tf->hob_nsect;
174 fis[15] = tf->ctl;
176 fis[16] = tf->auxiliary & 0xff;
177 fis[17] = (tf->auxiliary >> 8) & 0xff;
178 fis[18] = (tf->auxiliary >> 16) & 0xff;
179 fis[19] = (tf->auxiliary >> 24) & 0xff;
186 * @tf: Taskfile to output
194 void ata_tf_from_fis(const u8 *fis, struct ata_taskfile *tf)
196 tf->status = fis[2];
197 tf->error = fis[3];
199 tf->lbal = fis[4];
200 tf->lbam = fis[5];
201 tf->lbah = fis[6];
202 tf->device = fis[7];
204 tf->hob_lbal = fis[8];
205 tf->hob_lbam = fis[9];
206 tf->hob_lbah = fis[10];
208 tf->nsect = fis[12];
209 tf->hob_nsect = fis[13];
1291 * @tf: Resulting taskfile registers of the failed command
1303 int *tag, struct ata_taskfile *tf)
1326 tf->status = buf[2];
1327 tf->error = buf[3];
1328 tf->lbal = buf[4];
1329 tf->lbam = buf[5];
1330 tf->lbah = buf[6];
1331 tf->device = buf[7];
1332 tf->hob_lbal = buf[8];
1333 tf->hob_lbam = buf[9];
1334 tf->hob_lbah = buf[10];
1335 tf->nsect = buf[12];
1336 tf->hob_nsect = buf[13];
1337 if (ata_id_has_ncq_autosense(dev->id) && (tf->status & ATA_SENSE))
1338 tf->auxiliary = buf[14] << 16 | buf[15] << 8 | buf[16];
1450 struct ata_taskfile tf;
1471 memset(&tf, 0, sizeof(tf));
1472 rc = ata_eh_read_log_10h(dev, &tag, &tf);
1487 memcpy(&qc->result_tf, &tf, sizeof(tf));