• Home
  • Raw
  • Download

Lines Matching +full:tf +full:- +full:a

2  *  sata_promise.h - Promise SATA common definitions and inline funcs
4 * Copyright 2003-2004 Red Hat, Inc.
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17 * You should have received a copy of the GNU General Public License
23 * as Documentation/driver-api/libata.rst
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()
72 buf32[2] = 0; /* no next-packet */ 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()
98 /* and finally the command itself; also includes end-of-pkt marker */ 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()