Lines Matching full:fis
139 * ata_tf_to_fis - Convert ATA taskfile to SATA FIS structure
142 * @is_cmd: This FIS is for command
143 * @fis: Buffer into which data will output
146 * FIS structure (Register - Host to Device).
151 void ata_tf_to_fis(const struct ata_taskfile *tf, u8 pmp, int is_cmd, u8 *fis) in ata_tf_to_fis() argument
153 fis[0] = 0x27; /* Register - Host to Device FIS */ in ata_tf_to_fis()
154 fis[1] = pmp & 0xf; /* Port multiplier number*/ in ata_tf_to_fis()
156 fis[1] |= (1 << 7); /* bit 7 indicates Command FIS */ in ata_tf_to_fis()
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()
173 fis[14] = 0; 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()
184 * ata_tf_from_fis - Convert SATA FIS to ATA taskfile
185 * @fis: Buffer from which data will be input
188 * Converts a serial ATA FIS structure to a standard ATA taskfile.
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()
679 * Some PMPs don't send D2H Reg FIS after hardreset if in sata_link_hardreset()
1363 * Handler to be called when async notification via SDB FIS is
1665 * commands that were completed with the same SDB FIS. in ata_eh_analyze_ncq_error()