Lines Matching refs:fis
554 void ata_tf_to_fis(const struct ata_taskfile *tf, u8 pmp, int is_cmd, u8 *fis) in ata_tf_to_fis() argument
556 fis[0] = 0x27; /* Register - Host to Device FIS */ in ata_tf_to_fis()
557 fis[1] = pmp & 0xf; /* Port multiplier number*/ in ata_tf_to_fis()
559 fis[1] |= (1 << 7); /* bit 7 indicates Command FIS */ in ata_tf_to_fis()
561 fis[2] = tf->command; in ata_tf_to_fis()
562 fis[3] = tf->feature; in ata_tf_to_fis()
564 fis[4] = tf->lbal; in ata_tf_to_fis()
565 fis[5] = tf->lbam; in ata_tf_to_fis()
566 fis[6] = tf->lbah; in ata_tf_to_fis()
567 fis[7] = tf->device; in ata_tf_to_fis()
569 fis[8] = tf->hob_lbal; in ata_tf_to_fis()
570 fis[9] = tf->hob_lbam; in ata_tf_to_fis()
571 fis[10] = tf->hob_lbah; in ata_tf_to_fis()
572 fis[11] = tf->hob_feature; in ata_tf_to_fis()
574 fis[12] = tf->nsect; in ata_tf_to_fis()
575 fis[13] = tf->hob_nsect; in ata_tf_to_fis()
576 fis[14] = 0; in ata_tf_to_fis()
577 fis[15] = tf->ctl; in ata_tf_to_fis()
579 fis[16] = tf->auxiliary & 0xff; in ata_tf_to_fis()
580 fis[17] = (tf->auxiliary >> 8) & 0xff; in ata_tf_to_fis()
581 fis[18] = (tf->auxiliary >> 16) & 0xff; in ata_tf_to_fis()
582 fis[19] = (tf->auxiliary >> 24) & 0xff; in ata_tf_to_fis()
596 void ata_tf_from_fis(const u8 *fis, struct ata_taskfile *tf) in ata_tf_from_fis() argument
598 tf->command = fis[2]; /* status */ in ata_tf_from_fis()
599 tf->feature = fis[3]; /* error */ in ata_tf_from_fis()
601 tf->lbal = fis[4]; in ata_tf_from_fis()
602 tf->lbam = fis[5]; in ata_tf_from_fis()
603 tf->lbah = fis[6]; in ata_tf_from_fis()
604 tf->device = fis[7]; in ata_tf_from_fis()
606 tf->hob_lbal = fis[8]; in ata_tf_from_fis()
607 tf->hob_lbam = fis[9]; in ata_tf_from_fis()
608 tf->hob_lbah = fis[10]; in ata_tf_from_fis()
610 tf->nsect = fis[12]; in ata_tf_from_fis()
611 tf->hob_nsect = fis[13]; in ata_tf_from_fis()