Lines Matching refs:buf
30 unsigned int devno, u8 *buf) in pdc_pkt_header() argument
33 __le32 *buf32 = (__le32 *) buf; in pdc_pkt_header()
64 buf[12] = (1 << 5) | PDC_PKT_CLEAR_BSY | ATA_REG_DEVICE; in pdc_pkt_header()
65 buf[13] = dev_reg; in pdc_pkt_header()
68 buf[14] = (1 << 5) | PDC_REG_DEVCTL; 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
78 buf[i++] = (1 << 5) | ATA_REG_DEVICE; in pdc_pkt_footer()
79 buf[i++] = tf->device; in pdc_pkt_footer()
83 buf[i++] = (1 << 5) | PDC_LAST_REG | ATA_REG_CMD; 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
94 buf[i++] = (1 << 5) | ATA_REG_FEATURE; in pdc_prep_lba28()
95 buf[i++] = tf->feature; in pdc_prep_lba28()
97 buf[i++] = (1 << 5) | ATA_REG_NSECT; in pdc_prep_lba28()
98 buf[i++] = tf->nsect; in pdc_prep_lba28()
100 buf[i++] = (1 << 5) | ATA_REG_LBAL; in pdc_prep_lba28()
101 buf[i++] = tf->lbal; in pdc_prep_lba28()
103 buf[i++] = (1 << 5) | ATA_REG_LBAM; in pdc_prep_lba28()
104 buf[i++] = tf->lbam; in pdc_prep_lba28()
106 buf[i++] = (1 << 5) | ATA_REG_LBAH; 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
117 buf[i++] = (2 << 5) | ATA_REG_FEATURE; in pdc_prep_lba48()
118 buf[i++] = tf->hob_feature; in pdc_prep_lba48()
119 buf[i++] = tf->feature; in pdc_prep_lba48()
121 buf[i++] = (2 << 5) | ATA_REG_NSECT; in pdc_prep_lba48()
122 buf[i++] = tf->hob_nsect; in pdc_prep_lba48()
123 buf[i++] = tf->nsect; in pdc_prep_lba48()
125 buf[i++] = (2 << 5) | ATA_REG_LBAL; in pdc_prep_lba48()
126 buf[i++] = tf->hob_lbal; in pdc_prep_lba48()
127 buf[i++] = tf->lbal; in pdc_prep_lba48()
129 buf[i++] = (2 << 5) | ATA_REG_LBAM; in pdc_prep_lba48()
130 buf[i++] = tf->hob_lbam; in pdc_prep_lba48()
131 buf[i++] = tf->lbam; in pdc_prep_lba48()
133 buf[i++] = (2 << 5) | ATA_REG_LBAH; in pdc_prep_lba48()
134 buf[i++] = tf->hob_lbah; in pdc_prep_lba48()
135 buf[i++] = tf->lbah; in pdc_prep_lba48()