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