Lines Matching refs:tf
28 static inline unsigned int pdc_pkt_header(struct ata_taskfile *tf, in pdc_pkt_header() argument
38 switch (tf->protocol) { in pdc_pkt_header()
40 if (!(tf->flags & ATA_TFLAG_WRITE)) in pdc_pkt_header()
69 buf[15] = tf->ctl; in pdc_pkt_header()
74 static inline unsigned int pdc_pkt_footer(struct ata_taskfile *tf, u8 *buf, in pdc_pkt_footer() argument
77 if (tf->flags & ATA_TFLAG_DEVICE) { in pdc_pkt_footer()
79 buf[i++] = tf->device; in pdc_pkt_footer()
84 buf[i++] = tf->command; in pdc_pkt_footer()
89 static inline unsigned int pdc_prep_lba28(struct ata_taskfile *tf, u8 *buf, unsigned int i) in pdc_prep_lba28() argument
95 buf[i++] = tf->feature; in pdc_prep_lba28()
98 buf[i++] = tf->nsect; in pdc_prep_lba28()
101 buf[i++] = tf->lbal; in pdc_prep_lba28()
104 buf[i++] = tf->lbam; in pdc_prep_lba28()
107 buf[i++] = tf->lbah; in pdc_prep_lba28()
112 static inline unsigned int pdc_prep_lba48(struct ata_taskfile *tf, u8 *buf, unsigned int i) in pdc_prep_lba48() argument
118 buf[i++] = tf->hob_feature; in pdc_prep_lba48()
119 buf[i++] = tf->feature; in pdc_prep_lba48()
122 buf[i++] = tf->hob_nsect; in pdc_prep_lba48()
123 buf[i++] = tf->nsect; in pdc_prep_lba48()
126 buf[i++] = tf->hob_lbal; in pdc_prep_lba48()
127 buf[i++] = tf->lbal; in pdc_prep_lba48()
130 buf[i++] = tf->hob_lbam; in pdc_prep_lba48()
131 buf[i++] = tf->lbam; in pdc_prep_lba48()
134 buf[i++] = tf->hob_lbah; in pdc_prep_lba48()
135 buf[i++] = tf->lbah; in pdc_prep_lba48()