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