Lines Matching refs:tf
44 static inline unsigned int pdc_pkt_header(struct ata_taskfile *tf, in pdc_pkt_header() argument
54 switch (tf->protocol) { in pdc_pkt_header()
56 if (!(tf->flags & ATA_TFLAG_WRITE)) in pdc_pkt_header()
85 buf[15] = tf->ctl; in pdc_pkt_header()
90 static inline unsigned int pdc_pkt_footer(struct ata_taskfile *tf, u8 *buf, in pdc_pkt_footer() argument
93 if (tf->flags & ATA_TFLAG_DEVICE) { in pdc_pkt_footer()
95 buf[i++] = tf->device; in pdc_pkt_footer()
100 buf[i++] = tf->command; in pdc_pkt_footer()
105 static inline unsigned int pdc_prep_lba28(struct ata_taskfile *tf, u8 *buf, unsigned int i) in pdc_prep_lba28() argument
111 buf[i++] = tf->feature; in pdc_prep_lba28()
114 buf[i++] = tf->nsect; in pdc_prep_lba28()
117 buf[i++] = tf->lbal; in pdc_prep_lba28()
120 buf[i++] = tf->lbam; in pdc_prep_lba28()
123 buf[i++] = tf->lbah; in pdc_prep_lba28()
128 static inline unsigned int pdc_prep_lba48(struct ata_taskfile *tf, u8 *buf, unsigned int i) in pdc_prep_lba48() argument
134 buf[i++] = tf->hob_feature; in pdc_prep_lba48()
135 buf[i++] = tf->feature; in pdc_prep_lba48()
138 buf[i++] = tf->hob_nsect; in pdc_prep_lba48()
139 buf[i++] = tf->nsect; in pdc_prep_lba48()
142 buf[i++] = tf->hob_lbal; in pdc_prep_lba48()
143 buf[i++] = tf->lbal; in pdc_prep_lba48()
146 buf[i++] = tf->hob_lbam; in pdc_prep_lba48()
147 buf[i++] = tf->lbam; in pdc_prep_lba48()
150 buf[i++] = tf->hob_lbah; in pdc_prep_lba48()
151 buf[i++] = tf->lbah; in pdc_prep_lba48()