Lines Matching refs:tf
151 void ata_tf_to_fis(const struct ata_taskfile *tf, u8 pmp, int is_cmd, u8 *fis) in ata_tf_to_fis() argument
158 fis[2] = tf->command; in ata_tf_to_fis()
159 fis[3] = tf->feature; in ata_tf_to_fis()
161 fis[4] = tf->lbal; in ata_tf_to_fis()
162 fis[5] = tf->lbam; in ata_tf_to_fis()
163 fis[6] = tf->lbah; in ata_tf_to_fis()
164 fis[7] = tf->device; in ata_tf_to_fis()
166 fis[8] = tf->hob_lbal; in ata_tf_to_fis()
167 fis[9] = tf->hob_lbam; in ata_tf_to_fis()
168 fis[10] = tf->hob_lbah; in ata_tf_to_fis()
169 fis[11] = tf->hob_feature; in ata_tf_to_fis()
171 fis[12] = tf->nsect; in ata_tf_to_fis()
172 fis[13] = tf->hob_nsect; in ata_tf_to_fis()
174 fis[15] = tf->ctl; in ata_tf_to_fis()
176 fis[16] = tf->auxiliary & 0xff; in ata_tf_to_fis()
177 fis[17] = (tf->auxiliary >> 8) & 0xff; in ata_tf_to_fis()
178 fis[18] = (tf->auxiliary >> 16) & 0xff; in ata_tf_to_fis()
179 fis[19] = (tf->auxiliary >> 24) & 0xff; in ata_tf_to_fis()
194 void ata_tf_from_fis(const u8 *fis, struct ata_taskfile *tf) in ata_tf_from_fis() argument
196 tf->status = fis[2]; in ata_tf_from_fis()
197 tf->error = fis[3]; in ata_tf_from_fis()
199 tf->lbal = fis[4]; in ata_tf_from_fis()
200 tf->lbam = fis[5]; in ata_tf_from_fis()
201 tf->lbah = fis[6]; in ata_tf_from_fis()
202 tf->device = fis[7]; in ata_tf_from_fis()
204 tf->hob_lbal = fis[8]; in ata_tf_from_fis()
205 tf->hob_lbam = fis[9]; in ata_tf_from_fis()
206 tf->hob_lbah = fis[10]; in ata_tf_from_fis()
208 tf->nsect = fis[12]; in ata_tf_from_fis()
209 tf->hob_nsect = fis[13]; in ata_tf_from_fis()
1304 int *tag, struct ata_taskfile *tf) in ata_eh_read_log_10h() argument
1327 tf->status = buf[2]; in ata_eh_read_log_10h()
1328 tf->error = buf[3]; in ata_eh_read_log_10h()
1329 tf->lbal = buf[4]; in ata_eh_read_log_10h()
1330 tf->lbam = buf[5]; in ata_eh_read_log_10h()
1331 tf->lbah = buf[6]; in ata_eh_read_log_10h()
1332 tf->device = buf[7]; in ata_eh_read_log_10h()
1333 tf->hob_lbal = buf[8]; in ata_eh_read_log_10h()
1334 tf->hob_lbam = buf[9]; in ata_eh_read_log_10h()
1335 tf->hob_lbah = buf[10]; in ata_eh_read_log_10h()
1336 tf->nsect = buf[12]; in ata_eh_read_log_10h()
1337 tf->hob_nsect = buf[13]; in ata_eh_read_log_10h()
1338 if (ata_id_has_ncq_autosense(dev->id) && (tf->status & ATA_SENSE)) in ata_eh_read_log_10h()
1339 tf->auxiliary = buf[14] << 16 | buf[15] << 8 | buf[16]; in ata_eh_read_log_10h()
1451 struct ata_taskfile tf; in ata_eh_analyze_ncq_error() local
1472 memset(&tf, 0, sizeof(tf)); in ata_eh_analyze_ncq_error()
1473 rc = ata_eh_read_log_10h(dev, &tag, &tf); in ata_eh_analyze_ncq_error()
1488 memcpy(&qc->result_tf, &tf, sizeof(tf)); in ata_eh_analyze_ncq_error()